/* Shared appearance, loaded last so every page uses the same light/dark choice. */
:root{--ice-bg:#eaf8ff;--ice-panel:#fff;--ice-panel-alt:#edf8ff;--ice-text:#153c59;--ice-muted:#506f85;--ice-line:#b4d8e9;--ice-link:#086d98;--ice-input:#f8fcff;--ice-focus:#087fae}
.nav-preferences{display:flex;align-items:center;gap:8px;flex:none;position:relative;z-index:4}.theme-toggle{display:inline-grid;place-items:center;flex:none;width:40px;height:40px;padding:0;border:1px solid #93c8df;border-radius:50%;background:#f3fbff;color:#0a567e;font:800 23px/1 system-ui;cursor:pointer;box-shadow:inset 0 1px #fff,0 2px 12px #1672a018}.theme-toggle:hover{background:#dff3ff;color:#073a5b;box-shadow:0 0 15px #4fc9ff40}.theme-toggle:focus-visible{outline:3px solid var(--ice-focus);outline-offset:3px}.page-preferences{display:flex;justify-content:flex-end;margin:0 0 14px}.page-header>.page-preferences{order:5;margin:0}.clips-rotation-status{color:#52788f;font-size:12px;margin:0 0 18px}.clips-rotation-status:empty{display:none}#clips-next{width:auto;white-space:nowrap}.terms-agreement{display:flex!important;align-items:flex-start;gap:10px!important;line-height:1.75}.community-form .terms-agreement input{width:18px!important;height:18px;flex:none;margin:4px 0}.terms-agreement a{text-decoration:underline;text-underline-offset:3px}
@media(max-width:1180px){.nav>.nav-preferences{grid-column:3;grid-row:1;justify-self:end}.nav .nav-preferences .lang-switch{margin:0;width:84px}.nav .nav-preferences .theme-toggle{width:36px;height:36px}.nav{grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr)}}
@media(max-width:650px){.nav .nav-preferences{gap:5px}.nav .nav-preferences .lang-switch{width:70px;height:36px}.nav .nav-preferences .lang-option{font-size:10px}.nav .nav-preferences .theme-toggle{width:32px;height:32px;font-size:20px}.page-header>.page-preferences{position:absolute;right:18px;top:20px}.admin-shell .page-header{padding-right:46px;position:relative}.admin-shell .page-header>.page-preferences{right:0;top:0}}
@media(min-width:1181px) and (max-width:1400px){.nav{gap:10px;padding-inline:20px}.nav .links{gap:0}.nav .links a{padding-inline:7px;font-size:13px}.nav-wordmark{font-size:19px}.nav-preferences{gap:6px}}
html[data-theme=dark]{color-scheme:dark;--ice-bg:#081827;--ice-panel:#10283b;--ice-panel-alt:#17364d;--ice-text:#e2f2fc;--ice-muted:#b2ccde;--ice-line:#365b72;--ice-link:#8cdeff;--ice-input:#0b2031;--ice-focus:#81deff;color:var(--ice-text);background:var(--ice-bg)}
html[data-theme=dark] body{color:var(--ice-text);background:radial-gradient(ellipse at 75% 0,#174664,transparent 60%),#081827}
html[data-theme=dark] body.community-page{background:linear-gradient(#081827ed,#0b2033f2),url('/assets/frost-landscape.png') center top/cover fixed}
html[data-theme=dark] body.admin-auth-page{background:linear-gradient(120deg,#061425e8,#0b2c43d9),url('/assets/frost-landscape.png') center/cover fixed}
html[data-theme=dark] body>header{background:#0a2033ed;border-color:var(--ice-line)}
html[data-theme=dark] :is(.nav-wordmark,.brand,.sectionhead h2,.side h3,.card h3,.clip-info h3,.coin-hero h2,.coin-section h3,.coin-balance strong,.coin-stat strong,.about-article h2,.legal-document h2,.urh-chat h2,.stat strong){color:var(--ice-text)}
html[data-theme=dark] :is(.nav-wordmark small,.sectionhead p,.card p,.event small,.notice,.community-heading p,.community-note,.community-form small,.poll-results small,.coin-note,.coin-tile p,.coin-hero p,.coin-stat,.coin-time small,.coin-history small,.coin-rules,.streamer-checked,.streamer-title,.streamer-meta,.intro-story p,.intro-signature small,.about-article p,.about-article blockquote,.about-invitation p,.legal-document p,.clips-rotation-status){color:var(--ice-muted)}
html[data-theme=dark] :is(.frost,.automated-news,.community-kicker,.coin-hero,.about-invitation,.intro-story){background:linear-gradient(135deg,#112f45,#0c2337);border-color:var(--ice-line);box-shadow:inset 0 1px #8ad9ff12,0 10px 35px #0002}
html[data-theme=dark] :is(.card,.side,.clip-spotlight,.community-card,.about-article,.about-toc,.legal-document,.news-source-card,.coin-tile,.coin-stat,.coin-rank-step,.admin-auth-card,.preview-card,.news-admin-note,.avatar-help,.calendar-manager-note,.coin-admin-stats>div,.coin-admin-badge,.legal-tabs a){background:var(--ice-panel);color:var(--ice-text);border-color:var(--ice-line);box-shadow:0 8px 32px #0002}
html[data-theme=dark] :is(.socials a,.btn,.menu,.lang-switch,.theme-toggle,.coin-nav a,.home-poll-choice,.story-audio-controls button,.calendar-arrow,.calendar-day,.account-tabs a,.urh-chat-close,.urh-chat-emoji){background:var(--ice-panel-alt);color:var(--ice-link);border-color:var(--ice-line);box-shadow:none}
html[data-theme=dark] :is(.btn.primary,.urh-chat-send){background:#0a719d;color:#fff;border-color:#57c0e7}
html[data-theme=dark] :is(.btn:hover,.socials a:hover,.theme-toggle:hover,.links a:hover,.links a:focus-visible,.account-tabs a:hover){background:#204a63;color:#e4f7ff;border-color:#63c7ed;box-shadow:0 0 18px #4ed6ff20}
html[data-theme=dark] .nav .links.open{background:#10283bf8;border-color:var(--ice-line)}
html[data-theme=dark] .lang-option{color:#b8daec}
html[data-theme=dark] :is(a.content-link,.tag,.coin-cost,.coin-eyebrow,.story-audio-hint,.about-back,.community-bottom,.result-label strong,.legal-heading>.tag){color:var(--ice-link)}
html[data-theme=dark] :is(input:not([type=checkbox]):not([type=radio]),textarea,select){background:var(--ice-input);color:var(--ice-text);border-color:var(--ice-line)}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#9ab8ce;opacity:1}
html[data-theme=dark] :is(fieldset,.event,.account-tabs,.password-details,.coin-history li,.legal-preview,.legal-version,.urh-chat-message,.urh-chat-legend,.urh-chat-compose){border-color:var(--ice-line)}
html[data-theme=dark] :is(.calendar-details,.calendar-event,.calendar-nav,.story-audio,.news-source-footer,.news-feed-controls,.news-source-header,.steam-news-entry,.news-source-body,.urh-chat-head,.urh-chat-welcome,.coin-page-pill){background:var(--ice-panel-alt);color:var(--ice-text);border-color:var(--ice-line)}
html[data-theme=dark] :is(.calendar-month,.calendar-weekday,.calendar-details h4,.calendar-event h4,.news-source-heading,.steam-news-entry h4){color:var(--ice-text)}
html[data-theme=dark] :is(.calendar-legend,.calendar-details p,.calendar-event p,.news-source-description,.news-feed-explanation,.news-feed-status,.news-feed-time,.steam-news-excerpt,.steam-news-date,.steam-news-translation,.urh-chat-online,.urh-chat-shortcuts,.urh-chat-status,.urh-chat-empty){color:var(--ice-muted)}
html[data-theme=dark] .calendar-day.has-events{background:#174f6a;border-color:#70dcff;color:#e4f7ff}
html[data-theme=dark] .calendar-day[aria-pressed=true]{background:#11749b;border-color:#9eeaff;color:#fff}
html[data-theme=dark] .calendar-day:disabled{background:transparent;color:#708b9e}
html[data-theme=dark] :is(.urh-chat,.urh-chat-form){background:#10283b;color:var(--ice-text);border-color:var(--ice-line)}
html[data-theme=dark] :is(.urh-chat-launcher,.urh-chat-launcher:hover,.urh-chat-launcher:focus-visible){background:linear-gradient(135deg,#163f58,#102b40);color:#b8eeff;border-color:#68bfdc;box-shadow:0 8px 26px #0004}
html[data-theme=dark] :is(.urh-chat-emoji:hover,.urh-chat-close:hover){background:#244e66;color:#effbff}
html[data-theme=dark] :is(.urh-chat-copy,.urh-chat-meta strong){color:#e1f1fb}
/* Status and badge colors remain deliberately distinct in both appearances. */
html[data-theme=dark] :is(.success,.community-message.success,.member-approved){background:#123d35;color:#b6f1d5;border-color:#4c9780}
html[data-theme=dark] :is(.error,.community-message.error){background:#462b31;color:#ffd7d8;border-color:#a66b72}
html[data-theme=dark] .recommendation-badge.is-live{background:#52263c;color:#ffd2e2;border-color:#a76381}
html[data-theme=dark] .recommendation-badge.is-offline{background:#19364b;color:#c2d9e8;border-color:#49687e}
html[data-theme=dark] .recommendation-badge.is-unknown{background:#493e23;color:#f9e4af;border-color:#8d7b46}
html[data-theme=dark] .coin-rank:not(.coin-rank-polar):not(.coin-rank-aurora):not(.coin-rank-northern){background:#1c455d;color:#e5f5ff;border-color:#528baa}
html[data-theme=dark] .coin-admin-links a{background:#173f55;color:#b8e9ff;border-color:#47758c}
html[data-theme=dark] :is(.about-article a,.legal-document a){color:var(--ice-link)}
html[data-theme=dark] .about-toc a:hover{background:#23495d;color:#e5f8ff}
html[data-theme=dark] .admin-shell :is(main,footer){color:var(--ice-text)}
html[data-theme=dark] .admin-shell :is(.panel,.stat,.message:not(.error):not(.success),.admin-fold){background:var(--ice-panel);color:var(--ice-text);border-color:var(--ice-line)}
html[data-theme=dark] .admin-shell :is(p,small,.field small,.member-actions small,.calendar-trash-row small,.stat small){color:var(--ice-muted)}
html[data-theme=dark] .admin-shell main a{color:var(--ice-link)}
html[data-theme=dark] .admin-shell :is(.entry-list li,.calendar-trash,.content-editor>.section-heading){border-color:var(--ice-line)}
html[data-theme=dark] .admin-shell :is(.secondary,.count,.muted,.preview-panel,.content-status){background:var(--ice-panel-alt);color:var(--ice-text);border-color:var(--ice-line)}
html[data-theme=dark] .admin-shell .button:not(.secondary){color:white}
html[data-theme=dark] :is(.admin-auth-card p,.admin-auth-card small,.auth-step){color:var(--ice-muted)}
html[data-theme=dark] .admin-auth-card .auth-help{color:var(--ice-muted)}
html[data-theme=dark] .legal-tabs a[aria-current]{background:#125d7d;color:#effbff}
@media(prefers-reduced-motion:reduce){.theme-toggle{transition:none}html{scroll-behavior:auto}}

html[data-theme=dark] .admin-shell .admin-fold-title:after{background:#20485e;color:#b5e8ff}html[data-theme=dark] .stats.has-fold{background:var(--ice-panel);border-color:var(--ice-line)}html[data-theme=dark] .admin-fold[open]>.admin-fold-title{border-color:var(--ice-line)}
[hidden]{display:none!important}
html[data-theme=dark]{--line:#365b72}
html[data-theme=dark] .stream-calendar{background:linear-gradient(145deg,#102c40,#11283b);border-color:var(--ice-line);box-shadow:none}
html[data-theme=dark] :is(.calendar-event strong,.calendar-event time,.calendar-event small,.calendar-details h5,.steam-news-title,.intro-kicker,.intro-signature strong,.clip-game,.coin-balance,.coin-history strong,.coin-content-links a){color:var(--ice-link)}
html[data-theme=dark] :is(.calendar-event p,.calendar-empty,.calendar-legend,.coin-sync){color:var(--ice-muted)!important}
html[data-theme=dark] :is(.clip-info p,.news-automation-heading p,.steam-news-provider,.steam-news-translation,.intro-story p,.story-audio-status,.auth-help){color:var(--ice-muted)}
html[data-theme=dark] :is(.calendar-today,.news-source-consent,.news-timeline-frame,.news-feed-warning){background:var(--ice-panel-alt);color:var(--ice-text);border-color:var(--ice-line)}
html[data-theme=dark] .calendar-day:hover{background:#215978;color:#fff}
html[data-theme=dark] .community-heading .community-kicker{color:var(--ice-link)}
html[data-theme=dark] .coin-history .coin-debit{color:#f3c17c}

html[data-theme=dark] :is(.ban-card,.ban-note){background:var(--ice-panel);color:var(--ice-text);border-color:var(--ice-line)}html[data-theme=dark] :is(.ban-card p,.ban-code){color:var(--ice-muted)}

html[data-theme=dark] .urh-chat-status{background:#10283b;color:var(--ice-muted)}html[data-theme=dark] :is(.urh-chat-form label,.urh-chat-legend summary,.urh-chat-meta time){color:var(--ice-muted)}

/* One native frost scrollbar system for public pages, accounts and administration. */
:root{--frost-scroll-track:#e4f2fa;--frost-scroll-start:#acdff0;--frost-scroll-end:#389bc2;--frost-scroll-hover:#147fa9;--frost-scroll-line:#6cb8d2}
html[data-theme=dark]{--frost-scroll-track:#0a2233;--frost-scroll-start:#92e5fa;--frost-scroll-end:#388eae;--frost-scroll-hover:#b5f0ff;--frost-scroll-line:#6bc2df}
::-webkit-scrollbar{width:12px;height:12px}
::-webkit-scrollbar-track{background:var(--frost-scroll-track);border-radius:99px}
::-webkit-scrollbar-thumb{min-height:42px;border:3px solid var(--frost-scroll-track);border-radius:99px;background:linear-gradient(155deg,var(--frost-scroll-start),var(--frost-scroll-end));background-clip:padding-box;box-shadow:inset 0 0 0 1px var(--frost-scroll-line)}
::-webkit-scrollbar-thumb:hover{background:var(--frost-scroll-hover);background-clip:padding-box}
::-webkit-scrollbar-corner{background:var(--frost-scroll-track)}
::-webkit-scrollbar-button{display:none;width:0;height:0}
@supports selector(::-webkit-scrollbar){html,body,body *,html body #about-robin .about-toc,html body .urh-chat-log{scrollbar-color:auto;scrollbar-width:auto}}
@supports not selector(::-webkit-scrollbar){html,body,body *,html body #about-robin .about-toc,html body .urh-chat-log{scrollbar-color:var(--frost-scroll-end) var(--frost-scroll-track);scrollbar-width:auto}}
@media(max-width:650px){::-webkit-scrollbar{width:10px;height:10px}}
@media(forced-colors:active){html,body,body *,html body #about-robin .about-toc,html body .urh-chat-log{scrollbar-color:auto}::-webkit-scrollbar-thumb{background:ButtonText;border-color:Canvas;box-shadow:none}::-webkit-scrollbar-track,::-webkit-scrollbar-corner{background:Canvas}}
