/* v8 responsive density. Font size of editable fields stays at least 16px on iOS. */
:root{--density:1;--home-icon:60px;--home-row:84px;--home-gap:16px}
#home .app .ic{width:var(--home-icon)!important;height:var(--home-icon)!important}#track>.pg>.grid{grid-auto-rows:var(--home-row)!important;row-gap:var(--home-gap)!important}#home .app .lb{font-size:calc(8px + 3px * var(--density))}#home .dock{min-height:calc(var(--home-icon) + 24px)}.win>.body{font-size:calc(12px + 4px * var(--density))}.win .btn{font-size:calc(12px + 4px * var(--density));min-height:calc(32px + 12px * var(--density))}.win .card{padding:calc(9px + 5px * var(--density))}.density-card p{font-size:12px;color:var(--tone-muted-79889d,#79889d);line-height:1.5}.density-preview{display:flex;gap:10px;align-items:center;color:#6a80b2;margin-top:13px;font-size:13px}.density-preview>span{font-size:calc(20px + 15px * var(--density));border-radius:12px;background:var(--tone-surface-edf3ff,#edf3ff);padding:5px 12px}
/* Telegram-style chat, private media and explicit read receipts. */
.room-holder{min-height:0}.rlog{background:var(--tone-surface-fff,#fff)!important;padding:12px 12px 18px!important}.ml .mb{box-shadow:none!important;border:0!important;border-radius:21px!important;background:var(--tone-surface-f2f3f5,#f2f3f5)!important;color:var(--tone-ink-20252c,#20252c)!important;padding:10px 13px!important;max-width:calc(100% - 48px)}.ml.mine .mb{background:var(--tone-surface-e8efff,#e8efff)!important;border-radius:21px 21px 6px 21px!important}.ml.first:not(.mine) .mb{border-radius:21px 21px 21px 6px!important}.ml .tx{font-size:calc(13px + 3px * var(--density));line-height:1.42}.ml .au{font-size:12px!important;margin-bottom:5px}.ml .mt{color:var(--tone-muted-8a94a1,#8a94a1)!important;font-size:10px;gap:5px}.read-ticks{font-size:13px;color:var(--tone-muted-9aa6b4,#9aa6b4)}.read-ticks.seen{color:#468bea}.ml .qt{border-left:3px solid #94ade4;background:var(--tone-surface-ffffff70,#ffffff70);border-radius:7px;padding:7px 9px;margin-bottom:7px}.ml .av{width:30px!important;height:30px!important}.ml .avsp{width:30px!important}.tbar{background:var(--tone-surface-fff,#fff)!important;border-top:1px solid var(--tone-line-f0f1f5,#f0f1f5);padding:8px 9px!important}.crow{gap:7px}.crow .ta{border:0!important;background:var(--tone-surface-f2f4f7,#f2f4f7)!important;border-radius:23px!important}.crow .ta textarea{background:transparent!important;min-height:40px;font-size:16px;padding:10px 7px 9px 13px!important}.crow>.tb{color:#64758b}.crow .ta #emo{color:var(--tone-muted-7a8798,#7a8798)}.crow .mainbtn{width:43px;height:43px;background:#3989f4}.qbar{background:var(--tone-surface-f7f9fc,#f7f9fc)!important;border-radius:12px;margin:0 4px 6px!important}.chat-video{display:block;width:min(260px,62vw);max-height:340px;border-radius:15px;background:#151922;object-fit:contain}.chat-video.round-video{width:min(210px,53vw);height:auto;aspect-ratio:1;border-radius:50%;object-fit:cover}.mb:has(.round-video){background:transparent!important;padding:0!important}.mb:has(.round-video)>.mt{justify-content:center}.attach-options{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0}.attach-options button{border:0;background:var(--tone-surface-eff5ff,#eff5ff);color:#3986dc;border-radius:18px;min-height:92px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;font-size:13px}.circle-preview{display:block;width:min(260px,65vw);aspect-ratio:1;border-radius:50%;background:#111;object-fit:cover;margin:18px auto}.circle-status{text-align:center;color:var(--tone-muted-7a8799,#7a8799);font-size:13px}.circle-controls{display:flex;gap:10px}.circle-controls>button{flex:1}
/* Emoji panels are above the input, remain open for multiple picks. */
.emoji-panel{flex:none;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:2px;padding:8px;background:var(--tone-surface-f6f8fc,#f6f8fc);border-top:1px solid var(--tone-line-e9edf4,#e9edf4);max-height:154px;overflow-y:auto;box-sizing:border-box}.emoji-panel[hidden]{display:none!important}.emoji-panel button{display:grid;place-items:center;padding:4px 0;border:0;background:transparent;font-size:25px;min-height:34px;cursor:pointer;border-radius:8px;touch-action:manipulation}.emoji-panel button:active{background:var(--tone-surface-e5ecf8,#e5ecf8)}.cmp .inp{gap:6px;padding:10px 10px max(10px,env(safe-area-inset-bottom));background:var(--tone-surface-fff,#fff);flex:none}.cmp .inp input{min-width:0;width:0;box-shadow:none!important;border:1px solid var(--tone-line-e2e8f0,#e2e8f0)!important;background:var(--tone-surface-f4f6f9,#f4f6f9);font-size:16px;border-radius:21px;padding:11px 12px}.cmp .inp .av{width:29px;height:29px;flex:0 0 29px}.cmp .inp #ce{background:transparent;color:var(--tone-muted-8b97a9,#8b97a9);width:29px;height:36px;flex:0 0 29px}.cmp .inp #cs{width:37px;height:37px;flex:0 0 37px;background:#398bf4}.cmp .ls{min-height:0;overscroll-behavior:contain}.cmp .emoji-panel{margin:0;width:100%}.cm1 .lk{padding:6px;min-width:31px;color:var(--tone-muted-a1adbc,#a1adbc)}.cm1 .lk svg{width:23px;height:23px;fill:none!important}.cm1 .lk svg path{fill:none!important;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}.cm1 .lk.on{color:#ff315a}.cm1 .lk.on svg path{fill:#ff315a!important;stroke:#ff315a}.game-chat .emoji-panel{border-radius:12px;margin-bottom:6px;max-height:90px}
/* Small actions, correctly constrained follow button. */
.ri .side{gap:13px!important;bottom:92px!important}.ri .side>.lk svg,.ri .side>.cm svg,.ri .side>.bookmark svg{width:31px!important;height:31px!important}.ri .side>button{min-width:40px!important;width:40px!important;padding:0!important;gap:4px!important}.ri .side>button span{font-size:12px!important}.ri .side .au{position:relative;width:43px;height:43px;margin-bottom:8px;display:block}.ri .side .au>.av{width:43px!important;height:43px!important;border:2px solid var(--tone-named-white,white)}.ri .side .au>.fo{position:absolute!important;display:grid!important;place-items:center!important;left:50%!important;bottom:-8px!important;top:auto!important;margin-left:-10px!important;width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;border:0!important;border-radius:50%!important;padding:0!important;background:#ff315a!important;transform:none!important;line-height:1!important;z-index:5}.ri .side .au>.fo svg{width:12px!important;height:12px!important}.ri .record-disc{width:39px;height:39px;min-height:39px;right:14px;bottom:24px}
/* Daily forecast, distinct from generated home wishes. */
.horoscope-body{background:linear-gradient(160deg,var(--tone-surface-f0efff,#f0efff),var(--tone-surface-f8faff,#f8faff) 50%,var(--tone-surface-f7f3fd,#f7f3fd))}.horo-hero{padding:25px 18px 22px;text-align:center;border-radius:24px;color:var(--tone-ink-3d3b70,#3d3b70);background:radial-gradient(at 15% 10%,var(--tone-surface-d7dcff,#d7dcff),transparent 65%),linear-gradient(130deg,var(--tone-surface-eeebff,#eeebff),var(--tone-surface-fff5fa,#fff5fa));margin-bottom:18px}.horo-hero>small{text-transform:capitalize;font-size:12px;color:var(--tone-muted-8b85aa,#8b85aa)}.horo-hero>span{display:block;font-size:58px;margin:17px 0 7px}.horo-hero h1{font-size:29px;letter-spacing:-.7px;margin:5px}.horo-hero p{font-size:13px;color:var(--tone-muted-8c84a3,#8c84a3);line-height:1.6}.horo-section{display:flex;gap:13px;background:var(--tone-surface-fff,#fff);padding:20px 16px;border-radius:20px;margin:12px 0;border:1px solid var(--tone-line-ececf5,#ececf5);box-shadow:0 5px 15px #53538a04}.horo-section>span{display:grid;place-items:center;align-self:flex-start;background:var(--tone-surface-f1efff,#f1efff);color:#8879c3;width:32px;height:32px;border-radius:11px;flex:none;font-size:24px}.horo-section h3{margin:0 0 9px;font-size:16px;text-transform:none;color:var(--tone-ink-3f4660,#3f4660)}.horo-section p{margin:0;font-size:14px;line-height:1.75;color:var(--tone-muted-778095,#778095)}.horo-source{text-align:center;padding:18px 12px 8px}.horo-source a{font-size:13px;font-weight:700;color:#8276be}.horo-source p,.horo-source small{font-size:11px;color:var(--tone-muted-a1a5b4,#a1a5b4);line-height:1.6}
/* Game lobby and learning cards. */
.games-body{background:var(--tone-surface-f5f7fb,#f5f7fb)}.games-hero{background:linear-gradient(125deg,#263d73,#677ec6);color:white;border-radius:23px;padding:21px 18px}.games-hero small{font-size:9px;font-weight:800;letter-spacing:1.5px;opacity:.65}.games-hero h1{font-size:23px;letter-spacing:-.8px;margin:12px 0 8px}.games-hero p{font-size:12px;line-height:1.5;color:#d9e2ff;margin:0;max-width:260px}.online-games{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.game-choice{border:1px solid var(--tone-line-e5eaf3,#e5eaf3);min-width:0;display:flex;flex-direction:column;align-items:center;padding:17px 5px 12px;background:var(--tone-named-white,white);border-radius:18px;color:var(--tone-ink-2f4164,#2f4164);gap:4px}.game-choice.selected{border:2px solid #5794ee;padding:16px 4px 11px;background:var(--tone-surface-f4f8ff,#f4f8ff);box-shadow:0 4px 13px #5692e414}.game-choice>span{font-size:33px;line-height:1.2;height:43px}.game-choice>b{font-size:13px;white-space:nowrap}.game-choice small{font-size:9px;color:var(--tone-muted-99a5b7,#99a5b7)}.game-choice i{font-style:normal;font-size:9px;border-radius:6px;background:var(--tone-surface-edf2fa,#edf2fa);color:#8b9db9;padding:4px 7px;margin-top:7px}.learn-games{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.learn-games button{display:grid;grid-template-columns:37px 1fr;text-align:left;align-items:center;gap:4px 8px;background:var(--tone-named-white,white);border:1px solid var(--tone-line-e8edf5,#e8edf5);border-radius:18px;min-height:87px;padding:13px 11px;color:#4b5f84}.learn-games button>span{grid-row:span 2;font-size:26px;color:#8c9de1}.learn-games button>b{font-size:12px}.learn-games button>small{font-size:10px;color:var(--tone-muted-a3aec0,#a3aec0);align-self:start}.learn-games button:last-child{grid-column:span 2;min-height:70px}.online-heading{display:flex;align-items:center;gap:9px}.online-heading>span{border-radius:7px;background:var(--tone-surface-e5eeff,#e5eeff);color:#6a95d8;font-size:11px;padding:4px 7px}.lobby-users .empty{font-size:12px;line-height:1.7;padding:14px}.lobby-users .row .av{width:39px;height:39px}.learning-body{background:linear-gradient(150deg,var(--tone-surface-f1f5ff,#f1f5ff),var(--tone-surface-fff8f1,#fff8f1))}.learning-body h2{font-size:22px;line-height:1.5;color:var(--tone-ink-34476e,#34476e);margin:25px 0}.learning-body>p{font-size:13px;line-height:1.6;color:var(--tone-muted-8794a9,#8794a9)}.learn-progress{display:flex;align-items:center;justify-content:space-between;background:var(--tone-surface-fff,#fff);padding:15px;border-radius:15px;color:#7794c3;font-size:13px}.math-answer input{width:100%;padding:16px;border:1px solid var(--tone-line-d6e1f0,#d6e1f0);border-radius:15px;background:var(--tone-named-white,white);font-size:23px;box-sizing:border-box;margin-bottom:13px}.math-answer button{width:100%}.learn-feedback{color:#6a87b6!important;min-height:35px}.word-answer{min-height:63px;background:var(--tone-named-white,white);border:1px dashed var(--tone-line-c4d4ec,#c4d4ec);border-radius:16px;font-size:24px;color:#5283c4;display:grid;place-items:center;letter-spacing:3px}.letter-board{display:flex;flex-wrap:wrap;gap:9px;justify-content:center;margin:22px 0}.letter-board button{width:44px;height:48px;border-radius:12px;border:0;background:var(--tone-surface-e4ecfd,#e4ecfd);color:#577fbd;font-size:22px;font-weight:700}.letter-board button:disabled{opacity:.22}.learning-body>.btn{margin:8px 0}.memory-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.memory-tile{min-height:90px;border:0;border-radius:15px;padding:6px;background:var(--tone-surface-e7edff,#e7edff);color:#8e9dc8;font-size:27px}.memory-tile.open{font-size:12px;color:#486ba2;background:var(--tone-named-white,white)}.memory-tile.matched{font-size:12px;background:var(--tone-surface-e5f6ed,#e5f6ed);color:#5b9a79}.learning-result{text-align:center;padding:55px 20px;color:#6b8cc5}.learning-result>span{font-size:45px}.learning-result h1{font-size:64px;margin:15px 0}.learning-result p{margin-bottom:30px}.quiz-top{background:linear-gradient(135deg,var(--tone-surface-e3eaff,#e3eaff),var(--tone-surface-f0e7ff,#f0e7ff));border-radius:24px;padding:23px}.quiz-top>small{font-size:11px;color:var(--tone-muted-938bac,#938bac)}.quiz-question{font-size:23px!important;margin:26px 0 22px!important;line-height:1.5}.quiz-answers button{border:1px solid var(--tone-line-e4eaf4,#e4eaf4);border-radius:17px;min-height:63px;box-shadow:0 4px 12px #5663a505}.quiz-answers button span{background:var(--tone-surface-edf2fc,#edf2fc)!important;color:#8b9cc3!important}.tasks-body>#daily-quiz{margin:17px 0}.task-card{border-radius:18px!important;border:1px solid var(--tone-line-e9edf5,#e9edf5)}.task-card .chip{min-height:34px}.task-card.claimed{opacity:.62}
/* Fit the board and chat to the available viewport; only chat messages scroll. */
.board-game>.body{overflow:hidden!important;display:flex;flex-direction:column;align-items:stretch;padding:8px 12px 10px!important;gap:5px}.board-game .gh{flex:none;margin:0 0 3px!important;min-height:40px}.board-game .gh>.av{width:34px!important;height:34px!important}.board-game .gh .btn{min-height:31px;font-size:11px;padding:6px 9px}.board-game .board{flex:none;align-self:center;max-width:100%;margin:0 auto;border-radius:10px;grid-template-rows:repeat(8,minmax(0,1fr));container-type:inline-size}.board-game .sq{font-size:10cqw!important;min-width:0;min-height:0}.board-game .ck{width:75%;height:75%}.board-game .game-note{font-size:10px!important;margin:0!important;line-height:1.3}.board-game .game-chat{flex:1 1 115px;min-height:104px;max-height:175px;display:flex;flex-direction:column;margin:3px 0 0!important;padding:9px;border-radius:15px}.board-game .game-chat>b{font-size:11px;flex:none}.board-game .game-chat-log{height:auto;min-height:25px;flex:1;overflow:auto;font-size:11px}.board-game .game-chat form{flex:none;display:flex;gap:5px;margin-top:4px}.board-game .game-chat form input{min-width:0;width:0;flex:1;height:32px;font-size:16px;box-sizing:border-box}.board-game .game-chat form button{width:32px;height:32px}.game-window:not(.board-game) .game-chat{max-height:190px}.game-window:not(.board-game) .game-chat-log{height:75px}.game-window .cards-table{min-height:100px}.game-window .playing-card{width:47px;height:68px;font-size:18px}.game-window .hand{gap:4px}.game-window .game-chat .emoji-panel{max-height:80px}

.board-game .game-chat:has(.emoji-panel:not([hidden])){flex-basis:190px;min-height:190px;max-height:220px}
/* v9: centered chat identity and an application-wide appearance preference. */
.chat-window>.bar{position:relative;justify-content:center}.chat-window>.bar>b{width:100%;text-align:center;padding:0 35px}.chat-window>.bar>.act{position:absolute;right:15px;top:50%;transform:translateY(-50%)}.chat-room-win>.bar .hd{display:block;position:absolute;left:55px;right:55px;min-width:0;text-align:center}.chat-room-win>.bar .hd .tt{text-align:center;width:100%}.chat-room-win>.bar .hd .avwrap{position:absolute;left:-40px;top:50%;transform:translateY(-50%)}.chat-room-win>.bar .hd small{font-size:11px;line-height:1.4;margin-top:3px}.chat-room-win>.bar{min-height:60px!important}.chat-room-win>.bar .hd b{font-size:15px}.dc{touch-action:none;user-select:none}.forecast-credit{font-size:10px;color:var(--tone-muted-a1a5b4,#a1a5b4);margin-bottom:9px}.forecast-credit summary{cursor:pointer;list-style:none}.forecast-credit p,.forecast-credit a{font-size:10px!important;color:inherit!important}.theme-card p{font-size:12px;color:var(--tone-muted-8491a5,#8491a5);line-height:1.6}.theme-options{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:13px}.theme-options button{border:1px solid var(--tone-line-e2e8f2,#e2e8f2);background:var(--tone-surface-f6f8fd,#f6f8fd);border-radius:15px;padding:13px 5px;display:flex;flex-direction:column;align-items:center;gap:9px;color:#7185a9;min-height:87px}.theme-options button span{font-size:27px;line-height:1}.theme-options button b{font-size:11px}.theme-options button.selected{background:var(--tone-surface-edf4ff,#edf4ff);border:2px solid #7aacee;padding:12px 4px;color:#4383d6}
:root[data-theme=dark]{color-scheme:dark;--page:#101722;--surface:#1b2534;--field:#242f40;--ink:#e6edf8;--muted:#95a4bb;--line:#2b3749}
[data-theme=dark] #phone{background:var(--page)}
[data-theme=dark] .win,[data-theme=dark] .win>.body:not(.nopad),[data-theme=dark] .win>.body{background:var(--page)!important;color:var(--ink)}
[data-theme=dark] .win>.bar{background:#141d2b!important;border-color:var(--line)!important;color:var(--ink)!important}
[data-theme=dark] .bar .hd small,[data-theme=dark] .bar .hd .tt small{color:var(--muted)}
[data-theme=dark] .bottom-nav{background:#141d2b!important;border-color:var(--line)!important}
[data-theme=dark] .bottom-nav .nav-home{background:#243650!important;color:#a6ceff!important}
[data-theme=dark] .bottom-nav .nav-back{color:#a4b2c8!important}
[data-theme=dark] .bottom-nav .nav-divider{background:#354258!important}
[data-theme=dark] .card,[data-theme=dark] .pf-stats,[data-theme=dark] .ncard,[data-theme=dark] .review-card,[data-theme=dark] .plan-card,[data-theme=dark] .task-card,[data-theme=dark] .horo-section,[data-theme=dark] .tile,[data-theme=dark] .mk-card,[data-theme=dark] .cm1,[data-theme=dark] .sheet,[data-theme=dark] .cmp{background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important;box-shadow:none}
[data-theme=dark] .win h1,[data-theme=dark] .win h2,[data-theme=dark] .win h3,[data-theme=dark] .win h4,[data-theme=dark] .sheet h4,[data-theme=dark] .cmp .hh,[data-theme=dark] .cm1 .nm{color:var(--ink)!important}
[data-theme=dark] .win p,[data-theme=dark] .win small,[data-theme=dark] .sheet p,[data-theme=dark] .win .hint-text,[data-theme=dark] .empty,[data-theme=dark] .horo-section p{color:var(--muted)}
[data-theme=dark] .settings-form .l,[data-theme=dark] .sheet .l,[data-theme=dark] .settings-form label,[data-theme=dark] .sheet label{color:#b6c5da!important}
[data-theme=dark] .settings-form input:not([type=checkbox]):not([type=hidden]),[data-theme=dark] .settings-form textarea,[data-theme=dark] .settings-form select,[data-theme=dark] .sheet input:not([type=checkbox]):not([type=hidden]),[data-theme=dark] .sheet textarea,[data-theme=dark] .sheet select,[data-theme=dark] .cmp input,[data-theme=dark] .math-answer input{background:var(--field)!important;color:var(--ink)!important;border-color:#35435a!important}
[data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:#7c8da7!important}
[data-theme=dark] .birth-parts{background:var(--field)!important;border-color:#35435a}
[data-theme=dark] .birth-parts>input[data-birth]{background:transparent!important;color:var(--ink)!important}
[data-theme=dark] .calendar-pick,[data-theme=dark] .density-preview span{background:#2c3a54;color:#9fbce9}
[data-theme=dark] .row,[data-theme=dark] .link-edit-row{border-color:var(--line)!important}
[data-theme=dark] .btn.s,[data-theme=dark] .chip:not(.b),[data-theme=dark] .ibtn,[data-theme=dark] .seg2,[data-theme=dark] .srch{background:#283744!important;color:#b8c8de!important;border-color:var(--line)!important}
[data-theme=dark] .seg2 .on,[data-theme=dark] .seg .on{background:#354966!important;color:#c2dcff!important}
[data-theme=dark] .tabs3{border-color:var(--line)}[data-theme=dark] .tabs3 button{color:#8293ad}[data-theme=dark] .tabs3 button.on{color:#bed8ff}
[data-theme=dark] .pf-top:not([style]){background-image:none!important;color:var(--ink)}[data-theme=dark] .pf-top[style]{color:var(--ink)}
[data-theme=dark] .profile-links .profile-link{    background: #447aaa;
    border-color: #3b5f7e;
    color: #c4bebe;}
[data-theme=dark] .private-note,[data-theme=dark] .pf-stats small{color:var(--muted)}
[data-theme=dark] .chat-shell,[data-theme=dark] .sec-scroll,[data-theme=dark] .rlog{background:var(--page)!important;color:var(--ink)}
[data-theme=dark] .cl-item{border-color:var(--line);color:var(--ink)}[data-theme=dark] .cl-item .pv,[data-theme=dark] .cl-item .tm{color:var(--muted)}
[data-theme=dark] .ml .mb{background:var(--surface)!important;color:var(--ink)!important}
[data-theme=dark] .ml.mine .mb{background:#223b5c!important;color:var(--ink)!important}
[data-theme=dark] .ml .qt{background:#142439;border-color:#6095ce;color:#acc6e8}
[data-theme=dark] .tbar,[data-theme=dark] .cmp .inp{background:#141d2b!important;border-color:var(--line)}
[data-theme=dark] .crow .ta,[data-theme=dark] .qbar,[data-theme=dark] .cmp .rpl2{background:var(--field)!important;color:var(--ink)}
[data-theme=dark] .crow .ta textarea,[data-theme=dark] .srch input{color:var(--ink)!important}
[data-theme=dark] .rday{background:#1c293a;color:#829ab9}
[data-theme=dark] .emoji-panel{background:#1c293a;border-color:#354156}[data-theme=dark] .emoji-panel button:active{background:#364764}
[data-theme=dark] .cmp .hh button{background:var(--field);color:var(--ink)}
[data-theme=dark] .nrow .in{background:var(--surface);color:var(--ink)}
[data-theme=dark] .horo-hero{background:radial-gradient(at 10% 0,#3a3b69,transparent 80%),linear-gradient(135deg,#242541,#2e223d);color:#d5d2f5}
[data-theme=dark] .horo-section>span{background:#30304e;color:#b6abea}[data-theme=dark] .horo-source,[data-theme=dark] .horo-source small{color:#7e8aa2}
[data-theme=dark] .task-hero,[data-theme=dark] .quiz-top,[data-theme=dark] .plans-hero{background:linear-gradient(135deg,#26354f,#34305c)!important;color:var(--ink)}
[data-theme=dark] .quiz-answers button,[data-theme=dark] .week-day,[data-theme=dark] .learn-progress,[data-theme=dark] .memory-tile,[data-theme=dark] .word-answer{background:var(--surface)!important;color:var(--ink);border-color:var(--line)}
[data-theme=dark] .quiz-answers button.correct,[data-theme=dark] .memory-tile.matched{background:#214d3b!important;color:#bbefd0}
[data-theme=dark] .quiz-answers button.wrong{background:#542e40!important;color:#f1b9c5}
[data-theme=dark] .week-day.locked{background:#16202f!important}
[data-theme=dark] .game-choice,[data-theme=dark] .learn-games button,[data-theme=dark] .attach-options button{background:var(--surface);color:#c0cde2;border-color:var(--line)}
[data-theme=dark] .game-choice.selected{background:#223551;border-color:#6095df}
[data-theme=dark] .game-choice i,[data-theme=dark] .letter-board button{background:#2b3951;color:#acc6ef}
[data-theme=dark] .theme-options button{background:var(--field);border-color:#35435a;color:#9daec8}[data-theme=dark] .theme-options button.selected{background:#2c4365;color:#c1dcff;border-color:#7aaae9}
[data-theme=dark] .pay-settings,[data-theme=dark] .payment-card,[data-theme=dark] .order-history button,[data-theme=dark] .pay-status,[data-theme=dark] .pay-upload{background:var(--surface)!important;border-color:var(--line);color:var(--ink)}
[data-theme=dark] .onboarding{background:linear-gradient(155deg,#121c2c,#24213a)!important;color:var(--ink)}
[data-theme=dark] .onboard-head h1,[data-theme=dark] .onboard-form label{color:var(--ink)!important}
[data-theme=dark] .onboard-head p{color:var(--muted)}[data-theme=dark] .onboard-form input:not([type=checkbox]):not([type=hidden]),[data-theme=dark] .onboard-form textarea,[data-theme=dark] .onboard-form select,[data-theme=dark] .onboard-form>.check-line{background:var(--field)!important;color:var(--ink)!important;border-color:#35435a!important}
[data-theme=dark] .onboard-head>span{background:#283550;color:#a9c0e6}
[data-theme=dark] #home .hello,[data-theme=dark] #home .ann,[data-theme=dark] #home .dock{background:#12203988;border-color:#7189b52b}
[data-theme=dark] .sheet-bg{background:#0008}[data-theme=dark] .rl-win .rf{background:#000}[data-theme=dark] .rl-win .body{background:#000!important}

[data-theme=dark] .ml .mb:has(.round-video){background:transparent!important}

/* v10 neutral color tokens cover legacy CSS and dynamic inline styles. */
:root[data-theme=dark]{--tone-ink-111:#e4ebf6;--tone-ink-151515:#e4ebf6;--tone-ink-17212b:#e4ebf6;--tone-ink-172339:#e4ebf6;--tone-ink-17243b:#e4ebf6;--tone-ink-172b50:#e4ebf6;--tone-ink-1a1a1a:#e4ebf6;--tone-ink-1e304a:#e4ebf6;--tone-ink-20252c:#e4ebf6;--tone-ink-20334f:#e4ebf6;--tone-ink-222e50:#e4ebf6;--tone-ink-252e65:#e4ebf6;--tone-ink-25324e:#e4ebf6;--tone-ink-263552:#e4ebf6;--tone-ink-283956:#e4ebf6;--tone-ink-2f4164:#e4ebf6;--tone-ink-303e63:#e4ebf6;--tone-ink-323d77:#e4ebf6;--tone-ink-333:#e4ebf6;--tone-ink-34476e:#e4ebf6;--tone-ink-354962:#e4ebf6;--tone-ink-3d3b70:#e4ebf6;--tone-ink-3f4660:#e4ebf6;--tone-ink-444:#e4ebf6;--tone-ink-526776:#e4ebf6;--tone-ink-555:#e4ebf6;--tone-ink-666:#e4ebf6;--tone-ink-777:#e4ebf6;--tone-line-b7c7ee:#334156;--tone-line-b9c4d0:#334156;--tone-line-b9c8e8:#334156;--tone-line-c4d4ec:#334156;--tone-line-c6cfea:#334156;--tone-line-cde9d8:#334156;--tone-line-cfe3ff:#334156;--tone-line-d6e1f0:#334156;--tone-line-d9dfe6:#334156;--tone-line-dad0fa:#334156;--tone-line-dae5fa:#334156;--tone-line-dce2ec:#334156;--tone-line-dce3e8:#334156;--tone-line-dce3ef:#334156;--tone-line-dce4f0:#334156;--tone-line-dce5f1:#334156;--tone-line-dce5f2:#334156;--tone-line-dce7f9:#334156;--tone-line-dfe4ea:#334156;--tone-line-dfe5f2:#334156;--tone-line-e1e1e6:#334156;--tone-line-e1e7f2:#334156;--tone-line-e2e4f8:#334156;--tone-line-e2e6f8:#334156;--tone-line-e2e7f2:#334156;--tone-line-e2e8f0:#334156;--tone-line-e2e8f2:#334156;--tone-line-e2e8f5:#334156;--tone-line-e4e8fa:#334156;--tone-line-e4eaf4:#334156;--tone-line-e4eaf6:#334156;--tone-line-e5e5ea:#334156;--tone-line-e5e7ee:#334156;--tone-line-e5eaf3:#334156;--tone-line-e7eaf3:#334156;--tone-line-e8edf5:#334156;--tone-line-e8edf6:#334156;--tone-line-e8edf7:#334156;--tone-line-e8eef4:#334156;--tone-line-e9ecf5:#334156;--tone-line-e9edf4:#334156;--tone-line-e9edf5:#334156;--tone-line-e9edf6:#334156;--tone-line-ececf5:#334156;--tone-line-eee:#334156;--tone-line-f0f1f5:#334156;--tone-line-f0f2f6:#334156;--tone-line-f0f2f8:#334156;--tone-line-f2f2f7:#334156;--tone-line-fff:#334156;--tone-line-ffffff26:#33415626;--tone-muted-737e94:#a3b1c5;--tone-muted-778095:#a3b1c5;--tone-muted-77819b:#a3b1c5;--tone-muted-79889d:#a3b1c5;--tone-muted-7a8294:#a3b1c5;--tone-muted-7a8798:#a3b1c5;--tone-muted-7a8799:#a3b1c5;--tone-muted-7a8b97:#a3b1c5;--tone-muted-7b879d:#a3b1c5;--tone-muted-7b8a99:#a3b1c5;--tone-muted-7e8aa4:#a3b1c5;--tone-muted-8094a1:#a3b1c5;--tone-muted-81899a:#a3b1c5;--tone-muted-8195a3:#a3b1c5;--tone-muted-8290a8:#a3b1c5;--tone-muted-8390a9:#a3b1c5;--tone-muted-8490a7:#a3b1c5;--tone-muted-8491a5:#a3b1c5;--tone-muted-8493aa:#a3b1c5;--tone-muted-8589a7:#a3b1c5;--tone-muted-858c9e:#a3b1c5;--tone-muted-858ca6:#a3b1c5;--tone-muted-858e9f:#a3b1c5;--tone-muted-8591a9:#a3b1c5;--tone-muted-8794a9:#a3b1c5;--tone-muted-888:#a3b1c5;--tone-muted-8894aa:#a3b1c5;--tone-muted-8996a0:#a3b1c5;--tone-muted-8996ad:#a3b1c5;--tone-muted-8a8fae:#a3b1c5;--tone-muted-8a94a1:#a3b1c5;--tone-muted-8a94a8:#a3b1c5;--tone-muted-8b85aa:#a3b1c5;--tone-muted-8b94a7:#a3b1c5;--tone-muted-8b97a9:#a3b1c5;--tone-muted-8b9ca7:#a3b1c5;--tone-muted-8c84a3:#a3b1c5;--tone-muted-8c93a1:#a3b1c5;--tone-muted-8c97ad:#a3b1c5;--tone-muted-8d95aa:#a3b1c5;--tone-muted-8d99ad:#a3b1c5;--tone-muted-8e8e93:#a3b1c5;--tone-muted-8f98aa:#a3b1c5;--tone-muted-9196b0:#a3b1c5;--tone-muted-929aaa:#a3b1c5;--tone-muted-938bac:#a3b1c5;--tone-muted-99a5b7:#a3b1c5;--tone-muted-9aa3b6:#a3b1c5;--tone-muted-9aa5b9:#a3b1c5;--tone-muted-9aa6b4:#a3b1c5;--tone-muted-a0a8bb:#a3b1c5;--tone-muted-a1a5b4:#a3b1c5;--tone-muted-a1adbc:#a3b1c5;--tone-muted-a3aec0:#a3b1c5;--tone-muted-a7b3c8:#a3b1c5;--tone-muted-aaa:#a3b1c5;--tone-surface-b4c5d6:#1c2738;--tone-surface-bbd3ee:#1c2738;--tone-surface-bdd2ee:#1c2738;--tone-surface-c4ecb9:#1c2738;--tone-surface-c6edba:#1c2738;--tone-surface-cdf5b8:#1c2738;--tone-surface-cfd6ea:#1c2738;--tone-surface-cfd9e2:#1c2738;--tone-surface-d1d1d6:#1c2738;--tone-surface-d7d0c0:#1c2738;--tone-surface-d7dcff:#1c2738;--tone-surface-d8e3e9:#1c2738;--tone-surface-d8f7c8:#1c2738;--tone-surface-d9e9fa:#1c2738;--tone-surface-dbe8ff:#1c2738;--tone-surface-dce9f9:#1c2738;--tone-surface-dceef8:#1c2738;--tone-surface-ddd:#1c2738;--tone-surface-ddf5e9:#1c2738;--tone-surface-dfe6ee:#1c2738;--tone-surface-dfe9ff:#1c2738;--tone-surface-dff6ee:#1c2738;--tone-surface-dff7e6:#1c2738;--tone-surface-e2e5ed:#1c2738;--tone-surface-e3e3e8:#1c2738;--tone-surface-e3eaff:#1c2738;--tone-surface-e3ffd1:#1c2738;--tone-surface-e4eaff:#1c2738;--tone-surface-e4ecfd:#1c2738;--tone-surface-e5e5ea:#1c2738;--tone-surface-e5ecf8:#1c2738;--tone-surface-e5edf2:#1c2738;--tone-surface-e5eeff:#1c2738;--tone-surface-e5f5eb:#1c2738;--tone-surface-e5f6ed:#1c2738;--tone-surface-e6edff:#1c2738;--tone-surface-e6f1ff:#1c2738;--tone-surface-e6f7ef:#1c2738;--tone-surface-e7e3ff:#1c2738;--tone-surface-e7edff:#1c2738;--tone-surface-e8e8ee:#1c2738;--tone-surface-e8eef4:#1c2738;--tone-surface-e8efff:#1c2738;--tone-surface-e8f0ff:#1c2738;--tone-surface-e8f1ff:#1c2738;--tone-surface-e8f2ff:#1c2738;--tone-surface-e9d6b4:#1c2738;--tone-surface-e9e9ee:#1c2738;--tone-surface-e9edf3:#1c2738;--tone-surface-e9edf6:#1c2738;--tone-surface-e9edf7:#1c2738;--tone-surface-e9edfb:#1c2738;--tone-surface-e9f5ff:#1c2738;--tone-surface-eaddff:#1c2738;--tone-surface-eaf0fc:#1c2738;--tone-surface-eaf1ff:#1c2738;--tone-surface-eaf4ff:#1c2738;--tone-surface-eaf8ff:#1c2738;--tone-surface-ecd0a3:#1c2738;--tone-surface-ecf1f5:#1c2738;--tone-surface-ecf4ff:#1c2738;--tone-surface-edf0f6:#1c2738;--tone-surface-edf2fa:#1c2738;--tone-surface-edf2fc:#1c2738;--tone-surface-edf2ff:#1c2738;--tone-surface-edf3fc:#1c2738;--tone-surface-edf3ff:#1c2738;--tone-surface-edf4ff:#1c2738;--tone-surface-edf5f8:#1c2738;--tone-surface-eee:#1c2738;--tone-surface-eee9ff:#1c2738;--tone-surface-eeeaff:#1c2738;--tone-surface-eeebff:#1c2738;--tone-surface-eef0f6:#1c2738;--tone-surface-eef2ff:#1c2738;--tone-surface-eef3fa:#1c2738;--tone-surface-eef5ff:#1c2738;--tone-surface-eff1fc:#1c2738;--tone-surface-eff5ff:#1c2738;--tone-surface-f0e7ff:#1c2738;--tone-surface-f0e8ff:#1c2738;--tone-surface-f0edff:#1c2738;--tone-surface-f0efff:#1c2738;--tone-surface-f0f6ff:#1c2738;--tone-surface-f1efff:#1c2738;--tone-surface-f1f1f4:#1c2738;--tone-surface-f1f4fb:#1c2738;--tone-surface-f1f5fb:#1c2738;--tone-surface-f1f5fc:#1c2738;--tone-surface-f1f5ff:#1c2738;--tone-surface-f1f6ff:#1c2738;--tone-surface-f1f7ff:#1c2738;--tone-surface-f2efff:#1c2738;--tone-surface-f2f2f7:#1c2738;--tone-surface-f2f3f5:#1c2738;--tone-surface-f2f4f7:#1c2738;--tone-surface-f2f4f9:#1c2738;--tone-surface-f2f7ff:#1c2738;--tone-surface-f3f7ff:#1c2738;--tone-surface-f3f8fa:#1c2738;--tone-surface-f4efff:#1c2738;--tone-surface-f4f4f6:#1c2738;--tone-surface-f4f6f9:#1c2738;--tone-surface-f4f6fc:#1c2738;--tone-surface-f4f7fd:#1c2738;--tone-surface-f4f8ff:#1c2738;--tone-surface-f5f7fb:#1c2738;--tone-surface-f5f7fc:#1c2738;--tone-surface-f5f8fd:#1c2738;--tone-surface-f6f7fa:#1c2738;--tone-surface-f6f8fc:#1c2738;--tone-surface-f6f8fd:#1c2738;--tone-surface-f6f8ff:#1c2738;--tone-surface-f7f3fd:#1c2738;--tone-surface-f7f8fb:#1c2738;--tone-surface-f7f9fc:#1c2738;--tone-surface-f7f9fe:#1c2738;--tone-surface-f8eeff:#1c2738;--tone-surface-f8f5ff:#1c2738;--tone-surface-f8faff:#1c2738;--tone-surface-f9fbff:#1c2738;--tone-surface-fafbff:#1c2738;--tone-surface-fbeef1:#1c2738;--tone-surface-ffe3ea:#1c2738;--tone-surface-ffe5e3:#1c2738;--tone-surface-ffe6eb:#1c2738;--tone-surface-ffe9c9:#1c2738;--tone-surface-ffe9ee:#1c2738;--tone-surface-ffe9ef:#1c2738;--tone-surface-fff:#1c2738;--tone-surface-fff0d9:#1c2738;--tone-surface-fff0f3:#1c2738;--tone-surface-fff0f4:#1c2738;--tone-surface-fff0fa:#1c2738;--tone-surface-fff3d8:#1c2738;--tone-surface-fff3fa:#1c2738;--tone-surface-fff5fa:#1c2738;--tone-surface-fff8f1:#1c2738;--tone-surface-ffffff1f:#1c27381f;--tone-surface-ffffff33:#1c273833;--tone-surface-ffffff55:#1c273855;--tone-surface-ffffff66:#1c273866;--tone-surface-ffffff70:#1c273870;--tone-surface-ffffffb8:#1c2738b8;--tone-surface-ffffffc9:#1c2738c9;--tone-surface-rgba24925025496:#1c2738f5;--tone-surface-rgba25025025296:#1c2738f5;--tone-surface-rgba25525525518:#1c27382e;--tone-surface-rgba2552552552:#1c273833;--tone-surface-rgba25525525522:#1c273838;--tone-surface-rgba25525525525:#1c273840;--tone-surface-rgba2552552554:#1c273866;--tone-surface-rgba2552552559:#1c2738e6;}

/* Space below the app header without stealing room from chat, reels or the game table. */
.win:not(.chat-window):not(.game-window):not(.rl-win)>.body:not(.nopad){padding-top:16px!important;scroll-padding-top:16px}
.win:not(.chat-window):not(.game-window):not(.rl-win)>.body:not(.nopad)>:first-child{margin-top:0}
.chat-window>.bar{margin-bottom:8px;flex-shrink:0}.game-window>.bar{margin-bottom:6px}
.sheet{scroll-padding-top:18px}.sheet h4{margin-top:4px;margin-bottom:15px}.sheet>input,.sheet>select,.sheet>textarea{margin-bottom:12px}
[data-theme=dark] input[type=date]{color-scheme:dark}
[data-theme=dark] .ctx .cm,[data-theme=dark] .ctx .rb,[data-theme=dark] .ctx .rr,[data-theme=dark] .rx-menu,[data-theme=dark] .review-heading,[data-theme=dark] .proof-slot,[data-theme=dark] .quiz-banner,[data-theme=dark] .mod-item,[data-theme=dark] .user-row,[data-theme=dark] .stat-card,[data-theme=dark] .cbox,[data-theme=dark] .link-edit-row{background:var(--surface)!important;color:var(--ink);border-color:var(--line)}
[data-theme=dark] .ctx .cm button{color:var(--ink);border-color:var(--line)}[data-theme=dark] .ctx .cm button.d{color:#ff8196}
[data-theme=dark] .sticky-save,[data-theme=dark] .settings-save,[data-theme=dark] .reel-comments,[data-theme=dark] .sub-tools,[data-theme=dark] .art{background:var(--page)!important;color:var(--ink)}
[data-theme=dark] .sheet>input,[data-theme=dark] .sheet>textarea,[data-theme=dark] .sheet>select,[data-theme=dark] .srch input,[data-theme=dark] .cbox textarea,[data-theme=dark] .game-chat input,[data-theme=dark] .win input:not([type=checkbox]):not([type=hidden]),[data-theme=dark] .win textarea,[data-theme=dark] .win select{color:var(--ink);border-color:#35435a}
[data-theme=dark] .sheet>button:not(.btn):not(.ibtn),[data-theme=dark] .review-card .proof-expand,[data-theme=dark] .plan-perks,[data-theme=dark] .pay-step,[data-theme=dark] .admin-user-card,[data-theme=dark] .receipt-drop,[data-theme=dark] .cover-picks button,[data-theme=dark] .pgrid .add{background:var(--field);color:var(--muted);border-color:var(--line)}
[data-theme=dark] .calendar-pick{background:#2c3a54!important;color:#b6cef2}[data-theme=dark] .calendar-pick input{background:transparent!important}
[data-theme=dark] .theme-options button.selected{box-shadow:0 0 0 3px #6ca5e91a}
[data-theme=light]{--page:#f6f7fb;--surface:#fff;--field:#f0f3f9;--ink:#17243b;--muted:#8090a6;--line:#e3e9f2;color-scheme:light}

:root[data-theme=dark]{--tone-named-white:#1c2738}
/* Physical game pieces/cards retain their meaning in either appearance. */
.board .sq.l{background-color:#e9d6b4}.board .sq.d{background-color:#8a6a4b}.board .sq.lr{background-color:#cfd6ea}.board .sq.dr{background-color:#3d4a6b}.board .pw{color:#fff!important}.board .pb2{color:#232328!important}.board .ck.w{background:linear-gradient(#fff,#d5d5db)!important}.board .ck.b{background:linear-gradient(#555,#151515)!important}.playing-card{background:#fff!important;color:#182031!important}.playing-card.red{color:#d43852!important}
