:root {
  --bg: #151412;
  --panel: #1a1917;
  --card: #201f1c;
  --card-2: #272522;
  --hover: #2c2a27;
  --line: #2f2d29;
  --line-2: #3b3834;
  --text: #eeebe5;
  --text-2: #c7c3ba;
  --muted: #9c978d;
  --faint: #706c64;
  --accent: #9aa8ff;
  --accent-2: #7f8fff;
  --accent-soft: rgba(139, 156, 255, .12);
  --accent-line: rgba(139, 156, 255, .35);
  --ok: #4ade80;
  --ok-soft: rgba(74, 222, 128, .12);
  --mid: #fbbf24;
  --mid-soft: rgba(251, 191, 36, .12);
  --warn: #fb7185;
  --warn-soft: rgba(251, 113, 133, .12);
  --new: #8a91a0;
  --new-soft: rgba(138, 145, 160, .12);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 8px 24px rgba(0, 0, 0, .25);
  --font: Inter, "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f5f6f8; --panel: #eef0f4; --card: #ffffff; --card-2: #f7f8fa; --hover: #eef0f5; --line: #e3e6ec; --line-2: #d5d9e1;
  --text: #14171c; --text-2: #3b414d; --muted: #6a7180; --faint: #9aa0ac; --accent: #4f63e6; --accent-2: #3d51d6;
  --accent-soft: rgba(79, 99, 230, .09); --accent-line: rgba(79, 99, 230, .35); --ok: #16a34a; --ok-soft: rgba(22, 163, 74, .1);
  --mid: #d97706; --mid-soft: rgba(217, 119, 6, .1); --warn: #e11d48; --warn-soft: rgba(225, 29, 72, .09);
  --new: #6a7180; --new-soft: rgba(106, 113, 128, .1); --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 18px rgba(16, 24, 40, .05);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body { font: 14.5px/1.55 var(--font); -webkit-font-smoothing: antialiased; letter-spacing: -.003em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font-family: var(--mono); font-size: .88em; background: var(--card-2); border: 1px solid var(--line); padding: 1px 5px; border-radius: 6px; }
pre { font-family: var(--mono); font-size: 13px; background: var(--panel); border: 1px solid var(--line); padding: 12px 14px; border-radius: 10px; overflow-x: auto; }
pre code { background: none; border: 0; padding: 0; }
h1, h2, h3 { margin: 0; letter-spacing: -.015em; }
h1 { font-size: 22px; font-weight: 650; }
h2 { font-size: 15px; font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 15px; height: 15px; }
svg.i.lg { width: 22px; height: 22px; }

.shell { display: grid; grid-template-columns: 236px 1fr; height: 100vh; }
.nav { display: flex; flex-direction: column; gap: 2px; padding: 18px 12px 14px; background: var(--panel); border-right: 1px solid var(--line); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 10px 18px; font-weight: 650; font-size: 15.5px; }
.logo { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), #b06cff); color: #fff; font-size: 14px; }
.nav-sec { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); padding: 14px 12px 6px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 9px; color: var(--text-2); font-weight: 500; position: relative; }
.nav a:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.nav a.active { background: var(--accent-soft); color: var(--text); }
.nav a.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav a.active svg { color: var(--accent); }
.nav .badge { margin-left: auto; font-size: 11.5px; font-weight: 600; padding: 0 7px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.nav-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 14px; }
.view { overflow-y: auto; height: 100vh; }
.page { max-width: 1240px; margin: 0 auto; padding: 26px 34px 60px; }
.page.full { max-width: none; padding: 0; height: 100vh; }

.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.head .sub { color: var(--muted); margin-top: 4px; }
.head .actions { display: flex; gap: 8px; align-items: center; }
.crumb { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.crumb:hover { color: var(--text); text-decoration: none; }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.span2 { grid-column: span 2; }
.mt { margin-top: 16px; }
.mt-l { margin-top: 26px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); min-width: 0; }
.card.flat { box-shadow: none; }
.card.pad-0 { padding: 0; }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-h h2 { flex: 1; }
.card-h .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--card-2); color: var(--accent); border: 1px solid var(--line); }
.card-h a, .card-h .link { font-size: 13px; color: var(--muted); }
.card-h a:hover { color: var(--text); }
.click { cursor: pointer; transition: border-color .15s, transform .15s, background .15s; }
.click:hover { border-color: var(--line-2); background: var(--card-2); }

.stat-tile { display: flex; flex-direction: column; gap: 6px; }
.stat-tile .label { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 7px; }
.stat-tile .value { font-size: 26px; font-weight: 650; letter-spacing: -.02em; }
.stat-tile .hint { color: var(--faint); font-size: 12.5px; }

.row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.muted { color: var(--muted); }
.faint { color: var(--faint); font-size: 12.5px; }
.small { font-size: 13px; }
.empty { color: var(--faint); padding: 18px 0; text-align: center; font-size: 13.5px; }
.empty .i { display: block; margin: 0 auto 8px; width: 26px; height: 26px; opacity: .6; }

.list { display: flex; flex-direction: column; }
.item { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-top: 1px solid var(--line); min-width: 0; }
.item:first-child { border-top: 0; }
.item.click { margin: 0 -8px; padding: 11px 12px; border-radius: 10px; border-top-color: transparent; }
.item.click + .item.click { border-top: 0; }
.item .title { font-weight: 500; }
.item .meta { color: var(--muted); font-size: 12.5px; margin-top: 1px; }

.cc { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 650; letter-spacing: .02em; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.cc::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: currentColor; }
.cbox { width: 46px; height: 46px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; letter-spacing: .03em; flex: none; line-height: 1.1; }
.cbox small { font-size: 10.5px; font-weight: 600; opacity: .85; font-family: var(--mono); }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.known, .pill.done, .pill.submitted, .pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.shaky, .pill.draft, .pill.ready, .pill.mid, .pill.warn { background: var(--mid-soft); color: var(--mid); }
.pill.unknown, .pill.overdue, .pill.bad, .pill.danger { background: var(--warn-soft); color: var(--warn); }
.pill.new, .pill.open { background: var(--new-soft); color: var(--muted); }
.pill.accent { background: var(--accent-soft); color: var(--accent); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.known { background: var(--ok); } .dot.shaky { background: var(--mid); } .dot.unknown { background: var(--warn); } .dot.new { background: var(--line-2); }

.due { font-family: var(--mono); font-size: 12px; padding: 3px 8px; border-radius: 7px; background: var(--card-2); color: var(--text-2); white-space: nowrap; border: 1px solid var(--line); }
.due.hot { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.due.soon { background: var(--mid-soft); color: var(--mid); border-color: transparent; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--card-2); cursor: pointer; font-weight: 550; font-size: 13.5px; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--hover); border-color: var(--faint); text-decoration: none; }
.btn.primary { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--hover); color: var(--text); }
.btn.danger { color: var(--warn); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn.icon { width: 34px; padding: 0; }
.btn.sm.icon { width: 28px; }
.btn:disabled { opacity: .5; cursor: default; }

input[type=text], input[type=time], input[type=number], input[type=date], select, textarea {
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 9px; padding: 0 11px; height: 36px; outline: none; max-width: 100%; transition: border-color .15s, box-shadow .15s; }
textarea { padding: 9px 11px; height: auto; width: 100%; resize: vertical; min-height: 80px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
label.field { display: flex; flex-direction: column; gap: 6px; }
label.field > span { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.switch { position: relative; width: 38px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line-2); border-radius: 99px; transition: .15s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; }
.switch input:checked + span { background: var(--accent-2); }
.switch input:checked + span::before { transform: translateX(16px); }

.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 6px 12px; border-radius: 8px; cursor: pointer; font-weight: 550; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--card-2); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.seg .n { font-size: 11px; padding: 0 6px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }

.meter { height: 6px; background: var(--card-2); border-radius: 99px; overflow: hidden; display: flex; }
.meter > i { display: block; height: 100%; }
.meter .k { background: var(--ok); } .meter .s { background: var(--mid); } .meter .u { background: var(--warn); } .meter .n { background: var(--line-2); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

.banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--text); margin-bottom: 16px; cursor: pointer; }
.banner svg { color: var(--accent); }
.banner.warn { border-color: rgba(251, 113, 133, .35); background: var(--warn-soft); }
.banner.warn svg { color: var(--warn); }
.banner .go { margin-left: auto; color: var(--muted); font-size: 13px; }

.timeline { position: relative; display: flex; flex-direction: column; }
.lesson { display: grid; grid-template-columns: 64px 14px 1fr; gap: 12px; padding: 9px 0; align-items: start; }
.lesson .t { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); padding-top: 2px; text-align: right; }
.lesson .t small { display: block; color: var(--faint); font-size: 11px; }
.lesson .rail { position: relative; height: 100%; display: flex; justify-content: center; }
.lesson .rail::before { content: ""; position: absolute; top: 18px; bottom: -18px; width: 2px; background: var(--line); }
.lesson:last-child .rail::before { display: none; }
.lesson .rail b { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; border: 2px solid currentColor; background: var(--card); z-index: 1; }
.lesson.now .rail b { background: currentColor; box-shadow: 0 0 0 4px var(--accent-soft); }
.lesson.past { opacity: .5; }

.course-card { display: flex; flex-direction: column; gap: 14px; }
.course-card .top { display: flex; gap: 12px; align-items: center; }
.course-card h3 { font-weight: 600; line-height: 1.35; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { border: 0; background: transparent; color: var(--muted); padding: 10px 14px; cursor: pointer; font-weight: 550; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); border-bottom-color: var(--accent); }

.topic { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.topic:first-child { border-top: 0; }
.topic select { height: 28px; font-size: 12.5px; padding: 0 8px; border-radius: 8px; }
.secname { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); margin: 18px 0 4px; font-weight: 600; }
.secname:first-child { margin-top: 0; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t td, table.t th { padding: 9px 6px; border-top: 1px solid var(--line); vertical-align: top; text-align: left; }
table.t th { color: var(--faint); font-weight: 600; font-size: 12px; border-top: 0; }
table.t td.v { text-align: right; font-family: var(--mono); white-space: nowrap; }

.md p { margin: 0 0 10px; } .md p:last-child { margin-bottom: 0; }
.md ul, .md ol { margin: 4px 0 10px; padding-left: 20px; } .md li { margin: 3px 0; }
.md h3 { margin: 22px 0 10px; font-size: 19px; }
.md h4 { margin: 20px 0 8px; font-size: 16.5px; }
.md h5 { margin: 16px 0 6px; font-size: 14.5px; }
.md h6 { margin: 12px 0 4px; font-size: 13.5px; color: var(--text-2); }
.md h3:first-child, .md h4:first-child, .md h5:first-child { margin-top: 0; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.md blockquote { margin: 10px 0; padding: 8px 14px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; }
.md .tbl { overflow-x: auto; margin: 10px 0; }
.md table { border-collapse: collapse; min-width: 50%; font-size: 13.5px; }
.md th, .md td { border: 1px solid var(--line-2); padding: 7px 10px; text-align: left; vertical-align: top; }
.md th { background: var(--card-2); font-weight: 600; }

.chat-page { display: grid; grid-template-columns: 270px 1fr; height: 100vh; }
.threads { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.threads-h { padding: 18px 14px 10px; display: flex; flex-direction: column; gap: 10px; }
.threads-list { flex: 1; overflow-y: auto; padding: 4px 8px 14px; }
.thread { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 9px; cursor: pointer; color: var(--text-2); font-size: 13.5px; }
.thread:hover { background: var(--hover); color: var(--text); }
.thread.on { background: var(--card-2); color: var(--text); font-weight: 550; }
.thread .acts { display: none; gap: 2px; }
.thread:hover .acts { display: inline-flex; }
.thread .acts button { border: 0; background: transparent; color: var(--muted); padding: 3px; border-radius: 6px; cursor: pointer; display: grid; place-items: center; }
.thread .acts button:hover { background: var(--line); color: var(--text); }
.conv { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.conv-h { display: flex; align-items: center; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent), #b06cff); flex: none; font-size: 14px; }
.avatar.sm { width: 28px; height: 28px; font-size: 12px; }
.msgs { flex: 1; overflow-y: auto; padding: 26px 24px 10px; }
.msgs-in { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.msg { display: flex; gap: 12px; min-width: 0; }
.msg .body { min-width: 0; flex: 1; overflow-wrap: anywhere; line-height: 1.65; }
.msg.user { justify-content: flex-end; }
.msg.user .body { flex: none; max-width: 80%; background: var(--card-2); border: 1px solid var(--line); padding: 10px 14px; border-radius: 16px 16px 4px 16px; white-space: pre-wrap; }
.msg .att { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.msg .rate { display: flex; gap: 4px; margin-top: 8px; opacity: 0; transition: opacity .15s; }
.msg:hover .rate, .msg:last-child .rate { opacity: 1; }
.typing { display: inline-flex; gap: 4px; padding: 8px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.welcome { max-width: 640px; margin: 8vh auto 0; text-align: center; }
.welcome .avatar { width: 56px; height: 56px; font-size: 22px; margin: 0 auto 14px; }
.suggest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; text-align: left; }
.suggest button { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 12px 14px; cursor: pointer; color: var(--text-2); text-align: left; display: flex; gap: 10px; align-items: flex-start; }
.suggest button:hover { border-color: var(--line-2); background: var(--card-2); color: var(--text); }
.suggest svg { color: var(--accent); margin-top: 1px; }
.composer-wrap { padding: 10px 24px 18px; }
.composer { max-width: 780px; margin: 0 auto; background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; padding: 8px; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, box-shadow .15s; }
.composer:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); }
.composer textarea { border: 0; background: transparent; box-shadow: none; min-height: 24px; max-height: 220px; padding: 6px 8px; resize: none; }
.composer textarea:focus { box-shadow: none; }
.composer .bar { display: flex; align-items: center; gap: 6px; }
.composer .hint { color: var(--faint); font-size: 12px; margin-left: 4px; }
.files { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 4px; }
.file-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 240px; padding: 4px 8px 4px 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--card-2); font-size: 12.5px; }
.file-chip img { width: 30px; height: 30px; object-fit: cover; border-radius: 7px; }
.file-chip .fi { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; background: var(--panel); color: var(--accent); }
.file-chip button { border: 0; background: transparent; cursor: pointer; color: var(--muted); }
.conv.drop .composer { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.agent { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; }
.tree .agent { position: relative; }
.tree .d2 { margin-left: 26px; } .tree .d3 { margin-left: 52px; }
.tree .d2::before, .tree .d3::before { content: ""; position: absolute; left: -16px; top: -10px; bottom: 50%; width: 12px; border-left: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); border-bottom-left-radius: 8px; }

.quiz-q { padding: 18px 0; border-top: 1px solid var(--line); }
.quiz-q:first-child { border-top: 0; padding-top: 0; }
.opt { display: flex; gap: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 11px; margin-top: 8px; cursor: pointer; align-items: flex-start; background: var(--panel); }
.opt:hover { border-color: var(--line-2); }
.opt .k { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: var(--card-2); font-size: 12px; font-weight: 700; flex: none; }
.opt.sel { border-color: var(--accent); background: var(--accent-soft); }
.opt.sel .k { background: var(--accent-2); color: #fff; }
.opt.right { border-color: var(--ok); background: var(--ok-soft); }
.opt.wrong { border-color: var(--warn); background: var(--warn-soft); }
.expl { margin-top: 10px; font-size: 13.5px; color: var(--text-2); padding: 10px 12px; border-radius: 10px; background: var(--card-2); }

.flash-wrap { max-width: 620px; margin: 0 auto; }
.flash { font-size: 19px; line-height: 1.5; padding: 34px 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); min-height: 160px; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.flash.back { border-color: var(--accent-line); background: var(--accent-soft); font-size: 16px; margin-top: 10px; }
.grades { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.grades .btn { height: 44px; flex-direction: column; gap: 0; line-height: 1.2; }
.grades .btn small { font-size: 10.5px; color: var(--faint); font-weight: 500; }

.bars { display: flex; align-items: flex-end; gap: 5px; height: 130px; }
.bars .bar { flex: 1; background: var(--accent-2); border-radius: 5px 5px 2px 2px; min-height: 3px; opacity: .85; }
.bars .bar:hover { opacity: 1; }
.bars .bar.today { background: var(--ok); }
.bars-labels { display: flex; gap: 5px; font-size: 10.5px; color: var(--faint); margin-top: 6px; }
.bars-labels span { flex: 1; text-align: center; }

.timer { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--card); display: flex; flex-direction: column; gap: 8px; }
.timer .lbl { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12.5px; }
.timer .clock { font-family: var(--mono); font-size: 24px; font-weight: 600; letter-spacing: .02em; }
.timer.on { border-color: var(--accent-line); background: var(--accent-soft); }
.me { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--text-2); }
.me:hover { background: var(--hover); text-decoration: none; color: var(--text); }

.mt-s { margin-top: 8px; }
.meter.live { position: relative; }
.meter.live::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(139, 156, 255, .35), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: slidebar 1.6s linear infinite; }
@keyframes slidebar { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.agent-mini { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; font-size: 12.5px; color: var(--text-2); min-width: 0; }
.agent-mini a { color: var(--text-2); }
.agent-mini a:hover { color: var(--text); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 0 var(--accent-line); animation: pulse 1.6s infinite; }
.pulse.idle { background: var(--ok); animation: none; }
.pulse.off { background: var(--mid); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--accent-line); } 70% { box-shadow: 0 0 0 7px rgba(0, 0, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); } }
.agent-panel { margin-bottom: 16px; border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-soft), transparent 70%), var(--card); }
.job-live { display: block; padding: 10px 12px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 8px; color: var(--text); }
.job-live:hover { border-color: var(--line-2); text-decoration: none; }
.job-live.warn { border-color: rgba(251, 191, 36, .45); background: var(--mid-soft); }
.job-live .title { font-weight: 550; }
.board { align-items: start; }
.card.job { display: block; color: var(--text); padding: 14px 16px; }
.card.job:hover { text-decoration: none; }
.card.job .title { font-weight: 550; line-height: 1.4; }
.steps { display: flex; flex-direction: column; }
.stp { display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; position: relative; color: var(--text-2); }
.stp i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-2); margin-top: 4px; flex: none; background: var(--card); z-index: 1; }
.stp:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 20px; bottom: -8px; width: 2px; background: var(--line); }
.stp.done i { background: var(--ok); border-color: var(--ok); }
.stp.now i { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.stp.now span { color: var(--text); font-weight: 550; }
.jtypes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.jtype { display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--card); cursor: pointer; color: var(--text-2); }
.jtype:hover { border-color: var(--line-2); color: var(--text); }
.jtype.on { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.jtype svg { color: var(--accent); margin-top: 2px; }
.jtype b { display: block; font-size: 13.5px; font-weight: 600; }
.jtype small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.35; margin-top: 2px; }
.search { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; padding: 0 10px; min-width: 260px; color: var(--muted); }
.search input { border: 0; background: transparent; box-shadow: none !important; padding: 0; flex: 1; }
.doc-card { display: block; color: var(--text); }
.doc-card:hover { text-decoration: none; }
.doc-card .title { font-weight: 600; line-height: 1.4; }
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; align-items: start; }
.doc-body { padding: 30px 36px; font-size: 15px; line-height: 1.7; }
.doc-body h4 { font-size: 17px; margin: 22px 0 8px; }
.doc-body h4:first-child { margin-top: 0; }
.doc-body table, .md table { border-collapse: collapse; margin: 10px 0; }
.doc-src { min-height: 60vh; font-family: var(--mono); font-size: 13px; line-height: 1.55; }
.bell { position: relative; }
.dotn { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; border-radius: 99px; background: var(--warn); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.notif { display: block; color: var(--text); padding: 12px 14px; }
.notif:hover { text-decoration: none; border-color: var(--line-2); }
.notif.unread { border-color: var(--accent-line); }
.badge[hidden] { display: none; }
@media (max-width: 1100px) { .doc-layout { grid-template-columns: 1fr; } .jtypes { grid-template-columns: 1fr; } }
@media print {
  .nav, .no-print, .crumb, .sheet, .toast { display: none !important; }
  .shell { display: block; } .view { height: auto; overflow: visible; }
  body, .doc-body { background: #fff; color: #111; }
  .doc-layout { display: block; } .doc-body { border: 0; box-shadow: none; padding: 0; }
  .doc-body code, .doc-body pre { background: #f3f4f6; color: #111; border-color: #ddd; }
}
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; justify-content: flex-end; }
.sheet[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(5, 7, 10, .55); backdrop-filter: blur(2px); }
.sheet-panel { position: relative; width: min(600px, 100%); height: 100%; overflow-y: auto; background: var(--bg); border-left: 1px solid var(--line); padding: 26px 28px 60px; animation: slide .18s ease; }
.sheet-close { position: absolute; top: 16px; right: 16px; border: 1px solid var(--line); background: var(--card); width: 32px; height: 32px; border-radius: 9px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.sheet-close:hover { color: var(--text); }
@keyframes slide { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--card-2); border: 1px solid var(--line-2); color: var(--text); padding: 10px 16px; border-radius: 11px; z-index: 60; font-weight: 500; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.skeleton { height: 13px; border-radius: 6px; background: linear-gradient(90deg, var(--card-2), var(--hover), var(--card-2)); background-size: 200% 100%; animation: sh 1.2s infinite; margin: 10px 0; }
@keyframes sh { to { background-position: -200% 0; } }
.login { max-width: 420px; margin: 20vh auto; text-align: center; }

@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-main, .g3 { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 64px 1fr; }
  .nav { padding: 14px 8px; align-items: center; }
  .nav a span, .brand span:not(.logo), .nav-sec, .nav .badge, .nav-bottom .timer, .me span { display: none; }
  .nav a.active::before { left: -8px; }
  .page { padding: 20px 18px 50px; }
  .g2 { grid-template-columns: 1fr; }
  .chat-page { grid-template-columns: 1fr; }
  .threads { display: none; }
  .suggest { grid-template-columns: 1fr; }
}
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 26px 18px; border: 1.5px dashed var(--line); border-radius: 14px; background: var(--panel); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone .i { width: 26px; height: 26px; color: var(--accent); }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
#am-files .file-chip { max-width: 100%; display: flex; padding: 6px 8px 6px 10px; }
#am-files .file-chip .ellipsis { flex: 1; min-width: 0; }
.icon-btn { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 2px; display: inline-grid; place-items: center; border-radius: 6px; }
.icon-btn:hover { color: var(--text); background: var(--card-2); }
#lib-page { position: relative; min-height: 70vh; }
.drop-hint { display: none; position: absolute; inset: 0; z-index: 5; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 2px dashed var(--accent); border-radius: 18px; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(2px); color: var(--muted); pointer-events: none; }
.drop-hint .i { width: 34px; height: 34px; color: var(--accent); }
.drop-hint b { color: var(--text); font-size: 17px; }
#lib-page.dragging .drop-hint { display: flex; }
.doc-body.folded { max-height: 900px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.points { margin: 12px 0 0; padding-left: 20px; line-height: 1.6; }
.points li { margin: 3px 0; }
.src-card .title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nav-search { display: flex; align-items: center; gap: 9px; width: 100%; margin: -6px 0 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--muted); cursor: pointer; font: inherit; font-size: 13.5px; }
.nav-search:hover { color: var(--text); border-color: var(--line-2); }
.nav-search span { flex: 1; text-align: left; }
kbd { font: 500 11px/1 'JetBrains Mono', monospace; padding: 3px 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; color: var(--faint); background: var(--card); }
.palette { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.palette[hidden] { display: none; }
.palette-backdrop { position: absolute; inset: 0; background: rgba(5, 7, 10, .55); backdrop-filter: blur(3px); }
.palette-box { position: relative; width: min(720px, 100%); max-height: 76vh; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); overflow: hidden; animation: pop .14s ease; }
@keyframes pop { from { transform: translateY(-6px) scale(.985); opacity: 0; } }
.palette-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.palette-in .i { color: var(--accent); }
.palette-in input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; }
.palette-list { overflow-y: auto; padding: 6px; }
.pal-sec { padding: 10px 10px 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.pal-none { padding: 10px; font-size: 13px; }
.pal-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--text); text-decoration: none; }
.pal-item:hover { text-decoration: none; }
.pal-item.on, .pal-item:hover { background: var(--card-2); }
.pal-item > .i { margin-top: 2px; color: var(--muted); flex: none; }
.pal-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pal-snip { font-size: 12.5px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
mark { background: rgba(251, 191, 36, .28); color: inherit; border-radius: 3px; padding: 0 1px; }
mark.cur { background: rgba(251, 191, 36, .75); color: #111; }
.palette-foot { display: flex; gap: 16px; flex-wrap: wrap; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 12px; }
.palette-foot kbd { margin-right: 3px; }
.hits { padding: 6px; }
.hit { display: block; padding: 11px 12px; border-radius: 10px; color: var(--text); }
.hit:hover { background: var(--card-2); text-decoration: none; }
.hit .pal-snip { margin-top: 5px; }
.find-bar { position: fixed; right: 24px; bottom: 24px; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); font-size: 13px; }
@media (max-width: 900px) { .nav-search span, .nav-search kbd { display: none; } .nav-search { justify-content: center; } .palette-foot span:last-child { display: none; } }
.video-banner { display: flex; align-items: center; gap: 14px; }
.video-banner .ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.editor-page { max-width: none; display: flex; flex-direction: column; height: 100vh; padding-bottom: 18px; }
.ed-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.ed-head .crumb { margin: 0; white-space: nowrap; }
.ed-title { flex: 1; min-width: 0; font-size: 20px; font-weight: 650; border: 1px solid transparent; background: transparent; color: var(--text); padding: 6px 10px; border-radius: 10px; }
.ed-title:hover, .ed-title:focus { border-color: var(--line); background: var(--panel); outline: 0; }
.ed-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ed-tools { display: flex; gap: 3px; padding: 3px; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; flex-wrap: wrap; }
.ed-tool { min-width: 34px; height: 30px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font: 600 13px var(--mono); }
.ed-tool:hover { background: var(--card-2); color: var(--text); }
.ed-bar select { height: 32px; padding: 0 10px; border-radius: 9px; }
.ed-split { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ed-split.src { grid-template-columns: 1fr; } .ed-split.src .ed-prev { display: none; }
.ed-split.prev { grid-template-columns: 1fr; } .ed-split.prev .ed-src { display: none; }
.ed-src { height: 100%; min-height: 300px; resize: none; font: 13.5px/1.65 var(--mono); padding: 18px 20px; border-radius: 14px; }
.ed-prev { height: 100%; overflow-y: auto; padding: 24px 30px; }
.ed-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 8px; }
.warn-text { color: var(--warn); }
.src-card { position: relative; }
.sel-box { position: absolute; top: 10px; right: 10px; z-index: 2; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; border: 1.5px solid var(--line-2); background: var(--card); color: transparent; cursor: pointer; opacity: 0; transition: opacity .12s; }
.src-card:hover .sel-box, .src-card.sel .sel-box, .sel-bar ~ * .sel-box { opacity: 1; }
.src-card.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.src-card.sel .sel-box { background: var(--accent); border-color: var(--accent); color: #fff; }
.src-card .row.between { padding-right: 30px; }
.sel-bar { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 10px 12px 10px 16px; background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 12px 36px rgba(0, 0, 0, .4); max-width: calc(100% - 32px); }
@media (max-width: 900px) { .ed-split.both { grid-template-columns: 1fr; } .ed-split.both .ed-prev { display: none; } .editor-page { height: auto; } .ed-src { min-height: 60vh; } }
.course-card { position: relative; }
.course-menu { position: absolute; top: 12px; right: 12px; opacity: 0; transition: opacity .12s; }
.course-card:hover .course-menu { opacity: 1; }
@media (hover: none) { .course-menu { opacity: 1; } }
.sheet.wide .sheet-panel { width: min(820px, 100%); }
.tx { display: flex; flex-direction: column; gap: 16px; }
.tx-head h1 { font-size: 23px; line-height: 1.3; margin: 10px 40px 4px 0; letter-spacing: -.01em; }
.tx-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.tx-tile { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.tx-tile .lbl { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.tx-tile b { font-size: 15px; font-weight: 650; line-height: 1.35; }
.tx-tile .sub { color: var(--faint); font-size: 12.5px; }
.tx-tile.hot { border-color: rgba(251, 113, 133, .45); background: var(--warn-soft); }
.tx-tile.hot .sub { color: var(--warn); font-weight: 600; }
.tx-tile.soon { border-color: rgba(251, 191, 36, .4); }
.tx-tile.soon .sub { color: var(--mid); font-weight: 600; }
.tx-actions { gap: 8px; }
.tx-card { padding: 18px 20px; }
.tx-desc { font-size: 14.5px; line-height: 1.7; color: var(--text); }
.tx-desc.folded { max-height: 420px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 75%, transparent); mask-image: linear-gradient(#000 75%, transparent); }
.tx-desc .md p { margin-bottom: 12px; }
.tx-desc a, .tx-explain a { color: var(--accent); }
.tx-lead { font-size: 15px; line-height: 1.65; }
.tx-explain h6 { display: flex; align-items: center; gap: 7px; margin: 16px 0 6px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tx-explain h6 .i { color: var(--accent); }
.tx-explain li { line-height: 1.6; }
.tx-warn { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--mid-soft); border: 1px solid rgba(251, 191, 36, .25); }
.tx-warn b { display: flex; align-items: center; gap: 7px; color: var(--mid); font-size: 13px; }
.tx-warn ul { margin: 6px 0 0; }
.tx-list { margin: 0; padding-left: 18px; line-height: 1.7; }
.tx-file { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--card-2); }
.tx-file .i { color: var(--accent); flex: none; }
.tx-file a { color: var(--text); font-weight: 550; }
.tx-more summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 600; list-style: none; }
.tx-more summary::-webkit-details-marker { display: none; }
.tx-more summary::after { content: '▾'; margin-left: auto; color: var(--faint); transition: transform .15s; }
.tx-more[open] summary::after { transform: rotate(180deg); }
.tx-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 14px 0 0; font-size: 13.5px; }
.tx-dl dt { color: var(--muted); }
.tx-dl dd { margin: 0; }
@media (max-width: 700px) { .tx-head h1 { font-size: 20px; } .tx-card { padding: 14px; } }
.quiz-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.q-timer { position: sticky; top: 12px; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line-2); font: 600 18px var(--mono); z-index: 5; }
.q-timer.hot { color: var(--warn); border-color: rgba(251, 113, 133, .5); background: var(--warn-soft); }
.quiz-page .card.quiz-q { padding: 18px 20px; border-left: 3px solid transparent; }
.quiz-q.right { border-left-color: var(--ok); } .quiz-q.part { border-left-color: var(--mid); } .quiz-q.wrong { border-left-color: var(--warn); }
.q-text { font-weight: 600; margin: 8px 0 12px; font-size: 15px; line-height: 1.55; }
.q-text .md p { margin-bottom: 6px; }
.q-open { width: 100%; min-height: 110px; font-size: 14px; line-height: 1.6; }
.q-feedback { display: flex; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); font-size: 13.5px; line-height: 1.55; }
.q-feedback .i { color: var(--accent); flex: none; margin-top: 2px; }
.q-ref { margin-top: 10px; font-size: 13.5px; }
.q-ref summary { cursor: pointer; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.quiz-bar { position: sticky; bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 12px 14px 12px 18px; background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.quiz-result { display: flex; align-items: center; gap: 22px; margin-bottom: 18px; flex-wrap: wrap; }
.quiz-result h1 { font-size: 20px; margin-bottom: 4px; }
.ring { --c: var(--accent); width: 92px; height: 92px; flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--card-2) 0); position: relative; }
.ring::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: var(--card); }
.ring b { position: relative; font-size: 22px; font-weight: 700; }
.ring.ok { --c: var(--ok); } .ring.mid { --c: var(--mid); } .ring.bad { --c: var(--warn); }
.exam-start { text-align: center; padding: 34px 28px; }
.exam-start .ic { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.exam-start h1 { font-size: 22px; margin-bottom: 12px; }
.mk-row { display: grid; grid-template-columns: 110px 1fr; gap: 10px; margin-top: 8px; padding: 8px 12px; border-radius: 10px; font-size: 13.5px; }
.mk-row > span { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.mk-row.bad { background: var(--warn-soft); } .mk-row.ok { background: var(--ok-soft); }
.mk-row .md p { margin: 0; }
.mistake { padding: 12px 0; border-top: 1px solid var(--line); }
.practice-page { max-width: 860px; }
.pr-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.pr-head .ic { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.pr-head h1 { font-size: 21px; margin-top: 6px; }
.pr-thread { display: flex; flex-direction: column; gap: 14px; }
.pr-msg { display: flex; flex-direction: column; gap: 6px; max-width: 86%; }
.pr-msg.ex { align-self: flex-start; } .pr-msg.me { align-self: flex-end; align-items: flex-end; }
.pr-msg .who { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.pr-msg .bubble { padding: 12px 16px; border-radius: 16px; line-height: 1.6; font-size: 14.5px; }
.pr-msg.ex .bubble { background: var(--card); border: 1px solid var(--line); border-top-left-radius: 6px; font-weight: 550; }
.pr-msg.me .bubble { background: var(--accent-soft); border: 1px solid var(--accent-line); border-top-right-radius: 6px; }
.pr-msg .bubble .md p { margin-bottom: 6px; }
.pr-fb { display: flex; gap: 8px; align-items: flex-start; max-width: 100%; padding: 8px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.55; background: var(--card-2); border: 1px solid var(--line); }
.pr-fb .pill { flex: none; margin-top: 1px; }
.typing { display: flex; gap: 5px; padding: 16px 18px !important; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.pr-input { position: sticky; bottom: 14px; margin-top: 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.pr-input textarea { min-height: 90px; border: 0; background: transparent; padding: 0; font-size: 14.5px; line-height: 1.6; resize: vertical; outline: 0; }
#pr-mic.rec { color: var(--warn); }
.pr-sum { margin-top: 10px; font-size: 13.5px; } .pr-sum b { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.pr-sum.ok b { color: var(--ok); } .pr-sum.bad b { color: var(--warn); }
.pr-sum ul { margin: 4px 0 0; padding-left: 18px; line-height: 1.6; }
.train .jtypes { grid-template-columns: 1fr 1fr; }
.update-bar { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--accent-line); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); font-size: 13.5px; }
.update-bar .i { color: var(--accent); }
.news-page { max-width: 980px; }
.news { padding: 16px 20px; border-left: 3px solid transparent; }
.news.imp { border-left-color: var(--mid); }
.news.unread { border-left-color: var(--accent); }
.news h3 { font-size: 16px; font-weight: 650; margin: 10px 0 6px; line-height: 1.4; }
.news-sum { color: var(--text-2); line-height: 1.6; margin: 0; }
.news-actions { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.news-actions span { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--mid); font-weight: 550; }
.news-actions .i { flex: none; margin-top: 2px; }
.news-body { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.news-reply { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: var(--card-2); }
.news-toggle { margin-top: 8px; padding-left: 0; }
.dot-new { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: auto; }
.stat-tile .unit { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.stat-tile .meter { margin-top: 4px; }
.sc-wrap { position: relative; margin-top: 4px; }
.spend-chart { width: 100%; height: auto; display: block; }
.spend-chart text { fill: var(--faint); font-size: 11px; font-family: inherit; }
.spend-chart .sc-grid { stroke: var(--line); stroke-width: 1; }
.spend-chart .sc-bar path { fill: var(--accent); transition: opacity .12s; }
.spend-chart .sc-bar.dim path { opacity: .35; }
.spend-chart .sc-bar { cursor: default; }
.sc-tip { position: absolute; top: -6px; width: 140px; padding: 7px 10px; border-radius: 9px; background: var(--card-2); border: 1px solid var(--line-2); box-shadow: 0 6px 18px rgba(0, 0, 0, .3); font-size: 12px; pointer-events: none; display: flex; flex-direction: column; gap: 2px; }
.sc-tip span { color: var(--muted); }
.sc-tip[hidden] { display: none; }
.shares { display: flex; flex-direction: column; gap: 12px; }
.share { font-size: 13.5px; }
.share .v { white-space: nowrap; font-weight: 600; }
.share-track { height: 6px; margin-top: 6px; border-radius: 99px; background: var(--card-2); overflow: hidden; }
.share-track i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.stat-tile .value.sm { font-size: 16px; font-weight: 650; line-height: 1.35; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-facts .stat-tile { min-width: 0; }
.tabbar { display: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.btn:focus-visible, .seg button:focus-visible, .nav a:focus-visible { outline-offset: 1px; }
@media (max-width: 700px) {
  .shell { grid-template-columns: 1fr; }
  .shell > .nav { display: none; }
  .view { height: calc(100vh - 64px - env(safe-area-inset-bottom)); }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(64px + env(safe-area-inset-bottom)); padding: 6px 6px env(safe-area-inset-bottom); background: var(--panel); border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: transparent; color: var(--muted); font: 500 11px var(--font); border-radius: 10px; position: relative; text-decoration: none; cursor: pointer; }
  .tabbar .on { color: var(--accent); background: var(--accent-soft); }
  .tb-badge { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--accent); color: #fff; font: 700 10px/16px var(--font); font-style: normal; text-align: center; }
  .page { padding: 16px 14px 40px; }
  .head { align-items: flex-start; margin-bottom: 16px; }
  .head h1 { font-size: 22px; }
  .head .actions { width: 100%; flex-wrap: wrap; }
  .head .actions .btn { flex: 1 1 auto; justify-content: center; }
  .item { flex-wrap: wrap; row-gap: 6px; }
  .item .title.ellipsis, .item .ellipsis { white-space: normal; }
  .item > .grow { min-width: 60%; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-tile .value { font-size: 22px; }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .sheet-panel { width: 100%; padding: 22px 16px 90px; }
  .sel-bar, .quiz-bar, .find-bar { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .palette { padding: 10px; }
  .palette-box { max-height: 82vh; }
  .more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .more-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-size: 13px; position: relative; text-decoration: none; }
  .more-tile .i { color: var(--accent); }
  .more-tile.on { border-color: var(--accent); }
  .chat-page { height: calc(100vh - 64px); }
}
.sheet .nav-search span { display: inline; }
.sheet .nav-search { justify-content: flex-start; margin: 0; }
.topic-page { max-width: 1180px; }
.topic-head { display: flex; gap: 18px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px; }
.topic-head h1 { font-size: 24px; margin: 10px 0 4px; line-height: 1.3; }
.topic-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.ap-group { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.ap-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ap { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); min-width: 0; }
.ap.has { border-color: var(--accent-line); background: var(--accent-soft); }
.ap .grow { min-width: 0; }
.ap b { display: block; font-size: 14px; font-weight: 600; }
.ap small { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; margin-top: 2px; }
.ap .btn { flex: none; }
.ap-ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--card); color: var(--accent); border: 1px solid var(--line); }
.topic-link { color: var(--text); }
.topic-link:hover { text-decoration: none; color: var(--accent); }
@media (max-width: 1000px) { .topic-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .ap-list { grid-template-columns: 1fr; } .topic-head { flex-direction: column; align-items: stretch; } .topic-head > .grow { min-width: 0; } .topic-head > .stack { align-items: flex-start !important; } .topic-head h1 { font-size: 20px; } .ap { padding: 10px; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 13px; }
.chip-link:hover { border-color: var(--accent); text-decoration: none; }
.more-topics summary { cursor: pointer; color: var(--accent); font-size: 13px; padding: 8px 4px; list-style: none; }
.more-topics summary::-webkit-details-marker { display: none; }
.sol-check { padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.sol-ref { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.sol-ref summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); list-style: none; }
.sol-ref summary::-webkit-details-marker { display: none; }
.modal-back { position: fixed; inset: 0; z-index: 60; background: rgba(5, 7, 10, .55); backdrop-filter: blur(2px); display: grid; place-items: center; padding: 16px; }
.modal { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; animation: slide .18s ease; }
.modal.wide { width: min(980px, 100%); }
.modal textarea { width: 100%; resize: vertical; font-size: 13px; line-height: 1.5; }
.pg { display: flex; flex-direction: column; gap: 10px; }
.pg-row { display: grid; grid-template-columns: 74px 1fr 40px; align-items: center; column-gap: 10px; }
.pg-l { font-size: 13px; color: var(--muted); }
.pg-v { font-size: 13px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.pg-bar { height: 8px; background: var(--card-2); border-radius: 99px; overflow: hidden; }
.pg-bar i { display: block; height: 100%; border-radius: 99px; }
.pg-bar i.ok { background: var(--ok); } .pg-bar i.mid { background: var(--accent); } .pg-bar i.low { background: var(--mid); }
.pg-hint { grid-column: 2 / 4; font-size: 12px; color: var(--faint); margin-top: 3px; }
.pg.compact { gap: 6px; margin: 10px 0; }
.pg.compact .pg-row { grid-template-columns: 62px 1fr 34px; }
.pg.compact .pg-l, .pg.compact .pg-v { font-size: 11.5px; }
.pg.compact .pg-bar { height: 5px; }
.muted-row { opacity: .55; }
.stat-tile.flat { background: var(--card-2); border-radius: 10px; padding: 10px 12px; }
.stat-tile .value.ok { color: var(--ok); } .stat-tile .value.mid { color: var(--mid); } .stat-tile .value.bad { color: var(--warn); }
.adm-tiles { gap: 10px; }
.tx-guide .md h2 { font-size: 15px; margin: 16px 0 6px; }

.today-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.today-top h1 { font-size: 26px; letter-spacing: -.02em; margin: 0; }
.today-top .sub { color: var(--muted); margin-top: 4px; }
.hero { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 22px 24px;
  background: linear-gradient(135deg, var(--accent-soft), transparent 60%), var(--card); border-color: var(--accent-line); }
.next-lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 650; }
.next-t { font-size: 21px; font-weight: 650; letter-spacing: -.01em; margin: 6px 0 8px; line-height: 1.3; }
.next-empty { display: flex; gap: 14px; align-items: center; font-size: 15px; }
.next-empty svg { color: var(--ok); width: 28px; height: 28px; }
.hero-side { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 130px; }
.hero-stat { display: flex; flex-direction: column; align-items: center; margin-top: 6px; }
.hero-stat b { font-size: 22px; }
.hero-stat span { font-size: 12px; color: var(--faint); }
.ring-bg { fill: none; stroke: var(--card-2); stroke-width: 10; }
.ring-fg { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.ring-t { fill: var(--text); font-size: 18px; font-weight: 700; }
.askbar { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 8px 8px 8px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--muted); }
.askbar input { flex: 1; border: none; background: transparent; outline: none; font-size: 14px; color: var(--text); padding: 6px 0; }
.askbar:focus-within { border-color: var(--accent-line); }
.acts { display: flex; flex-direction: column; gap: 8px; }
.act { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 10px; border: 1px solid var(--line); border-left: 3px solid var(--line-2); border-radius: 10px; background: var(--card-2); }
.act.critical { border-left-color: var(--warn); } .act.high { border-left-color: var(--mid); } .act.medium { border-left-color: var(--accent); }
.act-n { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 650; background: var(--card); color: var(--muted); }
.act-t { font-weight: 600; line-height: 1.35; }
.act-m { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.bad-t { color: var(--warn); font-weight: 600; }
.act.just-done { border-left-color: var(--ok); background: var(--ok-soft); animation: doneout 4s ease forwards; }
.act.just-done .act-n { background: var(--ok); color: #fff; }
.act.just-done .act-t { text-decoration: line-through; color: var(--muted); }
@keyframes doneout { 0%, 70% { opacity: 1; max-height: 90px; } 100% { opacity: 0; max-height: 0; padding: 0; margin: -4px 0; } }
.done-row svg { color: var(--ok); }
.course-row { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
.course-row:last-child { border-bottom: none; }
.pg-bar i { transition: width .9s cubic-bezier(.2, .8, .2, 1), background .3s; }
.pg-row.bump .pg-v { animation: bump 1.2s ease; }
.pg-row.bump .pg-bar { animation: glow 1.2s ease; }
@keyframes bump { 0% { transform: scale(1); color: var(--text); } 30% { transform: scale(1.25); color: var(--ok); } 100% { transform: scale(1); } }
@keyframes glow { 30% { box-shadow: 0 0 0 3px var(--ok-soft); } }
.nav-more summary { cursor: pointer; list-style: none; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary::after { content: ' ▾'; }
.nav-more[open] summary::after { content: ' ▴'; }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding: 18px; }
  .hero-side { flex-direction: row; justify-content: space-between; min-width: 0; }
  .next-t { font-size: 18px; }
  .today-top h1 { font-size: 22px; }
  .act { flex-wrap: wrap; }
  .act > .btn { margin-left: 36px; }
  .card-h .faint.small { display: none; }
}

.page.lesson-page { max-width: 820px; }
.ls-head { margin-bottom: 18px; }
.ls-title h1 { font-size: 24px; margin: 10px 0 4px; letter-spacing: -.01em; line-height: 1.25; }
.ls-segs { display: flex; gap: 4px; margin-top: 14px; }
.ls-segs i { flex: 1; height: 5px; border-radius: 3px; background: var(--card-2); transition: background .4s; }
.ls-segs i.done { background: var(--accent); }
.ls-segs i.now { background: var(--accent-line); }
.ls-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; margin-bottom: 14px; }
.ls-kind { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 650; margin-bottom: 6px; }
.ls-card h2 { font-size: 20px; margin: 0 0 12px; line-height: 1.3; }
.ls-body, .ls-card .md { font-size: 16px; line-height: 1.7; }
.ls-card .md pre { font-size: 13.5px; }
.ls-extra { margin: 16px 0; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.ls-q { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.ls-q-p { font-size: 16px; margin-bottom: 12px; }
.ls-opts { display: flex; flex-direction: column; gap: 8px; }
.ls-opt { text-align: left; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card-2); color: var(--text); font-size: 15px; cursor: pointer; }
.ls-opt:hover { border-color: var(--accent-line); }
.ls-opt.right { border-color: var(--ok); background: var(--ok-soft); }
.ls-opt.wrong { border-color: var(--warn); background: var(--warn-soft); }
.ls-in { width: 100%; font-size: 16px; padding: 12px 14px; border-radius: 10px; }
.ls-q-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ls-fb { margin-top: 12px; padding: 12px 14px; border-radius: 10px; display: flex; flex-direction: column; gap: 6px; }
.ls-fb.ok { background: var(--ok-soft); color: var(--text); }
.ls-fb.bad { background: var(--warn-soft); color: var(--text); }
.ls-fb > svg { color: currentColor; }
.ls-src { margin-top: 16px; font-size: 13px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ls-help { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { border: 1px solid var(--line); background: transparent; color: var(--text-2, var(--text)); border-radius: 99px; padding: 7px 13px; font-size: 13.5px; cursor: pointer; }
.chip:hover { border-color: var(--accent-line); color: var(--accent); }
.ls-nav { display: flex; gap: 8px; align-items: center; position: sticky; bottom: 0; padding: 12px 0; background: var(--bg); }
.ls-terms { margin-bottom: 14px; }
.ls-terms summary { cursor: pointer; color: var(--muted); }
.ls-terms-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; margin-top: 10px; }
.ls-terms-list div { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 8px; background: var(--card-2); }
.ls-terms-list span { color: var(--muted); font-size: 13px; }
.ls-score { display: flex; gap: 12px; margin: 10px 0 16px; }
.ls-score div { flex: 1; background: var(--card-2); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; }
.ls-score b { font-size: 24px; }
.ls-score span { color: var(--muted); font-size: 13px; }
@media (max-width: 760px) {
  .ls-card { padding: 18px 16px; border-radius: 14px; }
  .ls-title h1 { font-size: 20px; }
  .ls-body, .ls-card .md { font-size: 15.5px; }
  .ls-nav { padding-bottom: 70px; }
}

.pg-foot { margin-top: 8px; line-height: 1.5; }
.budget { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.budget .chip.on, .chip.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.verdict { margin-top: 14px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); line-height: 1.5; }
.verdict.ok { border-color: var(--ok); }
.verdict.behind { border-color: var(--mid); background: var(--mid-soft); }
.verdict.critical { border-color: var(--warn); background: var(--warn-soft); }
.verdict div { color: var(--muted); font-size: 13.5px; }
.later { margin-top: 10px; }
.later summary { cursor: pointer; color: var(--muted); font-size: 13.5px; margin-bottom: 8px; }
.later .act { opacity: .75; }

.health { display: flex; flex-direction: column; }
.h-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.h-row:last-child { border-bottom: none; }
.h-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--line-2); }
.h-row.ok .h-dot { background: var(--ok); } .h-row.stale .h-dot, .h-row.wait .h-dot { background: var(--mid); }
.h-row.busy .h-dot { background: var(--accent); } .h-row.action .h-dot, .h-row.error .h-dot { background: var(--warn); }
.h-act { margin-top: 6px; font-size: 13.5px; color: var(--text); display: flex; gap: 6px; align-items: center; }
.h-age { white-space: nowrap; }

body { font-size: 15.5px; line-height: 1.6; }
.small { font-size: 13.5px; }
h1 { font-size: 24px; }
.card { padding: 20px 22px; border-color: color-mix(in srgb, var(--line) 75%, transparent); box-shadow: none; }
.card .card { border: none; background: var(--card-2); }
.card-h h2 { font-size: 16px; }
.faint { color: color-mix(in srgb, var(--faint) 80%, var(--muted)); }
.ls-group { margin-bottom: 26px; }
.ls-group-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.ls-group-h h2 { font-size: 18px; }
.ls-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); }
.ls-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.ls-item:last-child { border-bottom: none; }
.ls-item:hover { background: var(--hover); }
.ls-item-t { font-weight: 600; }
.course-card h3 { font-size: 16.5px; line-height: 1.3; }
@media (max-width: 760px) {
  body { font-size: 15px; }
  .card { padding: 16px; }
  .page { padding: 16px 14px 90px; }
}
.ls-nav [hidden] { display: none !important; }
@media (max-width: 760px) {
  html, body { overflow-x: hidden; }
  .ls-nav { position: static; flex-wrap: wrap; padding-bottom: 12px; }
  .ls-nav #ls-full span, .ls-nav .ls-full-label { display: none; }
  .ls-nav #ls-next { margin-left: auto; }
  .ls-card pre { max-width: 100%; }
}

.sub-row { display: flex; gap: 10px; align-items: flex-start; }
.sub-group > summary { cursor: pointer; list-style: none; }
.sub-group > summary::-webkit-details-marker { display: none; }
.sub-pre { white-space: pre-wrap; word-break: break-word; background: var(--card-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px; font-size: 13px; margin: 6px 0 0; }

.shell { grid-template-columns: 208px minmax(0, 1fr) var(--dock-w, 420px); }
.shell.nodock { grid-template-columns: 208px minmax(0, 1fr); }
.shell.nodock .dock { display: none; }
.dock { display: flex; flex-direction: column; height: 100vh; min-height: 0; background: var(--panel); border-left: 1px solid var(--line); }
.dock-h { display: flex; align-items: center; gap: 4px; padding: 12px 12px 8px 16px; font-size: 15px; }
.dock-agent { margin: 0 12px 8px; padding: 8px 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 12.5px; color: var(--text-2); }
.da-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.da-toggle { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; white-space: nowrap; font-size: 12px; }
.da-jobs { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; max-height: 240px; overflow-y: auto; }
.da-job { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.da-step { display: flex; gap: 6px; align-items: flex-start; color: var(--muted); font-size: 12px; }
.da-step svg { width: 13px; height: 13px; color: var(--ok); flex: none; margin-top: 2px; }
.da-step > i { width: 7px; height: 7px; margin: 5px 3px 0; border-radius: 50%; background: var(--line-2); flex: none; }
.da-step.now { color: var(--text); }
.da-step.now > i { background: var(--accent); }
.dock-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 12px; }
.dock .msgs-in { max-width: none; padding: 0; }
.dock .msg { gap: 8px; margin: 10px 0; font-size: 13.5px; }
.dock .welcome h1 { font-size: 17px; }
.dock .suggest { grid-template-columns: 1fr; }
.dock-foot { padding: 8px 12px 12px; }
.dock-voice { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 12px; color: var(--muted); cursor: pointer; }
.dock-voice input { margin: 0; width: 13px; height: 13px; accent-color: var(--accent); }
.dock-comp textarea { max-height: 140px; }
.btn.rec { color: var(--warn); background: var(--warn-soft); }
.btn.wait { opacity: .6; }
@media (max-width: 1180px) and (min-width: 861px) {
  .shell, .shell.nodock { grid-template-columns: 208px minmax(0, 1fr); }
  .dock { position: fixed; top: 0; right: 0; bottom: 0; z-index: 40; height: auto; width: min(var(--dock-w, 420px), 94vw); box-shadow: -14px 0 44px rgba(0, 0, 0, .45); }
}
@media (max-width: 860px) { .dock { display: none; } }
@media (max-width: 860px) { .shell, .shell.nodock { grid-template-columns: 64px minmax(0, 1fr); } }
@media (max-width: 700px) { .shell, .shell.nodock { grid-template-columns: 1fr; } }
.home { max-width: 760px; margin: 0 auto; }
.home-top { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.stories { display: flex; gap: 14px; overflow-x: auto; flex: 1; min-width: 0; scrollbar-width: none; padding-bottom: 2px; }
.stories::-webkit-scrollbar { display: none; }
.story { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 72px; flex: none; color: var(--text-2); border-radius: 12px; padding: 4px 0; }
.story:hover { text-decoration: none; background: var(--hover); }
.story-ring { position: relative; width: 60px; height: 60px; display: block; }
.story-ring svg { display: block; }
.sr-bg { fill: none; stroke: var(--line-2); stroke-width: 4; }
.sr-fg { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; }
.story-ic { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.story-hot { position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--warn); border: 2px solid var(--bg); }
.story-n { max-width: 72px; font-size: 12px; color: var(--text); }
.story-p { font-size: 11px; color: var(--muted); }
.home-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.home-h.mt { margin-top: 26px; }
.home-h h2 { font-size: 17px; font-weight: 600; }
.home-sub { display: flex; align-items: center; gap: 6px; margin: -4px 0 10px; font-size: 12.5px; color: var(--muted); }
.plan-main { background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; padding: 16px 18px; }
.plan-main.critical { border-color: color-mix(in srgb, var(--warn) 55%, var(--line)); }
.pm-w { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.plan-main.critical .pm-w { color: var(--warn); }
.plan-main.critical .pm-w .faint { color: var(--muted); }
.pm-t { font-size: 19px; font-weight: 600; line-height: 1.3; margin: 6px 0 4px; }
.pm-why { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pm-go { width: 100%; justify-content: center; margin-top: 12px; padding: 10px; font-size: 15px; }
.plan-list { margin-top: 6px; }
.plan-row { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.plan-row:last-child { border-bottom: 0; }
.plan-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.plan-link { display: flex; align-items: center; gap: 10px; justify-content: space-between; min-width: 0; color: var(--text); }
.plan-link:hover { text-decoration: none; color: var(--accent); }
.plan-m { font-size: 12px; color: var(--muted); white-space: nowrap; flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; }
.plan-m.hot { color: var(--warn); }
.plan-more, .home-more { margin-top: 8px; }
.plan-more > summary, .home-more > summary { cursor: pointer; font-size: 13px; color: var(--accent); padding: 6px; list-style: none; }
.plan-more > summary::-webkit-details-marker, .home-more > summary::-webkit-details-marker { display: none; }
.home-more { margin-top: 22px; }
.home-more > .card, .home-more > div { margin-top: 12px; }
.plan-edit { background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; padding: 8px 12px 12px; }
.plan-add { display: flex; gap: 8px; margin: 10px 0; }
.plan-add input { flex: 1; min-width: 0; }
.soon { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.soon-i { flex: none; width: 128px; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--c); border-radius: 12px; color: var(--text); }
.soon-i:hover { text-decoration: none; background: var(--hover); }
.soon-d { font-size: 12px; color: var(--muted); }
.soon-d.hot { color: var(--warn); }
.soon-t { font-size: 13.5px; font-weight: 500; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.soon-c { font-size: 11px; color: var(--muted); }

.tx-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 12px; }
.tx-due { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 13.5px; }
.tx-due.hot { color: var(--warn); }
.tx-tabs { display: flex; gap: 4px; margin: 14px 0 12px; border-bottom: 1px solid var(--line); }
.tx-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 12px; color: var(--muted); cursor: pointer; font-weight: 500; }
.tx-tabs button:hover { color: var(--text); }
.tx-tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.tx-pane { display: flex; flex-direction: column; gap: 14px; }
.tx-pane[hidden] { display: none; }

.tasks { max-width: 1000px; margin: 0 auto; }
.tasks-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.tasks-top h1 { font-size: 22px; }
.tasks .tx-tabs { margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chips .chip { display: inline-flex; align-items: center; gap: 6px; }
.chips .plan-dot { width: 8px; height: 8px; }
.tasks-body { max-width: 760px; }
.tg { margin-bottom: 20px; }
.tg-top, details.tg > summary { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
details.tg > summary { cursor: pointer; list-style: none; }
details.tg > summary::-webkit-details-marker { display: none; }
.tg-h { font-weight: 600; font-size: 14px; }
.tg-h.hot { color: var(--warn); }
.tl { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-bottom: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.tl:hover { background: var(--hover); }
.tl-b { min-width: 0; }
.tl-t { font-weight: 500; }
.tl-s { font-size: 12px; color: var(--muted); }
.tl .due { flex: none; font-size: 12.5px; white-space: nowrap; }
.tg-rest { margin-top: 4px; }
.tg-rest > summary { cursor: pointer; color: var(--muted); padding: 4px 8px; }
.board { display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)); gap: 10px; overflow-x: auto; align-items: flex-start; padding-bottom: 6px; }
.bcol { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 160px; }
.bcol.over { border-color: var(--accent); }
.bcol-h { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; font-size: 13px; }
.bcard { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: 0 10px 10px 0; padding: 8px 10px; cursor: grab; }
.bcard:hover { background: var(--hover); }
.bcard-t { font-weight: 500; font-size: 13px; line-height: 1.3; }
.bcard-m { display: flex; justify-content: space-between; gap: 6px; margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.cal-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cal-wd, .cal-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd { font-size: 12px; color: var(--muted); text-align: center; margin-bottom: 4px; }
.cal-d { display: flex; flex-direction: column; gap: 2px; align-items: stretch; text-align: left; min-height: 84px; padding: 5px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; min-width: 0; color: var(--text); }
.cal-d:hover { background: var(--hover); }
.cal-d.other { opacity: .4; }
.cal-d.now { border-color: var(--accent); }
.cal-d.on { background: var(--accent-soft); }
.cal-n { font-size: 12px; font-weight: 600; }
.cal-w { font-size: 10.5px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cal-t { font-size: 11px; padding: 1px 4px; border-left: 2px solid var(--c); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cal-more { font-size: 10.5px; }
.cal-pick { margin-top: 12px; }
@media (max-width: 700px) {
  .tasks-views button span { display: none; }
  .tasks-views button { padding: 6px 10px; }
  .board { grid-template-columns: repeat(4, 78vw); }
  .cal-d { min-height: 58px; padding: 3px; }
  .cal-w { display: none; }
  .cal-t { font-size: 0; height: 5px; padding: 0; border-left: 0; background: var(--c); border-radius: 3px; }
  .cal-more { display: none; }
}
.tl .due, .bcard .due { background: none; border: 0; padding: 0; font-family: var(--font); color: var(--muted); }
.tl .due.hot, .bcard .due.hot { color: var(--warn); }
.bcard-m { flex-wrap: wrap; }

.course-now { max-width: 760px; }
.cstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.cstat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cstat b { font-size: 19px; font-weight: 600; }
.cstat b small { font-size: 12px; font-weight: 500; color: var(--muted); }
.cstat span { font-size: 12px; color: var(--muted); }
.fold { margin-top: 10px; }
.fold > summary { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; list-style: none; font-weight: 500; }
.fold > summary::-webkit-details-marker { display: none; }
.fold[open] > summary { margin-bottom: 8px; }
.fold[hidden], .item[hidden] { display: none; }
.mat-search { width: 100%; margin-bottom: 8px; }
.clist { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.crow { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.crow:hover { background: var(--hover); }
.crow-t { font-weight: 600; font-size: 15px; }
.crow-s { font-size: 12.5px; color: var(--muted); }
.ls-helpbox { margin-top: 16px; }
.ls-helpbox > summary { cursor: pointer; color: var(--accent); font-size: 13.5px; list-style: none; }
.ls-helpbox > summary::-webkit-details-marker { display: none; }
.ls-helpbox .ls-help { margin-top: 8px; }
@media (max-width: 700px) {
  .cstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crow { flex-wrap: wrap; }
}

.learn { max-width: 860px; margin: 0 auto; }
.learn-hero { margin-bottom: 14px; }
.ls-fold > summary { display: flex; }
.ls-fold .ls-list { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ls-fold .ls-item { padding: 10px 14px; }
.lib-rows { display: flex; flex-direction: column; gap: 6px; max-width: 860px; }
.lib-rows .doc-card { padding: 10px 14px; border-radius: 12px; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; }
.lib-rows .doc-card > .row.between { grid-row: 1 / span 2; padding-right: 0; gap: 6px; }
.lib-rows .doc-card > .row.between .pill { display: none; }
.lib-rows .doc-card .title { margin: 0 !important; -webkit-line-clamp: 1; }
.lib-rows .doc-card .clamp2 { display: none; }
.lib-rows .doc-card > .faint { margin: 0 !important; font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lib-rows .sel-box { top: 50%; transform: translateY(-50%); right: 10px; }
.lib-chips { margin-bottom: 0; }
.settings { max-width: 760px; }
.settings .fold { margin-top: 8px; }

.sh-row { display: grid; grid-template-columns: minmax(120px, 1.2fr) minmax(110px, 1.2fr) 86px 86px auto; gap: 6px; align-items: center; }
.sh-row input, .sh-row select { min-width: 0; width: 100%; }
@media (max-width: 700px) { .sh-row { grid-template-columns: 1fr 1fr; } }
.sh-row { grid-template-columns: minmax(120px, 1.1fr) minmax(110px, 1.1fr) 104px 104px auto; }
@media (max-width: 1500px) { .shell:not(.nodock) .g3, .shell:not(.nodock) .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .sh-row { grid-template-columns: 1fr 1fr; } .shell:not(.nodock) .g3, .shell:not(.nodock) .g4 { grid-template-columns: 1fr; } }
.home-note { display: flex; gap: 8px; margin: -2px 0 12px; font-size: 13px; color: var(--text-2); }
.home-note svg { flex: none; margin-top: 3px; color: var(--accent); }
.md details > summary { cursor: pointer; color: var(--accent); }
.md details > summary::before { content: "▸ "; }
.md details[open] > summary::before { content: "▾ "; }
.pm-mark { display: flex; margin: 8px auto 0; color: var(--text-2); }
.verify-card { margin-bottom: 12px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--warn, #e0a34a); border-radius: var(--radius-sm); font-size: 13.5px; }
.verify-card.ok { border-left-color: var(--ok, #4cc38a); }
.verify-card.missing, .verify-card.problems { border-left-color: var(--err, #ef6a6a); }
.verify-card ul { margin: 8px 0 10px; padding-left: 18px; color: var(--text-2); }
.src-pages { display: flex; flex-direction: column; gap: 14px; }
.src-fig { margin: 0; }
.src-fig figcaption { margin-top: 4px; text-align: center; font-size: 12px; color: var(--muted); }
.src-page { display: block; width: 100%; height: auto; background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line); }
#s-tabs { align-self: flex-start; }
@media (max-width: 1400px) { .shell:not(.nodock) .doc-layout:has(#s-tabs) { grid-template-columns: minmax(0, 1fr); } }
.track-h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.track-h h2 { font-size: 16px; font-weight: 650; line-height: 1.25; }
.track-h p { margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.track-ic { flex: none; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; }
.track-h.save .track-ic { color: var(--warn); background: var(--warn-soft); }
.track-h.learn .track-ic { color: var(--accent); background: var(--accent-soft); }
.track-n { flex: none; min-width: 26px; padding: 2px 8px; text-align: center; font-size: 13px; font-weight: 650; color: var(--warn); background: var(--warn-soft); border-radius: 99px; }
.mt-track { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.learn-wait { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; padding: 10px 12px; font-size: 13px; color: var(--text-2); background: var(--accent-soft); border-radius: 12px; }
.learn-wait svg { color: var(--accent); }
.lp-list { display: flex; flex-direction: column; gap: 10px; }
.lp { padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; transition: border-color .15s; }
.lp:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); }
.lp-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.lp-count { color: var(--text-2); font-weight: 550; }
.lp-bar { height: 5px; margin: 10px 0 12px; background: var(--line); border-radius: 99px; overflow: hidden; }
.lp-bar i { display: block; height: 100%; background: var(--c); border-radius: 99px; transition: width .3s; }
.lp-next { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; color: var(--text); }
.lp-next:hover { text-decoration: none; }
.lp-label { grid-column: 1; font-size: 11.5px; color: var(--muted); }
.lp-title { grid-column: 1; font-size: 15px; font-weight: 600; line-height: 1.3; }
.lp-next .btn { grid-column: 2; grid-row: 1 / span 2; }
.lp-all { margin-top: 10px; }
.lp-all > summary { display: flex; justify-content: space-between; gap: 8px; cursor: pointer; font-size: 12.5px; color: var(--accent); list-style: none; }
.lp-all > summary::-webkit-details-marker { display: none; }
.lp-exam { color: var(--muted); text-align: right; }
.lp-steps { position: relative; margin-top: 10px; }
.lp-step { position: relative; display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 4px 6px; font-size: 13.5px; color: var(--text-2); border-radius: 8px; }
a.lp-step:hover { text-decoration: none; background: var(--hover); }
.lp-step:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 26px; bottom: -8px; width: 2px; background: var(--line); z-index: 0; }
.lp-dot { position: relative; z-index: 1; flex: none; display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; color: var(--bg); background: var(--card); border: 2px solid var(--line-2); border-radius: 50%; }
.lp-dot svg { width: 11px; height: 11px; }
.lp-step.done .lp-dot { background: var(--c); border-color: var(--c); }
.lp-step.next .lp-dot, .lp-step.active .lp-dot { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); }
.lp-step.next .lp-name, .lp-step.active .lp-name { color: var(--text); font-weight: 600; }
.lp-step.done .lp-name { color: var(--muted); }
.lp-step.locked { opacity: .65; }
.lp-step.locked .lp-dot { color: var(--muted); border-color: transparent; }
.lp-m { flex: none; font-size: 12px; color: var(--muted); }
.done-card { border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); }
.done-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.done-top b { font-size: 16px; }
.done-ic { flex: none; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; color: var(--ok); background: var(--ok-soft); border-radius: 12px; }
.dock { position: relative; }
@media (max-width: 1180px) and (min-width: 861px) { .dock { position: fixed; } }
.dock-grip { position: absolute; top: 0; bottom: 0; left: -3px; width: 7px; z-index: 2; cursor: col-resize; touch-action: none; }
.dock-grip:hover, .dock-grip:active { background: color-mix(in srgb, var(--accent) 45%, transparent); }
.dock-fab { position: fixed; right: 20px; bottom: 20px; z-index: 35; display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; font: 600 14px var(--font); color: #fff; background: var(--accent); border: 0; border-radius: 99px; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); cursor: pointer; }
.dock-fab[hidden] { display: none; }
.dock-fab:hover { filter: brightness(1.08); }
@media (max-width: 860px) { .dock-fab { display: none; } }
.dock .md table { display: block; width: fit-content; max-width: 100%; min-width: 0; overflow-x: auto; font-size: 12.5px; }
.dock .md th, .dock .md td { min-width: 76px; padding: 6px 8px; word-break: normal; overflow-wrap: normal; hyphens: none; }
.ls-marks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.ls-marks-l { margin-right: 4px; font-size: 13px; color: var(--muted); }
.ls-mark { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font: 550 13px var(--font); color: var(--text-2); background: transparent; border: 1px solid var(--line-2); border-radius: 99px; cursor: pointer; transition: background .12s, border-color .12s, color .12s; }
.ls-mark:hover { background: var(--hover); }
.ls-mark.ok.on { color: var(--ok); background: var(--ok-soft); border-color: var(--ok); }
.ls-mark.unsure.on { color: var(--mid); background: color-mix(in srgb, var(--mid) 13%, transparent); border-color: var(--mid); }
.ls-mark.bad.on { color: var(--warn); background: var(--warn-soft); border-color: var(--warn); }
.ls-mark-i { flex: none; display: inline-block; width: 14px; text-align: center; font-weight: 700; }
.ls-segs i.mk-ok { box-shadow: inset 0 -2px 0 var(--ok); }
.ls-segs i.mk-unsure { background: var(--mid); }
.ls-segs i.mk-bad { background: var(--warn); }
.ls-flagged { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 14px 0; }
.ls-flag-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; color: var(--text); border-radius: 10px; }
.ls-flag-row:hover { text-decoration: none; background: var(--hover); }
.ls-flag-row.bad .ls-mark-i { color: var(--warn); }
.ls-flag-row.unsure .ls-mark-i { color: var(--mid); }
.marked-box { margin-bottom: 12px; padding: 10px 12px; background: var(--warn-soft); border-radius: 14px; }
.marked-box > summary { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; cursor: pointer; list-style: none; }
.marked-box > summary::-webkit-details-marker { display: none; }
.marked-box > summary .ls-mark-i { color: var(--warn); }
.marked-box > summary .track-n { margin-left: auto; }
.marked-list { margin-top: 6px; }
.lp-flag { flex: none; font-size: 12px; font-weight: 600; color: var(--warn); }
.flash-wrap > .row:first-child { padding-right: 40px; }
