/* HAEBOM: an ink-black universe, luminous stars, and a clear reading hierarchy. */
:root{--bg:#010205;--ink:#f5f7fc;--muted:#bbc8db;--faint:#91a5c0;--line:#adc0dd38;--warm:#f4d2a2;--surface:#080d16;--surface-raised:#0d1522;--reading:#c5d1e2}
body{background:transparent;color:var(--ink)}
.atmosphere{background:linear-gradient(90deg,#000106a8,transparent 38%,transparent 68%,#00010655),linear-gradient(0deg,#010205,transparent 24%,transparent 88%,#01020566)}
::selection{background:#f4d2a24d;color:#fff8eb}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #ffdc9e;outline-offset:5px}
button:disabled{opacity:.45}

/* Chrome and wayfinding: visible choices, a recognisable current location. */

.wordmark{font-weight:650;color:#fff9ed;letter-spacing:2.7px}.wordmark small{color:#c3cfdf;font-size:10px;letter-spacing:4.6px}
.brand-symbol{color:#f8d5a7;text-shadow:0 0 18px #f8c98770}

.notification-dot{width:5px;height:5px;background:#ffdc9f;box-shadow:0 0 9px #ffd49b99}
.dock{background:#060a11f5;border-color:#9dafc14d;box-shadow:0 18px 70px #000d,inset 0 1px #e5edff0c;gap:5px;padding:8px}
.dock button{position:relative;min-height:49px;padding:13px 19px;color:#bac9df;font-size:12px;font-weight:550;letter-spacing:.1px}
.dock button svg{width:18px;height:18px;stroke-width:1.6}
.dock button[aria-current=page]{color:#ffe5bf;background:linear-gradient(160deg,#e7c58e25,#e7c58e0a);border-color:#e3bf8588;box-shadow:0 0 22px #f1c58a0b,inset 0 1px #ffe9c315}
.dock button[aria-current=page]:after{content:"";position:absolute;bottom:5px;left:calc(50% - 9px);width:18px;height:2px;border-radius:2px;background:#f9d89d;box-shadow:0 0 8px #f9d89d88}
.dock button[aria-current=page] svg{filter:drop-shadow(0 0 6px #f4ce9566)}
.dock button:hover,.dock button:focus-visible{color:#fff5e4;background-color:#d6dff00d}
.preview-note{color:#90a3be;background:#010205d9;font-size:9px;left:50%;transform:translateX(-50%);bottom:6px;white-space:nowrap}.footer-coordinate{color:#788da9;font-size:10px}

/* The first glance: a clear message, one primary action, then the personal star. */
.eyebrow{font-size:11px;color:#d5b78f;letter-spacing:1.8px}.eyebrow:before{background:#ebc68eaa}
.home-intro{width:350px}.home-intro h1{font-size:clamp(38px,3.35vw,52px);font-weight:600;line-height:1.45;letter-spacing:-1.8px;color:#fafbff;margin:22px 0 24px;text-shadow:0 2px 22px #000c}
.home-intro h1 em{color:#f4d1a0;text-shadow:0 0 28px #e9bc7d14}

.intro-actions{margin-top:31px;gap:14px}
.primary{min-height:50px;padding:12px 21px;font-size:14px;font-weight:650;letter-spacing:-.2px;color:#1b130b;border-color:#ffe3b7;background:linear-gradient(145deg,#ffe5bf,#e8be89);box-shadow:0 8px 28px #0008,0 0 28px #efc48617,inset 0 1px #fff2da8c}
.primary:hover,.primary:focus-visible{color:#100b06;background:linear-gradient(145deg,#fff1d9,#f3cb95);box-shadow:0 9px 30px #0009,0 0 35px #efc48630}
.text-button{color:#d0d9e7;font-size:13px;gap:10px}.text-button:hover{color:#ffe2b6}
.secondary{min-height:44px;border-color:#a8bbd259;background:#0b121e;color:#d3deef;font-size:13px}
.secondary:hover,.secondary:focus-visible{border-color:#edcc97b3;color:#ffe0ad;background:#17202d}
.secondary[aria-pressed=true]{color:#ffe0ad;border-color:#e1bf8480;background:#c9a57412}

.activity-title{font-size:13px;font-weight:500;color:#f0d4ac;margin-bottom:22px;letter-spacing:.2px}
.activity-title:before{width:5px;height:5px;background:#ffe5af;box-shadow:0 0 10px 2px #f5ca8977}
.activity-row{padding:20px 0;border-top-color:#b2c6e52e;transition:background .2s}
.activity-row:before{content:"";position:absolute;left:-12px;top:15px;bottom:15px;width:2px;background:#f4d2a2;opacity:0;box-shadow:0 0 12px #f4d2a240;transition:opacity .2s}
.activity-row:hover:before,.activity-row:focus-visible:before{opacity:1}
.activity-row:hover,.activity-row:focus-visible{background:linear-gradient(90deg,#b2c6e50a,transparent)}
.activity-meta{font-size:11px;color:#a4b6ce;margin-bottom:9px}.activity-person{color:#d4dfef}
.activity-row strong{font-size:15px;font-weight:500;line-height:1.85;color:#ecf0f7;letter-spacing:-.2px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.activity-row:hover strong,.activity-row:focus-visible strong{color:#ffe3ba}
.activity-row>small{font-size:11px;color:#d8b78c;margin-top:11px}.activity-row .arrow{color:#c5d4e8;font-size:18px}
.activity-footer button{font-size:12px;color:#c3d2e9}.activity-footer span{font-size:9px;color:#849ab8}
.settings-button{font-size:12px;color:#b7c8e0}.settings-button:hover{color:#ffe2b6}.settings-menu{background:#0b121f;border-color:#8ea5c35e;box-shadow:0 16px 60px #000e}
.settings-menu h3{font-size:12px;color:#efcea0}.switch-row{font-size:13px;color:#d3ddec;min-height:46px}.switch-row i{background:#34445e}.switch-row input:checked+i{background:#9d7a4c}.switch-row input:checked+i:after{background:#ffe5b8}

/* Light has a sharp centre and a soft falloff. Names stay crisp. */
.node{border-radius:50%}.node-core{width:6px;height:6px;background:#f9fbff;box-shadow:0 0 5px 2px #eaf2ff,0 0 13px 4px color-mix(in srgb,var(--tone) 72%,transparent),0 0 32px 9px color-mix(in srgb,var(--tone) 15%,transparent)}
.node-core:before,.node-core:after{width:35px;height:1px;background:linear-gradient(90deg,transparent,#dfebffdd,transparent);opacity:.8}
.node:hover .node-core,.node:focus-visible .node-core{box-shadow:0 0 8px 3px #f4f8ff,0 0 23px 8px var(--tone),0 0 50px 17px color-mix(in srgb,var(--tone) 23%,transparent)}
.node-label{text-shadow:0 2px 5px #000,0 0 15px #000,0 0 22px #000;width:170px}
.node-label strong{font-size:14px;font-weight:550;color:#eef3fc;letter-spacing:.1px}.node-label small{font-size:11px;color:#b2c2d8;margin-top:5px}.node-purpose{font-size:11px;color:#a7bad5;line-height:1.7}
.node:hover .node-label strong,.node:focus-visible .node-label strong{color:#ffe7c2;text-decoration:underline;text-decoration-color:#f4d2a277;text-underline-offset:6px}
.node-status{width:5px;height:5px;background:#ffdb98;box-shadow:0 0 10px 2px #ffd39266}
.self:before{content:"";position:absolute;inset:-110px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--personal) 18%,transparent),color-mix(in srgb,var(--personal) 5%,transparent) 29%,transparent 66%);pointer-events:none}
.self:after{content:"";position:absolute;width:88px;height:88px;left:50%;top:50%;transform:translate(-50%,-50%);background:linear-gradient(45deg,transparent 49.4%,#fff1d5aa 50%,transparent 50.6%),linear-gradient(135deg,transparent 49.4%,#fff1d5aa 50%,transparent 50.6%);opacity:.55;pointer-events:none}
.self .node-core{width:13px;height:13px;background:#fffef5;box-shadow:0 0 8px 4px #fff7df,0 0 20px 8px var(--personal),0 0 53px 18px color-mix(in srgb,var(--personal) 55%,transparent),0 0 105px 43px color-mix(in srgb,var(--personal) 16%,transparent),0 0 170px 69px color-mix(in srgb,var(--personal) 5%,transparent)}
.self .node-core:before,.self .node-core:after{width:158px;background:linear-gradient(90deg,transparent,var(--personal) 36%,#fffced 50%,var(--personal) 64%,transparent);opacity:.95}
.self:hover .node-core,.self:focus-visible .node-core{box-shadow:0 0 10px 5px #fff8e5,0 0 28px 11px var(--personal),0 0 75px 24px color-mix(in srgb,var(--personal) 55%,transparent),0 0 140px 55px color-mix(in srgb,var(--personal) 17%,transparent)}
.self-orbit{width:190px;height:190px;border-color:#e4c0963d;box-shadow:0 0 20px #c7a36c04}.self-orbit.outer{width:276px;height:276px;border-color:#e4c0961c}.self-orbit:before{background:#ffe7bf;box-shadow:0 0 10px 2px #f4ce9b99}
.self .node-label{top:113px;width:285px}.self .overline{font-size:10px;font-weight:500;color:#e4bc8e;letter-spacing:1.8px;margin-bottom:10px}.self .node-label strong{font-size:28px;font-weight:600;color:#fff1dd;text-shadow:0 1px 8px #000,0 0 27px #d3a56d22;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.self .node-label small{font-size:12px;line-height:1.8;color:#d2bfab;margin-top:9px}
.galaxy-ring{border-color:#afc7ec1d}.galaxy-coordinate{color:#8ca3c2;opacity:.6}.network-lines .warm-line{stroke:#d9bd9294;stroke-width:1.1}.network-lines circle{fill:#ffe1ac;opacity:1}

/* Every scene keeps the same hierarchy: title, reading text, then metadata. */
.scene-copy{color:#bdcbe0;font-size:15px;line-height:2;max-width:620px}
.scene-tools{border-color:#aebfda33;gap:15px}

.people-legend{color:#a0b4cf;font-size:11px}

.record h3{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.main:has(>.home){padding-bottom:0}
.identity-spark{width:13px;height:13px;box-shadow:0 0 10px 5px #fff1c8,0 0 30px 12px var(--personal),0 0 95px 30px color-mix(in srgb,var(--personal) 25%,transparent)}.identity-spark:before{inset:-65px;border-color:#e1bc854d}.record h3{font-size:17px;font-weight:500;color:#f0f4fb;line-height:1.9}.record p{font-size:12px;color:#b0c3de}.record small{font-size:11px;color:#dec196}.compact-empty{font-size:14px;color:#acbfda}.my-stats strong{color:#f3d1a2;font-size:26px}.my-stats span{color:#acbfd9;font-size:12px}

/* Reading and writing should feel quiet, sharp, and dependable. */
dialog{background:#080d16;border-left-color:#a5b9d654;box-shadow:-35px 0 120px #000c}dialog::backdrop{background:#000107bf;backdrop-filter:blur(5px)}
.dialog-top .eyebrow{font-size:10px;color:#dfbe92}.dialog-title{font-size:32px;font-weight:550;color:#f7f9fe;line-height:1.6}.dialog-sub{font-size:15px;line-height:2;color:#becee3}.close{color:#d5e0ef;border-color:#95abc85e;background:#121c2a}.close:hover{background:#273346;color:#fff3dd}
.dialog-section h3{font-size:13px;color:#edc994;font-weight:500}.dialog-section p{font-size:15px;color:#c9d5e6;line-height:2}.dialog-person strong{font-size:14px;color:#eef2f9}.dialog-person small{font-size:12px;color:#adbfda}.help-chips span{font-size:12px;color:#efd1a7;border-color:#e0bf8755}
.field-label{font-size:14px;font-weight:500;color:#e2eaf7;margin-top:24px}.field-label small{font-size:11px;color:#a7bdd9}.input,.textarea,.form-select{background:#02060d;border-color:#8ba4c366;color:#f0f5ff;font-size:15px;line-height:1.9}.input::placeholder,.textarea::placeholder{color:#93a9c7}.input:hover,.textarea:hover,.form-select:hover{border-color:#b6c9e27a}.input:focus,.textarea:focus,.form-select:focus{border-color:#edca95;box-shadow:0 0 0 3px #eac38c0d}
.fine-print,.form-hint{font-size:12px;color:#a7bad5;line-height:2}.composer-step{font-size:11px;color:#d9ba92}.choice{font-size:13px;color:#c6d3e6;border-color:#8ca3c349;background:#080f1b}.choice:has(input:checked){color:#ffe1b0;background:#d9b47d14;border-color:#f0cc94b3}.form-error{font-size:13px;color:#ffc6b5}
.pmf-steps li{color:#a9bdd8;border-color:#92a7c34d;font-size:12px}.pmf-steps li>span{font-size:11px;color:#8aa3c3}.pmf-steps li.current{color:#ffe0aa;border-color:#ffe0aa}.pmf-steps li.current>span{color:#f2cf9a}.pmf-steps li.done{color:#c6d4e6}.pmf-intro,.pmf-note,.pmf-example,.pmf-example p{color:#afc2df;font-size:12px}.pmf-example summary{color:#dbcaaf}.pmf-compose>.dialog-actions{background:#080d16f5;border-top-color:#99afce3d}.pmf-compose>.dialog-actions .primary,.pmf-compose>.dialog-actions .secondary{font-size:13px;min-height:46px}
.statement-formula{background:#d9b57b0a;border-left-color:#efcd97a1}.statement-formula>span,.statement-preview>span{font-size:11px;color:#e7c491}.statement-formula p{font-size:13px;color:#cad6e8}.statement-preview output{font-size:16px;color:#ffe0af}.statement-index{font-size:11px;color:#dbb98b}.pmf-overview h3{font-size:12px;color:#f2cf98}.pmf-overview dt{font-size:12px;color:#abc1dd}.pmf-overview dd{font-size:15px;color:#e0e8f3}.pmf-overview-heading>span{font-size:11px;color:#becfe5}.pmf-overview>p{font-size:13px;color:#b8c9df}
.discussion p{font-size:14px;color:#cad7e8}.discussion-meta{font-size:12px;color:#b2c6e1}.discussion-meta em{color:#efd0a2}.profile-title p,.profile-meta{color:#bed0e8;font-size:13px}.notification p{font-size:15px;color:#cfdbed}.notification small{font-size:11px;color:#abc1df}.checklist label{font-size:14px;color:#cedbee}

#toast{background:#101c2d;border-color:#c2a47680;color:#fff0d8;font-size:13px;box-shadow:0 10px 35px #000c}

@media(min-width:1600px){.home-intro{width:420px}.home-intro h1{font-size:48px}.home-activity{width:280px}}
@media(min-width:901px){.home{min-height:700px}.home .universe-settings{bottom:12%}}
@media(min-width:901px) and (max-width:1150px){.home-intro{width:310px}.home-intro h1{font-size:34px;line-height:1.5}.home-activity{width:215px}.activity-row strong{font-size:14px}.activity-meta{font-size:10px}.activity-row>small{font-size:11px}.node-label{width:165px}}
@media(min-width:641px) and (max-width:900px){.home{min-height:940px}.home-intro{width:340px}.home-intro h1{font-size:36px}.home-activity{width:255px}.home-galaxy{top:400px;bottom:150px}.dock button{padding:12px 15px}}
@media(max-width:640px){
 .wordmark{font-size:16px;letter-spacing:1.8px}.wordmark small{font-size:8px;letter-spacing:3.3px}
 .home-intro{width:auto;padding-top:33px}.home-intro h1{font-size:34px;font-weight:600;line-height:1.5;letter-spacing:-1.3px;margin:18px 0}.intro-actions{margin-top:23px;gap:9px 17px}.intro-actions .primary{font-size:13px;min-height:48px;padding:12px 17px}.intro-actions .text-button{font-size:12px}.eyebrow{font-size:10px;letter-spacing:1.1px}
 .home{min-height:0;max-height:none;padding-bottom:175px}.home-galaxy{height:370px;margin-top:10px}.galaxy-ring{left:10%;width:78%}.node-core{width:6px;height:6px}.home-galaxy .node-label strong{font-size:12px;font-weight:550}.home-galaxy .node-label small{font-size:10px}.home-galaxy .self .node-label{top:99px;width:250px}.home-galaxy .self .overline{font-size:9px;letter-spacing:1.3px}.home-galaxy .self .node-label strong{font-size:27px}.home-galaxy .self .node-label small{font-size:11px;color:#d3c1ad}.self .node-core{width:12px;height:12px}.self .node-core:before,.self .node-core:after{width:126px}.self:before{inset:-80px}.self:after{width:69px;height:69px}.self-orbit{width:157px;height:157px}.self-orbit.outer{width:225px;height:225px}
 .self-orbit.outer{transform:none}.home-activity{margin-top:28px}.activity-title{font-size:13px;margin-bottom:17px}.activity-row{padding:18px 0}.activity-meta{font-size:11px}.activity-row strong{font-size:15px;line-height:1.9}.activity-footer button{font-size:12px}.activity-footer span{font-size:9px}
 .dock{left:12px;right:12px;padding:7px 3px;bottom:25px;border-color:#c3b49859;gap:0}.dock button{min-height:60px;font-size:10px;font-weight:600;gap:6px;padding:8px 2px;max-width:90px}.dock button svg{width:20px;height:20px}.dock button[aria-current=page]:after{bottom:4px;width:14px;left:calc(50% - 7px)}.preview-note{font-size:8px;bottom:5px;color:#8da1bd}.footer-coordinate{display:none}
 .scene-copy{font-size:14px;line-height:2}.scene-tools{gap:10px}.scene-actions .primary{font-size:13px;min-height:46px}
 .people-legend{font-size:10px;flex-wrap:wrap}
 .my-stats strong{font-size:25px}.my-stats span{font-size:11px}
 .dialog-title{font-size:28px}.dialog-sub{font-size:14px}.dialog-top .eyebrow{font-size:10px}.field-label{font-size:14px}.input,.textarea,.form-select{font-size:16px}.fine-print,.form-hint{font-size:12px}.pmf-steps{gap:7px}.pmf-steps li{font-size:11px}.pmf-compose>.dialog-actions .primary,.pmf-compose>.dialog-actions .secondary{font-size:12px}.dialog-section p{font-size:15px}.statement-preview output{font-size:15px}.statement-formula p{font-size:13px}
}
@media(max-width:360px){.home-intro h1{font-size:30px}.intro-actions{gap:5px 14px}.intro-actions .primary{font-size:12px;padding:11px 14px}.intro-actions .text-button{font-size:11px}.dock button{font-size:9px}}

/* Five functional accents. Colour lives at the point of interaction. */
:root{--accent-home:#4d8dff;--accent-stories:#a766ff;--accent-society:#18e3b2;--accent-moments:#ffb020;--accent-personal:#ff4fa3;--scene-accent:var(--accent-home)}
body:has(.dock [data-route=home][aria-current=page]){--scene-accent:var(--accent-home)}
body:has(.dock [data-route=lounge][aria-current=page]){--scene-accent:var(--accent-stories)}
body:has(.dock [data-route=members][aria-current=page]){--scene-accent:var(--accent-society)}
body:has(.dock [data-route=events][aria-current=page]){--scene-accent:var(--accent-moments)}
body:has(.dock [data-route=my][aria-current=page]){--scene-accent:var(--accent-personal)}
.dock [data-route=home]{--interaction-accent:var(--accent-home)}
.dock [data-route=lounge]{--interaction-accent:var(--accent-stories)}
.dock [data-route=members]{--interaction-accent:var(--accent-society)}
.dock [data-route=events]{--interaction-accent:var(--accent-moments)}
.dock [data-route=my]{--interaction-accent:var(--accent-personal)}
.dock button{color:#b9c8de;transition:background .18s,border-color .18s,box-shadow .18s,color .18s}
.dock button svg{color:color-mix(in srgb,var(--interaction-accent) 72%,#b9c8de);transition:color .18s,filter .18s,transform .18s}
.dock button[aria-current=page]{color:#f5f8ff;border-color:color-mix(in srgb,var(--interaction-accent) 70%,transparent);background:linear-gradient(155deg,color-mix(in srgb,var(--interaction-accent) 19%,#060a11),color-mix(in srgb,var(--interaction-accent) 5%,#060a11));box-shadow:0 0 24px color-mix(in srgb,var(--interaction-accent) 10%,transparent),inset 0 1px #f0f5ff0b}
.dock button[aria-current=page]:after{background:var(--interaction-accent);box-shadow:0 0 11px color-mix(in srgb,var(--interaction-accent) 72%,transparent)}
.dock button[aria-current=page] svg{color:var(--interaction-accent);filter:drop-shadow(0 0 7px color-mix(in srgb,var(--interaction-accent) 64%,transparent))}
.dock button:hover,.dock button:focus-visible{color:#fff;border-color:color-mix(in srgb,var(--interaction-accent) 85%,transparent);background:linear-gradient(155deg,color-mix(in srgb,var(--interaction-accent) 24%,#060a11),color-mix(in srgb,var(--interaction-accent) 8%,#060a11));box-shadow:0 0 27px color-mix(in srgb,var(--interaction-accent) 22%,transparent),inset 0 1px #fff1;outline-color:var(--interaction-accent)}
.dock button:hover svg,.dock button:focus-visible svg{color:var(--interaction-accent);filter:drop-shadow(0 0 9px color-mix(in srgb,var(--interaction-accent) 80%,transparent));transform:translateY(-1px)}
.dock button:active{box-shadow:inset 0 2px 9px #0009,0 0 18px color-mix(in srgb,var(--interaction-accent) 18%,transparent)}

/* A scene's accent links its navigation, filters and secondary actions. */

.text-button:hover,.text-button:focus-visible,.secondary:hover,.secondary:focus-visible{--interaction-accent:var(--scene-accent);color:color-mix(in srgb,var(--interaction-accent) 35%,#fff);border-color:color-mix(in srgb,var(--interaction-accent) 70%,transparent);outline-color:var(--interaction-accent)}
[data-follow]:hover,[data-follow]:focus-visible,[data-connect]:hover,[data-connect]:focus-visible{--interaction-accent:var(--accent-society)}
.settings-button:hover,.settings-button:focus-visible{color:#abcaff;outline-color:var(--accent-home)}

/* View: blue. Relations: mint. Playback: violet. Repetition: amber. */
.switch-row{--interaction-accent:var(--accent-home);border-radius:4px;transition:background .18s}
.switch-row:has([data-pref=lines]){--interaction-accent:var(--accent-society)}
.switch-row:has([data-pref=motion]),.switch-row:has([data-pref=autoplay]){--interaction-accent:var(--accent-stories)}
.switch-row:has([data-pref=loop]){--interaction-accent:var(--accent-moments)}
.switch-row>span{transition:color .18s}.switch-row>i{background:#27354c;box-shadow:inset 0 0 0 1px #a6bbd026;transition:background .18s,box-shadow .18s}.switch-row>i:after{background:#a5b5cd;box-shadow:none}
.switch-row input:checked+i{background:color-mix(in srgb,var(--interaction-accent) 26%,#14202e);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--interaction-accent) 62%,transparent)}
.switch-row input:checked+i:after{background:var(--interaction-accent);box-shadow:0 0 9px color-mix(in srgb,var(--interaction-accent) 50%,transparent)}
.switch-row:has(input:checked)>span{color:color-mix(in srgb,var(--interaction-accent) 27%,#eaf2ff)}
.switch-row:hover,.switch-row:focus-within{background:color-mix(in srgb,var(--interaction-accent) 6%,transparent)}
.switch-row:hover>span,.switch-row:focus-within>span{color:#fff}
.switch-row:hover>i,.switch-row:focus-within>i{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--interaction-accent) 90%,transparent),0 0 14px color-mix(in srgb,var(--interaction-accent) 20%,transparent)}
.switch-row input:focus-visible+i{outline-color:var(--interaction-accent)}
.switch-row:has(input:checked):hover>span,.switch-row:has(input:checked):focus-within>span{color:#fff}
.switch-row:hover input:checked+i,.switch-row:focus-within input:checked+i{box-shadow:inset 0 0 0 1px var(--interaction-accent),0 0 15px color-mix(in srgb,var(--interaction-accent) 28%,transparent)}

.choice{--interaction-accent:var(--scene-accent);transition:background .18s,border-color .18s,box-shadow .18s}
.choice input{accent-color:var(--interaction-accent)}
.choice:has(input:checked){border-color:color-mix(in srgb,var(--interaction-accent) 75%,transparent);background:color-mix(in srgb,var(--interaction-accent) 11%,#080d16);color:color-mix(in srgb,var(--interaction-accent) 26%,#fff)}
.choice:hover,.choice:focus-within{border-color:var(--interaction-accent);box-shadow:0 0 17px color-mix(in srgb,var(--interaction-accent) 12%,transparent)}
.color-choice:hover,.color-choice:focus-visible{border-color:var(--swatch);outline-color:var(--swatch);box-shadow:0 0 20px color-mix(in srgb,var(--swatch) 27%,transparent)}
.no-motion .dock button svg{transform:none!important}
@media(prefers-reduced-motion:reduce){.dock button svg{transform:none!important}}

/* ═══ 중심 고정 무대 + 좌측 세로 레일 ═══════════════════════════════════════════════
   1) 메뉴 구성: 로고·다섯 메뉴·도구(검색·알림·태양계·언어)를 전부 좌측 세로 레일 하나에 모았습니다.
      상단 바는 없습니다. 모든 폭에서 같은 레일이고, 폭에 따라 너비와 글자만 달라집니다
      (넓은 화면 224px 아이콘+글자, 태블릿 88px 아이콘+작은 글자, 모바일 56px 아이콘만).
   2) 화면 구성: 해봄 메이커(내 별)는 모든 메뉴에서 같은 정중앙에 머뭅니다. 메뉴가 바뀌어도 중심은
      그대로이고, 그 둘레 궤도에 놓이는 것만 바뀝니다(신호·사람·모임·기록). 항목 좌표는 JS 의
      ring() 이 폭 구간별 반지름으로 계산하고, 여기서는 그 좌표(--x/--y)를 받아 놓기만 합니다. */
:root{--rail-w:224px}
@media(min-width:641px) and (max-width:1099px){:root{--rail-w:88px}}
@media(max-width:640px){:root{--rail-w:56px}}

.app-content{margin-left:var(--rail-w);min-width:0}
.main{min-height:0;padding-bottom:0}

/* ── 좌측 레일 ── */
.dock{top:0;bottom:0;left:0;right:auto;transform:none;width:var(--rail-w);box-sizing:border-box;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;padding:28px 14px 22px;background:linear-gradient(90deg,#050910f4,#050910d6);border:0;border-radius:0;box-shadow:none;backdrop-filter:blur(16px);overflow:hidden auto;scrollbar-width:none}
.dock::-webkit-scrollbar{display:none}
.dock .rail-brand{display:flex;flex:none;margin:0 0 30px;padding:0 6px;min-width:0}
.dock-items{display:flex;flex-direction:column;gap:4px}
.dock [data-route=home]{--nav-accent:var(--accent-home)}
.dock [data-route=lounge]{--nav-accent:var(--accent-stories)}
.dock [data-route=members]{--nav-accent:var(--accent-society)}
.dock [data-route=events]{--nav-accent:var(--accent-moments)}
.dock [data-route=my]{--nav-accent:var(--accent-personal)}
.dock .dock-items button{width:100%;justify-content:flex-start;gap:14px;padding:13px 16px;border-radius:12px;font-size:13px;color:#98a9c2}
.dock .dock-items button svg{width:18px;height:18px;color:var(--nav-accent);opacity:.78}
.dock .dock-items button:hover{color:#eef3fb;background:#ffffff08}
.dock .dock-items button[aria-current=page]{color:#f4f7fc;background:color-mix(in srgb,var(--nav-accent) 12%,transparent);border-color:color-mix(in srgb,var(--nav-accent) 40%,transparent)}
.dock .dock-items button[aria-current=page] svg{opacity:1}
.preview-note{left:calc(var(--rail-w) + 4.6%);transform:none;bottom:25px}

/* ── 레일 하단 도구: 검색·알림·태양계·언어 ──
   메뉴와는 한 줄의 옅은 구분(간격+옅은 점선 아님, 위쪽 여백)으로만 떼어, 둘이 한 몸처럼 읽히게 합니다. */
.rail-utils{margin-top:auto;padding-top:18px;display:flex;flex-direction:column;gap:2px}
.rail-util{position:relative;display:flex;align-items:center;gap:14px;width:100%;box-sizing:border-box;padding:11px 16px;border:1px solid transparent;border-radius:12px;color:#8396b3;font-size:12px;text-decoration:none;white-space:nowrap;transition:background .2s,color .2s,border-color .2s}
.rail-util svg{width:17px;height:17px;flex:0 0 auto}
.rail-util:hover,.rail-util:focus-visible{color:#eef3fb;background:#ffffff0a;outline:none}
.rail-util.solar-toggle{color:#9db6e0}
.rail-util.solar-toggle:hover,.rail-util.solar-toggle:focus-visible{color:#e8f1ff;border-color:color-mix(in srgb,var(--accent-home) 45%,transparent);background:color-mix(in srgb,var(--accent-home) 10%,transparent)}
.rail-util .notification-dot{position:absolute;left:28px;top:9px}

/* 태블릿: 아이콘 위·글자 아래 */
@media(min-width:641px) and (max-width:1099px){
.dock{padding:22px 8px 18px}
.dock .rail-brand{justify-content:center;margin-bottom:24px;padding:0}
.dock .rail-brand .wordmark{display:none}
.dock .dock-items button{flex-direction:column;justify-content:center;gap:6px;padding:12px 2px;font-size:10px;text-align:center}
.rail-util{flex-direction:column;justify-content:center;gap:5px;padding:9px 2px;font-size:10px}
.rail-util .notification-dot{left:auto;right:calc(50% - 15px);top:6px}

}
/* 모바일: 아이콘만. 이름은 aria-label·title 로 남고, 현재 메뉴 이름은 화면 제목이 알려 줍니다. */
@media(max-width:640px){
.dock{padding:16px 6px 12px}
.dock .rail-brand{justify-content:center;margin-bottom:16px;padding:0}
.dock .rail-brand .wordmark{display:none}
.dock .rail-brand .brand-symbol{width:auto;font-size:30px}
.dock .rail-brand{flex:none;height:44px;min-height:0;max-width:none;margin-bottom:12px}
.dock .dock-items button{justify-content:center;min-height:44px;padding:0;border-radius:12px}
.dock .dock-items button span,.rail-util span{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.rail-utils{padding-top:12px;gap:0}
.rail-utils .rail-util{justify-content:center;min-height:44px;height:44px;padding:0;border-radius:12px}
.rail-util .notification-dot{left:auto;right:12px;top:10px}

}

/* ── 무대: 모든 메뉴가 같은 크기라 중심 별의 화면 위치가 메뉴마다 같습니다 ── */
.stage{position:relative;height:100svh;min-height:700px;max-height:1100px;isolation:isolate}
.home-wrap{position:relative}
/* 기울어진 장식 타원이 무대 밖으로 삐져나와 홈에만 세로 스크롤바를 만들고, 그 폭만큼 중심 별이 메뉴마다 어긋났습니다. */
.stage-home .home-galaxy{overflow:clip}
@media(max-width:640px){.stage{min-height:560px}}
.stage .node.core{z-index:4}
.stage:not(.stage-home) .node.core .node-label{top:92px;width:240px}
.stage:not(.stage-home) .node.core .node-label strong{font-size:24px;color:#f1e6d8}
.stage:not(.stage-home) .node.core .node-label .overline,.stage:not(.stage-home) .node.core .node-label small{display:none}

/* 상단: 제목 한 줄 + 도구. 설명문은 화면에서만 내리고 보조기술에는 읽힙니다. */
.stage-top{position:absolute;z-index:6;left:4%;right:4%;top:18px;display:flex;flex-direction:column;gap:10px;pointer-events:none}
.stage-top>*{pointer-events:auto}
.stage-top__row{display:flex;align-items:center;justify-content:space-between;gap:16px}
.stage-top h1{display:flex;align-items:center;gap:12px;margin:0;font-size:22px;font-weight:550;line-height:1.45;letter-spacing:-.6px;word-break:keep-all}
.stage-top h1::before{content:"";flex:0 0 3px;height:20px;border-radius:2px;background:var(--scene-accent,#d5b78f);box-shadow:0 0 10px color-mix(in srgb,var(--scene-accent,#d5b78f) 35%,transparent)}
.stage-top .scene-tools{border:0;padding:0;gap:10px 14px}
.scene-copy{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* 궤도의 항목: 중심에서 퍼져 나가듯 놓입니다 */
.stage .hub{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);z-index:3;width:250px;box-sizing:border-box;margin:0;text-align:left;border:1px solid #b7c6df24;border-radius:16px;background:linear-gradient(180deg,#0b1220c4,#070c16b0);backdrop-filter:blur(8px);transition:border-color .2s,background .2s}

.stage .hub{display:flex;flex-direction:column;gap:6px;padding:17px 19px;border-color:color-mix(in srgb,var(--scene-accent,#d5b78f) 34%,transparent)}
.stage .hub:hover,.stage .hub:focus-visible{border-color:var(--scene-accent,#d5b78f);box-shadow:0 0 22px color-mix(in srgb,var(--scene-accent,#d5b78f) 20%,transparent)}
.stage .hub small{font-size:11px;letter-spacing:.8px;color:color-mix(in srgb,var(--scene-accent,#d5b78f) 70%,#fff)}
.stage .hub-count{font-size:30px;font-weight:400;line-height:1;color:#f4e8f2}
.stage .hub-preview{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;line-height:1.6;color:#9fb0c8}
.stage .hub-flag{font-size:11px;color:#ffd29a}
.stage .hub-more{font-size:11px;color:var(--scene-accent,#d5b78f)}
.core-profile{position:absolute;z-index:3;left:50%;top:calc(50% + 142px);transform:translateX(-50%);width:min(320px,88%);text-align:center}
.core-profile p{margin:0;font-size:12px;color:#92a3ba}
.core-profile .core-bio{margin-top:6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.core-profile .secondary{margin-top:12px}
.core-profile .my-stats{justify-content:center;gap:26px;padding:12px 0 0;margin-top:12px;border-top:0}
.core-profile .my-stats strong{font-size:19px;margin-bottom:2px}

.stage .people-legend{position:absolute;left:4%;bottom:58px;margin:0;z-index:3}

/* 홈 */
/* 모바일용 옛 규칙(.home-galaxy 의 position:relative · height:350px)이 새 무대 배치를 덮으면 은하 영역이 무대 전체가 아니라
   350px 로 줄어들어, 중심 별이 다른 메뉴보다 위에 놓였습니다. 모든 폭에서 무대 전체를 덮도록 못 박습니다. */
.stage-home .home-galaxy{position:absolute;inset:0;width:auto;height:auto;min-height:0;margin:0}
.stage-home .galaxy-ring{left:10%;width:80%;top:23%;height:54%}
.stage-home .galaxy-coordinate{left:40%;top:36%}
.stage-home .home-intro{left:4%;top:50%;transform:translateY(-50%)}
.home-wrap .home-activity{right:4%;top:14%}
.home-wrap .universe-settings{right:4%;bottom:12%}
@media(min-width:641px) and (max-width:1099px){.home-wrap .home-activity{top:12%;width:220px}.home-wrap .home-activity>.activity-row:nth-of-type(3){display:none}.core-profile .core-bio{display:none}.stage-home .home-intro{width:250px}.stage-home .home-intro h1{font-size:30px}}
@media(max-width:640px){
.stage-home .home-intro{position:absolute;left:14px;right:14px;top:14px;width:auto;padding:0;transform:none}
.stage-home .home-intro h1{font-size:23px;margin:0 0 12px}
.home-wrap .home-activity{position:relative;right:auto;top:auto;width:auto;margin:22px 14px 0}
.home-wrap .universe-settings{position:relative;right:auto;bottom:auto;margin:0 14px}
}

/* 궤도 항목의 폭 구간별 크기 */
@media(min-width:641px) and (max-width:1099px){

.stage .hub{width:200px}
}
@media(max-width:640px){
/* 무대 폭 = 화면 폭 − 레일(56px). 카드는 그 폭의 40% 로 잡아 320~640px 어디서든 2열이 서로 닿지 않습니다. */
.stage{--card-w:clamp(100px,calc((100vw - var(--rail-w)) * .40),170px)}
.stage-top{left:14px;right:14px;top:12px;gap:8px}
.stage-top h1{font-size:16px;line-height:1.4}
.stage-top h1::before{height:16px}
.stage-top .scene-tools{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;gap:8px 10px;padding-bottom:2px}
.stage-top .scene-tools::-webkit-scrollbar{display:none}
.stage-top .scene-tools{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);padding-right:24px}
.stage-top .scene-tools>*{flex:0 0 auto}
.stage-top .scene-actions{flex:0 0 auto}
.stage-top .scene-actions .primary{min-height:34px;padding:6px 10px;font-size:11px;white-space:nowrap;gap:6px}

.stage .hub{width:var(--card-w);padding:10px 11px;border-radius:14px}
.stage .hub small{font-size:10px}
.stage .hub-count{font-size:22px}.stage .hub-preview{display:none}.stage .hub-flag{display:none}
.core-profile{top:calc(50% + 120px)}
.core-profile .core-bio,.core-profile .my-stats{display:none}

.preview-note{left:calc(var(--rail-w) + 10px);bottom:6px;max-width:calc(100vw - var(--rail-w) - 20px)}
.stage .people-legend{display:none}

.stage-home .intro-actions .text-button{display:none}
/* 좌우 끝 별의 이름표가 무대 밖으로 나가 가로 오버플로를 만들었습니다. 이름표를 줄입니다. */
.stage .node:not(.core) .node-label{width:88px}
.stage .node:not(.core) .node-label small{display:none}
.stage .node:not(.core) .node-label .node-purpose{display:none}
.stage:not(.stage-home) .node.core .node-label{top:70px;width:180px}
.stage:not(.stage-home) .node.core .node-label strong{font-size:18px}
}

/* 와이드 구간의 좁은 쪽(1100~1299px): 카드가 크면 도구 줄(2줄로 감김)·활동 패널과 닿아 한 단계 줄입니다. */
@media(min-width:1100px) and (max-width:1299px){

.stage .hub{width:224px}
.home-wrap .home-activity{width:230px;top:12%}
}

/* 메뉴가 바뀔 때만: 항목이 중심에서 퍼져 나갑니다. 중심 별은 움직이지 않습니다. */
@keyframes radiate{from{left:50%;top:50%;opacity:0;transform:translate(-50%,-50%) scale(.3)}}
.route-entering .stage .orbit-in{animation:radiate .62s cubic-bezier(.2,.7,.2,1) backwards;animation-delay:var(--d,0ms)}
.no-motion .orbit-in{animation:none!important}
@media(prefers-reduced-motion:reduce){.orbit-in{animation:none!important}}

/* ── 언어 버튼(레일 하단 도구)과 언어 선택 창 ──
   다른 도구(검색·알림·태양계)와 같은 아이콘+라벨 버튼이고, 누르면 선택 창이 열립니다. 현재 언어는 오른쪽 작은 표시(넓은 레일에서만). */
.rail-lang em{margin-left:auto;padding:2px 9px;border-radius:999px;background:#ffffff0f;font-size:10.5px;font-style:normal;font-weight:600;letter-spacing:.06em;color:#b9c8de}
.rail-lang:hover em,.rail-lang:focus-visible em{background:#ffffff1c;color:#eef3fb}
@media(max-width:1099px){.rail-lang em{display:none}}
@media(min-width:1100px){.rail-utils .rail-util{min-height:49px}}
@media(min-width:641px) and (max-width:1099px){.rail-utils .rail-util{min-height:71px}}

/* ── 언어 팝오버: 눌린 버튼 바로 옆에 펼쳐지는 글라스 카드 ── */
.rail-lang[aria-expanded=true]{color:#eef3fb;background:#ffffff14}
.lang-pop{--pop-acc:var(--scene-accent,var(--accent-home));position:fixed;z-index:60;width:232px;padding:12px;border-radius:22px;background:rgba(12,18,32,.62);border:1px solid rgba(255,255,255,.22);backdrop-filter:blur(16px) saturate(1.3);box-shadow:0 24px 60px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.28);color:#f3f6fb;transform-origin:left bottom}
.lang-pop[hidden]{display:none}
.lang-pop[data-open]{animation:langPopIn .16s cubic-bezier(.2,.8,.2,1) both}
@keyframes langPopIn{from{opacity:0;transform:translateX(-6px) scale(.96)}}
.no-motion .lang-pop,.no-motion .lang-pop[data-open]{animation:none}
@media(prefers-reduced-motion:reduce){.lang-pop[data-open]{animation:none}}
.lang-pop__tail{position:absolute;left:-7px;bottom:var(--tail,22px);width:12px;height:12px;background:rgba(12,18,32,.62);border-left:1px solid rgba(255,255,255,.22);border-bottom:1px solid rgba(255,255,255,.22);transform:rotate(45deg)}
.lang-pop__title{margin:2px 8px 8px;font-size:11.5px;font-weight:600;letter-spacing:.04em;color:#aebbd1}
.lang-pop__opt{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;padding:8px 10px;border-radius:14px;border:1px solid transparent;text-align:left;color:inherit;transition:background .15s,border-color .15s}
.lang-pop__opt+.lang-pop__opt{margin-top:2px}
.lang-pop__opt:hover,.lang-pop__opt:focus-visible{background:rgba(255,255,255,.1);outline:none}
.lang-pop__opt:focus-visible{border-color:rgba(255,255,255,.4)}
.lang-pop__opt[aria-selected=true]{background:color-mix(in srgb,var(--pop-acc) 18%,transparent);border-color:color-mix(in srgb,var(--pop-acc) 55%,transparent)}
.lang-pop__code{flex:none;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.1);font-size:11px;font-weight:700;letter-spacing:.06em}
.lang-pop__name b{display:block;font-size:14.5px;font-weight:600;line-height:1.35}
.lang-pop__name small{font-size:12px;color:#aebbd1}
.lang-pop__check{margin-left:auto;flex:none;width:18px;height:18px;border-radius:50%;border:2px solid rgba(255,255,255,.3)}
.lang-pop__opt[aria-selected=true] .lang-pop__check{border-color:var(--pop-acc);background:radial-gradient(circle,var(--pop-acc) 0 45%,transparent 52%)}
