/* Overshort: the cash drawer close. This sheet is the whole look of the product.
   kit.css still loads first for the shared patterns (dialog, File menu, toast, stacked tables, print);
   everything it draws is restyled here. Nothing is fetched from anywhere: the type ships in fonts/. */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/IBMPlexSans-Light.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/IBMPlexSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/IBMPlexSans-Italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/IBMPlexSans-Medium.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/IBMPlexSans-Bold.woff2") format("woff2"); }

/* ---------- tokens ----------
   A light neutral ground with white working surfaces and graphite type.
   One accent, a deep teal: the thing to press next, where you are, and "balanced".
   Over is blue and short is vermilion. Each always comes with its word and a small shape. */
:root {
  --paper: #F2F3F5;
  --card: #FFFFFF;
  --sunk: #E7E9EC;
  --sel: #DCDFE3;
  --step: #E7E9EC;
  --step-2: #D9DCE1;
  --ink: #1A1D21;
  --ink-2: #3B4149;
  --muted: #59606A;
  --rule: #DFE2E6;
  --rule-2: #C6CAD0;
  --edge: #747B85;
  --accent: #0B6659;
  --on-accent: #FFFFFF;
  --c-over: #1B57B0;
  --c-short: #AE3518;
  --on-tone: #FFFFFF;
  --mark: var(--accent);
  --good: var(--accent);
  --over: var(--c-short);          /* kit.css uses --over for errors and for buttons that remove things */
  --focus: var(--accent);
  --toast-err: #FFA58C; --chk-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Crect x='9' y='9' width='26' height='26' rx='6' fill='%23FFFFFF' stroke='%23747B85' stroke-width='1.5'/%3E%3C/svg%3E"); --chk-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Crect x='9' y='9' width='26' height='26' rx='6' fill='%230B6659' stroke='%230B6659' stroke-width='1.5'/%3E%3Cpath d='M15.5 22.5l4.5 4.5 8.5-10' fill='none' stroke='%23FFFFFF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --shadow: 0 1px 2px rgba(26, 29, 33, .06);
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: var(--sans);
  --radius: 8px;
  --radius-2: 14px;
  --wrap: 78rem;
  --measure: 40rem;
  --fs-xs: .75rem;
  --fs-sm: .875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;
  --fs-key: clamp(2.75rem, 2.1rem + 3vw, 3.5rem);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121417; --card: #1B1E23; --sunk: #0B0D0F; --sel: #2A2F36; --step: #2C3138; --step-2: #383E47; --ink: #ECEEF1; --ink-2: #C7CBD1; --muted: #9BA2AB;
    --rule: #2A2E35; --rule-2: #3B4048; --edge: #7A818B; --accent: #5CC9B5; --on-accent: #0B0D0F; --c-over: #8DB8FF; --c-short: #FFA58C; --on-tone: #0B0D0F;
    --toast-err: #AE3518; --chk-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Crect x='9' y='9' width='26' height='26' rx='6' fill='%231B1E23' stroke='%237A818B' stroke-width='1.5'/%3E%3C/svg%3E"); --chk-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Crect x='9' y='9' width='26' height='26' rx='6' fill='%235CC9B5' stroke='%235CC9B5' stroke-width='1.5'/%3E%3Cpath d='M15.5 22.5l4.5 4.5 8.5-10' fill='none' stroke='%230B0D0F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121417; --card: #1B1E23; --sunk: #0B0D0F; --sel: #2A2F36; --step: #2C3138; --step-2: #383E47; --ink: #ECEEF1; --ink-2: #C7CBD1; --muted: #9BA2AB;
  --rule: #2A2E35; --rule-2: #3B4048; --edge: #7A818B; --accent: #5CC9B5; --on-accent: #0B0D0F; --c-over: #8DB8FF; --c-short: #FFA58C; --on-tone: #0B0D0F;
  --toast-err: #AE3518; --chk-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Crect x='9' y='9' width='26' height='26' rx='6' fill='%231B1E23' stroke='%237A818B' stroke-width='1.5'/%3E%3C/svg%3E"); --chk-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Crect x='9' y='9' width='26' height='26' rx='6' fill='%235CC9B5' stroke='%235CC9B5' stroke-width='1.5'/%3E%3Cpath d='M15.5 22.5l4.5 4.5 8.5-10' fill='none' stroke='%230B0D0F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

/* ---------- base ---------- */
body {
  font-family: var(--sans); font-size: var(--fs-md); line-height: 1.5; letter-spacing: 0;
  font-variant-numeric: lining-nums tabular-nums; text-rendering: optimizeLegibility; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.01em; }
a:hover { text-decoration-color: currentColor; }
::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
/* Every figure sits on the same widths, so columns of money line up. */
.num, .fig, .input, .stats dd, .signal, .ledger td, .ledger tfoot th, .insight, .field-msg, .howto .worked, .hint, .pieces li {
  font-family: inherit; font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum" 1, "lnum" 1;
}
.skip { font-family: inherit; font-size: var(--fs-sm); font-weight: 500; border-radius: var(--radius); min-height: 2.75rem; display: inline-flex; align-items: center; }
.muted { color: var(--muted); }
.note { font-style: normal; font-size: var(--fs-sm); font-weight: 500; color: var(--muted); }
.eyebrow { font-size: var(--fs-sm); font-weight: 500; line-height: 1.3; color: var(--muted); }

/* ---------- top bar ---------- */
.strip { flex-wrap: nowrap; gap: 1rem; padding: .75rem 0 .5rem; border-bottom: 0; }
.brand { display: flex; align-items: center; gap: .625rem; min-width: 0; min-height: var(--tap); }
.brand h1 { font-size: 1.25rem; font-weight: 600; line-height: 1; letter-spacing: -.015em; }
.mark { display: block; }
.mark-a { fill: var(--ink); }
.mark-b { fill: var(--accent); }
.tagline { display: none; margin-left: .25rem; padding-left: .875rem; border-left: 1px solid var(--rule-2); font-size: var(--fs-sm); line-height: 1.25rem; color: var(--muted); white-space: nowrap; }
@media (min-width: 30rem) { .tagline { display: block; } }
.actions { flex-wrap: nowrap; gap: 0 .125rem; margin: 0 -.625rem 0 0; }
@media (min-width: 40rem) { .actions { flex-wrap: wrap; justify-content: flex-end; } }

/* ---------- buttons ---------- */
.btn {
  gap: .5rem; padding: .5rem 1rem; font-family: inherit; font-size: .9375rem; font-weight: 500; letter-spacing: 0;
  background: var(--card); border-color: var(--rule-2); border-radius: var(--radius);
}
.btn:hover { background: var(--sunk); border-color: var(--edge); }
.btn:active { background: var(--sel); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); border-color: transparent; }
.btn.quiet { background: transparent; border-color: transparent; color: var(--ink-2); font-weight: 500; padding-left: .625rem; padding-right: .625rem; }
.btn.quiet:hover { border-color: transparent; color: var(--ink); background: var(--sunk); }
.btn.danger { color: var(--over); }
.btn.danger.primary { background: var(--c-short); border-color: var(--c-short); color: var(--on-tone); }
.btn.danger.primary:hover { background: color-mix(in srgb, var(--c-short) 86%, var(--ink)); border-color: transparent; }
.btn.add { background: transparent; border: 1px dashed var(--edge); color: var(--ink-2); }
.btn.add:hover { border-style: solid; color: var(--ink); background: var(--card); }
.btn[disabled] { opacity: .45; }
.linkish {
  min-height: 2rem; padding: 0; border: 0; background: none; font: inherit; font-weight: 500; color: var(--ink); text-align: left; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: var(--edge);
}
.linkish:hover { text-decoration-color: currentColor; }

/* ---------- form controls ---------- */
.label, .field > label { font-family: inherit; font-size: var(--fs-sm); font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
.hint { font-size: var(--fs-sm); line-height: 1.45; color: var(--muted); }
.input {
  padding: 0 .75rem; font-size: var(--fs-md); letter-spacing: 0;
  background: var(--card); border: 1px solid var(--edge); border-radius: var(--radius);
}
.input::placeholder { color: var(--muted); }
.input:hover { border-color: var(--ink-2); }
.input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.affix > .pre, .affix > .suf { font-family: inherit; font-size: var(--fs-md); color: var(--muted); }
.affix > .pre { left: .75rem; }
.affix.has-pre > .input { padding-left: 1.625rem; }
.field-msg { font-size: var(--fs-sm); line-height: 1.45; color: var(--ink-2); }
.field-msg.is-error { color: var(--over); font-weight: 500; }
.field-msg.is-error::before { width: .4375rem; height: .4375rem; margin-right: .4rem; border-radius: 1px; vertical-align: .08em; }

/* ---------- section heads ---------- */
.sec { padding: 2rem 0; border-top: 1px solid var(--rule-2); }
.sec-head { margin-bottom: 1.25rem; }
.sec-head h2 { font-size: var(--fs-xl); line-height: 1.25; letter-spacing: -.012em; }
.sec-head p { max-width: 44rem; margin-top: .375rem; color: var(--ink-2); }

/* ---------- notices ---------- */
.notice {
  gap: .25rem 1rem; margin: .25rem 0 1rem; padding: .375rem .375rem .375rem 1rem; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-2);
  font-size: .9375rem; color: var(--ink-2);
}
.notice p { padding: .375rem 0; }
.notice.is-error { border-color: var(--over); box-shadow: inset 3px 0 0 var(--over); }
.notice.toast {
  max-width: 38rem; padding: .5rem .5rem .5rem 1.125rem; background: var(--ink); color: var(--paper); border: 0; border-radius: var(--radius-2);
  box-shadow: 0 .75rem 2.5rem rgba(0, 0, 0, .25);
}
.notice.toast.is-error { box-shadow: inset 4px 0 0 var(--toast-err), 0 .75rem 2.5rem rgba(0, 0, 0, .25); }
.notice.toast .btn { background: transparent; color: var(--paper); border-color: color-mix(in srgb, var(--paper) 50%, transparent); }
.notice.toast .btn.quiet { border-color: transparent; color: color-mix(in srgb, var(--paper) 84%, var(--ink)); }
.notice.toast .btn:hover { background: color-mix(in srgb, var(--paper) 14%, transparent); color: var(--paper); }
.notice.toast :focus-visible { outline-color: var(--paper); }

/* ---------- views: three parts, one switch ---------- */
.views {
  flex-wrap: nowrap; gap: .25rem; width: fit-content; max-width: 100%; margin: .25rem 0 1.5rem; padding: .25rem;
  background: var(--sunk); border: 0; border-radius: 12px;
}
.view-tab {
  min-height: 2.75rem; margin: 0; padding: 0 1.375rem; border: 0; border-radius: 9px;
  font-family: inherit; font-size: .9375rem; font-weight: 500; color: var(--ink-2);
}
.view-tab:first-child { padding-left: 1.375rem; }
.view-tab:hover { color: var(--ink); background: color-mix(in srgb, var(--card) 55%, transparent); }
.view-tab[aria-selected="true"] { color: var(--ink); background: var(--card); font-weight: 600; box-shadow: inset 0 0 0 1px var(--edge), var(--shadow); }
.view-tab:focus-visible { outline-offset: 1px; border-radius: 9px; }
@media (max-width: 30rem) {
  .views { width: auto; }
  .view-tab, .view-tab:first-child { flex: 1 1 0; padding: 0 .5rem; font-size: .9375rem; }
}

/* ================= Count ================= */

/* ---------- which drawer, which day ---------- */
.daybar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; padding: 0 0 1.25rem; }
.picker { min-width: 0; flex: 1 1 20rem; }
.picker .eyebrow { margin: 0 0 .375rem; }
.regs { display: flex; flex-wrap: wrap; gap: .5rem; }
.regs li { min-width: 0; }
.reg-tab {
  display: grid; gap: .0625rem; min-height: 3.25rem; min-width: 8.5rem; max-width: 100%; padding: .4375rem .875rem; text-align: left;
  font: inherit; color: var(--ink-2); background: transparent; border: 1px solid var(--rule-2); border-radius: 10px; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.reg-tab:hover { background: var(--card); border-color: var(--edge); color: var(--ink); }
.reg-tab .nm { max-width: 16rem; font-size: var(--fs-md); font-weight: 500; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reg-tab .mt { font-size: var(--fs-sm); line-height: 1.35; color: var(--muted); white-space: nowrap; }
.reg-tab[aria-current="true"] { background: var(--card); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink), var(--shadow); color: var(--ink); }
.reg-tab[aria-current="true"] .nm { font-weight: 600; }
.regs .btn.add { min-height: 3.25rem; border-radius: 10px; }
.date-field { flex: 0 0 auto; width: 11.5rem; }
@media (max-width: 30rem) {
  .daybar { gap: .875rem; }
  .regs li:has(.reg-tab) { flex: 1 1 8.5rem; }
  .reg-tab { width: 100%; }
  .date-field { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; }
  .date-field .input { width: 11.5rem; }
}

/* ---------- over, short, balanced: a colour, a shape and the word ---------- */
.mt.v-over, .t-var.v-over, .vc > .v-over, .key.v-over .dir { color: var(--c-over); }
.mt.v-short, .t-var.v-short, .vc > .v-short, .key.v-short .dir { color: var(--c-short); }
.mt.v-even, .t-var.v-even, .vc > .v-even, .key.v-even .amt { color: var(--accent); }
.mt[class*="v-"]::before, .t-var[class*="v-"]::before, .vc > [class*="v-"]::before, .key[class*="v-"] .dir::before {
  content: ""; display: inline-block; flex: none; width: .5625em; height: .5625em; margin-right: .4em; background: currentColor;
}
.mt.v-over::before, .t-var.v-over::before, .vc > .v-over::before, .key.v-over .dir::before { clip-path: polygon(50% 4%, 100% 92%, 0 92%); }
.mt.v-short::before, .t-var.v-short::before, .vc > .v-short::before, .key.v-short .dir::before { clip-path: polygon(0 8%, 100% 8%, 50% 96%); }
.mt.v-even::before, .t-var.v-even::before, .vc > .v-even::before { clip-path: polygon(0 12%, 100% 12%, 100% 38%, 0 38%, 0 62%, 100% 62%, 100% 88%, 0 88%); }
.mt.v-past, .t-var.v-past, .vc > .v-past { font-weight: 600; }

/* ---------- the running total, pinned while you count (phone and tablet) ---------- */
.tally {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: baseline; justify-content: space-between; gap: 0 1rem;
  margin: 0 calc(var(--gutter) * -1); padding: .625rem var(--gutter); background: var(--card); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule-2);
  font-size: var(--fs-sm); color: var(--ink-2);
}
.tally .t-name { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.tally .t-figs { flex: none; display: flex; align-items: baseline; justify-content: flex-end; gap: 0 .875rem; margin-left: auto; white-space: nowrap; }
.tally .t-counted strong { margin-left: .375rem; font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.tally .t-var { font-weight: 500; }
.tally .t-var:empty { display: none; }
/* On a phone the figure speaks for itself; the word comes back when there's room. */
@media (max-width: 30rem) { .tally .t-counted { font-size: 0; } .tally .t-counted strong { margin-left: 0; } }
@media (min-width: 68rem) { .tally { display: none; } }
/* Keep whatever gets scrolled to or focused clear of the pinned bar. */
@media (max-width: 67.99rem) { html { scroll-padding-top: 4.5rem; } }

/* ---------- one register ---------- */
.reg { padding: 1.5rem 0 2.5rem; }
.reg-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .25rem 1rem; margin-bottom: 1.75rem; }
.reg-head .field { flex: 1 1 16rem; max-width: 34rem; gap: 0; }
.reg-name.input {
  height: 3rem; padding: 0; font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -.02em;
  background: transparent; border: 0; border-radius: 0; box-shadow: 0 1px 0 var(--rule-2); text-overflow: ellipsis;
}
.reg-name.input:hover { box-shadow: 0 1px 0 var(--edge); }
.reg-name.input:focus-visible { outline: none; box-shadow: 0 2px 0 var(--focus); }
.reg-name.input::placeholder { font-weight: 500; }
.reg-head .reg-actions { display: flex; flex-wrap: wrap; gap: .125rem; margin: 0 -.625rem; }

.reg-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
@media (min-width: 68rem) {
  .reg-grid { grid-template-columns: minmax(0, 1fr) 23rem; gap: 2.5rem 2.5rem; align-items: start; }
  .reg-main, .deposit, .signoff { grid-column: 1; }
  .reg-side { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 1rem; }
}

/* The close is four steps, always in the same order. */
.part-head { margin-bottom: 1rem; }
.part-head h2 { display: flex; align-items: baseline; gap: .75rem; font-size: var(--fs-xl); line-height: 1.25; letter-spacing: -.012em; }
.part-head h2::before { flex: none; min-width: .75rem; font-weight: 500; color: var(--accent); }
.count .part-head h2::before { content: "1"; }
.report .part-head h2::before { content: "2"; }
.deposit .part-head h2::before { content: "3"; }
.signoff .part-head h2::before { content: "4"; }
.part-head .hint { margin-top: .375rem; max-width: 42rem; }
@media (pointer: coarse), (max-width: 40rem) { .part-head .hint .keys { display: none; } }
.report { margin-top: 2.5rem; }

/* ---------- the count ---------- */
.denoms { container-type: inline-size; container-name: denoms; }
.denoms-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem 1rem; align-items: start; }
/* With room, bills and rolls run down the left, coins and the less common pieces down the right. */
@container denoms (min-width: 44rem) {
  .denoms-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr auto; }
  .denoms-in > .group:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
  .denoms-in > .group:nth-child(2) { grid-column: 2; grid-row: 1; }
  .denoms-in > .group:nth-child(3) { grid-column: 1; grid-row: 3; }
  .denoms-in > .group:nth-child(4) { grid-column: 2; grid-row: 2; }
}
.group { min-width: 0; padding: 0 1rem; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-2); box-shadow: var(--shadow); }
.g-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .875rem 0 .75rem; }
.g-head .g-title { font-size: var(--fs-lg); font-weight: 600; line-height: 1.3; letter-spacing: -.005em; }
.g-head .g-aside { display: block; font-size: var(--fs-sm); font-weight: 400; letter-spacing: 0; color: var(--muted); }
.g-head .g-sub { font-size: var(--fs-md); font-weight: 500; color: var(--ink-2); }
.group.fold > summary { list-style: none; cursor: pointer; min-height: 3.5rem; margin: 0 -1rem; padding-left: 1rem; padding-right: 1rem; border-radius: var(--radius-2); -webkit-tap-highlight-color: transparent; }
.group.fold > summary::-webkit-details-marker { display: none; }
.group.fold > summary:focus-visible { outline-offset: -2px; }
.group.fold > summary .g-title { position: relative; padding-left: 1.375rem; }
.group.fold > summary .g-title::before {
  content: ""; position: absolute; left: .125rem; top: .5rem; width: .4375rem; height: .4375rem;
  border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: rotate(-45deg);
}
.group.fold[open] > summary .g-title::before { transform: rotate(45deg); top: .375rem; }

/* One line per piece: what it is, take one off, how many, add one, what the line comes to. */
.drows { display: grid; grid-template-columns: minmax(auto, 1fr) 3rem 4.25rem 3rem minmax(4.25rem, 6.5rem); column-gap: .5rem; }
.drow { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; min-height: 4rem; padding: .375rem 0; border-top: 1px solid var(--rule); }
@supports not (grid-template-columns: subgrid) { .drow { grid-template-columns: minmax(4.75rem, 1fr) 3rem 4.25rem 3rem minmax(4.25rem, 6.5rem); column-gap: .5rem; } }
.d-label { display: grid; line-height: 1.2; cursor: pointer; }
.d-name { font-size: 1.25rem; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.drow.is-roll .d-name { font-size: var(--fs-md); letter-spacing: 0; }
.d-sub { margin-top: .0625rem; font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }
.btn.step { width: 3rem; height: 3rem; min-height: 3rem; padding: 0; color: var(--ink); background: var(--step); border-color: transparent; border-radius: 10px; }
.btn.step:hover { background: var(--step-2); border-color: transparent; }
.btn.step:active { background: var(--rule-2); }
.d-count.input { height: 3rem; padding: 0 .25rem; text-align: center; font-size: var(--fs-xl); font-weight: 500; border-radius: 10px; }
.d-count.input::placeholder { font-weight: 400; }
.d-total { font-size: var(--fs-md); color: var(--muted); white-space: nowrap; }
.drow.has .d-total { color: var(--ink); font-weight: 500; }
@media (max-width: 30rem) {
  .group { padding: 0 .75rem; }
  .group.fold > summary { margin: 0 -.75rem; padding-left: .75rem; padding-right: .75rem; }
  .drows { grid-template-columns: minmax(auto, 1fr) 2.875rem 3.5rem 2.875rem minmax(3.5rem, 5.5rem); column-gap: .375rem; }
  .btn.step { width: 2.875rem; }
  .d-total { font-size: .9375rem; }
}
@media (max-width: 22.5rem) {
  .group { padding: 0 .5rem; }
  .group.fold > summary { margin: 0 -.5rem; padding-left: .5rem; padding-right: .5rem; }
  .drows { grid-template-columns: minmax(auto, 1fr) 2.75rem 3rem 2.75rem minmax(3rem, 5rem); column-gap: .25rem; }
  .btn.step { width: 2.75rem; }
  .d-count.input { font-size: var(--fs-lg); }
  .d-name { font-size: 1.0625rem; }
  .drow.is-roll .d-name { font-size: var(--fs-sm); }
  .drow.is-roll .d-sub { display: none; }
  .d-total { font-size: .8125rem; }
}

.blind-box {
  display: grid; gap: .875rem; justify-items: start; margin-top: 1rem; padding: 1.125rem 1.25rem;
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-2); box-shadow: inset 3px 0 0 var(--accent), var(--shadow); color: var(--ink-2);
}
.blind-box p { max-width: 36rem; }

/* ---------- the register report ---------- */
.report { container-type: inline-size; container-name: report; }
.rep-grid {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.125rem 1.25rem; padding: 1.25rem 1rem 1.375rem;
  background: var(--card); border: 1px solid var(--rule); border-bottom: 0; border-radius: var(--radius-2) var(--radius-2) 0 0;
}
@container report (min-width: 30rem) { .rep-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 1.375rem 1.25rem 1.5rem; } }
@container report (min-width: 48rem) { .rep-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rep-grid .input { height: 3rem; font-size: var(--fs-lg); font-weight: 500; }
.rep-grid .input::placeholder { font-weight: 400; }
.rep-grid .affix > .pre { font-size: var(--fs-lg); }
.rep-grid .affix.has-pre > .input { padding-left: 1.75rem; }
.exp-line {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; margin: 0; padding: .875rem 1rem;
  background: var(--card); border: 1px solid var(--rule); border-top-color: var(--rule-2); border-radius: 0 0 var(--radius-2) var(--radius-2); box-shadow: var(--shadow);
  font-weight: 500; color: var(--ink-2);
}
@container report (min-width: 30rem) { .exp-line { padding: .875rem 1.25rem; } }
.exp-line strong { font-size: var(--fs-xl); font-weight: 600; color: var(--ink); white-space: nowrap; }
.exp-line strong.words { font-size: var(--fs-md); font-weight: 400; color: var(--muted); }
.exp-warn { margin: .5rem 0 0; }

/* ---------- where the drawer stands ---------- */
.result { padding: 1.375rem 1.25rem 1.25rem; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-2); box-shadow: var(--shadow); }
@media (min-width: 30rem) { .result { padding: 1.625rem 1.5rem 1.5rem; } }
.result:focus { outline: none; }
.result:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.result .key-label { font-size: var(--fs-sm); font-style: normal; font-weight: 500; color: var(--muted); }
.result .key {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .875rem; margin: .25rem 0 0;
  font-family: inherit; font-size: var(--fs-key); font-weight: 400; line-height: 1.1; letter-spacing: -.03em; color: var(--ink);
}
.result .key .amt { white-space: nowrap; }
.result .key .dir {
  display: inline-flex; align-items: center; min-height: 2rem; padding: 0 .75rem 0 .6875rem; border-radius: 999px;
  font-size: var(--fs-lg); font-weight: 600; font-style: normal; line-height: 1; letter-spacing: 0; text-transform: capitalize; white-space: nowrap;
  background: color-mix(in srgb, currentColor 11%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 55%, transparent);
}
.result .key .dir:empty { display: none; }
/* Past the house limit: the same word and shape, filled in. */
.result .key.v-past.v-over .dir { background: var(--c-over); box-shadow: none; }
.result .key.v-past.v-short .dir { background: var(--c-short); box-shadow: none; }
.result .key.v-past .dir { color: var(--on-tone); }
.result .key-sub { margin-top: .5rem; font-family: inherit; font-size: var(--fs-sm); color: var(--muted); }

/* The sum underneath, built the way the drawer is counted. */
.stats { margin-top: 1.25rem; }
.stats > div { gap: 1rem; padding: .4375rem 0; border-top: 0; }
.stats dt { font-size: .9375rem; color: var(--ink-2); }
.stats dt small { margin-top: .125rem; font-family: inherit; font-size: var(--fs-xs); line-height: 1.4; color: var(--muted); }
.stats dd { font-family: inherit; font-size: var(--fs-md); font-weight: 500; letter-spacing: 0; color: var(--ink); }
.stats .part:first-child { padding-top: .875rem; border-top: 1px solid var(--rule); }
.stats .total { margin-top: .4375rem; padding-top: .75rem; border-top: 1px solid var(--ink); }
.stats .total dt { font-weight: 600; color: var(--ink); }
.stats .total dd { font-size: var(--fs-lg); font-weight: 600; }
.stats .split { margin-top: .625rem; padding-top: .875rem; border-top: 1px solid var(--rule); }
.stats dd.words { font-family: inherit; font-size: .9375rem; font-weight: 400; font-style: normal; color: var(--muted); }

/* The verdict in a sentence. The mark changes with it; the box stays quiet. */
.signal { gap: .625rem; margin-top: 1.125rem; padding: .75rem .875rem; background: var(--paper); border: 0; border-radius: 10px; font-size: .9375rem; line-height: 1.45; color: var(--ink-2); }
.signal svg { width: 1.125rem; height: 1.125rem; margin-top: .125rem; }
.signal.good, .signal.over { border: 0; background: var(--paper); }
.signal.good { color: var(--ink); }
.signal.good svg { color: var(--accent); }
.signal.over { color: var(--ink); font-weight: 500; box-shadow: inset 3px 0 0 var(--ink); }
.signal.over svg { color: var(--ink); }
.signal.idle svg { color: var(--muted); }

@media (min-width: 44rem) and (max-width: 67.99rem) {
  .reg-side .result { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 0 2.5rem; align-items: start; }
  .reg-side .result .res-top { grid-row: 1 / span 2; }
  .reg-side .result .stats, .reg-side .result .signal { grid-column: 2; }
  .reg-side .result .stats { margin-top: 0; }
  .reg-side .result .stats .part:first-child { border-top: 0; padding-top: 0; }
}

/* ---------- the deposit: what goes, what stays ---------- */
.deposit > .signal { margin: 0 0 1rem; max-width: 46rem; background: var(--card); border: 1px solid var(--rule); }
.dep { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem 1rem; align-items: start; max-width: 46rem; }
@media (min-width: 36rem) { .dep { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.dep-col { min-width: 0; padding: 1.125rem 1rem 1rem; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-2); box-shadow: var(--shadow); }
@media (min-width: 30rem) { .dep-col { padding: 1.25rem 1.25rem 1.125rem; } }
.dep-col:first-child { box-shadow: inset 0 3px 0 var(--accent), var(--shadow); }
.dep-col .dep-total { margin: .125rem 0 .875rem; font-size: var(--fs-2xl); font-weight: 500; line-height: 1.15; letter-spacing: -.02em; }
.pieces li { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; padding: .4375rem 0; border-top: 1px solid var(--rule); font-size: .9375rem; }
.pieces .p-what { min-width: 0; color: var(--ink-2); }
.pieces .p-n { display: inline-block; min-width: 1.5em; text-align: right; font-weight: 600; color: var(--ink); }
.pieces-none { padding: .4375rem 0; border-top: 1px solid var(--rule); font-style: normal; color: var(--muted); }
.dep-foot { margin-top: .25rem; padding-top: .75rem; border-top: 1px solid var(--rule); }

/* ---------- sign off ---------- */
.sign-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem 1.25rem; max-width: 46rem; }
@media (min-width: 36rem) { .sign-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); } }
.sign-grid .input { height: 3rem; }
.sign-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.sign-actions .btn { min-height: 3rem; padding-left: 1.25rem; padding-right: 1.25rem; }
@media (max-width: 30rem) { .sign-actions .btn { flex: 1 1 100%; } }
.save-status { margin-top: .875rem; font-size: .9375rem; color: var(--ink-2); max-width: 40rem; }

/* ---------- house rules ---------- */
.rules-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem 3.5rem; max-width: 60rem; }
@media (min-width: 48rem) { .rules-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); } }
.rules .limit { max-width: 9rem; }
.rules .limit .input { height: 3rem; }
.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .875rem; align-items: start; }
.check { gap: .375rem; margin-left: -.5625rem; }
.check input[type="checkbox"] { -webkit-appearance: none; appearance: none; width: 2.75rem; height: 2.75rem; margin: 0; border: 0; border-radius: 10px; background: var(--chk-off) center / 100% 100% no-repeat; cursor: pointer; }
.check input[type="checkbox"]:checked { background-image: var(--chk-on); }
.check input[type="checkbox"]:focus-visible { outline-offset: -5px; }
@media (forced-colors: active) { .check input[type="checkbox"] { -webkit-appearance: auto; appearance: auto; background: none; width: 1.75rem; height: 1.75rem; margin: .5rem; } }
.check label { display: block; padding: .75rem 0 .375rem; font-size: var(--fs-md); font-weight: 500; line-height: 1.3; cursor: pointer; }

/* ================= The day and the log ================= */
.insight { max-width: 46rem; margin-bottom: 1.5rem; padding: 0; border: 0; font-size: 1.25rem; font-style: normal; line-height: 1.45; letter-spacing: -.01em; color: var(--ink); }
.insight:empty { display: none; }
.table-wrap { padding: .25rem 1rem; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-2); box-shadow: var(--shadow); }
@media (min-width: 44rem) { .table-wrap { padding: .375rem 1.25rem .25rem; } }
.table-wrap:focus-visible { outline-offset: 2px; border-radius: var(--radius-2); }
.ledger { font-size: .9375rem; }
.ledger th, .ledger td { padding: .8125rem .75rem; border-bottom: 1px solid var(--rule); }
.ledger thead th { font-family: inherit; font-size: var(--fs-sm); font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--rule-2); padding-bottom: .625rem; }
.ledger tbody th { font-weight: 500; }
.ledger tbody tr:last-child th, .ledger tbody tr:last-child td { border-bottom: 0; }
.ledger tfoot th, .ledger tfoot td { border-top: 1px solid var(--ink); font-weight: 600; }
.day tbody th, .log tbody th { font-size: var(--fs-md); white-space: nowrap; }
.day tbody th { white-space: normal; min-width: 9rem; }
.ledger td .vc { display: inline-block; text-align: right; white-space: nowrap; }
.ledger td small { display: block; font-family: inherit; font-size: var(--fs-xs); font-weight: 500; color: inherit; }
.ledger td .vc small { color: var(--ink-2); }
.ledger td .muted { font-family: inherit; font-style: normal; font-weight: 400; }
.day-actions, .log-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.day-actions .btn.primary { min-height: 3rem; padding-left: 1.25rem; padding-right: 1.25rem; }
.day-bag { margin-top: 2.5rem; }
.log-sum { max-width: 50rem; margin-bottom: 1.25rem; }
@media (min-width: 44rem) {
  .log-sum .result { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 0 2.5rem; align-items: start; }
  .log-sum .result .stats { margin-top: 0; }
}
.log-sum .stats > div { padding: .625rem 0; border-top: 1px solid var(--rule); }
.log-sum .stats > div:first-child { border-top: 0; padding-top: .25rem; }
.log-empty { max-width: var(--measure); padding: 1rem 0 0; font-style: normal; color: var(--ink-2); }
.log .lg-note { min-width: 11rem; max-width: 22rem; font-size: var(--fs-sm); color: var(--ink-2); }
.log .lg-x { width: var(--tap); }
.log .lg-x .btn { color: var(--muted); }
.log .lg-x .btn:hover { color: var(--over); }
.log-hint { margin-top: .875rem; max-width: var(--measure); }
@media (max-width: 43.99rem) {
  .ledger.stack tr { padding: .875rem 0; }
  .ledger.stack tbody tr:first-child { border-top: 0; }
  .ledger.stack tbody tr:last-child { border-bottom: 0; }
  .ledger.stack tbody th { font-size: var(--fs-lg); font-weight: 600; }
  .ledger.stack td { min-height: 2rem; }
  .ledger.stack td::before { font-family: inherit; font-size: var(--fs-sm); font-weight: 400; color: var(--ink-2); }
  .ledger.stack td > span { text-align: right; }
  .ledger.stack td small { text-align: right; }
  .ledger.stack tfoot th { font-size: var(--fs-md); padding-bottom: .25rem; }
  .ledger.stack td.lg-note:empty { display: none; }
  .ledger.stack td.lg-note { display: block; max-width: none; text-align: left; padding-top: .4rem; }
  .ledger.stack td.lg-note::before { display: block; margin-bottom: .15rem; }
  .ledger.stack td.lg-x { width: auto; justify-content: flex-end; margin-right: -.625rem; }
  .ledger.stack tbody th .linkish { min-height: var(--tap); }
}

/* ================= below the sheet ================= */
.howto { margin-top: 2.5rem; border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); }
.howto > summary { gap: .625rem; min-height: 3.5rem; padding: .75rem 0; font-size: var(--fs-lg); font-weight: 600; letter-spacing: -.005em; border-radius: 6px; }
.howto > summary::before { width: .4375rem; height: .4375rem; margin: 0 .25rem 0 .125rem; border-color: var(--ink-2); }
.howto .howto-body { max-width: var(--measure); padding: .25rem 0 2.25rem; color: var(--ink-2); }
.howto h3 { font-size: var(--fs-md); font-weight: 600; color: var(--ink); margin-top: 1.75rem; }
.howto .worked { padding: 1rem 1.125rem; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-2); font-size: .9375rem; }
.howto .fig { font-weight: 500; color: var(--ink); }
.howto strong { font-weight: 600; color: var(--ink); }

/* Custom version: a plain panel in the same hand as the rest. Hidden in print (kit.css). */
.custom { margin-top: 2.5rem; padding: 1.5rem 1.25rem 1.5rem; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-2); box-shadow: var(--shadow); }
.custom-kicker { gap: 0; font-size: var(--fs-sm); font-style: normal; font-weight: 600; color: var(--accent); }
.custom-kicker::before { content: none; }
.custom h2 { margin-top: .375rem; font-size: var(--fs-xl); line-height: 1.25; font-weight: 600; letter-spacing: -.012em; }
.custom-lede { margin-top: .625rem; max-width: var(--measure); color: var(--ink-2); }
.custom-list { column-gap: 2.5rem; margin-top: 1.5rem; border-bottom: 1px solid var(--rule); font-size: .9375rem; line-height: 1.5; color: var(--ink-2); }
.custom-list li { padding: .75rem 0; border-top: 1px solid var(--rule); }
.custom-list li:first-child, .custom-list li:nth-child(2) { border-top-color: var(--rule); }
.custom-list strong { display: block; font-weight: 600; color: var(--ink); }
.custom-cta { align-items: center; gap: .5rem 1rem; margin-top: 1.25rem; }
.custom-cta a {
  display: inline-flex; align-items: center; min-height: 3rem; padding: .5rem 1.25rem; font-size: var(--fs-md); font-weight: 600; line-height: 1.3;
  color: var(--on-accent); background: var(--accent); border-radius: var(--radius); text-decoration: none;
}
.custom-cta a:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.custom-cta span { font-style: normal; font-size: var(--fs-sm); color: var(--muted); }
@media (min-width: 48rem) { .custom { padding: 2.25rem 2.25rem 2rem; } }
@media (min-width: 68rem) {
  .custom { grid-template-columns: 20rem minmax(0, 1fr); column-gap: 4rem; padding: 2.5rem 2.5rem 2.25rem; }
  .custom-list { margin-top: 0; }
  .custom-cta { margin-top: 1.5rem; }
  .custom-cta span { margin-top: .625rem; }
}

/* ---------- foot: what it is, what stays on the device, and who made it ---------- */
.foot { display: block; margin-top: 2.5rem; padding: 1.5rem 0 2.5rem; border-top: 0; font-size: var(--fs-sm); line-height: 1.55; color: var(--muted); }
.foot .about { display: grid; gap: .5rem; max-width: 44rem; }
.foot .privacy { margin: 0; padding: 0; max-width: none; border: 0; font-size: inherit; font-style: normal; color: inherit; }
.foot .by { margin-top: 1.75rem; font-style: normal; color: var(--muted); }
.foot a { display: inline; min-height: 0; }

/* ---------- dialog ---------- */
.dialog { width: min(27rem, calc(100vw - 2rem)); padding: 1.5rem; background: var(--card); border: 1px solid var(--rule-2); border-radius: 16px; box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .3); }
.dialog::backdrop { background: rgba(11, 13, 15, .55); }
.dialog h2 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -.01em; }
.dialog p { margin-top: .5rem; color: var(--ink-2); }
.dialog .dialog-actions { margin-top: 1.5rem; }

/* ---------- the File menu on a phone (kit.css "More") ---------- */
@media (max-width: 39.99rem) {
  .actions:has(.more[data-ready]) { gap: 0 .125rem; margin: 0 -.5rem 0 0; }
  .actions:has(.more[data-ready]) > .btn.quiet, .more[data-ready] .more-btn { padding-left: .75rem; padding-right: .625rem; }
  .more[data-ready] .more-btn::after { width: .375rem; height: .375rem; margin: -.2rem .125rem 0 .2rem; }
  .more[data-ready].is-open .more-btn { background: var(--sunk); }
  .more[data-ready] .more-list { top: calc(100% - .25rem); min-width: 13rem; padding: .375rem; background: var(--card); border: 1px solid var(--rule-2); border-radius: var(--radius-2); box-shadow: 0 .75rem 2.5rem rgba(0, 0, 0, .22); }
  .more[data-ready] .more-list .btn { min-height: 2.75rem; padding-left: .75rem; font-size: var(--fs-md); color: var(--ink); }
  .strip:has(.more[data-ready]) .theme-btn { position: static; }
}

/* ---------- print: a plain close sheet ---------- */
.print-head { margin: 0 0 1.25rem; padding-bottom: .5rem; border-bottom: 1px solid #000; }
.print-title { font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }
.print-title span { margin-left: .5rem; font-size: .875rem; font-weight: 400; letter-spacing: 0; }
.print-date { font-size: .8125rem; }
@media print {
  :root, :root[data-theme="dark"], :root:not([data-theme="light"]) {
    --paper: #fff; --card: #fff; --sunk: #fff; --sel: #fff; --ink: #000; --ink-2: #222; --muted: #555; --rule: #bbb; --rule-2: #999; --edge: #999;
    --accent: #000; --c-over: #000; --c-short: #000; --on-tone: #000; --on-accent: #000; --shadow: none; color-scheme: light;
  }
  html { font-size: 11px; }
  [class*="v-"]::before, .key[class*="v-"] .dir::before { content: none !important; }
  .sec-head p, .log-hint, .custom, .foot { display: none !important; }
  .table-wrap, .result, .dep-col, .group { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; }
  .dep-col { padding-top: .5rem; border-top: 1px solid #000; }
  .result { padding-top: .75rem; border-top: 1px solid #000; }
  .result .key { font-size: 2.4rem; }
  .result .key .dir, .result .key.v-past .dir { padding: 0; min-height: 0; background: none !important; box-shadow: none; color: #000; font-size: 1.2rem; }
  .log-sum .result { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 0 2.5rem; }
  .log-sum .result .stats { margin-top: 0; }
  .insight { font-size: 1.1rem; }
  .ledger th, .ledger td { padding: .4rem .5rem; }
  .ledger tbody tr:last-child th, .ledger tbody tr:last-child td { border-bottom: 1px solid var(--rule); }
  .day-bag { margin-top: 1rem; break-inside: avoid; }
  .linkish { text-decoration: none; font-weight: 400; }
  .log .lg-note { min-width: 0; }

  .sheet { break-inside: avoid; }
  .sheet + .sheet, .after-summary .sheet { break-before: page; }
  .sheet h2 { font-size: 1.9rem; line-height: 1.15; font-weight: 600; }
  .sheet > .note { margin-bottom: 1rem; font-size: 1rem; font-weight: 400; }
  .sheet h3.note { margin: 1rem 0 .2rem; font-size: .9rem; font-weight: 600; color: #000; }
  .sheet-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 3rem; align-items: start; }
  .sheet-grid > div:last-child > h3.note:first-child { margin-top: 0; }
  .sheet-counts th, .sheet-counts td { padding: .32rem .5rem; }
  .sheet-counts thead th { color: #000; }
  .sheet .stats { margin-top: 0; }
  .sheet .stats > div { padding: .32rem 0; border-top: 1px solid var(--rule); }
  .sheet .stats > div:first-child { border-top: 1px solid var(--ink); }
  .sheet .stats dd { font-size: 1rem; }
  .sheet .stats .strong dt { font-weight: 600; color: #000; }
  .sheet .stats .strong dd { font-size: 1.2rem; font-weight: 600; }
  .sheet-dep { margin-top: 1.25rem; break-inside: avoid; }
  .sheet-words { margin: .2rem 0 .6rem; max-width: 44rem; }
  .sheet .dep { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 3rem; }
  .sheet .dep-col { padding-top: 0; border-top: 0; }
  .sheet .dep-col .dep-total { font-size: 1.5rem; margin-bottom: .4rem; }
  .sheet .pieces li { padding: .22rem 0; }
  .sheet-note { margin-top: 1rem; }
  .sheet .hint { margin-top: .35rem; }
  .signs { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 2rem; margin-top: 4.5rem; break-inside: avoid; }
  .sign-line { position: relative; padding-top: .3rem; border-top: 1px solid var(--ink); }
  .sign-name { position: absolute; left: 0; bottom: 100%; padding-bottom: .25rem; font-size: 1.15rem; }
  .sign-cap { font-size: .8rem; color: var(--muted); }
}

/* ---------- the way back to the tools list: small and quiet, above the product's own bar ---------- */
.to-tools {
  display: inline-flex; align-items: center; gap: .25rem; min-height: 1.75rem; margin-top: .5rem;
  font-size: .8125rem; font-weight: 500; line-height: 1; color: var(--muted); text-decoration: none;
}
.to-tools:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
.to-tools svg { flex: none; }
@media print { .to-tools { display: none; } }
