/* Revision tracker (tracker.py, tracker.js, tracker-course.js). Site tokens from styles.css plus tracker
   tokens with light + dark (html[data-theme="dark"]) values. Light mode is deliberately higher-contrast than
   the rest of the site's cream (tutor, 2026-10-29): stronger borders, darker secondary text, solid fills
   for a chosen rating. */
:root {
  --tk-r: #C0392B; --tk-r-soft: #FBE1DD; --tk-on-r: #fff;
  --tk-a: #B7791F; --tk-a-soft: #FCEFCF; --tk-on-a: #fff;
  --tk-g: #23804F; --tk-g-soft: #DAF1E3; --tk-on-g: #fff;
  --tk-n: #D6CDBE; --tk-grid: #E5DCCD; --tk-axis: #7D768C;
  --tk-ink2: #403B55;                      /* secondary text: darker than --grey for contrast */
  --tk-line: #D3C6AE;                      /* card borders */
  --tk-card: #fff;
  --tk-shadow: 0 1px 2px rgba(40, 25, 60, .06), 0 6px 18px rgba(40, 25, 60, .07);
}
html[data-theme="dark"] {
  --tk-r: #f0847b; --tk-r-soft: #4a2a2c; --tk-on-r: #1c1214;
  --tk-a: #f2c25b; --tk-a-soft: #4a3e22; --tk-on-a: #1d1708;
  --tk-g: #6fd39b; --tk-g-soft: #1f4433; --tk-on-g: #0c1d14;
  --tk-n: #4a5168; --tk-grid: #363e54; --tk-axis: #8d95ab;
  --tk-ink2: #c3cad9; --tk-line: #414a63; --tk-card: var(--white);
  --tk-shadow: none;
}

.tk { display: grid; gap: 18px; margin-block: 8px 48px; }
.tk h1, .tk h2, .tk h3 { margin: 0; text-wrap: balance; }
.tk h2 { font-size: 1.22rem; color: var(--purple); }
.tk p { margin: 0; }
.tk-muted { color: var(--tk-ink2); }
.tk-small { font-size: .9rem; }
.tk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tk-stack { display: grid; gap: 18px; }
.tk-card { background: var(--tk-card); border: 1.5px solid var(--tk-line); border-radius: var(--radius); padding: 20px;
  display: grid; gap: 12px; min-width: 0; box-shadow: var(--tk-shadow); }

/* hero */
.tk-hero { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; background: var(--tk-card);
  border: 1.5px solid var(--tk-line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--tk-shadow); }
.tk-hero-plain { grid-template-columns: 1fr; }
.tk-hero-text { display: grid; gap: 12px; min-width: 0; }
.tk-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); color: var(--purple); }
.tk-lede { color: var(--tk-ink2); max-width: 64ch; font-size: 1.02rem; }
.tk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-chips:empty { display: none; }
.tk-chip { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 700; padding: 4px 11px;
  border-radius: 99px; background: var(--lav); color: var(--lav-ink); border: 1px solid var(--lav-line); vertical-align: 2px; }
.tk-chip-ext { background: var(--orange); color: var(--orange-ink); border-color: var(--orange-line); }
.tk-chip-teacher { background: var(--blue); color: var(--blue-ink); border-color: var(--blue-line); margin-left: 6px; }
.tk-chip-link { text-decoration: none; }
.tk-chip-link:hover { border-color: var(--lav-ink); }
.tk-ring { width: 132px; }
.tk-ring svg { width: 100%; height: auto; display: block; }
.tk-ring-big { font: 800 25px "Archivo", system-ui, sans-serif; fill: var(--purple); }
.tk-ring-small { font: 600 11px "Hanken Grotesk", system-ui, sans-serif; fill: var(--tk-ink2); }
.tk-how { margin: 4px 0 0; padding-left: 22px; display: grid; gap: 6px; color: var(--ink); max-width: 70ch; }

/* one action bar: every option visible, same size, icon + words */
.tk-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-act { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 12px;
  border: 1.5px solid var(--tk-line); background: var(--page); color: var(--ink); font-weight: 700; font-size: .92rem;
  text-decoration: none; }
.tk-act:hover { border-color: var(--accent); color: var(--purple); }
.tk-act:first-child { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

.tk-viewing, .tk-save { padding: 11px 15px; border-radius: 12px; background: var(--blue); color: var(--blue-ink);
  border: 1px solid var(--blue-line); font-size: .94rem; }
.tk-save-bad { background: var(--tk-r-soft); color: var(--ink); border-color: var(--tk-r); }
.tk-save-info { background: var(--yellow); color: var(--yellow-ink); border-color: var(--yellow-line); }
.tk-save a, .tk-viewing a { color: inherit; font-weight: 800; }

/* tabs = segmented control */
.tk-tabs { display: flex; gap: 4px; overflow-x: auto; position: sticky; top: 60px; z-index: 4; background: var(--page);
  padding: 8px 0; }
.tk-tabs::before { content: ""; }
.tk-tabs button { font: inherit; font-weight: 700; font-size: .95rem; border: 1.5px solid var(--tk-line); background: var(--tk-card);
  color: var(--ink); padding: 9px 18px; border-radius: 99px; cursor: pointer; white-space: nowrap; }
.tk-tabs button:hover { border-color: var(--accent); }
.tk-tabs button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.tk button:focus-visible, .tk input:focus-visible, .tk summary:focus-visible, .tk a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.tk-view { display: grid; gap: 18px; }

.tk-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .88rem; color: var(--tk-ink2); }
.tk-legend span { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.tk-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; flex: none; }
.tk-dot.r { background: var(--tk-r); } .tk-dot.a { background: var(--tk-a); } .tk-dot.g { background: var(--tk-g); }
.tk-dot.n { background: var(--tk-n); } .tk-dot.conf { background: var(--accent); }
.tk-dot.res { background: var(--gold); border-radius: 2px; transform: rotate(45deg); }

/* subtopic card with a coloured header band */
.tk-sub { padding-top: 0; overflow: hidden; }
.tk-sub-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
  margin: 0 -20px; padding: 14px 20px; border-bottom: 1.5px solid var(--tk-line); }
.tk-sub-head h2 { color: var(--ink); }
.tk-tone-lav .tk-sub-head { background: var(--lav); } .tk-tone-blue .tk-sub-head { background: var(--blue); }
.tk-tone-green .tk-sub-head { background: var(--green); } .tk-tone-orange .tk-sub-head { background: var(--orange); }
.tk-tone-pink .tk-sub-head { background: var(--pink); } .tk-tone-teal .tk-sub-head { background: var(--teal); }
.tk-tone-yellow .tk-sub-head { background: var(--yellow); }
.tk-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; margin-right: 10px;
  background: var(--tk-card); color: var(--purple); font: 800 .95rem "Archivo", system-ui, sans-serif; vertical-align: 2px;
  border: 1.5px solid var(--tk-line); }
.tk-covers { color: var(--tk-ink2); padding-top: 4px; }
.tk-evidence { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; color: var(--tk-ink2); padding: 10px 12px;
  background: var(--cream); border: 1px dashed var(--tk-line); border-radius: 12px; }
.tk-evidence b { color: var(--ink); font-variant-numeric: tabular-nums; }
.tk-evidence a { margin-left: auto; font-weight: 800; color: var(--purple); }
.tk-fig { display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 16px; align-items: center; }

.tk-stmt { border-top: 1.5px solid var(--tk-line); padding-top: 14px; display: grid; gap: 10px; scroll-margin-top: 130px; }
.tk-sub-head + .tk-covers + .tk-stmt, .tk-evidence + .tk-stmt { border-top-style: dotted; }
.tk-stmt-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.tk-stmt-text { font-weight: 700; color: var(--ink); min-width: 0; font-size: 1.01rem; }

/* rating buttons: always readable; the chosen one is filled solid */
.tk-rag { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.tk-rag button { border: 1.5px solid var(--tk-line); background: var(--tk-card); color: var(--ink); font: inherit; font-weight: 700;
  font-size: .85rem; padding: 7px 12px; border-radius: 99px; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.tk-rag button:hover { border-color: var(--tk-axis); }
.tk-rag button.r:hover { border-color: var(--tk-r); } .tk-rag button.a:hover { border-color: var(--tk-a); }
.tk-rag button.g:hover { border-color: var(--tk-g); }
.tk-rag button[aria-pressed="true"].r { background: var(--tk-r); border-color: var(--tk-r); color: var(--tk-on-r); }
.tk-rag button[aria-pressed="true"].a { background: var(--tk-a); border-color: var(--tk-a); color: var(--tk-on-a); }
.tk-rag button[aria-pressed="true"].g { background: var(--tk-g); border-color: var(--tk-g); color: var(--tk-on-g); }
.tk-rag button[aria-pressed="true"] .tk-dot { background: currentColor; }

/* quick check */
.tk-check { border-radius: 12px; }
.tk-check summary { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; font-size: .9rem;
  font-weight: 800; color: var(--purple); list-style: none; border: 1.5px solid var(--lav-line); background: var(--lav);
  border-radius: 99px; }
.tk-check summary::-webkit-details-marker { display: none; }
.tk-check summary:hover { border-color: var(--lav-ink); }
.tk-check[open] summary { margin-bottom: 10px; }
.tk-check-body { padding: 14px; display: grid; gap: 10px; background: var(--cream); border: 1.5px solid var(--tk-line); border-radius: 12px; }
.tk-q { font-size: 1rem; color: var(--ink); font-weight: 600; }
.tk-ans { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tk-ans input { font: 600 1rem ui-monospace, Consolas, monospace; padding: 8px 11px; border: 1.5px solid var(--tk-axis); border-radius: 8px;
  background: var(--tk-card); color: var(--ink); width: 170px; max-width: 100%; }
.tk-btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 800; font-size: .9rem;
  border: 1.5px solid var(--accent); background: var(--accent); color: var(--on-accent); padding: 8px 15px; border-radius: 10px;
  cursor: pointer; text-decoration: none; }
.tk-btn-line, .tk-opt { background: var(--tk-card); color: var(--ink); border-color: var(--tk-line); }
.tk-btn-line:hover, .tk-opt:hover { border-color: var(--accent); }
.tk-btn-sm { padding: 5px 11px; font-size: .82rem; }
.tk-ghost { background: var(--tk-card); color: var(--purple); border-color: var(--tk-line); padding: 4px 10px; font-size: .82rem; margin-left: 6px; }
.tk-tried { font-size: .82rem; font-weight: 800; }
.tk-tried.ok { color: var(--tk-g); } .tk-tried.no { color: var(--tk-r); }
.tk-fb { font-size: .94rem; padding: 10px 12px; border-radius: 8px; color: var(--ink); }
.tk-fb:empty { display: none; }
.tk-fb.ok { background: var(--tk-g-soft); border-left: 4px solid var(--tk-g); }
.tk-fb.no { background: var(--tk-r-soft); border-left: 4px solid var(--tk-r); }
.tk-fb.info { background: var(--tk-card); }

/* figures */
.tk-svg { width: 100%; height: auto; max-width: 300px; }
.tk-svg .gl { stroke: var(--tk-grid); stroke-width: 1; } .tk-svg .ax { stroke: var(--tk-axis); stroke-width: 1.4; }
.tk-svg .ln { stroke: var(--accent); stroke-width: 2.6; fill: none; } .tk-svg .pt { fill: var(--accent); }
.tk-svg .tri { stroke: var(--tk-g); stroke-width: 2; stroke-dasharray: 5 4; fill: none; }
.tk-svg text { font: 600 12px "Hanken Grotesk", system-ui, sans-serif; }
.tk-svg .lb { fill: var(--ink); } .tk-svg .lm { fill: var(--tk-ink2); } .tk-svg .lg { fill: var(--tk-g); font-weight: 800; }

/* revision sheet */
.tk-sheet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tk-box { border: 1.5px solid var(--tk-line); border-radius: 14px; padding: 16px; background: var(--tk-card); display: grid; gap: 9px;
  align-content: start; min-width: 0; box-shadow: var(--tk-shadow); }
.tk-box.tk-wide { grid-column: 1 / -1; }
.tk-box h3 { display: flex; gap: 8px; align-items: center; font-size: 1.04rem; color: var(--purple); }
.tk-box h3::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--gold); flex: none; }
.tk-formula { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; align-items: baseline; }
.tk-f { font-family: ui-monospace, Consolas, monospace; font-size: .9rem; background: var(--lav); border: 1px solid var(--lav-line);
  padding: 3px 8px; border-radius: 6px; color: var(--lav-ink); font-weight: 600; }
.tk-fw { color: var(--tk-ink2); font-size: .9rem; }
.tk-list, .tk-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: .96rem; color: var(--ink); }
.tk-list code { font-size: .9em; }
.tk-mistakes { display: grid; grid-template-columns: auto 1fr; gap: 5px 10px; font-size: .94rem; color: var(--ink); }
.tk-x { color: var(--tk-r); font-weight: 800; } .tk-v { color: var(--tk-g); font-weight: 800; }

/* charts */
.tk-chart { overflow-x: auto; }
.tk-chart svg { display: block; min-width: 560px; width: 100%; height: auto; }
.tk-chart .gl { stroke: var(--tk-grid); }
.tk-chart .t { fill: var(--ink); font: 600 12.5px "Hanken Grotesk", system-ui, sans-serif; }
.tk-chart .tm { fill: var(--tk-ink2); font: 500 12px "Hanken Grotesk", system-ui, sans-serif; }
.tk-chart .tick { fill: var(--tk-ink2); font: 500 11px ui-monospace, Consolas, monospace; }
.tk-chart .dot-conf { fill: var(--accent); } .tk-chart .dot-res { fill: var(--gold); }
.tk-flags { display: grid; gap: 8px; }
.tk-flag { padding: 11px 13px; border-radius: 10px; font-size: .94rem; color: var(--ink); }
.tk-flag.bad { background: var(--tk-r-soft); border-left: 4px solid var(--tk-r); }
.tk-flag.good { background: var(--tk-g-soft); border-left: 4px solid var(--tk-g); }
.tk-flag.info { background: var(--cream); border-left: 4px solid var(--tk-axis); }
.tk-todo { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.tk-todo a { color: var(--purple); font-weight: 700; }
.tk-todo .tk-chip { margin-left: 8px; }

/* teacher heatmap */
.tk-heat { border-collapse: separate; border-spacing: 4px; font-size: .88rem; min-width: 640px; width: 100%; }
.tk-heat th { font-weight: 700; color: var(--tk-ink2); text-align: left; padding: 4px 6px; vertical-align: bottom; }
.tk-heat tbody th { color: var(--ink); white-space: nowrap; }
.tk-heat tbody th a { color: var(--purple); }
.tk-heat small { display: block; font-weight: 500; font-size: .78em; color: var(--tk-ink2); text-transform: capitalize; }
.tk-heat td { text-align: center; border-radius: 8px; padding: 8px 6px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.tk-heat td small { text-transform: none; color: inherit; }
.tk-heat td.r { background: var(--tk-r-soft); } .tk-heat td.a { background: var(--tk-a-soft); }
.tk-heat td.g { background: var(--tk-g-soft); } .tk-heat td.n { background: var(--cream); color: var(--tk-ink2); }
.tk-heat td.flagged { box-shadow: inset 0 0 0 2px var(--tk-r); }
.tk-heat-wide th[scope="col"] { text-align: center; }

/* course page */
.tk-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.tk-stat { background: var(--tk-card); border: 1.5px solid var(--tk-line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px;
  border-top-width: 5px; box-shadow: var(--tk-shadow); }
.tk-stat b { font: 800 1.5rem "Archivo", system-ui, sans-serif; color: var(--ink); font-variant-numeric: tabular-nums; }
.tk-stat span { font-size: .85rem; color: var(--tk-ink2); font-weight: 600; }
.tk-stat-g { border-top-color: var(--tk-g); } .tk-stat-a { border-top-color: var(--tk-a); } .tk-stat-r { border-top-color: var(--tk-r); }
.tk-stat-n { border-top-color: var(--tk-n); } .tk-stat-c { border-top-color: var(--accent); }
.tk-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.tk-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1.5px solid var(--tk-line); border-radius: 99px; background: var(--tk-card); }
.tk-seg button { font: inherit; font-weight: 700; font-size: .9rem; border: 0; background: none; color: var(--ink); padding: 7px 14px; border-radius: 99px; cursor: pointer; }
.tk-seg button[aria-pressed="true"] { background: var(--purple-bright); color: #fff; }
html[data-theme="dark"] .tk-seg button[aria-pressed="true"] { background: var(--accent); }
.tk-search input { font: inherit; padding: 9px 14px; border: 1.5px solid var(--tk-line); border-radius: 99px; background: var(--tk-card);
  color: var(--ink); width: 280px; max-width: 100%; }
.tk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tk-chcard { background: var(--tk-card); border: 1.5px solid var(--tk-line); border-radius: 16px; padding: 16px; display: grid; gap: 9px;
  align-content: start; box-shadow: var(--tk-shadow); border-top-width: 5px; min-width: 0; }
.tk-chcard.tk-tone-lav { border-top-color: var(--lav-ink); } .tk-chcard.tk-tone-blue { border-top-color: var(--blue-ink); }
.tk-chcard.tk-tone-green { border-top-color: var(--green-ink); } .tk-chcard.tk-tone-orange { border-top-color: var(--orange-ink); }
.tk-chcard.tk-tone-pink { border-top-color: var(--pink-ink); } .tk-chcard.tk-tone-teal { border-top-color: var(--teal-ink); }
.tk-chcard.tk-tone-yellow { border-top-color: var(--yellow-ink); }
.tk-chcard-top { display: flex; justify-content: space-between; align-items: center; }
.tk-chnum { font: 800 .9rem "Archivo", system-ui, sans-serif; color: var(--tk-ink2); }
.tk-chcard h3 { font-size: 1.08rem; }
.tk-chcard h3 a { color: var(--ink); text-decoration: none; }
.tk-chcard h3 a:hover { color: var(--purple); text-decoration: underline; }
.tk-chsum { font-size: .86rem; color: var(--tk-ink2); }
.tk-chcount { font-size: .88rem; color: var(--tk-ink2); }
.tk-chcount b { color: var(--ink); }
.tk-chacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.tk-pill { font-size: .76rem; font-weight: 800; padding: 3px 10px; border-radius: 99px; border: 1px solid transparent; }
.tk-pill-todo { background: var(--cream); color: var(--tk-ink2); border-color: var(--tk-line); }
.tk-pill-going { background: var(--blue); color: var(--blue-ink); border-color: var(--blue-line); }
.tk-pill-work { background: var(--tk-a-soft); color: var(--ink); border-color: var(--tk-a); }
.tk-pill-done { background: var(--tk-g); color: var(--tk-on-g); }
.tk-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--tk-n); }
.tk-bar i { display: block; height: 100%; }
.tk-bar-g { background: var(--tk-g); } .tk-bar-a { background: var(--tk-a); } .tk-bar-r { background: var(--tk-r); }
.tk-nextlist { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.tk-nextlist li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.tk-nextlist li > a:first-child { font-weight: 800; color: var(--purple); }

@media (max-width: 760px) {
  .tk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-stat-c { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .tk-hero { grid-template-columns: 1fr; padding: 18px; } .tk-ring { width: 108px; }
  .tk-stmt-row, .tk-fig, .tk-sheet { grid-template-columns: 1fr; }
  .tk-evidence a { margin-left: 0; }
  .tk-search, .tk-search input { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .tk * { transition: none !important; } }

/* ── print sheets (/tracker/print) ── */
body.tk-print { margin: 0; background: #ece7df; color: #1A1A2E; font: 15px/1.45 "Hanken Grotesk", system-ui, sans-serif;
  --white: #fff; --line: #E7DECF; --cream: #F7F0E4; --ink: #1A1A2E; --grey: #5E5A6E; --purple: #4C2E72; --accent-soft: #EEE8F8;
  --gold: #E8913A; --accent: #4C2E72; --lav: #EEE8F8; --lav-ink: #4A2E8F; --lav-line: #C9BDF0; --tk-card: #fff; --tk-shadow: none; }
.p-bar { display: flex; gap: 16px; align-items: center; justify-content: center; padding: 14px; }
.p-bar button { font: 700 .95rem inherit; font-family: inherit; background: #4C2E72; color: #fff; border: 0; border-radius: 8px; padding: 9px 16px; cursor: pointer; }
.p-bar a { color: #4C2E72; font-weight: 700; }
.p-page { background: #fff; width: 210mm; max-width: 100%; min-height: 297mm; margin: 0 auto 30px; padding: 14mm 14mm 10mm;
  box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 6px 28px rgba(20, 10, 40, .15); }
.p-head { display: flex; justify-content: space-between; align-items: end; border-bottom: 2.5px solid #4C2E72; padding-bottom: 8px; gap: 12px; }
.p-head span { display: block; color: #E8913A; font-weight: 700; font-size: .85rem; }
.p-head b { display: block; font: 800 1.7rem "Archivo", system-ui, sans-serif; color: #4C2E72; line-height: 1.1; }
.p-head em { font-style: normal; color: #5E5A6E; font-weight: 600; }
.p-name { text-align: right; font-size: .85rem; color: #5E5A6E; line-height: 2; }
.p-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.p-table th, .p-table td { border-bottom: 1px solid #E7DECF; padding: 5px 4px; text-align: left; vertical-align: top; }
.p-table th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: #5E5A6E; }
.p-sec { font: 700 1rem "Archivo", system-ui, sans-serif; color: #4C2E72; padding-top: 10px !important; }
.p-boxes { white-space: nowrap; width: 1%; text-align: right !important; }
.p-bx { display: inline-block; width: 15px; height: 15px; border: 2px solid; border-radius: 3px; margin-left: 10px; vertical-align: middle; }
.p-bx.r { border-color: #C9423A; } .p-bx.a { border-color: #C98A0E; } .p-bx.g { border-color: #2E8B57; }
.p-h { font: 700 1.05rem "Archivo", system-ui, sans-serif; color: #4C2E72; margin: 6px 0 0; }
.p-qs { margin: 0; padding-left: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 26px; font-size: .86rem; }
.p-qs li { border-bottom: 1px dotted #8C8598; padding-bottom: 20px; break-inside: avoid; }
.p-upside { transform: rotate(180deg); color: #5E5A6E; font-size: .78rem; text-align: right; }
.p-foot { margin-top: auto; display: flex; justify-content: space-between; color: #5E5A6E; font-size: .78rem; border-top: 1px solid #E7DECF; padding-top: 6px; }
.tk-print .tk-sheet { gap: 10px; } .tk-print .tk-box { padding: 12px; }
@page { size: A4; margin: 0; }
@media print {
  body.tk-print { background: #fff; }
  .p-bar { display: none; }
  .p-page { box-shadow: none; margin: 0; width: 210mm; min-height: 297mm; }
}
