/* app.css — vmrchat 한 벌
 *
 * 색은 토큰으로만 씁니다. 리터럴 색상을 규칙 안에 적지 않습니다.
 * 다크 모드는 토큰만 다시 정의합니다 — 규칙을 두 벌 쓰지 않습니다.
 */

:root {
  --bg:        #F7F7F5;
  --surface:   #FFFFFF;
  --surface-2: #F2F2EF;
  --line:      #E3E3DE;
  --line-2:    #CFCFC8;

  --ink:       #1C1C1A;
  --ink-2:     #55554F;
  --ink-3:     #85857D;

  --accent:    #1F5F4B;
  --accent-2:  #E7F1ED;
  --ok:        #17724A;
  --warn:      #9A6408;
  --warn-bg:   #FDF3DF;
  --danger:    #B8342A;
  --danger-bg: #FBEBE9;

  --memo:      #FFF6C9;
  --memo-line: #EFD98A;
  --memo-ink:  #4A3D07;

  --r1: 6px; --r2: 10px; --r3: 16px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;

  --f-ui: "Pretendard", "Malgun Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono: "Consolas", "D2Coding", monospace;

  --shadow-1: 0 1px 2px rgba(0,0,0,.05), 0 1px 3px rgba(0,0,0,.04);
  --shadow-2: 0 4px 12px rgba(0,0,0,.08);
  --shadow-3: 0 10px 34px rgba(0,0,0,.14);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #17181A;
    --surface:   #1F2124;
    --surface-2: #26282C;
    --line:      #33363B;
    --line-2:    #454951;

    --ink:       #ECECE8;
    --ink-2:     #B2B4B0;
    --ink-3:     #83868A;

    --accent:    #6FCCA8;
    --accent-2:  #1C3A31;
    --ok:        #58BE90;
    --warn:      #E0B35A;
    --warn-bg:   #3A2F14;
    --danger:    #E5776B;
    --danger-bg: #3A211E;

    --memo:      #3D3A22;
    --memo-line: #6E653A;
    --memo-ink:  #F0E5B4;

    --shadow-1: 0 1px 2px rgba(0,0,0,.4);
    --shadow-2: 0 4px 12px rgba(0,0,0,.45);
    --shadow-3: 0 10px 34px rgba(0,0,0,.55);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.68 var(--f-ui);
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* ── 공통 부품 ─────────────────────────────────────────────── */
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: var(--s4); }
.narrow { max-width: 720px; }

.btn {
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r2);
  padding: 9px 16px;
  font-weight: 600;
  transition: background .12s, border-color .12s, transform .06s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { filter: brightness(1.08); background: var(--accent); }
:root:not([data-theme="light"]) .btn--primary { color: #10231D; }
@media (prefers-color-scheme: light) { .btn--primary { color: #fff; } }
.btn--ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--sm { padding: 5px 10px; font-size: 13px; border-radius: var(--r1); }

.field {
  width: 100%;
  border: 1px solid var(--line-2);
  background: var(--surface);
  border-radius: var(--r2);
  padding: 11px 13px;
}
.field:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
textarea.field { resize: vertical; min-height: 72px; line-height: 1.55; }

.tag {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .01em;
  padding: 2px 7px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-3); border: 1px solid var(--line);
}
.tag--llm { background: var(--accent-2); color: var(--accent); border-color: transparent; }
.tag--rule { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.tag--err { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.tag--must { background: var(--danger-bg); color: var(--danger); border-color: transparent; }

.muted { color: var(--ink-3); }
.small { font-size: 13px; }

/* ── 상단바 ─────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.top__in { display: flex; align-items: center; gap: var(--s3); height: 56px; }
.top__brand { font-weight: 800; letter-spacing: -.02em; font-size: 16px; display: flex; gap: 8px; align-items: center; }
.top__brand span { color: var(--accent); }
.top__spacer { flex: 1; }
.top__crumb { color: var(--ink-3); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── 1쪽 · 문 ──────────────────────────────────────────────── */
.gate { min-height: 100vh; display: grid; place-items: center; padding: var(--s5) var(--s4); }
.gate__card {
  width: min(460px, 100%); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r3); padding: var(--s6); box-shadow: var(--shadow-2);
}
.gate__logo { font-size: 30px; line-height: 1; }
.gate__h { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: var(--s4) 0 var(--s2); }
.gate__p { color: var(--ink-2); margin: 0 0 var(--s5); font-size: 14.5px; }
.gate__label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.gate__row { margin-bottom: var(--s4); }
.gate__note { margin-top: var(--s4); font-size: 12.5px; color: var(--ink-3); line-height: 1.55; }
.gate__hint { margin-top: 5px; font-size: 12.5px; color: var(--ink-3); }

/* 고칠 수 없는 칸 — 입력칸과 같은 자리에 있지만 누를 수 없다는 것이 보여야 합니다 */
.field--fixed {
  background: var(--surface-2); color: var(--ink-2); cursor: default;
  display: flex; align-items: center; gap: 4px;
}

/* ── 2쪽 · 주제 고르기 ─────────────────────────────────────── */
.page { padding: var(--s6) 0 var(--s7); }
.page__h { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; }
.page__p { color: var(--ink-2); margin: 0 0 var(--s5); }

.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: var(--s3); }
.topic {
  text-align: left; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r2); padding: var(--s4); display: flex; flex-direction: column; gap: 4px;
  transition: border-color .12s, box-shadow .12s, transform .08s;
}
.topic:hover { border-color: var(--accent); box-shadow: var(--shadow-1); transform: translateY(-1px); }
.topic__no { font-size: 11.5px; font-weight: 800; color: var(--accent); letter-spacing: .04em; }
.topic__name { font-weight: 700; font-size: 15.5px; }
.topic__n { font-size: 12.5px; color: var(--ink-3); }

.cases { display: grid; gap: var(--s2); }
.case {
  text-align: left; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r2); padding: var(--s4); display: flex; gap: var(--s4); align-items: flex-start;
}
.case:hover { border-color: var(--accent); }
.case__who { min-width: 96px; font-weight: 700; }
.case__who small { display: block; font-weight: 500; color: var(--ink-3); font-size: 12.5px; }
.case__txt { flex: 1; color: var(--ink-2); font-size: 14px; }
.case__meta { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }

/* ── 3쪽 · 대화 ────────────────────────────────────────────── */
.chat { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s4); align-items: start; }
@media (max-width: 960px) { .chat { grid-template-columns: minmax(0, 1fr); } }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r3); }
.panel__h {
  display: flex; align-items: center; gap: var(--s2);
  padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); font-weight: 700; font-size: 14px;
}
.panel__h .top__spacer { flex: 1; }

.brief { padding: var(--s4); border-bottom: 1px solid var(--line); background: var(--surface-2); border-radius: var(--r3) var(--r3) 0 0; }
.brief__who { font-weight: 800; font-size: 16px; }
.brief__p { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; }
.brief__tasks { margin: var(--s3) 0 0; padding-left: 18px; color: var(--ink-2); font-size: 13.5px; }

.stream { padding: var(--s4); display: flex; flex-direction: column; gap: var(--s4); min-height: 300px; max-height: 58vh; overflow-y: auto; }
.msg { display: flex; flex-direction: column; gap: 5px; max-width: 86%; }
.msg--me { align-self: flex-end; align-items: flex-end; }
.msg--pt { align-self: flex-start; }
.msg--sys { align-self: center; max-width: 100%; }

.bub { padding: 10px 14px; border-radius: 14px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.msg--me .bub { background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
:root:not([data-theme="light"]) .msg--me .bub { color: #10231D; }
.msg--pt .bub { background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg--sys .bub { background: var(--danger-bg); color: var(--danger); font-size: 13.5px; border-radius: var(--r2); }

.msg__foot { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-3); }
/* ⚠ 예전에는 opacity:0 으로 숨겨 두고 마우스를 올려야 보이게 했습니다.
   이 사이트에서 제일 중요한 행동이 피드백인데, 처음 오신 분은
   단추가 있는 줄도 모릅니다. **항상 보입니다.** */
.msg__act { display: flex; gap: 6px; }
.iact {
  border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px;
  padding: 5px 12px; font-size: 13px; font-weight: 700; color: var(--ink-2); line-height: 1.5;
}
.iact:hover { border-color: var(--accent); color: var(--accent); }
.iact.is-on { background: var(--accent-2); border-color: var(--accent); color: var(--accent); }

.ask { display: flex; gap: var(--s2); padding: var(--s3) var(--s4) var(--s4); border-top: 1px solid var(--line); }
.ask textarea { flex: 1; min-height: 46px; max-height: 160px; }

.qinfo { padding: 0 var(--s4) var(--s3); font-size: 12px; color: var(--ink-3); }

/* ── 체크리스트 (블러) ─────────────────────────────────────── */
.check { position: relative; }
.check__body { padding: var(--s3) var(--s4) var(--s4); max-height: 62vh; overflow-y: auto; }
.check.is-blur .check__body { filter: blur(6px); user-select: none; pointer-events: none; }
.check__veil {
  position: absolute; inset: 48px 0 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s3);
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  border-radius: 0 0 var(--r3) var(--r3); text-align: center; padding: var(--s5) var(--s4);
}
/* 흐린 글씨 위에 얹히므로 안내 자체는 불투명한 카드로 띄웁니다 */
.check__veil > * { position: sticky; top: 40%; }
.check__card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2);
  padding: var(--s4); box-shadow: var(--shadow-2); display: flex; flex-direction: column;
  align-items: center; gap: var(--s3); max-width: 290px;
}
.check__veil p { margin: 0; color: var(--ink-2); font-size: 13.5px; max-width: 260px; line-height: 1.55; }

.ci { display: flex; gap: var(--s2); padding: 9px 0; border-bottom: 1px dashed var(--line); align-items: flex-start; }
.ci:last-child { border-bottom: 0; }
.ci__box {
  flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; border-radius: 5px;
  border: 1.5px solid var(--line-2); background: var(--surface); display: grid; place-items: center;
  font-size: 12px; color: transparent; padding: 0;
}
.ci__box.is-on { background: var(--ok); border-color: var(--ok); color: #fff; }
.ci__t { flex: 1; font-size: 13.5px; line-height: 1.5; }
.ci__t.is-done { color: var(--ink-3); text-decoration: line-through; }
.ci__sec { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.ci__memo { border: 0; background: transparent; color: var(--ink-3); padding: 0 4px; font-size: 14px; }
.ci__memo:hover, .ci__memo.is-on { color: var(--warn); }

/* ── 메모지 ────────────────────────────────────────────────── */
.memo {
  background: var(--memo); border: 1px solid var(--memo-line); color: var(--memo-ink);
  border-radius: var(--r2); padding: var(--s3); box-shadow: var(--shadow-2);
  display: flex; flex-direction: column; gap: var(--s2); margin-top: 6px;
  animation: memoIn .14s ease-out;
}
@keyframes memoIn { from { opacity: 0; transform: translateY(-4px) } to { opacity: 1; transform: none } }
.memo__kinds { display: flex; flex-wrap: wrap; gap: 5px; }
.memo__k {
  border: 1px solid var(--memo-line); background: transparent; color: var(--memo-ink);
  border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600;
}
.memo__k.is-on { background: var(--memo-ink); color: var(--memo); border-color: var(--memo-ink); }
.memo textarea {
  border: 1px solid var(--memo-line); background: color-mix(in srgb, var(--memo) 60%, var(--surface));
  color: var(--memo-ink); border-radius: var(--r1); padding: 8px 10px; min-height: 64px; resize: vertical;
}
.memo textarea::placeholder { color: color-mix(in srgb, var(--memo-ink) 50%, transparent); }
.memo__foot { display: flex; align-items: center; gap: var(--s2); }
.memo__foot .top__spacer { flex: 1; }
.memo__sev { display: flex; gap: 4px; }
.memo__sev button {
  border: 1px solid var(--memo-line); background: transparent; color: var(--memo-ink);
  border-radius: var(--r1); padding: 2px 9px; font-size: 12px; font-weight: 700;
}
.memo__sev button.is-on { background: var(--memo-ink); color: var(--memo); }
.memo__save { border: 0; background: var(--memo-ink); color: var(--memo); border-radius: var(--r1); padding: 6px 14px; font-weight: 700; font-size: 13px; }
.memo__q { font-size: 12px; opacity: .8; border-left: 2px solid var(--memo-line); padding-left: 8px; }

.saved {
  background: var(--memo); border: 1px solid var(--memo-line); color: var(--memo-ink);
  border-radius: var(--r2); padding: 8px 11px; font-size: 13px; margin-top: 6px;
  display: flex; gap: var(--s2); align-items: flex-start;
}
.saved__t { flex: 1; white-space: pre-wrap; }
.saved__x { border: 0; background: transparent; color: var(--memo-ink); opacity: .6; padding: 0 2px; }
.saved__x:hover { opacity: 1; }

/* ── 4쪽 · 결과 ────────────────────────────────────────────── */
.res { display: grid; gap: var(--s4); }
.score { display: flex; align-items: center; gap: var(--s5); flex-wrap: wrap; padding: var(--s5); }
.score__n { font-size: 48px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.score__n small { font-size: 18px; color: var(--ink-3); font-weight: 700; }
.score__v { font-size: 15px; font-weight: 700; }
.score__v.is-ok { color: var(--ok); }
.score__v.is-no { color: var(--danger); }
.score__basis { font-size: 12.5px; color: var(--ink-3); }
.score__dx { margin-left: auto; text-align: right; }
.score__dx b { display: block; font-size: 17px; }

.dom { border-top: 1px solid var(--line); }
.dom__h {
  display: flex; gap: var(--s3); align-items: center; padding: var(--s3) var(--s4);
  background: var(--surface-2); font-size: 13px; font-weight: 700;
}
.dom__h .top__spacer { flex: 1; }
.dom__items { padding: 0 var(--s4); }
.di { display: flex; gap: var(--s3); padding: 10px 0; border-bottom: 1px dashed var(--line); align-items: flex-start; }
.di:last-child { border-bottom: 0; }
.di__s { flex: 0 0 auto; width: 18px; text-align: center; font-weight: 800; }
.di[data-s="PASS"] .di__s { color: var(--ok); }
.di[data-s="FAIL"] .di__s { color: var(--danger); }
.di[data-s="NOT_SCORABLE"] .di__s { color: var(--ink-3); }
.di__t { flex: 1; font-size: 13.5px; }
.di__e { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.di__p { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }

.tutor__body { padding: var(--s4); display: grid; gap: var(--s3); }
.para { display: flex; gap: var(--s3); align-items: flex-start; }
.para__t { flex: 1; line-height: 1.7; }
.para__b { flex: 0 0 auto; }

/* ── 히스토리 · 모아보기 ───────────────────────────────────── */
.rows { display: grid; gap: var(--s2); }
.row {
  display: flex; gap: var(--s4); align-items: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r2); padding: var(--s3) var(--s4); text-align: left;
}
.row:hover { border-color: var(--accent); }
.row__m { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.row__t { flex: 1; min-width: 0; }
.row__t b { display: block; font-size: 14.5px; }
.row__t span { font-size: 12.5px; color: var(--ink-3); }

.grp { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2); margin-bottom: var(--s3); overflow: hidden; }
.grp__h { display: flex; gap: var(--s3); align-items: center; padding: var(--s3) var(--s4); background: var(--surface-2); width: 100%; text-align: left; border: 0; }
.grp__h b { font-size: 14.5px; }
.grp__b { padding: var(--s3) var(--s4) var(--s4); display: grid; gap: var(--s3); }
.nt { border-left: 3px solid var(--memo-line); padding-left: var(--s3); }
.nt__h { display: flex; gap: var(--s2); align-items: center; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; }
.nt__q { background: var(--surface-2); border-radius: var(--r1); padding: 6px 9px; font-size: 13px; margin: 5px 0; color: var(--ink-2); }
.nt__t { font-size: 14px; white-space: pre-wrap; }

.empty { text-align: center; color: var(--ink-3); padding: var(--s7) var(--s4); font-size: 14px; }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-3);
}

.spin { display: inline-block; width: 13px; height: 13px; border: 2px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: sp .7s linear infinite; vertical-align: -2px; }
@keyframes sp { to { transform: rotate(360deg) } }

/* ── 단계 표시 ──────────────────────────────────────────────
   교수님이 「지금 어디쯤이고 다음에 무엇을 하는지」를 늘 보이게 합니다. */
.steps { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 var(--s5); }
.step {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-3);
}
.step b {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink-3); font-size: 12px;
}
.step.is-now { border-color: var(--accent); color: var(--accent); background: var(--accent-2); }
.step.is-now b { background: var(--accent); color: var(--surface); }
.step.is-done { color: var(--ink-2); }
.step.is-done b { background: var(--ok); color: #fff; }
.steps__arrow { color: var(--line-2); font-size: 12px; }

/* ── 첫 사용 안내 ───────────────────────────────────────────── */
.hint {
  display: flex; gap: var(--s3); align-items: flex-start;
  background: var(--accent-2); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--r2); padding: var(--s3) var(--s4); margin-bottom: var(--s4);
}
.hint__i { font-size: 18px; line-height: 1.3; }
.hint__t { flex: 1; font-size: 14px; color: var(--ink); line-height: 1.6; }
.hint__t b { color: var(--accent); }
.hint__x { border: 0; background: transparent; color: var(--ink-3); font-size: 15px; padding: 0 2px; }
.hint__x:hover { color: var(--ink); }

/* ── 예시 질문 ──────────────────────────────────────────────── */
.seeds { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 var(--s4) var(--s3); }
.seed {
  border: 1px dashed var(--line-2); background: transparent; color: var(--ink-2);
  border-radius: 999px; padding: 6px 13px; font-size: 13.5px;
}
.seed:hover { border-style: solid; border-color: var(--accent); color: var(--accent); background: var(--accent-2); }

/* ── 큰 마무리 단추 ─────────────────────────────────────────── */
.btn--lg { padding: 12px 22px; font-size: 15.5px; border-radius: var(--r2); }

/* 대화가 한 줄도 없으면 마무리를 누를 이유가 없습니다 */
.finishbar { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; margin-bottom: var(--s4); }
.finishbar__n { font-size: 13.5px; color: var(--ink-3); }

/* ── 관리자 (내부용) ───────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--s3); }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2);
  padding: var(--s4); display: flex; flex-direction: column; gap: 2px;
}
.stat__l { font-size: 12.5px; color: var(--ink-3); font-weight: 700; }
.stat__v { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.stat__s { font-size: 12.5px; color: var(--ink-3); }

/* 표는 좁은 화면에서 옆으로 넘깁니다 — 본문이 가로로 밀리면 안 됩니다 */
.tbl__wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th, .tbl td { padding: 10px var(--s4); text-align: left; white-space: nowrap; }
.tbl th {
  font-size: 12px; color: var(--ink-3); font-weight: 700;
  border-bottom: 1px solid var(--line); background: var(--surface-2);
  position: sticky; top: 0;
}
.tbl td { border-bottom: 1px dashed var(--line); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--surface-2); }

.bars { padding: var(--s4); display: grid; gap: 7px; }
.bar { display: flex; align-items: center; gap: var(--s3); }
.bar__l { flex: 0 0 132px; font-size: 13px; color: var(--ink-2); }
.bar__t { flex: 1; background: var(--surface-2); border-radius: 999px; height: 15px; overflow: hidden; }
.bar__f { height: 100%; background: var(--danger); border-radius: 999px; }
.bar__f.is-good { background: var(--ok); }
.bar__n { flex: 0 0 34px; text-align: right; font-size: 13px; font-weight: 700; color: var(--ink-2); }

.filters { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; padding-bottom: var(--s3); }
.filters select { cursor: pointer; }
