/* Visitor chrome belongs to this person's space; service navigation stays outside. */
.personal-space { --space-shell-height:64px; }
.personal-space #main-content { padding-top:var(--space-shell-height)!important; }
.personal-space #navbar.space-header { position:fixed; inset:0 0 auto; z-index:50; display:flex; align-items:center; justify-content:space-between!important; gap:16px; height:var(--space-shell-height)!important; min-height:0; padding:0 max(24px,calc((100vw - 1180px)/2))!important; border-bottom:1px solid #dedfd433; background:#fffdf8f5!important; color:#344c3d; backdrop-filter:blur(14px); box-sizing:border-box; }
.space-identity { display:flex; align-items:center; gap:10px; min-width:0; text-decoration:none; color:inherit; }
.space-identity > span:last-child { min-width:0; }
.space-identity strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font:700 16px/1.6 'Gowun Batang',serif; letter-spacing:-.025em; }
.space-identity small { display:block; color:#7a8278; font-size:10px; line-height:1.6; letter-spacing:0; }
.space-emblem { display:grid; place-items:center; width:35px; height:35px; flex:none; color:#8b744e; border:1px solid #dcd8ca; border-radius:50%; }
.space-emblem svg { width:17px; height:17px; stroke-width:1.5; }
.space-tools { position:relative; flex:none; font-size:12px; letter-spacing:0; }
.space-tools > summary { display:flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:0 12px; border:1px solid #e3e4da; border-radius:12px; cursor:pointer; list-style:none; }
.space-tools > summary::-webkit-details-marker { display:none; }
.space-tools summary svg { width:14px; height:14px; }
.space-tools[open] summary svg { transform:rotate(180deg); }
.space-tools-panel { position:absolute; top:calc(100% + 10px); right:0; width:244px; max-height:calc(100dvh - 94px); overflow:auto; padding:12px; border:1px solid #e0e3d9; border-radius:18px; background:#fffdf8; box-shadow:0 12px 40px #23352924; }
.space-tools-panel nav { display:grid; }
.space-tools-panel a { display:flex; align-items:center; gap:9px; min-height:46px; padding:9px 12px; border-radius:10px; color:#405647; text-decoration:none; }
.space-tools-panel a:hover { background:#eff2e9; }
.space-tools-panel a.hidden { display:none; }
.space-tools-panel a svg { width:17px; height:17px; }
.personal-space .cs-topbar[hidden] { display:none!important; }
.space-context-tools .cs-topbar-tools { display:flex; flex-wrap:wrap; gap:8px; width:100%; margin:6px 0; padding:10px 0; border:0; border-top:1px solid #e5e5dc; border-radius:0; background:transparent; box-shadow:none; }
.space-context-tools .cs-topbar-tools :is(a,button) { min-width:44px; min-height:44px; }
.space-context-tools .cs-topbar-tools > :is(.memory-save-button,.memory-share-button,.cs-layout-button) { display:flex; justify-content:flex-start; gap:9px; width:100%; height:auto; padding:10px 12px; border:0; border-radius:10px; box-shadow:none; background:transparent; color:#405647; font-size:12px; }
.space-context-tools .cs-topbar-tools > :is(.memory-save-button,.memory-share-button,.cs-layout-button)::after { content:attr(aria-label); text-align:left; }
.space-context-tools .cs-topbar-tools > :is(.memory-save-button,.memory-share-button,.cs-layout-button) span { display:none; }
.space-extra-actions { display:grid; gap:4px; margin:6px 0; padding:6px 0; border-top:1px solid #e5e5dc; }
.space-extra-actions > :is(.memory-save-button,.memory-share-button) { display:flex; align-items:center; justify-content:flex-start; gap:9px; width:100%; min-height:46px; height:auto; padding:9px 12px; border:0; border-radius:10px; background:transparent; box-shadow:none; color:#405647; font:inherit; text-align:left; }
.space-extra-actions > :is(.memory-save-button,.memory-share-button)::after { content:attr(aria-label); }
.space-extra-actions > :is(.memory-save-button,.memory-share-button) span { display:none; }
.space-extra-actions > :is(.memory-save-button,.memory-share-button):hover { background:#eff2e9; }
.personal-space .cr :is(.cr-trigger:not(.is-selected),.cr-share) { border-color:transparent; background:transparent; color:inherit; box-shadow:none; }
.personal-space .cr :is(.cr-trigger:not(.is-selected),.cr-share):hover { border-color:transparent; background:#71826214; }
.space-account { border-top:1px solid #e5e5dc; margin-top:6px; padding-top:6px; }
.space-account #auth-user-chip:not(.hidden) { display:grid; grid-template-columns:1fr auto; gap:2px 12px; padding:12px; }
.space-account #auth-user-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.space-account #auth-provider-label { grid-column:1; font-size:10px; color:#7a8278; }
.space-account #auth-logout-btn { grid-column:2; grid-row:1/3; min-height:44px; padding:6px; color:#53664f; background:transparent; border:0; text-decoration:underline; text-underline-offset:4px; }
.space-music-options { margin-block:6px; border-top:1px solid #e5e5dc; }
.space-music-options > summary { min-height:46px; padding:12px; cursor:pointer; color:#405647; }
.space-music-options [data-space-music-controls] { padding:0 6px 12px; }
.space-music-options .cs-ambient-dock { position:static!important; inset:auto!important; display:flex; flex-wrap:wrap; gap:8px; width:100%!important; max-width:none; margin:0; padding:12px; transform:none!important; border-radius:12px; box-shadow:none; }
.space-music-options .cs-ambient-dock-copy { width:100%; flex:1 0 100%; }
.space-music-options .cs-ambient-select { width:100%; font-size:16px; }
.space-music-options .cs-ambient-status { font-size:11px; }
.space-music-options .cs-ambient-icon-btn { min-width:44px; min-height:44px; }
.space-music-options .m-music-section { width:100%; margin:0; padding:0; overflow:visible; background:transparent; }
.space-music-options .m-music-section::before { display:none; }
.space-music-options .m-shell { width:100%; }
.space-music-options .m-music-memory { display:block; padding:12px; border-radius:12px; box-shadow:none; }
.space-music-options .m-music-simple-mark { display:none; }
.space-music-options .m-music-title { white-space:normal; font-size:15px; }
.space-music-options .m-music-controls { margin-top:10px; }
.space-music-options .m-music-button { min-height:44px; }
.personal-space :is(.space-tools summary,.space-tools a,.space-account button,.space-identity,.space-provider summary,.space-footer a):focus-visible { outline:2px solid #a98c54; outline-offset:3px; }
.personal-space .space-footer { display:grid; justify-items:center; gap:9px; padding:52px 24px 44px; border-top:1px solid #e4e3d8; background:#f5f3ec; color:#7c8278; text-align:center; font:12px/1.8 'Noto Sans KR',sans-serif; letter-spacing:0; }
.space-footer p { margin:0; }
.space-footer .space-qr-card{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;margin:7px 0;padding:10px 20px;border:1px solid #bba272;border-radius:14px;color:#405b43;background:#fffaf0;font-size:13px;text-decoration:none;box-shadow:0 4px 14px #53452808}
.space-footer .space-qr-card svg{width:18px;height:18px;flex-shrink:0}
.space-footer .space-qr-card:hover{background:#f1eadc}
.space-footer .space-ebook-note { display:inline-flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:0 3px; max-width:100%; min-height:44px; color:#66735e; font-size:12px; line-height:1.8; text-decoration:none; }
.space-footer .space-ebook-note>span:first-child { color:#53694c; text-decoration:underline; text-underline-offset:4px; }
.space-footer .space-ebook-note:hover { color:#344d3b; }
.space-footer .space-footer-name { color:#4d6151; font:700 20px/1.6 'Gowun Batang',serif; }
.space-provider { width:min(100%,600px); margin-top:10px; font-size:11px; }
.space-provider > summary { width:fit-content; min-height:44px; margin:auto; padding:12px; cursor:pointer; color:#687363; }
.space-provider > div { padding:16px; border:1px solid #e2e3d8; border-radius:14px; background:#fffaf266; }
.space-provider nav { display:flex; flex-wrap:wrap; justify-content:center; gap:8px 18px; margin:8px 0; }
.space-provider a { display:inline-flex; align-items:center; min-height:36px; color:#63735f; text-decoration:underline; text-underline-offset:4px; }
.personal-space .cs-topbar { top:var(--space-shell-height); }
.personal-space .cs-marble-tabs-wrap { top:var(--space-shell-height); }
@media(max-width:820px) {
  .personal-space { --space-shell-height:60px; }
  .personal-space #navbar.space-header { padding-inline:max(14px,env(safe-area-inset-left,0px)) max(14px,env(safe-area-inset-right,0px))!important; gap:10px; }
  .space-identity { gap:8px; }
  .space-identity strong { font-size:15px; }
  .space-identity small { display:none; }
  .space-emblem { width:30px; height:30px; }
  .space-tools > summary { gap:4px; padding-inline:9px; font-size:11px; }
  .personal-space .space-footer { padding:40px 20px 32px; }
  .space-footer .space-footer-name { font-size:18px; }
  .personal-space .cs-marble-tabs-wrap { top:var(--space-shell-height); }
}
@media(prefers-reduced-motion:reduce) { .space-tools summary svg { transition:none; } }

.space-qr-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;padding:12px 16px;background:#fffdf8;border-bottom:1px solid #e4e3d8}.space-qr-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 15px;border:1px solid #bba272;border-radius:12px;color:#405b43;font:600 13px/1.5 sans-serif;text-decoration:none}.space-qr-actions a:first-child{background:#304d3d;color:#fff;border-color:#304d3d}.space-qr-actions a:focus-visible{outline:3px solid #a47d3b;outline-offset:3px}@media print{.space-qr-actions{display:none}}
