/* ============================================================
   SuperbMarket Study Portal — design system
   UWI St. Augustine × University of Glasgow
   ============================================================ */

:root {
  /* Colour */
  --ink:        #16202f;
  --ink-2:      #33445c;
  --muted:      #64748b;
  --faint:      #94a3b8;
  --canvas:     #f5f3ee;
  --surface:    #ffffff;
  --surface-2:  #fbfaf7;
  --line:       #e4dfd5;
  --line-soft:  #efebe3;

  --brand:      #234e70;
  --brand-dark: #17364f;
  --brand-soft: #eaf1f6;
  --brand-line: #c3d6e4;

  --accent:     #b5591f;
  --accent-soft:#fdf1e7;

  --ok:         #2f7d5d;
  --ok-soft:    #e8f4ee;
  --warn:       #a16207;
  --warn-soft:  #fdf6e3;

  /* Type */
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Space */
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(22,32,47,.06), 0 1px 3px rgba(22,32,47,.04);
  --shadow:    0 2px 4px rgba(22,32,47,.05), 0 8px 24px rgba(22,32,47,.07);
  --shadow-lg: 0 4px 8px rgba(22,32,47,.06), 0 20px 48px rgba(22,32,47,.12);

  --wrap: 940px;
}

* , *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.24; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 30px; }
h2 { font-size: 23px; }
h3 { font-size: 18.5px; }
h4 { font-size: 16px; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a  { color: var(--brand); text-decoration: none; border-bottom: 1px solid var(--brand-line); }
a:hover { color: var(--brand-dark); border-bottom-color: var(--brand); }
small { font-size: 13px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
::selection { background: #d9e6ef; }

/* ── Layout ─────────────────────────────────────────────── */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.page { padding: 34px 0 90px; animation: rise .28s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.stack > * + * { margin-top: 18px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ── Top bar ────────────────────────────────────────────── */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.topbar-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 20px; min-height: 62px;
}
.brand { display: flex; align-items: center; gap: 11px; border: 0; flex-shrink: 0; }
.brand:hover { border: 0; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(150deg, var(--brand) 0%, #2f6b93 100%);
  color: #fff; display: grid; place-items: center;
  font-family: var(--serif); font-size: 17px; font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.brand-txt { line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 16.5px; font-weight: 600; color: var(--ink); }
.brand-sub { font-size: 11px; color: var(--faint); letter-spacing: .06em; text-transform: uppercase; }

.nav { display: flex; gap: 2px; margin-left: 8px; flex-wrap: wrap; }
.nav a {
  border: 0; padding: 7px 12px; border-radius: var(--r-sm);
  font-size: 14px; color: var(--ink-2); font-weight: 500;
}
.nav a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.nav a.on { background: var(--brand); color: #fff; }

.pid {
  margin-left: auto; display: flex; align-items: center; gap: 9px;
  font-size: 13px; color: var(--muted); flex-shrink: 0;
}
.pid-code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: var(--brand-soft); color: var(--brand-dark);
  border: 1px solid var(--brand-line); border-radius: 20px;
  padding: 3px 12px; font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
}
.pid a { border: 0; font-size: 13px; color: var(--muted); }
.pid a:hover { color: var(--accent); }

/* ── BIW strip ──────────────────────────────────────────── */
.biw {
  background: linear-gradient(97deg, var(--brand-dark) 0%, var(--brand) 55%, #2f6b93 100%);
  color: #eaf1f6; font-size: 13px; padding: 9px 24px;
}
.biw-inner {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; gap: 10px 22px; align-items: center; justify-content: center; flex-wrap: wrap;
}
.biw b { color: #fff; font-weight: 600; }
.biw-pill {
  background: rgba(255,255,255,.16); border-radius: 20px;
  padding: 2px 11px; font-weight: 600; color: #fff; margin-right: 6px;
  font-size: 12px; letter-spacing: .02em;
}

/* ── Institution bar ────────────────────────────────────── */
.instbar {
  background: var(--ink); color: #c9d4e0;
  font-size: 12px; letter-spacing: .03em; padding: 6px 0;
}
.instbar .wrap { display: block; }
@media (max-width: 560px) { .instbar { font-size: 11px; line-height: 1.5; } }

/* ── Banners ────────────────────────────────────────────── */
.banner {
  font-size: 13px; padding: 8px 24px; text-align: center;
  border-bottom: 1px solid;
}
.banner-demo { background: var(--warn-soft); color: var(--warn); border-color: #f0e2bd; }
.banner-preview { background: var(--accent-soft); color: var(--accent); border-color: #f3ddca; }
.banner b { font-weight: 700; }

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px 28px;
  box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 18px; }
.card-tight { padding: 20px 22px; }
.card > h2, .card > h3 { margin-bottom: 10px; }
.card-head {
  display: flex; align-items: baseline; gap: 12px;
  margin: -4px 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft);
}
.card-head h3 { margin: 0; }

.eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: .11em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 7px;
}
.eyebrow-b { color: var(--brand); }

.lede { font-size: 17px; color: var(--ink-2); line-height: 1.6; }
.muted { color: var(--muted); }
.tiny { font-size: 12.5px; color: var(--faint); line-height: 1.5; }

/* ── Page header ────────────────────────────────────────── */
.phead { margin-bottom: 26px; }
.phead h1 { margin-bottom: 6px; }
.phead p { color: var(--muted); margin: 0; font-size: 15px; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 14.5px; font-weight: 600;
  padding: 11px 22px; border-radius: var(--r); border: 1px solid transparent;
  cursor: pointer; transition: background .16s, border-color .16s, color .16s, transform .06s;
  text-decoration: none; line-height: 1.3;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); background: var(--brand-soft); }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: #97481a; border-color: #97481a; color: #fff; }
.btn-quiet { background: transparent; color: var(--muted); border-color: transparent; padding: 9px 14px; }
.btn-quiet:hover { color: var(--ink); background: var(--surface-2); }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn-lg { padding: 14px 30px; font-size: 15.5px; }
.btn-sm { padding: 7px 14px; font-size: 13.5px; }
.btn-block { width: 100%; }
a.btn { border-bottom: 1px solid transparent; }

.actions { display: flex; gap: 12px; align-items: center; margin-top: 26px; flex-wrap: wrap; }
.actions-end { justify-content: flex-end; }

/* ── Forms ──────────────────────────────────────────────── */
.field { margin-bottom: 18px; }
.field label, .lbl {
  display: block; font-size: 13.5px; font-weight: 600;
  color: var(--ink-2); margin-bottom: 6px;
}
.req { color: var(--accent); font-weight: 700; }
input[type=text], input[type=email], input[type=password], select, textarea {
  width: 100%; font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 10px 13px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(35,78,112,.11);
}
textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.hint { font-size: 12.5px; color: var(--faint); margin-top: 5px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 620px) { .grid-2 { grid-template-columns: 1fr; } }

.err { color: #b3261e; font-size: 13px; margin-top: 6px; font-weight: 500; }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: #b3261e; }

/* ── Checkbox list (consent) ────────────────────────────── */
.checklist { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.check {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 14px 17px; cursor: pointer;
  border-bottom: 1px solid var(--line-soft);
  transition: background .14s;
}
.check:last-child { border-bottom: 0; }
.check:hover { background: var(--surface-2); }
.check.ticked { background: var(--ok-soft); }
.check input { margin: 3px 0 0; width: 17px; height: 17px; accent-color: var(--brand); flex-shrink: 0; cursor: pointer; }
.check span { font-size: 14.2px; color: var(--ink-2); line-height: 1.55; }

/* ── Timeline (dashboard) ───────────────────────────────── */
.tl { position: relative; margin-top: 8px; }
.tl::before {
  content: ""; position: absolute; left: 21px; top: 14px; bottom: 14px;
  width: 2px; background: var(--line); border-radius: 2px;
}
.tl-item { position: relative; padding-left: 60px; padding-bottom: 16px; }
.tl-dot {
  position: absolute; left: 8px; top: 20px; width: 28px; height: 28px;
  border-radius: 50%; background: var(--surface); border: 2px solid var(--line);
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  color: var(--faint); z-index: 1; font-family: var(--sans);
}
.tl-item.is-open .tl-dot { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.tl-item.is-done .tl-dot { border-color: var(--ok); background: var(--ok); color: #fff; }

.tile {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 19px 22px;
  box-shadow: var(--shadow-sm);
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  transition: box-shadow .18s, border-color .18s;
}
.tile-body { flex: 1; min-width: 240px; }
.tl-item.is-open .tile { border-color: var(--brand-line); box-shadow: var(--shadow); }
.tl-item.is-locked .tile { background: var(--surface-2); box-shadow: none; }
.tl-item.is-locked .tile-body { opacity: .62; }
.tile-week { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.tile h3 { margin: 2px 0 4px; font-size: 18px; }
.tile p { font-size: 14px; color: var(--muted); margin: 0; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; border-radius: 20px;
  padding: 3px 11px; letter-spacing: .01em; white-space: nowrap;
}
.chip-open { background: var(--brand-soft); color: var(--brand-dark); }
.chip-done { background: var(--ok-soft); color: var(--ok); }
.chip-lock { background: #f1f0ec; color: var(--faint); }
.chip-soon { background: var(--warn-soft); color: var(--warn); }

/* ── Steps / progress ───────────────────────────────────── */
.steps {
  display: flex; align-items: stretch; gap: 4px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 6px; margin-bottom: 24px;
  overflow-x: auto;
}
.step {
  flex: 1; display: flex; align-items: center; gap: 9px;
  padding: 10px 14px; border-radius: var(--r); font-size: 13.5px;
  color: var(--faint); white-space: nowrap; min-width: fit-content;
  transition: background .16s, color .16s;
}
.step-n {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--line-soft); color: var(--muted);
  display: grid; place-items: center; font-size: 11.5px; font-weight: 700;
}
.step.on { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.step.on .step-n { background: var(--brand); color: #fff; }
.step.ok { color: var(--ok); }
.step.ok .step-n { background: var(--ok); color: #fff; }

.pbar { height: 5px; background: var(--line-soft); border-radius: 4px; overflow: hidden; }
.pbar > i { display: block; height: 100%; background: var(--brand); border-radius: 4px; transition: width .32s ease; }
.pbar-lbl { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }

/* ── Notes / callouts ───────────────────────────────────── */
.note {
  border-left: 3px solid var(--brand); background: var(--brand-soft);
  border-radius: 0 var(--r) var(--r) 0; padding: 13px 17px;
  font-size: 14px; color: var(--ink-2);
}
.note-warm { border-left-color: var(--accent); background: var(--accent-soft); }
.note-ok   { border-left-color: var(--ok);     background: var(--ok-soft); }
.note-warn { border-left-color: var(--warn);   background: var(--warn-soft); }
.note b { color: var(--ink); }

.orient { list-style: none; margin: 0; padding: 0; }
.orient li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px;
}
.orient li:last-child { border-bottom: 0; padding-bottom: 0; }
.orient-n {
  width: 27px; height: 27px; border-radius: 50%; flex-shrink: 0;
  background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand-line);
  display: grid; place-items: center; font-size: 13px; font-weight: 700; margin-top: 1px;
}

/* ── Prompt blocks ──────────────────────────────────────── */
.prompt {
  background: var(--surface-2); border: 1px solid var(--line-soft);
  border-left: 3px solid var(--brand-line);
  border-radius: 0 var(--r) var(--r) 0; padding: 15px 17px; margin-bottom: 16px;
}
.prompt:last-child { margin-bottom: 0; }
.prompt-q { font-size: 14.5px; font-weight: 600; color: var(--ink); margin-bottom: 9px; line-height: 1.5; }
.prompt-q .qn { color: var(--brand); }
.prompt-help { font-size: 13px; color: var(--muted); margin: -4px 0 9px; }
.wc { font-size: 11.5px; color: var(--faint); text-align: right; margin-top: 5px; }
.wc.ok { color: var(--ok); }

/* ── Emotion mapping + word bank ────────────────────────── */
.emo-layout { display: grid; grid-template-columns: 1fr 268px; gap: 20px; align-items: start; }
@media (max-width: 860px) { .emo-layout { grid-template-columns: 1fr; } }

.emo-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .emo-cols { grid-template-columns: 1fr; } }
.emo-col h4 {
  font-size: 13.5px; font-family: var(--sans); font-weight: 700; color: var(--brand-dark);
  padding-bottom: 7px; margin-bottom: 10px; border-bottom: 1.5px solid var(--brand-line);
}
.emo-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.emo-row input[type=text] { flex: 1; padding: 8px 11px; font-size: 14px; }
.emo-row input[type=text].armed { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(181,89,31,.13); }
.rng { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.rng input[type=range] { width: 66px; accent-color: var(--brand); cursor: pointer; }
.rng b { min-width: 20px; text-align: center; font-size: 13.5px; color: var(--brand-dark); font-variant-numeric: tabular-nums; }

.bank {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 15px 16px; position: sticky; top: 78px;
  max-height: 62vh; overflow-y: auto;
}
.bank h4 { font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--brand-dark); margin-bottom: 3px; }
.bank .tiny { margin-bottom: 12px; }
.bank-cat + .bank-cat { margin-top: 12px; }
.bank-lbl {
  font-size: 10.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 5px;
}
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.word {
  background: var(--surface); color: var(--ink-2); border: 1px solid var(--line);
  border-radius: 14px; padding: 3px 10px; font-size: 12.5px; cursor: pointer;
  user-select: none; transition: background .13s, color .13s, border-color .13s;
}
.word:hover { background: var(--brand-soft); color: var(--brand-dark); border-color: var(--brand-line); }
.word.hit { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ── Survey items ───────────────────────────────────────── */
.qblock { border-bottom: 1px solid var(--line-soft); padding: 15px 0; }
.qblock:first-child { padding-top: 4px; }
.qblock:last-child { border-bottom: 0; padding-bottom: 4px; }
.qblock.miss { background: #fff6f5; border-radius: var(--r); padding-left: 12px; padding-right: 12px; margin: 0 -12px; box-shadow: inset 3px 0 0 #b3261e; }
.qtext { font-size: 14.8px; color: var(--ink); margin-bottom: 10px; display: flex; gap: 10px; }
.qtext .qi { color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; flex-shrink: 0; min-width: 22px; }

.likert { display: flex; gap: 5px; flex-wrap: wrap; }
.likert label {
  flex: 1; min-width: 44px; text-align: center; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 8px 4px; font-size: 13.5px; font-weight: 600; color: var(--muted);
  background: var(--surface); transition: all .13s; margin: 0;
}
.likert label:hover { border-color: var(--brand-line); background: var(--brand-soft); }
.likert input { position: absolute; opacity: 0; pointer-events: none; }
.likert input:checked + span, .likert label.sel { }
.likert label.sel { background: var(--brand); border-color: var(--brand); color: #fff; }
.likert-anchor { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); margin-top: 6px; }

.choice { display: flex; flex-direction: column; gap: 7px; }
.choice label {
  display: flex; gap: 11px; align-items: flex-start; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 11px 14px; font-size: 14.3px; color: var(--ink-2);
  background: var(--surface); transition: all .13s;
}
.choice label:hover { border-color: var(--brand-line); background: var(--brand-soft); }
.choice label.sel { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); font-weight: 500; }
.choice input { margin-top: 3px; accent-color: var(--brand); flex-shrink: 0; }

.scale-key {
  background: var(--surface-2); border: 1px solid var(--line-soft);
  border-radius: var(--r); padding: 11px 15px; font-size: 13px; color: var(--ink-2);
  margin-bottom: 18px; display: flex; gap: 8px 22px; flex-wrap: wrap;
}
.scale-key b { color: var(--brand-dark); }

/* ── Game panel ─────────────────────────────────────────── */
.gamecard {
  display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: center;
}
@media (max-width: 640px) { .gamecard { grid-template-columns: 1fr; } }
.gamelink { display: block; border: 0; border-radius: var(--r-lg); overflow: hidden; position: relative;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; background: var(--brand-dark); }
.gamelink:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border: 0; }
.gamelink img { width: 100%; display: block; }
.gamelink .play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(22,32,47,0) 40%, rgba(22,32,47,.72) 100%);
  opacity: 0; transition: opacity .2s;
}
.gamelink:hover .play { opacity: 1; }
.gamelink .play span {
  background: #fff; color: var(--brand-dark); border-radius: 20px;
  padding: 7px 18px; font-size: 13.5px; font-weight: 700;
}

/* ── Confirmation ───────────────────────────────────────── */
.done-wrap { text-align: center; padding: 40px 0 20px; max-width: 520px; margin: 0 auto; }
.done-mark {
  width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 20px;
  background: var(--ok-soft); color: var(--ok); display: grid; place-items: center;
  font-size: 30px; border: 2px solid #bfe0cf;
}

/* ── Table ──────────────────────────────────────────────── */
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th, table.tbl td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.tbl th { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); font-weight: 700; }
table.tbl tr:last-child td { border-bottom: 0; }

/* ── Toast ──────────────────────────────────────────────── */
#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 500;
  padding: 11px 20px; border-radius: 24px; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s; z-index: 90;
  max-width: 88vw; text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { background: #8c1d18; }

/* ── Footer ─────────────────────────────────────────────── */
.foot {
  border-top: 1px solid var(--line); margin-top: 40px; padding: 26px 0 44px;
  font-size: 12.8px; color: var(--faint); background: var(--surface-2);
}
.foot .wrap { display: flex; gap: 10px 26px; flex-wrap: wrap; align-items: center; }
.foot a { color: var(--muted); border-bottom-color: var(--line); }

/* ── Utility ────────────────────────────────────────────── */
.hidden { display: none !important; }
.center { text-align: center; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; }
.pill-cond {
  display: inline-block; background: var(--accent-soft); color: var(--accent);
  border: 1px solid #f0d8c4; border-radius: 20px; padding: 3px 13px;
  font-size: 12.5px; font-weight: 600;
}
@media print {
  .topbar, .biw, .banner, .foot, .actions { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #ccc; }
}
