/* public/app.css: Sell in the Findings desk look (docs/PLAN-look.md, round 2).
 *
 * Jorg, 30 September 2026, after a day on Ink: "create the exact same theme as
 * findings.dev: same font, same sizing, same style. Just give the dot a different
 * colour." The source is findings/public/desk.css, the terminal ledger: IBM Plex Sans
 * and Mono, ink on paper, 2px corners, ruled rows. Its tokens and sizes are copied
 * here as they are, light and dark both, so the two desks are one family.
 *
 * ⛔ THE ONE DIFFERENCE IS THE YIN AND YANG. Findings' square is green (--clean);
 * Sell's is orange (--sell). Orange takes the places where the Findings desk uses
 * green as its own colour: the brand square, the focus ring, a primary button's
 * hover. Green keeps its family meaning inside Sell: yes, done, clean.
 * ⛔ EVERY FONT IS SERVED FROM THIS HOST (public/fonts/, from Findings, OFL beside).
 * ⛔ MONO IS FOR DATA, never decoration: times, minutes, counts, chips, dates.
 * ⚠ scripts/test_look.php reads these tokens back and checks 4.5:1 on each text pair,
 * both schemes, and every product colour; a new colour goes here first.
 * ⚠ TAP TARGETS STAY 40px ON A TOUCH SCREEN and shrink to 32px with a fine pointer.
 */

@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-sans-400.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-sans-500.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-sans-600.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-400.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-500.woff2) format('woff2'); }

:root {
  --paper: #F5F3EC;
  --panel: #FFFFFF;
  --sunk: #EDEAE1;
  --ink: #17160F;
  --muted: #5B5850;
  --rule: #DCD8CC;
  --rule-strong: #BDB8AA;
  --clean: #146C43;
  --clean-tint: #E3F1E9;
  --defect: #B4470F;
  --defect-tint: #F7E6DC;
  --sell: #B4470F;
  --on-sell: #FFFFFF;
  --on-ink: #F5F3EC;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --r: 2px;
  --tap: 2.5rem;
  --line: 1px solid var(--rule);
  /* A product colour was picked by hand; as text it is pulled toward ink on paper
     and toward paper in dark, one rule each (scripts/test_look.php checks 4.5:1). */
  --pc: #6b7280;
  --pct: color-mix(in srgb, #6b7280 65%, #17160F);
  color-scheme: light;
}
[style*="--pc"] { --pct: color-mix(in srgb, var(--pc) 65%, #17160F); }
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121210;
    --panel: #1A1A17;
    --sunk: #0D0D0B;
    --ink: #ECE9E0;
    --muted: #A19D92;
    --rule: #2E2D28;
    --rule-strong: #46443C;
    --clean: #4FBF86;
    --clean-tint: #15291E;
    --defect: #E58A57;
    --defect-tint: #2E1C12;
    --sell: #E58A57;
    --on-sell: #121210;
    --on-ink: #121210;
    --pct: color-mix(in srgb, #6b7280 55%, #ECE9E0);
    color-scheme: dark;
  }
  [style*="--pc"] { --pct: color-mix(in srgb, var(--pc) 55%, #ECE9E0); }
}
@media (pointer: fine) { :root { --tap: 2rem; } }

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 14px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* ── frame ─────────────────────────────────────────────────────────────── */
header.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.6rem 1rem; background: var(--paper); border-bottom: 1px solid var(--ink);
}
header.top a.brand { font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: 0.02em; text-decoration: none; color: var(--ink); white-space: nowrap; }
header.top a.brand::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--sell); margin-right: 0.5rem; vertical-align: 1px; }
/* Six links and Sign out do not fit a 390px phone on one line: the menu wraps, right-aligned. */
header.top nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0.2rem 0.9rem; font-size: 13px; }
header.top nav a { color: var(--ink); }
header.top nav a.on { font-weight: 600; text-decoration: underline; text-decoration-color: var(--sell); text-decoration-thickness: 2px; text-underline-offset: 4px; }
header.top nav form { margin: 0; }

main { max-width: 52rem; margin: 0 auto; padding: 0.5rem 1rem 4rem; }
.foot { max-width: 52rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; font-size: 12px; color: var(--muted); border-top: 1px solid var(--rule); }
.foot a { color: var(--muted); }

h1 { font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; margin: 1.5rem 0 0.5rem; }
h1 > .muted { font-weight: 400; }
h2 { font-size: 13px; font-weight: 600; margin: 2rem 0 0.6rem; padding-bottom: 0.35rem; border-bottom: 1px solid var(--ink); }
h3 { font-size: 14px; font-weight: 600; }
p { margin: 0 0 0.75rem; }
a { color: var(--ink); text-decoration-color: var(--rule-strong); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--sell); outline-offset: 1px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.ok { color: var(--clean); }
.bad { color: var(--defect); }
code { font-family: var(--mono); font-size: 0.92em; }

.row { display: flex; gap: 0.75rem; align-items: center; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }

.pager { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pager a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0.3rem 0.85rem; border: 1px solid var(--ink); border-radius: var(--r); font: 500 13px/1 var(--sans); text-decoration: none; }
.pager a:hover { background: var(--sunk); }

/* ── panels ────────────────────────────────────────────────────────────── */
.card { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r); padding: 0.9rem 1rem; margin: 0.5rem 0 1rem; }
.card h2 { margin-top: 0; }
.notice { border: 1px solid var(--clean); border-radius: var(--r); background: var(--clean-tint); padding: 0.6rem 0.9rem; margin: 0.75rem 0; }
.notice.bad { border-color: var(--defect); background: var(--defect-tint); color: var(--ink); }

/* ── numbers ───────────────────────────────────────────────────────────── */
.num { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 1.25rem; margin-bottom: 0.6rem; }
@media (min-width: 40rem) { .num { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.num b { display: block; font-family: var(--mono); font-weight: 500; font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.num span { font-size: 12px; color: var(--muted); }
.dash { color: var(--muted); }

/* ── the week, as a ledger of days ─────────────────────────────────────── */
.day { padding: 0.25rem 0 0.5rem; }
.day > .row { margin: 1.5rem 0 0.6rem; padding-bottom: 0.35rem; border-bottom: 1px solid var(--ink); align-items: baseline; }
.day > .row h2 { margin: 0; padding: 0; border: 0; font-size: 14px; }
.day > .row h2 > .muted { font-family: var(--mono); font-size: 12px; font-weight: 400; margin-left: 0.3rem; }
.day.today > .row h2 { color: var(--sell); }
.day.today > .row { border-bottom-color: var(--sell); }
.daytotal, .mins { font-family: var(--mono); font-size: 12px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.acts { list-style: none; padding: 0; margin: 0.5rem 0 0; display: grid; gap: 0.5rem; }

/* ⛔ ONE ACT, ONE BOX, as one find is one box on the Findings desk. The product is a
   square in its colour, the same shape as the brand square. */
.act {
  display: grid; grid-template-columns: 4.25rem minmax(0, 1fr) auto; gap: 0.6rem; align-items: start;
  padding: 0.6rem 0.75rem; border: 1px solid var(--rule-strong); border-radius: var(--r); background: var(--panel);
}
.act .what { display: flex; flex-direction: column; gap: 0.2rem; font-weight: 500; }
.act.human .what { font-weight: 600; }
.act.automated { background: transparent; border-color: var(--rule); }
.act .when { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 0.1rem; font-variant-numeric: tabular-nums; }
.prod { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 12px; font-weight: 600; color: var(--pct); text-decoration: none; }
.act .prod::before { content: ""; width: 8px; height: 8px; background: var(--pct); flex: none; }
.act a { color: inherit; }
.act .what > a:not(.prod) { text-decoration: none; }
.act .what > a:not(.prod):hover { text-decoration: underline; }

.chips { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.15rem; font-weight: 400; }
.chip { border: 1px solid var(--rule-strong); border-radius: var(--r); padding: 0 0.35rem; font-family: var(--mono); font-size: 11px; line-height: 1.6; color: var(--muted); background: transparent; white-space: nowrap; }
.chip.how { border-color: var(--ink); color: var(--ink); }
.act.automated .chip.how { border-color: var(--rule-strong); color: var(--muted); }

/* ── controls ──────────────────────────────────────────────────────────── */
.stack { display: grid; gap: 0.8rem; max-width: 28rem; }
.stack label { display: grid; gap: 0.25rem; font-size: 12px; color: var(--muted); }
input, select, textarea, button { font: inherit; }
input, select, textarea {
  min-height: var(--tap);
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r);
  background: var(--panel);
  color: var(--ink);
  font: 400 14px/1.4 var(--sans);
}
input[type="number"], input[type="date"], input[type="time"] { font-family: var(--mono); font-size: 13px; }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--ink); width: 1rem; height: 1rem; min-height: 0; }

button, a.btn, summary.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap);
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  background: transparent;
  color: var(--ink);
  font: 500 13px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}
summary.btn::-webkit-details-marker { display: none; }
button:hover, a.btn:hover, summary.btn:hover { background: var(--sunk); }
button.primary, a.btn.primary { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
button.primary:hover, a.btn.primary:hover { background: var(--sell); border-color: var(--sell); color: var(--on-sell); }
button.small { min-height: calc(var(--tap) - 0.25rem); padding: 0.2rem 0.6rem; font-size: 12px; }
/* A yes sends words out: Sell's own colour, the one button that carries it. */
button.accent { background: var(--sell); color: var(--on-sell); border-color: var(--sell); }
button.accent:hover { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
button:disabled { opacity: 0.45; }

/* ── acts in their states (S2) ─────────────────────────────────────────── */
form.inline { display: inline-flex; gap: 0.3rem; align-items: center; margin: 0 0.3rem 0 0; }
.btns { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; margin-top: 0.4rem; }
.btns:empty { display: none; }
.act .body { margin: 0.35rem 0 0; font-weight: 400; overflow-wrap: anywhere; }
.act details.body summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.act details.body p { white-space: normal; margin: 0.3rem 0 0; }
.act.s-done { opacity: 0.7; }
.act.s-done .what > a, .act.s-done .what { text-decoration-color: var(--muted); }
.act.s-not-today, .act.s-skipped { opacity: 0.6; }
.chip.state { color: var(--ink); }
.act.s-done .chip.state, .chip.state.yes { border-color: var(--clean); color: var(--clean); background: var(--clean-tint); }
.chip.state.yes { font-weight: 500; }
input.mins-in { width: 4.5rem; min-height: calc(var(--tap) - 0.25rem); padding: 0.15rem 0.4rem; }

h2.sect { margin: 2rem 0 0.6rem; }
.post { padding: 0.7rem 0.8rem; }
.post h3 { font-size: 14px; margin: 0; }
.post .acts { margin-top: 0.5rem; }

/* ── tables, the month strip, the dot ──────────────────────────────────── */
.scrollx { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; margin: 0.25rem 0 0.5rem; background: var(--panel); border: 1px solid var(--rule); }
table.grid th, table.grid td { text-align: left; padding: 0.5rem 0.45rem; border-bottom: 1px solid var(--rule); vertical-align: middle; white-space: nowrap; }
table.grid thead th { font-family: var(--mono); font-weight: 400; font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--ink); }
table.grid .n { text-align: right; font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; }
table.grid tbody tr:hover { background: var(--sunk); }
table.grid tr.over td { background: var(--defect-tint); }
.dot { display: inline-block; width: 8px; height: 8px; background: var(--pct); margin-right: 0.4rem; vertical-align: 0; }
/* The month strip: one row per product, one cell per day. Fits 31 days at phone width. */
.strip { display: grid; grid-template-columns: minmax(4.5rem, 8rem) repeat(var(--days), 1fr); gap: 2px; align-items: center; margin: 0.75rem 0 0.5rem; }
.strip b { font-family: var(--mono); font-weight: 400; font-size: 9px; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.strip b.we { color: var(--ink); font-weight: 500; }
.strip .lbl { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 0.3rem; color: var(--pct); font-weight: 600; }
.strip i { display: block; height: 16px; border-radius: 0; background: var(--sunk); }
.strip i.a { background: color-mix(in srgb, var(--pc) 35%, var(--panel)); }
.strip i.h { background: var(--pct); }

/* ── products cards ────────────────────────────────────────────────────── */
.cards { display: grid; gap: 0.75rem; grid-template-columns: 1fr; }
@media (min-width: 44rem) { .cards { grid-template-columns: 1fr 1fr; } }
.pcard { margin: 0; }
.pcard h2 { display: flex; align-items: center; gap: 0.5rem; font-size: 14px; }
.pcard h2::before { content: ""; width: 8px; height: 8px; background: var(--pct); flex: none; }
.pcard p { margin: 0.35rem 0; }
.pcard .big { margin: 0.5rem 0 0.3rem; }
.pcard .big b { font-family: var(--mono); font-weight: 500; font-size: 22px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-right: 0.4rem; }
.pcard .big span { font-size: 12px; color: var(--muted); }
.reading-form form { gap: 0.4rem; margin-top: 0.4rem; align-items: end; }
.reading-form label { display: grid; gap: 0.15rem; }

/* ── the RUN lane (docs/PLAN-run-lane.md) ──────────────────────────────── */
.chip.lane { border-color: var(--ink); color: var(--ink); font-weight: 500; }
.chip.repeat { border-style: dashed; }
input.evidence-in { width: 14rem; max-width: 100%; min-height: calc(var(--tap) - 0.25rem); padding: 0.15rem 0.4rem; font-size: 13px; }
.evidence { margin: 0.2rem 0 0; color: var(--muted); }
.stack label.check { display: flex; align-items: center; gap: 0.4rem; }

/* ── the workbench (docs/PLAN-product-workbench.md) ────────────────────── */
/* Filters stay links, drawn as one segmented strip per axis, as on the Findings desk. */
.filterset { margin: 0.25rem 0 0.75rem; }
.filters { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; margin: 0 0 0.4rem; }
.filters > span { display: inline-flex; align-items: center; width: 4.75rem; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.filters a {
  display: inline-flex; align-items: center;
  min-height: var(--tap);
  padding: 0 0.7rem;
  margin: 0 -1px 0 0;
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  background: var(--panel);
  text-decoration: none;
}
.filters > span + a, .filters a:first-child { border-radius: var(--r) 0 0 var(--r); }
.filters a:last-of-type { border-radius: 0 var(--r) var(--r) 0; }
.filters a.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); position: relative; font-weight: 500; }
.filters a .dot { margin-right: 0.35rem; }
.filters a.on .dot { outline: 1px solid var(--on-ink); }

.session-bar { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: flex-start; margin: 0.25rem 0 0.5rem; }
.session-cowork[open] { flex-basis: 100%; }
.session-cowork p { margin: 0.4rem 0 0.25rem; }
.session-cowork textarea { width: 100%; font: 400 12px/1.5 var(--mono); padding: 0.5rem; background: var(--sunk); }
/* No terminal on a phone, so no terminal button: same rule as Findings' desk. */
@media (hover: none), (pointer: coarse) { .session-terminal { display: none; } }
.product-head h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.product-head h1 .dot { width: 10px; height: 10px; margin-right: 0; }
h3.dayhead { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin: 1.1rem 0 0.3rem; }
a.prod:hover { text-decoration: underline; }
.stack.wide { max-width: none; }
.stack.wide table input { width: 100%; }
label.tick { display: flex; align-items: center; gap: 0.3rem; margin-top: 0.25rem; white-space: nowrap; color: var(--muted); }
.stack.wide label.tick input { width: auto; }

/* ── the plan at a glance (docs/PLAN-glance.md) ────────────────────────── */
/* Closed acts fold into one dashed row that opens (SEL-21). */
details.fold { margin: 0.5rem 0 0; }
details.fold > summary {
  display: inline-flex; align-items: center; min-height: calc(var(--tap) - 0.25rem); padding: 0 0.6rem;
  border: 1px dashed var(--rule-strong); border-radius: var(--r);
  font-family: var(--mono); font-size: 12px; color: var(--muted); cursor: pointer; list-style: none;
}
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before { content: "+"; margin-right: 0.45rem; }
details.fold[open] > summary::before { content: "-"; }
details.fold > summary:hover { color: var(--ink); border-color: var(--ink); }

/* Repeats (SEL-18): the title wraps, everything else stays on one line and scrolls on a phone. */
table.reps td.what { white-space: normal; min-width: 14rem; }
table.reps td.what > span { display: block; font-weight: 500; }
table.reps .prod::before { content: ""; width: 8px; height: 8px; background: var(--pct); flex: none; }
table.reps .chip { margin-left: 0.25rem; }

/* Calendar (SEL-19). */
main.wide { max-width: 76rem; }
.cis { list-style: none; padding: 0; margin: 0.3rem 0 0; display: grid; gap: 0.2rem; }
.ci a {
  display: flex; gap: 0.35rem; align-items: baseline; min-width: 0;
  padding: 0.15rem 0.35rem; border: 1px solid var(--rule-strong); border-left: 3px solid var(--pct); border-radius: var(--r);
  background: var(--panel); font-size: 12px; line-height: 1.35; text-decoration: none; color: var(--ink);
}
.ci a:hover { border-color: var(--ink); border-left-color: var(--pct); }
.ci.human .ti { font-weight: 600; }
.ci.automated a { background: transparent; border-color: var(--rule); border-left-color: var(--pct); }
.ci.rule a { background: transparent; border-style: dashed; border-left-style: dashed; color: var(--muted); }
.ci.s-not-today a { opacity: 0.6; }
.ci .t { font-family: var(--mono); font-size: 11px; color: var(--muted); flex: none; font-variant-numeric: tabular-nums; }
.ci .ti { min-width: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ci .tag { font-family: var(--mono); font-size: 10px; color: var(--muted); flex: none; margin-left: auto; }
a.more { display: inline-block; margin-top: 0.2rem; font-family: var(--mono); color: var(--muted); }

.calweek { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin-top: 0.75rem; }
@media (min-width: 56rem) { .calweek { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.4rem; } }
.calday h2 { margin: 0; font-size: 13px; }
.calday h2 a { text-decoration: none; }
.calday h2 span { font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--muted); }
.calday.today h2 { color: var(--sell); border-bottom-color: var(--sell); }
.calday .fold .cis { margin-top: 0.4rem; }

.calmonth { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; margin-top: 0.75rem; background: var(--rule); border: 1px solid var(--rule); }
.calmonth .wd { padding: 0.3rem 0.4rem; background: var(--paper); font-family: var(--mono); font-weight: 400; font-size: 11px; color: var(--muted); }
.calmonth .cell { min-height: 7rem; padding: 0.3rem; background: var(--panel); min-width: 0; }
.calmonth .cell.we { background: var(--paper); }
.calmonth .cell.out { background: var(--sunk); }
.calmonth .cell.out .dn { color: var(--muted); opacity: 0.6; }
.calmonth .dn { font-family: var(--mono); font-size: 12px; font-weight: 500; text-decoration: none; font-variant-numeric: tabular-nums; }
.calmonth .cell.today { box-shadow: inset 0 0 0 2px var(--sell); }
.calmonth .cell.today .dn { color: var(--sell); }
.calmonth .closed { display: block; margin-top: 0.2rem; font-family: var(--mono); color: var(--muted); }
/* A phone has 50px per day: each item becomes its product square, the count stays. */
@media (max-width: 40rem) {
  .calmonth .cell { min-height: 4.5rem; padding: 0.2rem; }
  .calmonth .cis { display: flex; flex-wrap: wrap; gap: 3px; }
  .calmonth .ci a { width: 10px; height: 10px; padding: 0; border: 0; background: var(--pct); }
  .calmonth .ci.rule a { background: transparent; border: 1px dashed var(--pct); }
  .calmonth .ci .t, .calmonth .ci .ti, .calmonth .ci .tag { display: none; }
  .calmonth .closed { font-size: 10px; }
}

.calminis { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1rem 1.25rem; margin-top: 0.75rem; }
.calminis.quarter { grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.calmini h3 { margin: 0 0 0.35rem; font-size: 13px; }
.calmini h3 a { text-decoration: none; }
.calmini .mg { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.calmini .mg b { font-family: var(--mono); font-weight: 400; font-size: 10px; text-align: center; color: var(--muted); }
.calmini .mg a {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 1; min-height: 1.75rem;
  border-radius: var(--r); font-family: var(--mono); font-size: 11px; text-decoration: none; color: var(--ink); font-variant-numeric: tabular-nums;
}
.calmini .mg a.l0 { background: var(--sunk); color: var(--muted); }
.calmini .mg a.l1 { background: color-mix(in srgb, var(--ink) 12%, var(--panel)); }
.calmini .mg a.l2 { background: color-mix(in srgb, var(--ink) 22%, var(--panel)); }
.calmini .mg a.l3 { background: color-mix(in srgb, var(--ink) 32%, var(--panel)); font-weight: 500; }
.calmini .mg a.today { outline: 2px solid var(--sell); outline-offset: -2px; }
.calmini .mg a:hover { outline: 1px solid var(--ink); outline-offset: -1px; }
details.fold > .fold-close { margin-top: 0.4rem; }

/* The Start panel on an act (SEL-24): closed it is one small button beside Edit. */
details.act-start { margin-top: 0.35rem; font-weight: 400; }
details.act-start > summary { list-style: none; }
details.act-start > summary::-webkit-details-marker { display: none; }
details.act-start[open] > summary { background: var(--sunk); }
details.act-start .session-bar { margin: 0.4rem 0 0.3rem; }
details.act-start p { margin: 0.2rem 0; }
details.act-start textarea { width: 100%; font: 400 12px/1.5 var(--mono); padding: 0.5rem; background: var(--sunk); }
