/* Chart Slayer Pro mobile. Brand guide: Slayer Black, Slayer Orange, Barlow Condensed + Inter.
   Dark-first; light version follows the system or the in-app toggle. */
:root {
  --bg: #000000;
  --panel: #090909;
  --panel-2: #121212;
  --line: #222222;
  --fg: #F5F5F5;
  --muted: #A1A1A1;
  --accent: #FF8A16;
  --accent-soft: rgba(255,138,22,.14);
  --accent-ink: #000000;
  --good: #3DD68C;
  --good-soft: rgba(61,214,140,.14);
  --bad: #FF5C5C;
  --bad-soft: rgba(255,92,92,.14);
  --warn: #FFB547;
  --warn-soft: rgba(255,181,71,.14);
  --glow: 0 0 40px rgba(255,138,22,.18);
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #FFFFFF; --panel: #F5F6F7; --panel-2: #ECEEF0; --line: #DADDE1;
    --fg: #15171A; --muted: #5D636B; --accent: #D2500A; --accent-soft: rgba(210,80,10,.10);
    --accent-ink: #FFFFFF; --good: #10855A; --good-soft: rgba(16,133,90,.10);
    --bad: #C62828; --bad-soft: rgba(198,40,40,.09); --warn: #9A5B00; --warn-soft: rgba(154,91,0,.10);
    --glow: 0 10px 40px rgba(21,23,26,.10); color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #FFFFFF; --panel: #F5F6F7; --panel-2: #ECEEF0; --line: #DADDE1;
  --fg: #15171A; --muted: #5D636B; --accent: #D2500A; --accent-soft: rgba(210,80,10,.10);
  --accent-ink: #FFFFFF; --good: #10855A; --good-soft: rgba(16,133,90,.10);
  --bad: #C62828; --bad-soft: rgba(198,40,40,.09); --warn: #9A5B00; --warn-soft: rgba(154,91,0,.10);
  --glow: 0 10px 40px rgba(21,23,26,.10); color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .02em; margin: 0; text-wrap: balance; line-height: 1.05; }
.num { font-variant-numeric: tabular-nums; }

/* Full-height app column; on a big screen it centers at phone width. */
.shell { position: relative; height: 100%; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; overflow: hidden; background: var(--bg); }
@media (min-width: 600px) { .shell { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }

.appbar { display: flex; align-items: center; gap: 10px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); padding-bottom: 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); border-bottom: 1px solid var(--line); background: var(--bg); }
.appbar img { width: 32px; height: 32px; border-radius: 8px; }
.brand { display: flex; flex-direction: column; line-height: 1; flex: 1; min-width: 0; }
.brand b { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.brand b span { color: var(--accent); }
.brand small { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-top: 3px; }
.icon-btn { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; position: relative; }
.icon-btn svg { width: 19px; height: 19px; stroke: var(--fg); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); border: 2px solid var(--panel); }

main { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding-block: 16px 24px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); -webkit-overflow-scrolling: touch; }
.screen { display: flex; flex-direction: column; gap: 14px; }
.center-screen { min-height: 70%; justify-content: center; align-items: stretch; }
.screen-head { display: flex; flex-direction: column; gap: 4px; }
.screen-head h2 { font-size: 30px; }
.screen-head p { margin: 0; color: var(--muted); font-size: 13.5px; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.eyebrow.accent { color: var(--accent); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-head h3 { font-size: 19px; }
.row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.row.wrap { flex-wrap: wrap; }
.spread { justify-content: space-between; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; }
.empty { color: var(--muted); font-size: 13.5px; padding: 6px 0; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.chip.accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.chip.good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.chip.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.chip.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.btn { border: 1px solid var(--line); background: var(--panel-2); border-radius: 14px; padding: 12px 16px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; color: var(--fg); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--bad); }
.btn.block { width: 100%; }
.btn.sm { padding: 8px 12px; font-size: 13px; border-radius: 11px; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Sign-in */
.signin { display: flex; flex-direction: column; gap: 18px; padding-top: calc(24px + env(safe-area-inset-top, 0px)); }
.signin .logo { width: 88px; height: 88px; border-radius: 22px; box-shadow: var(--glow); }
.signin h1 { font-size: 40px; }
.signin h1 span { color: var(--accent); }
.signin p { margin: 0; color: var(--muted); }

/* Today */
.sessions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sess { border: 1px solid var(--line); border-radius: 14px; padding: 10px; background: var(--panel); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sess b { font-family: var(--font-display); font-size: 17px; text-transform: uppercase; letter-spacing: .03em; }
.sess span { font-size: 11.5px; color: var(--muted); }
.sess.on { border-color: var(--accent); background: var(--accent-soft); }
.sess.on span { color: var(--accent); }
.quote { background: radial-gradient(120% 140% at 100% 0%, var(--accent-soft), transparent 60%), var(--panel); }
.quote blockquote { margin: 0; font-family: var(--font-serif); font-size: 21px; line-height: 1.3; font-style: italic; }
.quote cite { font-style: normal; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.meter { height: 8px; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .3s; }
.stat-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--panel-2); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.stat b { font-family: var(--font-display); font-size: 28px; line-height: 1; }
.stat b small { font-size: 16px; color: var(--muted); }
.moods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mood { border: 1px solid var(--line); background: var(--panel-2); border-radius: 12px; padding: 10px 4px; font-size: 12.5px; font-weight: 600; }
.mood[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.notice { border-radius: 12px; padding: 10px 12px; font-size: 13px; background: var(--warn-soft); color: var(--warn); }
.notice.good { background: var(--good-soft); color: var(--good); }
.notice.bad { background: var(--bad-soft); color: var(--bad); }
.notice.info { background: var(--panel-2); color: var(--muted); }
.list { display: flex; flex-direction: column; }
.li { display: grid; grid-template-columns: 62px 1fr auto; gap: 10px; align-items: center; padding-block: 10px; border-top: 1px solid var(--line); }
.li:first-child { border-top: 0; padding-top: 0; }
.li time { font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.li div { min-width: 0; }
.li div b { display: block; font-size: 14px; font-weight: 600; }
.li div span { font-size: 12px; color: var(--muted); }
.lesson { display: flex; gap: 12px; align-items: center; }
.lesson .badge { width: 52px; height: 52px; flex: none; border-radius: 14px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.lesson div { flex: 1; min-width: 0; }

/* Alerts */
.filters { display: flex; gap: 8px; overflow-x: auto; }
.filter { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.filter[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.alert { text-align: left; width: 100%; border: 1px solid var(--line); background: var(--panel); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.alert.new { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.alert-top { display: flex; align-items: center; gap: 10px; }
.dir { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: .03em; }
.dir.long { color: var(--good); }
.dir.short { color: var(--bad); }
.sym { font-family: var(--font-display); font-weight: 600; font-size: 22px; }
.alert-top .time { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.zone { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 12px; color: var(--muted); background: var(--panel-2); padding: 3px 8px; border-radius: 6px; overflow-wrap: anywhere; }
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.levels div { background: var(--panel-2); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; min-width: 0; }
.levels span { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.levels b { font-size: 14px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.htf { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.htf div { border-radius: 10px; padding: 8px 4px; text-align: center; font-size: 12px; font-weight: 600; background: var(--panel-2); display: flex; flex-direction: column; gap: 2px; }
.htf div small { font-weight: 500; font-size: 10.5px; color: var(--muted); }
.htf .L { background: var(--good-soft); color: var(--good); }
.htf .S { background: var(--bad-soft); color: var(--bad); }

/* Checklist */
.checks { display: flex; flex-direction: column; gap: 8px; }
.check { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; padding: 12px; border-radius: 14px; background: var(--panel-2); cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box { width: 28px; height: 28px; border-radius: 9px; border: 2px solid var(--line); display: grid; place-items: center; transition: background .15s, border-color .15s; }
.check .box svg { width: 16px; height: 16px; stroke: var(--accent-ink); stroke-width: 3; fill: none; opacity: 0; }
.check input:checked + .box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .box svg { opacity: 1; }
.check input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.check b { display: block; font-size: 14.5px; }
.check span.d { font-size: 12.5px; color: var(--muted); }
.result { border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.result b { font-family: var(--font-display); font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }
.result.pass { background: var(--bad-soft); color: var(--bad); }
.result.go { background: var(--good-soft); color: var(--good); }
.result.wait { background: var(--panel-2); color: var(--muted); }
.result p { margin: 0; font-size: 13px; }
label.field, div.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 16px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; width: 100%; color: var(--fg); }
.field textarea { resize: vertical; min-height: 64px; }
.toggle-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tchip { border: 1px solid var(--line); background: var(--panel-2); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.tchip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
details.soft summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.soft summary::-webkit-details-marker { display: none; }
details.soft summary::after { content: "+"; font-size: 20px; color: var(--muted); }
details.soft[open] summary::after { content: "–"; }
details.soft ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 8px; color: var(--muted); font-size: 13.5px; }

/* Journal */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 4px; }
.seg button { border: 0; background: transparent; padding: 9px; border-radius: 10px; font-weight: 600; font-size: 13.5px; color: var(--muted); }
.seg button[aria-selected="true"] { background: var(--panel-2); color: var(--fg); }
.entry { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.entry:first-of-type { border-top: 0; padding-top: 0; }
.entry ol { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--muted); display: grid; gap: 2px; }
.grade-big { font-family: var(--font-display); font-size: 56px; font-weight: 700; line-height: 1; }
.grade-big small { font-size: 26px; color: var(--muted); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .dow { text-align: center; font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .06em; }
.cal .day { aspect-ratio: 1; max-width: 100%; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12.5px; background: var(--panel-2); color: var(--muted); gap: 1px; }
.cal .day b { font-size: 11px; font-weight: 700; }
.cal .day.g5 { background: var(--good); color: var(--accent-ink); }
.cal .day.g4 { background: var(--good-soft); color: var(--good); }
.cal .day.g3 { background: var(--warn-soft); color: var(--warn); }
.cal .day.g2, .cal .day.g1, .cal .day.g0 { background: var(--bad-soft); color: var(--bad); }
.cal .day.today { outline: 2px solid var(--accent); outline-offset: -2px; }
.cal .day.blank { background: transparent; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; }

/* Slayer AI */
.chat { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 11px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.bot { background: var(--panel); border: 1px solid var(--line); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg.me { background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; align-self: flex-end; }
.msg.err { background: var(--bad-soft); color: var(--bad); align-self: flex-start; }
.msg .src { display: block; margin-top: 6px; font-size: 11.5px; color: var(--muted); white-space: normal; }
.typing { align-self: flex-start; color: var(--muted); font-size: 13px; }
.suggest { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.suggest button { flex: none; }
.composer { display: flex; gap: 8px; padding-block: 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); border-top: 1px solid var(--line); background: var(--bg); }
.composer input { flex: 1; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 11px 14px; font-size: 16px; }

/* Tab bar */
.tabbar { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); background: var(--bg); padding-top: 6px; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); padding-left: max(6px, env(safe-area-inset-left, 0px)); padding-right: max(6px, env(safe-area-inset-right, 0px)); }
.tab { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; font-size: 10.5px; font-weight: 600; letter-spacing: .03em; color: var(--muted); border-radius: 12px; position: relative; }
.tab svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab[aria-selected="true"] { color: var(--accent); }
.tab .count { position: absolute; top: 2px; right: calc(50% - 20px); background: var(--accent); color: var(--accent-ink); font-size: 10px; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }

/* In-app banner, sheets, toast */
.push { position: absolute; z-index: 30; left: 10px; right: 10px; top: calc(10px + env(safe-area-inset-top, 0px)); background: var(--panel-2); border: 1px solid var(--line); border-radius: 20px; padding: 12px 14px; display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; box-shadow: 0 16px 40px rgba(0,0,0,.45); text-align: left; animation: drop .35s cubic-bezier(.2,.9,.3,1.2); }
@keyframes drop { from { transform: translateY(-140%); } to { transform: none; } }
.push img { width: 38px; height: 38px; border-radius: 10px; }
.push b { font-size: 13.5px; display: block; }
.push span { font-size: 13px; color: var(--muted); display: block; }
.push .app { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.scrim { position: absolute; inset: 0; z-index: 40; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.show { opacity: 1; pointer-events: auto; }
.sheet { position: absolute; z-index: 41; left: 0; right: 0; bottom: 0; max-height: 90%; overflow-y: auto; background: var(--panel); border-top: 1px solid var(--line); border-radius: 26px 26px 0 0; padding-top: 10px; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); transform: translateY(105%); transition: transform .3s cubic-bezier(.2,.8,.3,1); display: flex; flex-direction: column; gap: 14px; }
.sheet.show { transform: translateY(0); }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); align-self: center; flex: none; }
.setting { display: flex; align-items: center; gap: 12px; padding-block: 12px; border-top: 1px solid var(--line); }
.setting:first-child { border-top: 0; }
.setting div { flex: 1; min-width: 0; }
.setting b { display: block; font-size: 14.5px; font-weight: 600; }
.setting span { font-size: 12.5px; color: var(--muted); }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--line); transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.time-input { width: 104px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; font-size: 15px; }
.flash { min-height: 150px; border-radius: 18px; background: var(--panel-2); border: 1px solid var(--line); padding: 18px; display: flex; flex-direction: column; justify-content: center; gap: 10px; text-align: left; width: 100%; }
.flash .q { font-family: var(--font-display); font-size: 24px; text-transform: uppercase; line-height: 1.1; }
.timer { font-family: var(--font-display); font-size: 44px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.toast { position: absolute; z-index: 50; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; align-self: center; }
@keyframes spin { to { transform: rotate(360deg); } }

/* News calendar + headlines */
.links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ext { font-size: 11.5px; font-weight: 600; color: var(--accent); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.ext::after { content: " ↗"; }
.figs { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.figs b { color: var(--fg); font-weight: 600; }
.headline { display: grid; grid-template-columns: 1fr 64px; gap: 12px; padding-block: 10px; border-top: 1px solid var(--line); text-decoration: none; color: var(--fg); }
.headline:first-child { border-top: 0; padding-top: 0; }
.headline.noimg { grid-template-columns: 1fr; }
.headline b { font-size: 14px; font-weight: 600; line-height: 1.3; display: block; }
.headline span { font-size: 11.5px; color: var(--muted); }
.headline img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--panel-2); }
.hot { color: var(--accent); font-weight: 700; }
.day-head { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 8px; }

/* Events */
.event { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding-block: 10px; border-top: 1px solid var(--line); text-align: left; width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; }
.event:first-child { border-top: 0; padding-top: 0; }
.event .when { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px; background: var(--panel-2); padding: 6px 0; line-height: 1.1; }
.event .when b { font-family: var(--font-display); font-size: 20px; }
.event .when small { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.event .when.soon { background: var(--accent-soft); color: var(--accent); }
.event div.t { min-width: 0; }
.event div.t b { display: block; font-size: 14.5px; font-weight: 600; }
.event div.t span { font-size: 12px; color: var(--muted); }

/* Library */
.pick { display: flex; flex-direction: column; gap: 12px; }
.thumb { position: relative; width: 100%; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 14px; overflow: hidden; background: var(--panel-2); display: grid; place-items: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .glyph { font-family: var(--font-display); font-size: 40px; color: var(--accent); text-transform: uppercase; }
.thumb .play { position: absolute; inset: auto 10px 10px auto; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.thumb .play svg { width: 18px; height: 18px; fill: var(--accent-ink); margin-left: 3px; }
.lib-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; align-items: center; padding-block: 10px; border-top: 1px solid var(--line); text-align: left; width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; }
.lib-item:first-child { border-top: 0; padding-top: 0; }
.lib-item .mini { width: 96px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--panel-2); display: grid; place-items: center; }
.lib-item .mini img { width: 100%; height: 100%; object-fit: cover; }
.lib-item .mini .glyph { font-family: var(--font-display); font-size: 18px; color: var(--accent); text-transform: uppercase; }
.lib-item div.t { min-width: 0; }
.lib-item div.t b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.lib-item div.t span { font-size: 12px; color: var(--muted); }
.done-mark { color: var(--good); font-weight: 700; font-size: 18px; }
.embed { width: 100%; aspect-ratio: 16 / 9; max-width: 100%; border: 0; border-radius: 14px; background: #000; }
.field select { appearance: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
