:root {
  color-scheme: dark;
  --site: #101010;
  --panel: #191919;
  --hairline: #333;
  --paper: #f5f5f5;
  --ink: #101010;
  --muted: #616161;
  --rule: #e2e2e2;
  --mobile-header: calc(62px + env(safe-area-inset-top));
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--site);
  color: #f9f9f9;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 300px; }
button, input, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 2px solid #777; outline-offset: 3px; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { width: 22px; height: 22px; flex: 0 0 auto; vertical-align: middle; }
img { vertical-align: middle; }
h1, h2, p, dl, dd { margin: 0; }
h1, h2, b, strong { font-weight: 700; }
small { font-size: 12px; }

.site-header {
  height: 84px;
  padding-inline: max(32px, calc((100vw - 1332px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #292929;
}
.brand { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 23px; line-height: 1.18; }
.brand small { color: #aaa; font-size: 11px; margin-top: 2px; }
.environment { display: flex; align-items: center; gap: 8px; border: 1px solid #383838; background: #1d1d1d; border-radius: 30px; padding: 6px 12px; font-size: 12px; color: #ddd; }
.environment::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ccc; }
.mobile-tools, .console-title, .console-scrim { display: none; }

.stage {
  width: min(1332px, calc(100% - 64px));
  margin: 24px auto 46px;
  display: grid;
  grid-template-columns: minmax(390px, 1.61fr) minmax(335px, 1fr);
  gap: clamp(26px, 3.15vw, 46px);
  align-items: start;
}
.simulator {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 22px 14px;
  background: radial-gradient(ellipse at 50% 57%, #303030, #1d1d1d 57%, #171717);
  border: 1px solid #323232;
  border-radius: 26px;
}
.device-label, .device-hint { position: absolute; z-index: 1; left: 23px; }
.device-label { top: 22px; font-size: 13px; font-weight: 650; color: #ddd; }
.device-hint { bottom: 28px; font-size: 12px; color: #aaa; line-height: 1.9; }
.phone {
  width: min(380px, 100%);
  height: clamp(588px, calc(100svh - 166px), 800px);
  position: relative;
  z-index: 2;
  padding: 8px;
  border: 1px solid #565656;
  border-radius: 42px;
  background: #111;
  box-shadow: 0 16px 38px #0008, inset 0 0 0 4px #151515, inset 0 0 0 5px #323232;
}
.screen { height: 100%; position: relative; isolation: isolate; overflow: hidden; border-radius: 34px; background: var(--paper); color: var(--ink); color-scheme: light; }
.statusbar { position: absolute; inset: 0 0 auto; height: 49px; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 0 23px; font-size: 14px; font-weight: 700; pointer-events: none; }
.status-pill { position: absolute; top: 10px; left: 50%; translate: -50%; border-radius: 20px; width: 96px; height: 28px; background: #1a1a1a; }
.sb-icons { display: flex; gap: 3px; align-items: center; }
.sb-icons svg { width: 18px; height: 18px; }
.sb-icons svg:last-child { width: 23px; }
.screen[data-view="feed"], .screen[data-view="home"] { color: white; background: #171717; }
.home-indicator { position: absolute; z-index: 7; inset: auto 50% 2px auto; translate: 50%; width: 130px; height: 22px; border: 0; background: none; color: inherit; padding: 0; }
.home-indicator::before { content: ""; display: block; position: absolute; inset: 8px 4px 10px; border-radius: 8px; background: currentColor; }
.view { position: absolute; inset: 0; }

.app-scroll { height: 100%; overflow: auto; overscroll-behavior: contain; padding: 68px 19px 107px; scrollbar-width: thin; background: var(--paper); }
.app-scroll:has(#uploadForm) { padding-bottom: 40px; }
.app-heading { margin: 0 0 26px; }
.app-heading h1 { font-size: 33px; line-height: 1.16; letter-spacing: -.032em; }
.app-heading p { margin-top: 8px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.today-brand { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 28px; color: var(--muted); font-size: 12px; }
.today-brand span { display: flex; gap: 8px; align-items: center; color: var(--ink); font-size: 14px; font-weight: 700; }
.today-brand img, .quiz-top img { background: #121212; border-radius: 8px; }
.today-brand img { filter: invert(1); }
.progress-card { border: 1px solid #dadada; border-radius: 24px; background: white; padding: 16px; }
.progress-stats { display: grid; grid-template-columns: 1fr 1.08fr; gap: 16px; align-items: start; padding: 0 2px; margin-bottom: 19px; }
.total small, .weekly small { color: var(--muted); }
.total b { font-size: clamp(54px, 7vw, 75px); line-height: 1; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.total div { font-size: 14px; font-weight: 650; margin-top: 9px; }
.weekly { border-left: 1px solid var(--rule); padding-left: 17px; min-width: 0; }
.accuracy { display: flex; align-items: baseline; gap: 8px; }
.accuracy b { font-size: 27px; font-variant-numeric: tabular-nums; }
.accuracy small { white-space: nowrap; }
.weekly > small { display: block; margin-top: 5px; }
.bars { height: 34px; display: flex; gap: 6px; align-items: end; }
.bars i { width: 10px; height: var(--bar); border-radius: 3px; background: #c7c7c7; }
.bars i.current { background: var(--ink); }
.primary, .secondary, .text-button {
  min-height: 44px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 14px;
  padding: 9px 16px;
}
.primary { border: 1px solid transparent; background: var(--ink); color: white; }
.primary:hover:not(:disabled) { background: #333; }
.primary:disabled { background: #e4e4e4; color: #626262; }
.secondary { border: 1px solid #d5d5d5; background: white; color: var(--ink); }
.secondary:hover:not(:disabled) { background: #eee; }
.text-button { border: 0; padding-inline: 10px; background: transparent; }
.text-button:hover { text-decoration: underline; }
.start-video, .upload-form > .primary { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; text-align: left; }
.section-title { font-size: 16px; margin: 26px 0 11px; display: flex; justify-content: space-between; align-items: baseline; }
.section-title small { color: var(--muted); font-weight: 400; }
.learning-row, .deck, .mode { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; }
.learning-row { border: 0; background: none; min-height: 64px; padding: 7px 0; }
.learning-row + .learning-row { border-top: 1px solid var(--rule); }
.learning-row > svg:last-child, .deck > svg:last-child { margin-left: auto; width: 16px; color: #757575; }
.row-icon { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: #ebebeb; }
.learning-row b, .deck b, .mode b { display: block; font-size: 14px; overflow-wrap: anywhere; }
.learning-row small, .deck small, .mode small { display: block; margin-top: 4px; color: var(--muted); }
.latest { border-top: 1px solid var(--rule); padding: 15px 0; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.latest b { color: #2a2a2a; text-align: right; overflow-wrap: anywhere; }
.box { border: 1px solid #dedede; border-radius: 16px; background: #fff; color: var(--ink); }
.deck, .mode { min-height: 70px; margin-bottom: 10px; padding: 11px 13px; }
.mode { justify-content: space-between; min-height: 64px; }
.deck:hover, .mode:hover { border-color: #a7a7a7; }
.indicator { display: grid; place-items: center; flex: 0 0 24px; height: 24px; border: 1px solid #b9b9b9; border-radius: 50%; margin-left: auto; }
[aria-pressed="true"] > .indicator { color: white; border-color: var(--ink); background: var(--ink); }
.indicator svg { width: 16px; height: 16px; }
.segments { display: flex; flex-wrap: wrap; gap: 5px; }
.segments button { flex: 1 0 auto; padding: 8px 7px; min-height: 40px; border: 0; border-radius: 23px; background: #eaeaea; font-size: 12px; color: #4f4f4f; }
.segments button[aria-pressed="true"] { background: var(--ink); color: white; }
.switch-row { display: flex; justify-content: space-between; align-items: center; min-height: 47px; padding: 7px 12px; margin-bottom: 7px; font-size: 14px; }
.switch-row input { appearance: none; width: 45px; height: 27px; border-radius: 20px; padding: 3px; background: #b7b7b7; margin: 0; cursor: pointer; }
.switch-row input::after { content: ""; display: block; width: 21px; height: 21px; border-radius: 50%; background: white; }
.switch-row input:checked { background: var(--ink); }
.switch-row input:checked::after { translate: 18px; }
.wrong-card { padding: 15px; margin-bottom: 14px; overflow-wrap: anywhere; }
.wrong-card header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.wrong-card header h2 { font-size: 25px; }
.wrong-card header small { white-space: nowrap; color: var(--muted); }
.wrong-card p { margin: 6px 0 9px; font-size: 14px; line-height: 1.5; }
.example { border-top: 1px solid var(--rule); padding: 10px 0; font-size: 13px; line-height: 1.55; }
.example small { display: block; color: var(--muted); }
.wrong-card button { display: flex; gap: 5px; align-items: center; min-height: 40px; margin-top: 5px; font-size: 12px; }
.wrong-card button svg { width: 16px; }
.empty, .loading { display: grid; gap: 10px; padding: 28px 14px; text-align: center; justify-items: center; color: var(--muted); font-size: 13px; }
.empty b { color: var(--ink); }
.upload-form { display: grid; gap: 16px; }
.upload-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 650; }
.upload-form input[type="text"], textarea { display: block; width: 100%; border: 1px solid #d4d4d4; border-radius: 13px; background: white; color: var(--ink); padding: 13px; font-size: 14px; font-weight: 400; }
.upload-form textarea { min-height: 140px; resize: vertical; }
.upload-form small { color: var(--muted); }
.actions { display: flex; gap: 9px; }
.actions > * { flex: 1 1 0; text-align: center; }
.file-label { position: relative; overflow: hidden; place-content: center; }
.file-label:focus-within { outline: 2px solid #6e6e6e; outline-offset: 2px; }
.file-label > input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.upload-result { font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.upload-result p { margin: 9px 0; padding: 8px; border-radius: 10px; background: #e9e9e9; }
.upload-result.error { padding: 12px; border: 1px solid #aaa; border-radius: 12px; }
.tabbar {
  position: absolute;
  inset: auto 15px 29px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 5px;
  min-height: 56px;
  border: 1px solid #fff;
  border-radius: 32px;
  background: #f8f8f8b9;
  box-shadow: 0 7px 17px #0002, inset 0 1px 2px #fff;
  backdrop-filter: blur(19px) saturate(0);
}
.tabbar button { border: 0; border-radius: 25px; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 44px; padding: 3px; font-size: 10px; font-weight: 650; }
.tabbar svg { width: 20px; height: 20px; }
.tabbar [aria-current="page"] { background: #15151517; }

.console { display: grid; gap: 15px; }
.console-intro h1 { font-size: clamp(34px, 3.3vw, 43px); line-height: 1.23; letter-spacing: -.035em; }
.console-intro p { margin: 10px 0 8px; color: #bcbcbc; font-size: 14px; }
.panel { background: var(--panel); border: 1px solid var(--hairline); border-radius: 22px; padding: 17px 21px; }
.panel h2 { font-size: 16px; }
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 14px; border-top: 1px solid #373737; margin-top: 12px; padding-top: 11px; }
.status-grid dt { color: #b7b7b7; font-size: 12px; }
.status-grid dd { margin-top: 3px; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 13px 0; border: 1px solid #3e3e3e; border-radius: 28px; background: #272727; }
.seg button { border: 1px solid transparent; border-radius: 23px; min-height: 42px; background: none; font-size: 14px; color: #ccc; }
.seg button[aria-pressed="true"] { font-weight: 700; color: white; background: #eeeeee10; border-color: #696969; box-shadow: inset 0 1px 2px #ffffff26; }
.console-trigger { display: block; position: relative; width: 100%; min-height: 49px; color: #121212; background: white; padding-inline: 47px; }
.console-trigger:hover:not(:disabled) { background: #dfdfdf; }
.console-trigger svg { position: absolute; right: 18px; top: 50%; translate: 0 -50%; }
.console-actions .text-button { display: block; margin: 3px auto -6px; color: #d0d0d0; font-size: 12px; }
.howto ol { counter-reset: steps; list-style: none; padding: 0; margin: 13px 0 0; display: grid; gap: 10px; }
.howto li { position: relative; padding-left: 42px; font-size: 13px; }
.howto li::before { content: counter(steps); counter-increment: steps; display: grid; place-items: center; position: absolute; left: 0; top: 2px; width: 29px; height: 29px; background: #2e2e2e; border-radius: 50%; font-size: 12px; }
.howto li span { display: block; margin-top: 2px; color: #b3b3b3; font-size: 12px; }
.foot { color: #a9a9a9; font-size: 12px; padding-block: 5px; }

.view-home { background: radial-gradient(ellipse at 75% 25%, #414141, #232323 50%, #141414); }
.view-home::before { content: ""; position: absolute; width: 125%; height: 47%; top: 41%; left: -15%; border: 1px solid #555; border-radius: 60% 30% 55% 25%; transform: rotate(-24deg); background: linear-gradient(115deg, #7773, #1112); }
.home-grid { position: relative; padding: 74px 19px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 7px; }
.home-grid button { display: grid; justify-items: center; gap: 7px; border: 0; background: none; font-size: 11px; padding: 0; }
.home-grid button > span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 15px; background: #efefef; color: var(--ink); }
.home-grid button > span svg { width: 27px; height: 27px; }
.home-grid button[disabled] { color: #c8c8c8; }
.home-grid button[disabled] span { background: #fff2; color: #bdbdbd; }
.home-hint { position: absolute; inset: auto 21px 54px; padding: 12px; display: flex; gap: 10px; align-items: center; border-radius: 20px; border: 1px solid #ffffff38; background: #1717179e; backdrop-filter: blur(17px); }
.home-hint b, .home-hint small { display: block; font-size: 13px; }
.home-hint small { margin-top: 3px; font-size: 11px; color: #e0e0e0; }
.feed { position: absolute; inset: 0; overflow-y: scroll; overscroll-behavior: contain; scroll-snap-type: y mandatory; scrollbar-width: none; }
.feed:focus { outline: 0; }
.feed-top { position: absolute; inset: 49px 0 auto; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 24px; color: #ddd; font-size: 13px; pointer-events: none; }
.feed-top strong { color: white; position: relative; font-size: 14px; }
.feed-top strong::after { content: ""; position: absolute; left: 50%; translate: -50%; top: calc(100% + 4px); width: 15px; height: 2px; background: white; }
.video { position: relative; height: 100%; min-height: 100%; scroll-snap-align: start; overflow: hidden; background: #242424; }
.art { position: absolute; inset: 0; background: url("./landscape.svg") center / cover no-repeat; }
.art-1 { scale: 1.22; transform: scaleX(-1); filter: brightness(.77); }
.art-2 { scale: 1.38; transform-origin: 80% 55%; filter: contrast(1.16); }
.art-3 { transform: scaleX(-1); filter: brightness(1.1); }
.video-social { position: absolute; right: 15px; bottom: 20%; display: grid; gap: 14px; }
.video-social span { display: grid; justify-items: center; gap: 3px; font-size: 10px; }
.video-social svg { width: 26px; height: 26px; }
.video-meta { position: absolute; bottom: 72px; left: 19px; right: 68px; font-size: 15px; text-shadow: 0 1px 3px #0006; }
.video-meta p { margin-top: 6px; font-size: 13px; }
.video-progress { position: absolute; inset: auto 19px 41px; height: 2px; border-radius: 2px; background: #fff5; }
.video-progress i { display: block; width: 34%; height: 100%; border-radius: inherit; background: white; }

.island { position: absolute; inset: 84px 13px auto; z-index: 8; max-height: calc(100% - 104px); overflow: auto; padding: 13px 14px 16px; color-scheme: dark; color: white; background: #1a1a1adf; border: 1px solid #ffffff61; border-radius: 28px; backdrop-filter: blur(20px); box-shadow: 0 13px 28px #0007, inset 0 1px 3px #fff2; }
.quiz-top { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 12px; font-weight: 650; }
.quiz-top span { overflow-wrap: anywhere; }
.quiz-top .skip, .quiz-top .timer { margin-left: auto; flex-shrink: 0; }
.skip { border: 0; border-radius: 20px; padding: 5px 12px; min-height: 44px; background: #ffffff22; color: white; font-size: 12px; }
.quiz-main h2 { font-size: clamp(25px, 5vw, 36px); line-height: 1.16; letter-spacing: -.035em; overflow-wrap: anywhere; margin-top: 9px; }
.quiz-main > p { margin: 5px 0 13px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.quiz-options { display: grid; gap: 7px; }
.quiz-options.judge, .island .quiz-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quiz-option { display: flex; align-items: center; gap: 7px; min-height: 44px; border: 1px solid #d6d6d6; background: #fff; color: var(--ink); border-radius: 13px; text-align: left; padding: 7px 9px; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.quiz-option b { min-width: 0; font-weight: 550; }
.quiz-options.judge .quiz-option { justify-content: center; }
.quiz-option > span { display: grid; place-items: center; flex: 0 0 25px; height: 25px; border-radius: 8px; background: #eaeaea; font-size: 12px; font-weight: 650; }
.quiz-option:hover:not(:disabled) { border-color: #7e7e7e; }
.island .quiz-option { background: #fff2; border-color: #ffffff45; color: white; }
.island .quiz-option.correct { background: #eee; color: #111; }
.quiz-option.correct { border-color: #141414; box-shadow: inset 0 0 0 1px #303030; }
.quiz-option.incorrect { opacity: .6; text-decoration: line-through; }
.quiz-time { display: flex; align-items: center; gap: 12px; margin-top: 13px; }
.quiz-time > span { flex: 1; height: 2px; background: #ffffff37; }
.quiz-time i { display: block; height: 2px; background: white; transition: width .25s linear; }
.quiz-time small { font-size: 11px; }
.quiz-result:not(:empty) { display: grid; gap: 4px; margin-top: 9px; border-top: 1px solid #0002; padding: 9px 0 2px; overflow-wrap: anywhere; font-size: 13px; }
.island .quiz-result:not(:empty) { border-top-color: #fff3; }
.quiz-result button { justify-self: end; }
.heavy {
  position: fixed;
  inset: var(--dialog-y, 0) auto auto var(--dialog-x, 0);
  margin: 0;
  width: var(--dialog-w, 100%);
  height: var(--dialog-h, 100%);
  max-width: 100vw;
  max-height: 100dvh;
  padding: 10px;
  border: 0;
  border-radius: 34px;
  background: #1818185e;
  color: var(--ink);
  color-scheme: light;
  overflow: hidden;
}
.heavy[open] { display: grid; align-items: end; }
.heavy::backdrop { background: #0003; }
.heavy-card {
  display: flex;
  flex-direction: column;
  max-height: calc(var(--dialog-h, 100dvh) - 20px);
  min-height: 0;
  padding: 13px 15px 12px;
  background: #f8f8f8fa;
  border: 1px solid #fff;
  border-radius: 29px;
  backdrop-filter: blur(22px);
  box-shadow: 0 10px 30px #0005;
}
.heavy-card .quiz-main { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 2px; }
.heavy-card .quiz-top { flex: 0 0 auto; }
.timer { min-width: 43px; text-align: center; border-radius: 18px; background: #e7e7e7; padding: 7px; font-size: 12px; font-variant-numeric: tabular-nums; }
.quiz-foot { flex: 0 0 auto; margin-top: 10px; padding-top: 10px; border-top: 1px solid #ddd; }
.quiz-foot button { width: 100%; }
.quiz-foot small { display: block; margin-top: 5px; color: #606060; text-align: center; }
.reset { width: min(370px, calc(100% - 32px)); padding: 21px; border: 1px solid #dedede; border-radius: 25px; background: var(--paper); color: var(--ink); color-scheme: light; }
.reset::backdrop { background: #0008; }
.reset h2 { font-size: 20px; }
.reset p { margin: 10px 0 20px; color: var(--muted); font-size: 14px; }
.toast { position: fixed; z-index: 30; bottom: calc(15px + env(safe-area-inset-bottom)); left: 50%; transform: translate(-50%, 8px); max-width: min(560px, calc(100vw - 26px)); padding: 9px 15px; border: 1px solid #fff5; border-radius: 18px; background: #242424; color: white; text-align: center; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1120px) {
  .device-hint, .device-label { display: none; }
}
@media (max-width: 800px) {
  body { height: 100dvh; overflow: hidden; }
  .site-header {
    position: fixed; inset: 0 0 auto; z-index: 12;
    height: var(--mobile-header); padding: env(safe-area-inset-top) max(12px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
    background: #151515; border-bottom: 1px solid #303030;
  }
  .brand { gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  .brand strong { font-size: 14px; }
  .brand small { font-size: 9px; }
  .environment { display: none; }
  .mobile-tools { display: flex; align-items: center; gap: 7px; }
  .mobile-tools button { display: flex; align-items: center; gap: 4px; min-height: 44px; background: none; border: 0; border-radius: 24px; padding: 0 7px; color: #f3f3f3; font-size: 12px; white-space: nowrap; }
  .mobile-tools button svg { width: 18px; height: 18px; }
  .mobile-tools #openConsole { border: 1px solid #686868; padding-inline: 10px; background: #ffffff0e; box-shadow: inset 0 1px 1px #fff2; }
  .stage { display: block; width: 100%; height: calc(100dvh - var(--mobile-header)); margin: var(--mobile-header) 0 0; }
  .simulator, .phone, .screen { display: block; width: 100%; height: 100%; padding: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
  .statusbar, .home-indicator, .device-label, .device-hint { display: none; }
  .app-scroll { padding: 23px 18px calc(96px + env(safe-area-inset-bottom)); }
  .today-brand { position: absolute; right: 19px; top: 40px; margin: 0; }
  .today-brand span { display: none; }
  .app-heading { margin-bottom: 30px; }
  .app-heading h1 { font-size: 37px; }
  .today-brand + .app-heading h1 { max-width: 53%; }
  .progress-stats { margin-bottom: 24px; }
  .total b { font-size: 74px; }
  .tabbar { bottom: calc(10px + env(safe-area-inset-bottom)); }
  .console-scrim:not([hidden]) { display: block; position: fixed; inset: var(--mobile-header) 0 0; z-index: 13; width: 100%; border: 0; background: #0006; }
  .console {
    display: none;
    position: fixed; inset: auto 8px calc(8px + env(safe-area-inset-bottom)); z-index: 14;
    max-height: calc(100dvh - var(--mobile-header) - 16px - env(safe-area-inset-bottom)); overflow: auto; overscroll-behavior: contain;
    gap: 10px; padding: 15px 16px;
    background: #f8f8f8f2; color: var(--ink); color-scheme: light;
    border: 1px solid white; border-radius: 29px; backdrop-filter: blur(22px); box-shadow: 0 8px 28px #0005;
  }
  .console.open { display: grid; }
  .console-title { display: flex; align-items: center; justify-content: space-between; }
  .console-title h2 { font-size: 22px; }
  .round { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #e4e4e4; }
  .round svg { width: 17px; height: 17px; }
  .console-intro, .console .panel h2, .console .howto { display: none; }
  .console .panel { padding: 10px 12px; background: #fffc; border: 1px solid #dadada; border-radius: 15px; }
  .console .status-grid { border: 0; margin: 0; padding: 0; }
  .console .status-grid dt { color: var(--muted); font-size: 11px; }
  .console .status-grid dd { font-size: 14px; }
  .console .console-actions { border: 0; background: none; padding: 0; }
  .console .seg { margin: 4px 0 9px; border: 0; background: #ddd; }
  .console .seg button { color: #545454; }
  .console .seg button[aria-pressed="true"] { color: var(--ink); background: white; border-color: white; }
  .console-trigger, .console-trigger:hover:not(:disabled) { color: white; background: var(--ink); }
  .console-actions .text-button { color: var(--muted); }
  .console .foot { margin-top: 3px; padding: 10px 0 0; border-top: 1px solid #d5d5d5; color: var(--muted); text-align: center; font-size: 11px; }
  .home-grid { padding-top: 25px; }
  .home-hint { bottom: calc(28px + env(safe-area-inset-bottom)); }
  .feed-top { top: 13px; }
  .video-meta { bottom: calc(63px + env(safe-area-inset-bottom)); }
  .video-progress { bottom: calc(32px + env(safe-area-inset-bottom)); }
  .island { top: 54px; max-height: calc(100% - 68px - env(safe-area-inset-bottom)); }
  .heavy { inset: var(--mobile-header) 0 auto; width: 100%; height: calc(100dvh - var(--mobile-header)); border-radius: 0; padding: 8px 9px calc(10px + env(safe-area-inset-bottom)); }
  .heavy-card { max-height: calc(100dvh - var(--mobile-header) - 18px - env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  .app-scroll { padding-inline: 14px; }
  .today-brand { right: 15px; }
  .progress-card { padding: 13px; }
  .progress-stats { gap: 10px; }
  .weekly { padding-left: 11px; }
  .accuracy { gap: 5px; }
  .mobile-tools { gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
