/* =====================================================================
   Mokoko Le Moroba — Master Action Register
   styles.css

   One application sized by the device. The Committee will read this on
   a phone far more often than they will edit on a laptop, so the phone
   layout is not an afterthought: below 768px every table becomes cards,
   the page body never scrolls sideways, and action text wraps rather
   than truncating — an ellipsis that hides a commitment defeats the
   register.
   ===================================================================== */

:root {
  --ink:      #1c1a17;
  --ink-2:    #4a453e;
  --ink-3:    #7a7268;
  --bg:       #faf8f5;
  --bg-2:     #f3efe9;
  --card:     #ffffff;
  --line:     #e5ded4;
  --line-2:   #d3c9ba;

  --accent:      #8a5a2b;
  --accent-ink:  #ffffff;
  --accent-soft: #f3e9dc;

  --green:      #3f6b45;
  --green-soft: #e6efe6;
  --amber:      #9a6d16;
  --amber-soft: #faf0da;
  --red:        #9b3125;
  --red-soft:   #f8e5e2;
  --blue:       #2f5b7a;
  --blue-soft:  #e4eef4;

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --r:   9px;
  --r-s: 6px;
  --shadow: 0 1px 2px rgba(28,26,23,.05), 0 4px 16px rgba(28,26,23,.06);
  --shadow-lg: 0 8px 40px rgba(28,26,23,.18);
  --tap: 44px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:   #efe9e1;  --ink-2: #c3bbb0;  --ink-3: #8d857a;
    --bg:    #16150f;  --bg-2:  #1b1913;  --card:  #1f1d17;
    --line:  #332f26;  --line-2:#453f33;
    --accent:#d3a068;  --accent-ink:#1c1a17; --accent-soft:#2e2418;
    --green: #8fbf94;  --green-soft:#1e2a1f;
    --amber: #dcae52;  --amber-soft:#2c2415;
    --red:   #e08a7c;  --red-soft:  #2e1c19;
    --blue:  #8fb6d1;  --blue-soft: #1a242c;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.35);
    --shadow-lg: 0 8px 40px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  --ink:   #efe9e1;  --ink-2: #c3bbb0;  --ink-3: #8d857a;
  --bg:    #16150f;  --bg-2:  #1b1913;  --card:  #1f1d17;
  --line:  #332f26;  --line-2:#453f33;
  --accent:#d3a068;  --accent-ink:#1c1a17; --accent-soft:#2e2418;
  --green: #8fbf94;  --green-soft:#1e2a1f;
  --amber: #dcae52;  --amber-soft:#2c2415;
  --red:   #e08a7c;  --red-soft:  #2e1c19;
  --blue:  #8fb6d1;  --blue-soft: #1a242c;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.35);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.6);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  /* Never below 16px: smaller and iOS zooms the page on field focus,
     which throws the layout out. */
  font: 16px/1.55 var(--sans);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;            /* the body never scrolls sideways */
}

h1,h2,h3,h4 { margin: 0; line-height: 1.25; letter-spacing: -.012em; font-weight: 640; }
p { margin: .6rem 0; }
a { color: var(--accent); }

::selection { background: var(--accent-soft); }

/* ---------------------------------------------------------------- app */
.app { display: none; min-height: 100vh; flex-direction: column; }
.app.on { display: flex; }

/* ------------------------------------------------------------- header */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: .55rem .9rem;
  display: flex; align-items: center; gap: .6rem;
}
.hdr-brand { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.hdr-brand b { font-size: .95rem; font-weight: 660; white-space: nowrap; }
.hdr-brand span { font-size: .72rem; color: var(--ink-3); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.hdr .btn { white-space: nowrap; }
@media (max-width: 560px) {
  .hdr-brand b { font-size: .86rem; }
  .hdr .btn { padding: .5rem .6rem; font-size: .8rem; }
}

.nav { display: flex; gap: .25rem; overflow-x: auto; padding: .4rem .9rem;
  background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 57px; z-index: 45; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav button {
  flex: 0 0 auto; min-height: 38px; padding: .4rem .8rem;
  border: 1px solid transparent; border-radius: var(--r-s);
  background: none; color: var(--ink-2); font: 600 .84rem var(--sans);
  cursor: pointer; white-space: nowrap;
}
.nav button:hover { background: var(--bg-2); color: var(--ink); }
.nav button.on { background: var(--accent); color: var(--accent-ink); }

/* --------------------------------------------------------------- main */
main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 1.1rem .9rem 5rem; }
@media (max-width: 640px) { main { padding: .9rem .7rem 4rem; } }

.screen { display: none; }
.screen.on { display: block; animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

.page-h { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; margin-bottom: .9rem; }
.page-h h2 { font-size: 1.28rem; }
.page-h .sub { font-size: .84rem; color: var(--ink-3); }

/* -------------------------------------------------------------- cards */
.card { background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.card > h3 { font-size: .96rem; margin-bottom: .7rem; }
.card-h { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; flex-wrap: wrap; }
.card-h h3 { font-size: .96rem; margin-right: auto; }

/* -------------------------------------------------------------- tiles */
.tiles { display: grid; gap: .6rem; grid-template-columns: repeat(6, 1fr); margin-bottom: 1.1rem; }
@media (max-width: 1080px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
/* Never one across — two keeps the comparison visible. */
@media (max-width: 620px)  { .tiles { grid-template-columns: repeat(2, 1fr); } }

.tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: .8rem .85rem; cursor: pointer; text-align: left;
  font: inherit; color: inherit; min-height: var(--tap);
  transition: border-color .12s, transform .12s;
}
.tile:hover { border-color: var(--line-2); transform: translateY(-1px); }
.tile.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tile b { display: block; font-size: 1.75rem; font-weight: 660; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; line-height: 1.1; }
.tile span { display: block; font-size: .74rem; color: var(--ink-3); margin-top: .18rem;
  text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.tile.g b { color: var(--green); }
.tile.a b { color: var(--amber); }
.tile.r b { color: var(--red); }
.tile.b b { color: var(--blue); }

/* ------------------------------------------------------------- tables */
.tw { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r); }
table { border-collapse: collapse; width: 100%; font-size: .86rem; }
th, td { text-align: left; padding: .52rem .7rem; border-bottom: 1px solid var(--line);
  vertical-align: top; }
th { font-size: .69rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-3); font-weight: 660; white-space: nowrap;
  position: sticky; top: 0; background: var(--card); z-index: 2; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--bg-2); }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.ref { font-family: var(--mono); font-size: .78rem; color: var(--accent); font-weight: 600; }

/* ------------------------------------------------------------- pills */
.pill { display: inline-block; font-size: .68rem; font-weight: 660; padding: .17em .5em;
  border-radius: 4px; white-space: nowrap; letter-spacing: .02em; }
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.red   { background: var(--red-soft);   color: var(--red); }
.pill.blue  { background: var(--blue-soft);  color: var(--blue); }
.pill.grey  { background: var(--bg-2);       color: var(--ink-3); }

.bar { height: 5px; background: var(--bg-2); border-radius: 3px; overflow: hidden;
  min-width: 54px; margin-top: .3rem; }
.bar i { display: block; height: 100%; background: var(--green); border-radius: 3px; }

/* ------------------------------------ tables become cards on a phone */
@media (max-width: 768px) {
  table.rwd thead { display: none; }
  table.rwd, table.rwd tbody, table.rwd tr, table.rwd td { display: block; width: 100%; }
  table.rwd tr {
    border: 1px solid var(--line); border-radius: var(--r);
    margin-bottom: .55rem; padding: .7rem .8rem; background: var(--card);
  }
  table.rwd td { border: 0; padding: .16rem 0; }
  table.rwd td[data-l]::before {
    content: attr(data-l) "  ";
    font-size: .68rem; text-transform: uppercase; letter-spacing: .05em;
    color: var(--ink-3); font-weight: 660; margin-right: .4rem;
  }
  table.rwd td.hide-m { display: none; }
  .tw { overflow-x: visible; }
}

/* -------------------------------------------------------------- forms */
label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-3); font-weight: 660; margin-bottom: .25rem; }

input[type=text], input[type=email], input[type=password], input[type=search],
textarea, select, .fake-input {
  width: 100%; min-height: var(--tap); padding: .55rem .7rem;
  border: 1px solid var(--line-2); border-radius: var(--r-s);
  background: var(--card); color: var(--ink);
  font: 16px/1.4 var(--sans);       /* 16px: stops iOS zooming on focus */
  -webkit-appearance: none; appearance: none;
}
textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus, .fake-input:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%),
                           linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }
input:disabled, textarea:disabled, select:disabled, .fake-input.ro {
  background: var(--bg-2); color: var(--ink-3); cursor: not-allowed; }

.field { margin-bottom: .85rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; }
@media (max-width: 700px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

.hint { font-size: .76rem; color: var(--ink-3); margin-top: .25rem; }
.hint.warn { color: var(--amber); }
.hint.err  { color: var(--red); }

/* ------------------------------------------------------------ buttons */
.btn {
  min-height: var(--tap); padding: .5rem 1rem; border-radius: var(--r-s);
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink);
  font: 640 .87rem var(--sans); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
}
.btn:hover:not(:disabled) { background: var(--bg-2); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.p { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.p:hover:not(:disabled) { filter: brightness(1.08); }
.btn.d { border-color: var(--red); color: var(--red); }
.btn.s { min-height: 34px; padding: .3rem .65rem; font-size: .79rem; }
.btn.w { width: 100%; }
.btns { display: flex; gap: .5rem; flex-wrap: wrap; }

/* --------------------------------------------------------- date picker
   No date is ever typed. `2/9` is the second of September to one member
   and the ninth of February to another; a register holding both is
   worse than one holding neither. The picker makes that ambiguity
   impossible to express, and the display is always `2 Sep 2026`.       */
.dp-wrap { position: relative; }
.dp-btn {
  width: 100%; min-height: var(--tap); padding: .55rem .7rem; text-align: left;
  border: 1px solid var(--line-2); border-radius: var(--r-s);
  background: var(--card); color: var(--ink); font: 16px/1.4 var(--sans); cursor: pointer;
  display: flex; align-items: center; gap: .5rem;
}
.dp-btn:disabled { background: var(--bg-2); color: var(--ink-3); cursor: not-allowed; }
.dp-btn .ph { color: var(--ink-3); }
.dp-btn .cal { margin-left: auto; opacity: .5; }

.dp {
  position: absolute; z-index: 200; top: calc(100% + 5px); left: 0;
  width: 288px; max-width: calc(100vw - 1.6rem);
  background: var(--card); border: 1px solid var(--line-2);
  border-radius: var(--r); box-shadow: var(--shadow-lg); padding: .7rem;
}
.dp.up { top: auto; bottom: calc(100% + 5px); }
.dp-hd { display: flex; align-items: center; gap: .3rem; margin-bottom: .5rem; }
.dp-hd b { flex: 1; text-align: center; font-size: .88rem; font-weight: 660; }
.dp-nav { width: 34px; height: 34px; border: 1px solid var(--line);
  border-radius: var(--r-s); background: var(--card); color: var(--ink-2);
  cursor: pointer; font-size: .95rem; line-height: 1; }
.dp-nav:hover { background: var(--bg-2); }

.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-dow { font-size: .64rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink-3); text-align: center; font-weight: 660; padding: .3rem 0; }
.dp-day {
  min-height: 36px; border: 1px solid transparent; border-radius: var(--r-s);
  background: none; color: var(--ink); font: 600 .84rem var(--sans);
  cursor: pointer; font-variant-numeric: tabular-nums; position: relative;
}
.dp-day:hover { background: var(--bg-2); }
.dp-day.out { color: var(--ink-3); opacity: .45; }
.dp-day.today { border-color: var(--accent); }
.dp-day.sel { background: var(--accent); color: var(--accent-ink); }
/* the original due date, so a lead moving a date sees the slip without
   leaving the panel */
.dp-day.orig::after {
  content: ''; position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--red);
}
.dp-day.sel.orig::after { background: var(--accent-ink); }

.dp-quick { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .6rem;
  padding-top: .6rem; border-top: 1px solid var(--line); }
.dp-quick button { flex: 1 1 auto; min-height: 34px; padding: .3rem .5rem;
  border: 1px solid var(--line); border-radius: var(--r-s);
  background: var(--card); color: var(--ink-2); font: 600 .74rem var(--sans); cursor: pointer; }
.dp-quick button:hover { background: var(--bg-2); color: var(--ink); }
.dp-quick button.clear { color: var(--red); border-color: var(--red-soft); }
.dp-legend { font-size: .68rem; color: var(--ink-3); margin-top: .45rem;
  display: flex; align-items: center; gap: .3rem; }
.dp-legend i { width: 4px; height: 4px; border-radius: 50%; background: var(--red);
  display: inline-block; }

/* ------------------------------------------------------------- drawer */
.drawer-bg { position: fixed; inset: 0; background: rgba(28,26,23,.45);
  z-index: 300; display: none; }
.drawer-bg.on { display: block; }
.drawer {
  position: fixed; z-index: 301; top: 0; right: 0; bottom: 0;
  width: min(620px, 100%); background: var(--bg);
  border-left: 1px solid var(--line); box-shadow: var(--shadow-lg);
  display: none; flex-direction: column;
}
.drawer.on { display: flex; animation: slide .2s ease; }
@keyframes slide { from { transform: translateX(24px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (max-width: 700px) {
  .drawer { top: auto; width: 100%; height: 94vh; border-left: 0;
    border-top-left-radius: 14px; border-top-right-radius: 14px;
    border-top: 1px solid var(--line); }
  @keyframes slide { from { transform: translateY(28px); opacity: .4; } to { transform: none; opacity: 1; } }
}
.drawer-h { padding: .85rem 1rem; border-bottom: 1px solid var(--line);
  background: var(--card); display: flex; align-items: center; gap: .6rem; }
.drawer-h h3 { font-size: 1rem; margin-right: auto; }
.drawer-b { flex: 1; overflow-y: auto; padding: 1rem; }
.drawer-f { padding: .8rem 1rem; border-top: 1px solid var(--line);
  background: var(--card); display: flex; gap: .5rem; flex-wrap: wrap; }

.x { width: 34px; height: 34px; min-height: 34px; border: 1px solid var(--line);
  border-radius: var(--r-s); background: var(--card); color: var(--ink-2);
  cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 0; }
.x:hover { background: var(--bg-2); }

/* -------------------------------------------------------------- inbox */
.bell { position: relative; width: 40px; height: 40px; min-height: 40px; padding: 0;
  border: 1px solid var(--line); border-radius: var(--r-s);
  background: var(--card); cursor: pointer; font-size: 1.05rem; }
.bell:hover { background: var(--bg-2); }
.bell .dot { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px;
  border-radius: 10px; background: var(--red); color: #fff;
  font: 700 .66rem var(--sans); display: none; align-items: center;
  justify-content: center; padding: 0 5px; }
.bell .dot.on { display: flex; }

.note { border: 1px solid var(--line); border-left: 3px solid var(--line-2);
  border-radius: var(--r-s); padding: .6rem .75rem; margin-bottom: .5rem;
  background: var(--card); cursor: pointer; }
.note.unread { border-left-color: var(--accent); background: var(--accent-soft); }
.note b { display: block; font-size: .87rem; font-weight: 640; }
.note .when { font-size: .72rem; color: var(--ink-3); }
.note .chg { font-size: .78rem; color: var(--ink-2); margin-top: .3rem; }
.note .chg em { font-style: normal; color: var(--ink-3); }

/* ------------------------------------------------------------- signin */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 1.2rem; }
.gate-box { width: 100%; max-width: 400px; }
.gate-brand { text-align: center; margin-bottom: 1.6rem; }
.gate-brand h1 { font-size: 1.3rem; }
.gate-brand p { font-size: .84rem; color: var(--ink-3); margin-top: .2rem; }
.gate .card { padding: 1.3rem; }
.conf { font-size: .74rem; color: var(--ink-3); text-align: center; margin-top: 1.1rem;
  line-height: 1.5; }

.policy { max-height: 46vh; overflow-y: auto; border: 1px solid var(--line);
  border-radius: var(--r-s); padding: .9rem 1rem; background: var(--bg-2);
  font-size: .84rem; line-height: 1.6; }
.policy h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-3); margin: 1rem 0 .3rem; }
.policy h4:first-child { margin-top: 0; }
.policy ul { padding-left: 1.1rem; margin: .4rem 0; }
.policy li { margin: .25rem 0; }

.check { display: flex; align-items: flex-start; gap: .6rem; margin: .9rem 0;
  cursor: pointer; font-size: .87rem; }
.check input { width: 20px; height: 20px; min-height: 20px; margin: 1px 0 0;
  accent-color: var(--accent); flex: 0 0 auto; }
.check span { color: var(--ink-2); }

/* -------------------------------------------------------------- misc */
.toast { position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%);
  z-index: 400; background: var(--ink); color: var(--bg);
  padding: .6rem 1rem; border-radius: var(--r-s); font: 600 .85rem var(--sans);
  box-shadow: var(--shadow-lg); max-width: calc(100vw - 2rem); text-align: center; }
.toast.err { background: var(--red); color: #fff; }
.toast.ok  { background: var(--green); color: #fff; }

.empty { text-align: center; padding: 2.4rem 1rem; color: var(--ink-3); font-size: .88rem; }
.empty b { display: block; color: var(--ink-2); font-size: .96rem; margin-bottom: .25rem; }

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

.filters { display: grid; gap: .55rem; grid-template-columns: repeat(4, 1fr); margin-bottom: .8rem; }
@media (max-width: 900px) { .filters { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .filters { grid-template-columns: 1fr; } }

/* On a phone the ten filters would push the register a screen and a half
   down the page. They fold behind one button, and the search box — the
   one people actually reach for — stays out. */
.fbar { display: flex; gap: .5rem; margin-bottom: .8rem; }
.fbar input { flex: 1; }
.fbar .btn { flex: 0 0 auto; }
.fbar .btn .n { background: var(--accent); color: var(--accent-ink);
  border-radius: 10px; padding: 0 .35em; font-size: .72rem; margin-left: .3rem; }
@media (min-width: 761px) { .fbar { display: none; } }
@media (max-width: 760px) {
  .filters { display: none; }
  .filters.open { display: grid; }
}
.filters select, .filters input { min-height: 40px; font-size: 15px; padding: .4rem .6rem; }

.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .7rem; }
.chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem;
  font-weight: 600; padding: .28rem .55rem; border-radius: 20px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid transparent; }
.chip button { border: 0; background: none; color: inherit; cursor: pointer;
  font-size: .95rem; line-height: 1; padding: 0 0 0 .1rem; }

/* Action text wraps and the row grows. An ellipsis that hides the
   commitment defeats the point of a register. */
.act-txt { line-height: 1.45; overflow-wrap: anywhere; }
.rowsum { font-size: .78rem; color: var(--ink-3); margin-bottom: .5rem; }

.audit-row td { font-size: .81rem; }
.diff-old { color: var(--red); text-decoration: line-through; opacity: .8; }
.diff-new { color: var(--green); font-weight: 600; }

.rep-list { display: grid; gap: .5rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .rep-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .rep-list { grid-template-columns: 1fr; } }
.rep {
  text-align: left; padding: .8rem .9rem; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--card); cursor: pointer;
  font: inherit; color: inherit; min-height: var(--tap);
}
.rep:hover { border-color: var(--accent); }
.rep b { display: block; font-size: .89rem; font-weight: 650; margin-bottom: .15rem; }
.rep span { font-size: .78rem; color: var(--ink-3); line-height: 1.45; display: block; }

pre.code { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-s);
  padding: .7rem .85rem; overflow-x: auto; font: .76rem/1.55 var(--mono);
  color: var(--ink-2); margin: .6rem 0; }

@media print {
  .hdr, .nav, .btns, .filters, .drawer, .drawer-bg { display: none !important; }
  body { background: #fff; color: #000; }
  .card { border-color: #ccc; box-shadow: none; }
  main { max-width: none; padding: 0; }
}
