:root{--display:'DM Sans',Arial,sans-serif}.brand{font-family:'DM Sans',Arial,sans-serif!important;font-weight:900!important;letter-spacing:-1.4px!important}.hero h1{font-family:'DM Sans',Arial,sans-serif;font-weight:900;letter-spacing:-3px}.theme-control{position:fixed;right:14px;bottom:14px;z-index:120;display:flex;gap:9px;align-items:center;font:12px 'DM Sans',Arial,sans-serif;background:var(--surface,#fffef9);color:var(--ink,#17271b);border:1px solid var(--line,#b9c1b0);border-radius:24px;padding:8px 12px;box-shadow:0 3px 18px #0002}.theme-control select{font:inherit;color:inherit;background:transparent;border:0;max-width:75px}.theme-control option{background:var(--surface,#fffef9);color:var(--ink,#17271b)}body{padding-bottom:50px}html[data-theme=dark]{--paper:#101713;--surface:#18221c;--ink:#f3f4ea;--muted:#b6c2b5;--line:#34463a;--green:#d9f568;--purple:#2e2943;--orange:#422e25;color-scheme:dark}html[data-theme=dark] body{background:var(--paper);color:var(--ink)}html[data-theme=dark] :is(.sidebar,.topbar,.top,.footer,dialog,.panel,.card,.hub-card,.station-choice,.station-pick,.node-dropdown,.provider-card,.review-prompt,.empty,.settings-actions,.status-strip,.voice-panel){background:var(--surface);color:var(--ink);border-color:var(--line)}html[data-theme=dark] :is(input,textarea,select){background:#101914;color:#f3f4ea;border-color:#4b6150}html[data-theme=dark] :is(.btn.light,.btn.ghost,.notice,.notice.purple,.pill.soft,.segmented,.tip,.outro,.hub-banner,.connect-tabs a,.line-rack button,.market-tag,.station-total,.grass-strip){background:#26382b;color:#f1f4e8;border-color:#46624b}html[data-theme=dark] :is(.btn,.btn.lime,.pill,.avatar){background:#d9f568;color:#132117}html[data-theme=dark] .btn.light{background:#26382b;color:#edf3e8}html[data-theme=dark] :is(.nav a,.node-dropdown a,.sidebar-settings,.text-btn,.source-link,.station-pick small,.provider-card small,.connection-row small,.station-choice-label,.voice-disclosure,.location,.guide-status){color:#dce7d4}html[data-theme=dark] :is(.nav a.active,.node-dropdown a:hover,.node-dropdown a:focus-visible,.station-choice:hover,.station-pick:hover,.line-rack button[aria-pressed=true],.train-strip .chosen){background:#d9f568;color:#17271b}html[data-theme=dark] :is(.nav a.active,.node-dropdown a:hover,.station-choice:hover,.station-pick:hover) :is(small,.station-choice-label){color:#31472c}html[data-theme=dark] :is(.hero p,.card p,.hub-card p,.note,.edition,.quiet,.eyebrow){color:var(--muted)}html[data-theme=dark] .subway-sign{background:#090e0b;border:1px solid #354c37;border-top:8px solid #d9f568}html[data-theme=dark] .subway-sign .eyebrow{color:#d9f568}html[data-theme=dark] .journey-leg .subway-bullet,html[data-theme=dark] .guide-steps li:before{border-color:var(--surface)}html[data-theme=dark] .mini-map{background:#1e3024}html[data-theme=dark] .station-item{border-color:var(--line)}html[data-theme=dark] .station-item.used{background:#233c2b}html[data-theme=dark] .node-dropdown{box-shadow:0 15px 55px #0008}html[data-theme=dark] .priority-card{background:#16261d;border-color:#4d6350}html[data-theme=dark] .priority-card:has(input:checked){background:#30422c}html[data-theme=dark] .priority-rail a{background:#23372a;color:#e3efda}.priority-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:20px 0}.priority-card{display:flex;flex-direction:column;gap:10px;padding:15px;border:2px solid #d6ddcc;border-radius:12px;cursor:pointer}.priority-card:has(input:checked){border-color:#799534;background:#edf4d6}.priority-card img{width:72px;height:72px;max-width:100%;align-self:center}.priority-card input{width:18px;height:18px}.priority-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}.priority-checks label{display:flex;gap:9px;align-items:center}.priority-checks input{width:18px;height:18px}.priority-rail{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 24px}.priority-rail a{display:flex;gap:8px;align-items:center;background:#e8eddf;border:1px solid #cbd5bf;border-radius:25px;padding:9px 15px;font-size:13px;text-decoration:none}.priority-rail .profile-edit{margin-left:auto;font-size:12px}.partner-placeholder{display:flex;align-items:center;justify-content:space-between;gap:22px;background:#f5f1e8;color:#1a1a1a;border:1px solid #c9c2b4;padding:20px 24px;margin:24px 0;border-radius:3px}.partner-placeholder small{display:block;color:#666156;font-size:10px;letter-spacing:1.5px;text-transform:uppercase}.partner-placeholder .non-mark{font:500 42px Georgia,serif;letter-spacing:5px;line-height:1}.partner-placeholder p{font-size:13px;color:#57534b}.partner-placeholder .placement-label{max-width:180px;font-size:11px;color:#6f6a60;text-align:right}.campaign-note{font-size:11px;color:var(--muted);margin:-12px 0 24px}.node-dropdown .node-profile-link{border-top:1px solid #80937455;margin-top:6px}html[data-theme=dark] .partner-placeholder{background:#e7e2d7;color:#1a1a1a}@media(max-width:600px){.priority-cards{grid-template-columns:1fr}.priority-card{display:grid;grid-template-columns:20px 65px 1fr;align-items:center}.priority-card img{width:60px;height:60px}.priority-card small{grid-column:3}.partner-placeholder{padding:18px;gap:12px;flex-wrap:wrap}.partner-placeholder .placement-label{text-align:left;max-width:none}.theme-control{font-size:11px;bottom:9px;right:9px}.priority-rail .profile-edit{margin-left:0}}

.node-dropdown,.sidebar .node-dropdown{position:fixed;top:78px;left:20px;width:285px;max-width:calc(100vw - 32px)}html[data-theme=dark] .map-key{background:#16271c;color:#e2efdc}

.collab-switcher summary{list-style:none;cursor:pointer;font-size:12px;font-weight:bold;padding:9px 12px;border:1px solid var(--line);border-radius:20px}.collab-switcher summary::-webkit-details-marker{display:none}.collab-takeover{position:fixed;z-index:110;left:260px;right:38px;top:105px;background:#f5f1e8;color:#1a1a1a;min-height:440px;padding:44px;box-shadow:0 30px 120px #0008}.collab-takeover small{font-size:10px;letter-spacing:2px;color:#656056}.collab-takeover strong{display:block;font:500 clamp(70px,11vw,150px)/1.3 Georgia,serif;letter-spacing:10px;margin:20px 0}.collab-takeover p{color:#5d584e}.collab-rule{border-top:1px solid #9b9487;margin:20px 0}.collab-takeover .btn.light{margin-top:24px;background:#1a1a1a;color:#f5f1e8}@media(max-width:900px){.collab-takeover{left:16px;right:16px;top:115px;padding:25px;min-height:370px}.top-right{gap:8px}.collab-switcher summary{font-size:11px;padding:7px 9px}}

.collab-switcher[open] .collab-takeover{animation:collab-reveal .32s ease-out both}@keyframes collab-reveal{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.collab-switcher[open] .collab-takeover{animation:none}}

/* Theme-owned surfaces: colored accents never determine text contrast. */
html[data-theme=dark]{--bg:var(--paper);--panel:var(--surface);--accent:#d9f568;--red:#ff909b;--amber:#efc47f}
html[data-theme=dark] .game-tile{--game-accent:#d9f568;background:var(--surface);color:var(--ink);border-color:var(--line);border-top-color:var(--game-accent)}
html[data-theme=dark] .game-tile:nth-child(3n+2){--game-accent:#c4afff}
html[data-theme=dark] .game-tile:nth-child(3n){--game-accent:#f3ad7f}
html[data-theme=dark] .game-tile:hover{background:#223027;border-color:var(--game-accent)}
html[data-theme=dark] :is(button,a,input,select,textarea):focus-visible{outline-color:#d9f568}
.laundry-mark>span{color:var(--green)}
html[data-theme=dark] :is(.laundry-tag,.chit-place,.invest-note,.answer,.offline-banner,.notice.orange){background:#223027;color:var(--ink);border-color:#4b6150}
html[data-theme=dark] :is(.chit-time,.chits-photo-note,.chits-nav .chit-count){color:var(--muted)}
html[data-theme=dark] :is(.laundry-price div,.laundry-columns hr){border-color:var(--line)}
html[data-theme=dark] .force-track{background:#34463a}
html[data-theme=dark] .invest-tabs button[aria-selected=true]{background:var(--lime);color:#17271b}
html[data-theme=dark] .hub-card .hub-icon{background:#26382b;color:#d9f568}
html[data-theme=dark] .hero h1 .underline:after{background:#395324}
html[data-theme=dark] .nav a:hover{background:#26382b}
html[data-theme=dark] .nav a.active:hover{background:#d9f568;color:#17271b}
