/* StudyRoom design system — calm, credible, learning-first. Tokens per blueprint §18. */
:root {
  --sr-navy: #14273E;
  --sr-navy-2: #1d3554;
  --sr-teal: #087F78;
  --sr-teal-dark: #066660;
  --sr-teal-light: #E7F5F1;
  --sr-bg: #FAF9F5;
  --sr-white: #FFFFFF;
  --sr-ink: #1B2430;
  --sr-slate: #526273;
  --sr-muted: #6B7785;
  --sr-line: #DFE5E8;
  --sr-line-2: #EDF0F2;
  --sr-success: #167344;
  --sr-success-bg: #E8F4EC;
  --sr-warning: #A96511;
  --sr-warning-bg: #FBF1E3;
  --sr-danger: #B33A36;
  --sr-danger-bg: #FBEAEA;
  --sr-info: #275D9B;
  --sr-info-bg: #EAF1F9;
  --sr-radius-sm: 8px;
  --sr-radius-md: 12px;
  --sr-radius-lg: 18px;
  --sr-tap-min: 44px;
  --sr-shadow: 0 1px 2px rgba(20, 39, 62, .06), 0 4px 16px rgba(20, 39, 62, .05);
  --sr-max-reading: 72ch;
  --sr-font: "Inter", "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sr-serif: "Fraunces", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--sr-bg); color: var(--sr-ink);
  font: 16px/1.6 var(--sr-font); text-rendering: optimizeLegibility;
}
@media (min-width: 768px) { body { font-size: 17px; } }
img, svg { max-width: 100%; }
a { color: var(--sr-teal-dark); text-underline-offset: 3px; }
a:hover { color: var(--sr-navy); }
h1, h2, h3, h4 { color: var(--sr-navy); line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 1.15rem + 1vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.serif { font-family: var(--sr-serif); font-weight: 600; }
:focus-visible { outline: 3px solid var(--sr-teal); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sr-navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* layout */
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }
.narrow { max-width: 760px; }
.reading { max-width: var(--sr-max-reading); }
.section { padding: 48px 0; }
@media (min-width: 1024px) { .section { padding: 72px 0; } }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: 1fr; } .g3 { grid-template-columns: 1fr; } .g4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 16px; }
.muted { color: var(--sr-slate); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.center { text-align: center; }
.mt0 { margin-top: 0 } .mb0 { margin-bottom: 0 } .mt1 { margin-top: 8px } .mt2 { margin-top: 16px } .mt3 { margin-top: 24px } .mt4 { margin-top: 40px }

/* header */
.site-header { background: var(--sr-white); border-bottom: 1px solid var(--sr-line); position: sticky; top: 0; z-index: 30; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--sr-navy); font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand small { font-weight: 500; color: var(--sr-slate); font-size: .78rem; display: block; letter-spacing: 0; }
.nav { display: none; gap: 4px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--sr-ink); padding: 10px 12px; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--sr-teal-light); color: var(--sr-teal-dark); }
.menu-btn { margin-left: auto; }
@media (min-width: 960px) { .nav { display: flex; } .menu-btn { display: none; } }
.mobile-nav { display: none; border-top: 1px solid var(--sr-line); background: #fff; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 14px 16px; border-bottom: 1px solid var(--sr-line-2); color: var(--sr-ink); text-decoration: none; font-weight: 500; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--sr-tap-min);
  padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; font: 600 .95rem/1.2 var(--sr-font);
  cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--sr-teal); color: #fff; }
.btn-primary:hover { background: var(--sr-teal-dark); color: #fff; }
.btn-navy { background: var(--sr-navy); color: #fff; }
.btn-navy:hover { background: var(--sr-navy-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--sr-navy); border-color: var(--sr-line); }
.btn-ghost:hover { border-color: var(--sr-teal); color: var(--sr-teal-dark); background: #fff; }
.btn-light { background: #fff; color: var(--sr-navy); border-color: var(--sr-line); }
.btn-danger { background: var(--sr-danger); color: #fff; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--sr-teal-dark); font: inherit; text-decoration: underline; cursor: pointer; }

/* cards */
.card { background: var(--sr-white); border: 1px solid var(--sr-line); border-radius: var(--sr-radius-md); padding: 20px; box-shadow: var(--sr-shadow); }
.card-flat { box-shadow: none; }
.card h3 { margin-bottom: 6px; }
.card-link { display: block; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.card-link:hover { border-color: var(--sr-teal); color: inherit; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-head h2, .card-head h3 { margin: 0; }
.panel { background: var(--sr-teal-light); border-radius: var(--sr-radius-md); padding: 20px; }
.panel-navy { background: var(--sr-navy); color: #fff; border-radius: var(--sr-radius-lg); padding: 28px; }
.panel-navy h2, .panel-navy h3 { color: #fff; }

/* subject tiles */
.subject-tile { display: flex; gap: 14px; align-items: flex-start; }
.subject-icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; flex: none; color: #fff; }
.subject-icon svg { width: 22px; height: 22px; }
.subject-tile h3 { font-size: 1.02rem; margin: 0 0 2px; }
.subject-tile .ga { color: var(--sr-slate); font-size: .85rem; font-style: italic; }

/* badges & status */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--sr-line); background: #fff; color: var(--sr-slate); white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9; }
.badge.nodot::before { display: none; }
.st-planned { color: var(--sr-muted); }
.st-prototype { color: var(--sr-info); background: var(--sr-info-bg); border-color: transparent; }
.st-testing { color: var(--sr-warning); background: var(--sr-warning-bg); border-color: transparent; }
.st-released { color: var(--sr-success); background: var(--sr-success-bg); border-color: transparent; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--sr-line-2); color: var(--sr-slate); }
.tag-teal { background: var(--sr-teal-light); color: var(--sr-teal-dark); }

/* alerts */
.alert { border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; border: 1px solid; display: flex; gap: 10px; align-items: flex-start; }
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.alert-ok { background: var(--sr-success-bg); border-color: #bfe0cb; color: #0f5432; }
.alert-err { background: var(--sr-danger-bg); border-color: #efc7c5; color: #7d2522; }
.alert-warn { background: var(--sr-warning-bg); border-color: #efd6b2; color: #6d410b; }
.alert-info { background: var(--sr-info-bg); border-color: #c9dbef; color: #1b416d; }

/* forms */
label { display: block; font-weight: 600; font-size: .92rem; margin: 0 0 6px; color: var(--sr-navy); }
.field { margin-bottom: 16px; }
.hint-text { font-size: .82rem; color: var(--sr-slate); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=datetime-local], input[type=date], select, textarea {
  width: 100%; min-height: var(--sr-tap-min); padding: 10px 12px; font: inherit; color: var(--sr-ink);
  background: #fff; border: 1px solid #c9d2d8; border-radius: 10px;
}
textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { border-color: var(--sr-teal); outline: 3px solid rgba(8, 127, 120, .18); outline-offset: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--sr-ink); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--sr-teal); flex: none; }
.error-text { color: var(--sr-danger); font-size: .85rem; margin-top: 4px; }
.inline-form { display: inline; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; color: var(--sr-navy); margin-bottom: 8px; padding: 0; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--sr-line); border-radius: var(--sr-radius-md); background: #fff; }
table.t { width: 100%; border-collapse: collapse; font-size: .92rem; }
.t th, .t td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--sr-line-2); vertical-align: top; }
.t th { background: #F4F6F7; color: var(--sr-navy); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.t tr:last-child td { border-bottom: 0; }
.t tr.dim td { color: var(--sr-muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* meters */
.meter { height: 8px; background: var(--sr-line-2); border-radius: 99px; overflow: hidden; min-width: 60px; }
.meter > span { display: block; height: 100%; background: var(--sr-teal); border-radius: 99px; }
.meter.warn > span { background: var(--sr-warning); }
.meter.low > span { background: var(--sr-danger); }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: 1.6rem; color: var(--sr-navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--sr-slate); font-size: .85rem; }

/* hero */
.hero { background: linear-gradient(180deg, #fff 0%, var(--sr-bg) 100%); border-bottom: 1px solid var(--sr-line); }
.hero .wrap { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 48px; }
@media (min-width: 1024px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; align-items: center; padding-top: 72px; padding-bottom: 80px; } }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; color: var(--sr-teal-dark); margin-bottom: 10px; }
.lede { font-size: 1.15rem; color: var(--sr-slate); max-width: 56ch; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; position: relative; padding-left: 48px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--sr-teal-light); color: var(--sr-teal-dark); font-weight: 700; display: grid; place-items: center; }

/* app shell (signed-in) */
.app { display: flex; min-height: 100vh; }
.rail { display: none; width: 248px; flex: none; background: var(--sr-navy); color: #c9d6e3; padding: 16px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.rail .brand { color: #fff; padding: 6px 10px 18px; }
.rail .brand small { color: #9fb2c6; }
.rail nav a { display: flex; align-items: center; gap: 12px; color: #d7e1eb; text-decoration: none; padding: 10px 12px; border-radius: 10px; font-weight: 500; min-height: 44px; }
.rail nav a svg { width: 20px; height: 20px; opacity: .9; }
.rail nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.rail nav a[aria-current="page"] { background: var(--sr-teal); color: #fff; }
.rail .rail-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: #8ea3b9; padding: 16px 12px 6px; }
.rail .who { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 16px; padding: 14px 12px 4px; font-size: .85rem; }
.app-main { flex: 1; min-width: 0; padding-bottom: 88px; }
.app-top { background: #fff; border-bottom: 1px solid var(--sr-line); position: sticky; top: 0; z-index: 20; }
.app-top .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.app-content { padding-top: 24px; padding-bottom: 40px; }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--sr-line); display: flex; z-index: 40; padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 6px; text-decoration: none; color: var(--sr-slate); font-size: .7rem; font-weight: 600; min-height: 56px; }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--sr-teal-dark); }
@media (min-width: 1024px) { .rail { display: block; } .tabbar { display: none; } .app-main { padding-bottom: 0; } .app-top .brand { display: none; } }
.page-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.page-title h1 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.crumbs { font-size: .85rem; color: var(--sr-slate); margin-bottom: 8px; }
.crumbs a { color: var(--sr-slate); }

/* practice workspace */
.workspace { display: grid; gap: 20px; }
@media (min-width: 1024px) { .workspace.has-passage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } .workspace.has-passage .passage { position: sticky; top: 84px; max-height: calc(100vh - 110px); overflow: auto; } }
.passage { background: #fff; border: 1px solid var(--sr-line); border-radius: var(--sr-radius-md); padding: 20px 22px; }
.passage h3 { font-family: var(--sr-serif); }
.passage p { white-space: pre-line; }
.q-card { background: #fff; border: 1px solid var(--sr-line); border-radius: var(--sr-radius-lg); padding: 22px; box-shadow: var(--sr-shadow); }
@media (min-width: 768px) { .q-card { padding: 28px 32px; } }
.q-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.q-prompt { font-size: 1.12rem; color: var(--sr-ink); white-space: pre-line; margin-bottom: 18px; }
.q-prompt.lang-ga { font-family: var(--sr-font); }
.opts { display: grid; gap: 10px; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--sr-line); border-radius: 12px; cursor: pointer; background: #fff; min-height: 52px; font-weight: 400; color: var(--sr-ink); }
.opt:hover { border-color: #9cc9c5; }
.opt input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--sr-teal); flex: none; }
.opt:has(input:checked) { border-color: var(--sr-teal); background: var(--sr-teal-light); }
.opt.right { border-color: var(--sr-success); background: var(--sr-success-bg); }
.opt.wrong { border-color: var(--sr-danger); background: var(--sr-danger-bg); }
.opt .opt-letter { font-weight: 700; color: var(--sr-slate); min-width: 18px; }
.gap-input { display: inline-block; width: auto; min-width: 120px; max-width: 220px; min-height: 38px; padding: 4px 10px; margin: 2px 4px; vertical-align: baseline; }
.gap-input.ok { border-color: var(--sr-success); background: var(--sr-success-bg); }
.gap-input.bad { border-color: var(--sr-danger); background: var(--sr-danger-bg); }
.order-row, .match-row { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--sr-line); border-radius: 10px; margin-bottom: 8px; background: #fff; }
.match-row { grid-template-columns: 1fr; }
@media (min-width: 640px) { .match-row { grid-template-columns: 1fr 1fr; } }
.hints details { border: 1px dashed #b8cfcc; border-radius: 10px; padding: 10px 14px; margin-top: 10px; background: #fbfdfc; }
.hints summary { cursor: pointer; font-weight: 600; color: var(--sr-teal-dark); min-height: 28px; }
.confidence { display: flex; gap: 8px; flex-wrap: wrap; }
.confidence label { font-weight: 500; display: inline-flex; gap: 6px; align-items: center; padding: 8px 12px; border: 1px solid var(--sr-line); border-radius: 999px; cursor: pointer; margin: 0; font-size: .88rem; color: var(--sr-ink); }
.confidence label:has(input:checked) { border-color: var(--sr-teal); background: var(--sr-teal-light); }
.confidence input { accent-color: var(--sr-teal); }
.q-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--sr-line-2); }
.feedback { border-radius: 12px; padding: 16px 18px; margin-top: 18px; }
.feedback.ok { background: var(--sr-success-bg); border: 1px solid #bfe0cb; }
.feedback.bad { background: var(--sr-danger-bg); border: 1px solid #efc7c5; }
.feedback.neutral { background: var(--sr-info-bg); border: 1px solid #c9dbef; }
.feedback h3 { margin: 0 0 6px; font-size: 1.05rem; display: flex; gap: 8px; align-items: center; }
.feedback h3 svg { width: 22px; height: 22px; }
.q-diagram { margin: 0 0 18px; padding: 12px; background: #fff; border: 1px solid var(--sr-line); border-radius: 10px; text-align: center; }
.q-diagram svg { max-width: 100%; height: auto; max-height: 320px; }
.fb-why-wrong { background: #fff; border-left: 4px solid var(--sr-danger); border-radius: 0 8px 8px 0; padding: 10px 14px; margin: 10px 0; font-size: .95rem; }
.fb-steps { background: #fff; border-radius: 10px; padding: 12px 16px; margin: 12px 0; border: 1px solid var(--sr-line); }
.fb-steps ol { margin: 8px 0 0; padding-left: 22px; }
.fb-steps li { margin: 4px 0; }
.fb-mistake { display: flex; gap: 10px; align-items: flex-start; background: var(--sr-warning-bg); color: #6d410b; border-radius: 10px; padding: 10px 14px; margin-top: 12px; font-size: .92rem; }
.fb-mistake svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.model-answer { white-space: pre-line; background: #fff; border-left: 4px solid var(--sr-teal); padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 10px 0; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--sr-navy); background: var(--sr-teal-light); padding: 6px 12px; border-radius: 8px; }
.timer.low { background: var(--sr-warning-bg); color: var(--sr-warning); }
.qnum { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--sr-navy); color: #fff; font-weight: 700; font-size: .9rem; flex: none; }

/* pricing */
.price-card { display: flex; flex-direction: column; }
.price-card.highlight { border: 2px solid var(--sr-teal); position: relative; }
.price-card .flag { position: absolute; top: -12px; left: 20px; background: var(--sr-teal); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; letter-spacing: .04em; text-transform: uppercase; }
.price { font-size: 2.1rem; font-weight: 700; color: var(--sr-navy); line-height: 1.1; }
.price small { font-size: .95rem; font-weight: 500; color: var(--sr-slate); }
.ticks { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.ticks li { padding-left: 28px; position: relative; font-size: .95rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--sr-teal-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087F78' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }
.price-card .btn { margin-top: auto; }

/* footer */
.site-footer { background: var(--sr-navy); color: #c3d0dd; margin-top: 64px; }
.site-footer .wrap { padding-top: 40px; padding-bottom: 40px; display: grid; gap: 24px; }
@media (min-width: 768px) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer a { color: #e3ebf2; text-decoration: none; display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h4 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer .legal { border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; padding: 16px 0 24px; color: #9fb2c6; }

/* misc */
.empty { text-align: center; padding: 40px 20px; color: var(--sr-slate); border: 1px dashed var(--sr-line); border-radius: var(--sr-radius-md); background: #fff; }
.empty svg { width: 40px; height: 40px; color: #a9b6c2; margin-bottom: 8px; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 12px 0; border-bottom: 1px solid var(--sr-line-2); }
.list-plain li:last-child { border-bottom: 0; }
.kpi-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .kpi-row { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: #fff; border: 1px solid var(--sr-line); border-radius: 12px; padding: 14px 16px; }
.code-box { font-family: ui-monospace, Consolas, monospace; font-size: 1.4rem; letter-spacing: .12em; font-weight: 700; color: var(--sr-navy); background: var(--sr-teal-light); padding: 10px 16px; border-radius: 10px; display: inline-block; }
.topic-list { list-style: none; padding: 0; margin: 0; }
.topic-list li { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 12px 4px; border-bottom: 1px solid var(--sr-line-2); flex-wrap: wrap; }
.topic-list li:last-child { border-bottom: 0; }
.topic-list .tl-main { flex: 1 1 260px; min-width: 0; }
.topic-list a.tl-name { font-weight: 600; text-decoration: none; color: var(--sr-navy); }
.topic-list a.tl-name:hover { color: var(--sr-teal-dark); text-decoration: underline; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 90px; }
.bars span { flex: 1; background: var(--sr-teal); border-radius: 4px 4px 0 0; min-height: 2px; opacity: .85; }
.bars span.zero { background: var(--sr-line); }
.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.pagination a, .pagination span { padding: 6px 12px; border: 1px solid var(--sr-line); border-radius: 8px; text-decoration: none; background: #fff; font-size: .9rem; }
.pagination .active { background: var(--sr-navy); color: #fff; border-color: var(--sr-navy); }
.pagination .disabled { color: #aab; }
.demo-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.demo-grid .btn { justify-content: flex-start; white-space: normal; text-align: left; height: auto; padding: 12px 14px; }
.notice-bar { background: var(--sr-warning-bg); color: #6d410b; font-size: .85rem; text-align: center; padding: 8px 16px; border-bottom: 1px solid #efd6b2; }
.filter-bar { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); align-items: end; }
@media (min-width: 900px) { .filter-bar { grid-template-columns: repeat(6, 1fr); } }
.filter-bar .field { margin: 0; }
.pill-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.pill-nav a { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--sr-line); text-decoration: none; color: var(--sr-ink); font-size: .9rem; background: #fff; }
.pill-nav a.active { background: var(--sr-navy); color: #fff; border-color: var(--sr-navy); }
details.disclosure { border: 1px solid var(--sr-line); border-radius: 10px; padding: 0 14px; background: #fff; margin-bottom: 10px; }
details.disclosure > summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--sr-navy); }
