/* Toipumisappi — värimaailma poimittu mehilainen.fi:n tuotantosivulta 22.7.2026:
   pääväri #006845, tumma #11553A, minttu #EAF5F1 / #B9DCD0, teksti #323232,
   reunat #DDD, taustaharmaa #F9F9F9, kulmapyöristys 4px, fontti Meliva Sans
   (proprietaari → system-fallback). Ei Mehiläisen logoa tai nimeä brändinä. */

:root {
  --green: #006845;
  --green-dark: #11553A;
  --mint: #EAF5F1;
  --mint-mid: #B9DCD0;
  --ink: #323232;
  --ink-soft: rgba(0, 0, 0, 0.6);
  --border: #DDDDDD;
  --bg: #F9F9F9;
  --card: #FFFFFF;
  --warn: #B3261E;
  --warn-bg: #FCEEED;
  --amber: #8a6d00;
  --amber-bg: #FFF7DB;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Meliva Sans", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  font-size: 16px;
}

/* ---------- Header ---------- */
header {
  background: var(--green);
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 20px 0;
}
.header-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.brand { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.2px; }
.brand .ver { font-weight: 400; opacity: 0.7; font-size: 0.8rem; margin-left: 6px; }
.day-select { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; opacity: 0.95; }
.day-select input {
  border: none; border-radius: var(--radius); padding: 4px 8px;
  font: inherit; color: var(--green-dark); background: #fff;
}
.day-hero { margin: 10px 0 12px; }
.day-hero h1 { font-size: 1.9rem; font-weight: 800; line-height: 1.15; }
.day-hero .sub { opacity: 0.9; font-size: 0.95rem; margin-top: 2px; }

nav { display: flex; gap: 2px; overflow-x: auto; }
nav button {
  appearance: none; border: none; cursor: pointer;
  background: transparent; color: rgba(255, 255, 255, 0.85);
  font: inherit; font-size: 0.95rem; font-weight: 600;
  padding: 10px 16px; border-radius: var(--radius) var(--radius) 0 0;
  white-space: nowrap;
}
nav button:hover { background: var(--green-dark); color: #fff; }
nav button.active { background: var(--bg); color: var(--green); }

/* ---------- Layout ---------- */
main { max-width: 960px; margin: 0 auto; padding: 20px 20px 60px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; } }
.grid.equal { align-items: stretch; }
.grid.equal .card { display: flex; flex-direction: column; }
.grid.equal .card .chart { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.grid.equal .card .notice { margin-top: auto; padding-top: 10px; }
.col { display: flex; flex-direction: column; gap: 16px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 16px 18px;
}
.card h2 {
  font-size: 1.05rem; font-weight: 700; color: var(--green-dark);
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  flex-wrap: wrap;
}
.card h2 .spacer { flex: 1; }
.card.alert { border-left: 4px solid var(--warn); }
.card.mint { background: var(--mint); border-color: var(--mint-mid); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.7rem; font-weight: 600; line-height: 1;
  padding: 4px 8px; border-radius: 999px; white-space: nowrap;
  cursor: help;
}
.lv-maarays      { background: var(--mint); color: var(--green-dark); border: 1px solid var(--mint-mid); }
.lv-kirjallisuus { background: #EDF2FA; color: #2c4a7c; border: 1px solid #c9d8ef; }
.lv-paattely     { background: #F3F3F3; color: #555; border: 1px solid var(--border); }
.lv-turvaraja    { background: var(--warn-bg); color: var(--warn); border: 1px solid #f0c9c6; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; }
.timeline li {
  display: grid; grid-template-columns: 56px 12px 1fr; gap: 10px;
  padding: 7px 0; position: relative;
}
.timeline .t { font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; font-size: 0.9rem; padding-top: 1px; }
.timeline .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--mint-mid); border: 2px solid var(--green);
  margin-top: 5px; position: relative; z-index: 1;
}
.timeline li:not(:last-child) .dot::after {
  content: ""; position: absolute; left: 2px; top: 10px;
  width: 2px; height: 44px; background: var(--mint-mid);
}
.timeline .what b { font-size: 0.95rem; }
.timeline .what .d { color: var(--ink-soft); font-size: 0.85rem; }
.timeline li.past { opacity: 0.45; }
.timeline li.now .dot { background: var(--green); box-shadow: 0 0 0 4px var(--mint); }
.timeline li.now .what b { color: var(--green-dark); }

/* ---------- Kipu ja lääkkeet ---------- */
.pain-input { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.pain-input input[type="range"] { flex: 1; min-width: 140px; accent-color: var(--green); }
.pain-value {
  font-size: 1.6rem; font-weight: 800; min-width: 2ch; text-align: center;
  color: var(--green-dark);
}
.pain-advice {
  border-radius: var(--radius); padding: 12px 14px; font-size: 0.95rem;
  border: 1px solid var(--border);
}
.pain-advice.pain-ok   { background: var(--mint); border-color: var(--mint-mid); }
.pain-advice.pain-mid  { background: var(--amber-bg); border-color: #e8d48a; }
.pain-advice.pain-high { background: var(--warn-bg); border-color: #f0c9c6; }
.pain-advice b { display: block; margin-bottom: 2px; }

ul.plain { list-style: none; }
ul.plain li {
  padding: 8px 0; border-bottom: 1px solid #efefef;
  display: flex; gap: 8px; align-items: baseline; justify-content: space-between;
  font-size: 0.92rem;
}
ul.plain li:last-child { border-bottom: none; }
ul.plain li .txt { flex: 1; }

/* ---------- Säännöt ---------- */
.rule {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid var(--mint-mid);
}
.rule:last-child { border-bottom: none; }
.rule .n {
  background: var(--green); color: #fff; font-weight: 800;
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
}
.rule p { flex: 1; font-size: 0.93rem; }

/* ---------- Merkkipäivät ---------- */
.ms-row {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 14px;
  align-items: center; padding: 14px 10px; border-bottom: 1px solid #efefef;
}
.ms-row:last-child { border-bottom: none; }
.ms-row.past { opacity: 0.4; }
.ms-row.today { background: var(--mint); border-radius: var(--radius-lg); border-bottom-color: transparent; }
.ms-date { font-weight: 800; font-size: 1.05rem; color: var(--green-dark); white-space: nowrap; }
.ms-label { font-size: 0.98rem; }
.ms-badge { margin-top: 4px; }
.ms-pill {
  font-weight: 800; font-size: 0.95rem; color: var(--green);
  background: var(--mint); border: 1px solid var(--mint-mid);
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  min-width: 64px; text-align: center;
}
.ms-pill.today { background: var(--green); border-color: var(--green); color: #fff; }
.ms-pill.past { background: transparent; border-color: var(--border); color: var(--ink-soft); font-weight: 600; }

/* ---------- Checklist ---------- */
.checklist label {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 7px 0; cursor: pointer; font-size: 0.92rem;
}
.checklist input { accent-color: var(--green); margin-top: 3px; width: 16px; height: 16px; }
.checklist label.done { opacity: 0.5; text-decoration: line-through; }
.progress-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 6px; }

/* ---------- Proteiini ---------- */
.protein-bar-wrap { margin: 10px 0 14px; }
.protein-bar {
  height: 22px; background: #efefef; border-radius: 999px; overflow: hidden;
  position: relative;
}
.protein-bar .fill {
  height: 100%; background: var(--green); border-radius: 999px;
  transition: width 0.3s; min-width: 0;
}
.protein-bar .target {
  position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--green-dark);
}
.protein-total { font-weight: 800; font-size: 1.3rem; color: var(--green-dark); }
.food-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.food-buttons button, .btn {
  appearance: none; cursor: pointer; font: inherit; font-size: 0.82rem; font-weight: 600;
  border: 1px solid var(--mint-mid); background: var(--mint); color: var(--green-dark);
  padding: 6px 10px; border-radius: 999px;
}
.food-buttons button:hover, .btn:hover { background: var(--mint-mid); }
.food-buttons button.sel { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; border-radius: var(--radius); padding: 8px 16px; font-size: 0.9rem; }
.btn.primary:hover { background: var(--green-dark); }
.btn.ghost { background: transparent; border-color: var(--border); color: var(--ink-soft); border-radius: var(--radius); }
.entry-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px solid #efefef; font-size: 0.9rem; }
.entry-row .del { cursor: pointer; border: none; background: none; color: var(--warn); font-size: 1rem; padding: 0 4px; }
.custom-add { display: flex; gap: 6px; margin-top: 8px; }
.custom-add input {
  font: inherit; font-size: 0.9rem; padding: 6px 10px;
  border: 1px solid var(--border); border-radius: var(--radius); min-width: 0;
}
.custom-add input.name { flex: 2; }
.custom-add input.grams { flex: 1; width: 70px; }

/* ---------- Lomakkeet (uni, vatsa) ---------- */
.form-grid { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; font-size: 0.92rem; }
.form-grid label { font-weight: 600; color: var(--green-dark); white-space: nowrap; }
.form-grid input, .form-grid select, .form-grid textarea {
  font: inherit; font-size: 0.9rem; padding: 6px 10px;
  border: 1px solid var(--border); border-radius: var(--radius); width: 100%;
}
.seg { display: flex; gap: 4px; flex-wrap: wrap; }
.seg button {
  appearance: none; cursor: pointer; font: inherit; font-size: 0.85rem;
  border: 1px solid var(--border); background: #fff; padding: 6px 12px; border-radius: 999px;
}
.seg button.sel { background: var(--green); border-color: var(--green); color: #fff; }
.saved-flash { color: var(--green); font-size: 0.85rem; font-weight: 600; margin-left: 8px; opacity: 0; transition: opacity 0.3s; }
.saved-flash.show { opacity: 1; }

/* ---------- Taulukot ---------- */
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
th { text-align: left; color: var(--green-dark); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.4px; padding: 6px 10px 6px 0; border-bottom: 2px solid var(--mint-mid); }
td { padding: 8px 10px 8px 0; border-bottom: 1px solid #efefef; vertical-align: top; }
tr:last-child td { border-bottom: none; }

/* ---------- Liikesarja ---------- */
.ex { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 9px 0; border-bottom: 1px solid #efefef; }
.ex:last-child { border-bottom: none; }
.ex b { font-size: 0.93rem; }
.ex .reps { font-weight: 700; color: var(--green); white-space: nowrap; }
.ex .note { grid-column: 1 / -1; font-size: 0.83rem; color: var(--ink-soft); }
.ex .slingtag { font-size: 0.7rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.sling-on  { background: var(--mint); color: var(--green-dark); }
.sling-off { background: var(--amber-bg); color: var(--amber); }

/* ---------- Yhteystiedot ---------- */
.contact { padding: 9px 0; border-bottom: 1px solid #efefef; font-size: 0.92rem; }
.contact:last-child { border-bottom: none; }
.contact .tel { font-weight: 800; color: var(--green); font-size: 1.05rem; }
.contact .when { font-size: 0.83rem; color: var(--ink-soft); }

/* ---------- Dokumentit ---------- */
.doc { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #efefef; }
.doc:last-child { border-bottom: none; }
.doc .ico { font-size: 1.4rem; }
.doc b { font-size: 0.93rem; display: block; }
.doc .st { font-size: 0.8rem; color: var(--green); font-weight: 600; }
.doc .fl { font-size: 0.83rem; color: var(--ink-soft); }

/* ---------- Kirjaukset kortissa ---------- */
.subhead { font-size: 0.85rem; font-weight: 700; color: var(--green-dark); text-transform: uppercase; letter-spacing: 0.4px; margin: 14px 0 6px; }
.today-log { font-size: 0.85rem; color: var(--ink-soft); margin-top: 8px; line-height: 2; }
.log-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 999px;
  padding: 2px 4px 2px 10px; white-space: nowrap; color: var(--ink);
}
.log-chip.hot { background: var(--warn-bg); border-color: #f0c9c6; color: var(--warn); }
.log-chip .del { border: none; background: none; cursor: pointer; color: var(--ink-soft); font-size: 0.8rem; padding: 2px 6px; }
.log-chip .del:hover { color: var(--warn); }

.para-meter { margin-top: 10px; font-size: 0.85rem; }
.para-bar { height: 10px; background: #efefef; border-radius: 999px; overflow: hidden; margin-top: 4px; }
.para-fill { height: 100%; background: var(--green); border-radius: 999px; transition: width 0.3s; }
.para-meter.warn .para-fill { background: var(--amber); }
.para-meter.danger .para-fill { background: var(--warn); }
.para-alert { display: block; color: var(--warn); font-weight: 700; }

/* ---------- Ikonit ja väripisteet ---------- */
.ico { width: 14px; height: 14px; vertical-align: -2px; flex-shrink: 0; }
.badge .ico { width: 11px; height: 11px; vertical-align: -1.5px; }
.big-day-alert .ico { width: 16px; height: 16px; vertical-align: -3px; }
.doc-ico { color: var(--green); }
.doc-ico .ico { width: 22px; height: 22px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: -1px; margin-right: 5px; }
.dot-ok { background: #2e7d32; }
.dot-warn { background: #c8a400; }
.dot-bad { background: var(--warn); }

/* ---------- Määrämittaiset nappiruudukot ---------- */
.grid-buttons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 10px 0; }
.grid-buttons button {
  appearance: none; cursor: pointer; font: inherit; font-size: 0.85rem; font-weight: 600;
  border: 1px solid var(--mint-mid); background: var(--mint); color: var(--green-dark);
  padding: 9px 10px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  white-space: nowrap;
}
.grid-buttons button:hover { background: var(--mint-mid); }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(17, 85, 58, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-card {
  background: var(--mint); border: 1px solid var(--mint-mid);
  border-radius: var(--radius-lg); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  max-width: 520px; width: 100%; max-height: 85vh; overflow-y: auto;
  padding: 20px 22px;
  transform: translateY(8px); transition: transform 0.2s;
}
.modal-overlay.open .modal-card { transform: none; }
.modal-card h2 { font-size: 1.1rem; font-weight: 800; color: var(--green-dark); margin-bottom: 10px; }

/* ---------- Collapse ---------- */
details.collapse summary {
  cursor: pointer; font-size: 0.85rem; font-weight: 700; color: var(--green-dark);
  padding: 8px 0; user-select: none; list-style-position: inside;
}
details.collapse summary:hover { color: var(--green); }
details.collapse[open] summary { border-bottom: 1px solid var(--mint-mid); margin-bottom: 4px; }

/* ---------- Graafit ---------- */
.chart svg { width: 100%; height: auto; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.8rem; color: var(--ink-soft); margin-top: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 4px; }

/* ---------- Muut ---------- */
.conflict-tag { background: var(--warn-bg); color: var(--warn); font-size: 0.7rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.notice { font-size: 0.85rem; color: var(--ink-soft); font-style: italic; margin-top: 8px; }
footer { max-width: 960px; margin: 0 auto; padding: 0 20px 40px; font-size: 0.8rem; color: var(--ink-soft); }
footer .disc { border-top: 1px solid var(--border); padding-top: 14px; }
.hidden { display: none !important; }
.big-day-alert { background: var(--green); color: #fff; border-radius: var(--radius-lg); padding: 14px 18px; font-weight: 600; margin-bottom: 16px; }
.warn-strip { background: var(--warn-bg); border: 1px solid #f0c9c6; color: var(--warn); border-radius: var(--radius-lg); padding: 12px 16px; font-size: 0.92rem; margin-bottom: 16px; }

/* ---------- Merkkipäivät: avattavat rivit, muistiinpanot, kysymyslista ---------- */
.ms-item { border-bottom: 1px solid #efefef; }
.ms-item:last-child { border-bottom: none; }
.ms-item .ms-row { border-bottom: none; cursor: pointer; }
.ms-item .ms-row:hover { background: var(--bg); border-radius: var(--radius-lg); }
.ms-detail { padding: 0 10px 16px 124px; }
@media (max-width: 700px) { .ms-detail { padding-left: 10px; } }
.ms-detail textarea {
  width: 100%; font: inherit; font-size: 0.9rem;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 8px;
}
.ms-tag {
  display: inline-flex; align-items: center; gap: 4px; vertical-align: middle;
  font-size: 0.76rem; font-weight: 600; color: var(--green-dark);
  background: var(--mint); border: 1px solid var(--mint-mid);
  border-radius: 999px; padding: 2px 8px; margin-left: 6px;
}
.ms-tag .ico { width: 12px; height: 12px; }
.ms-qhead { font-weight: 800; font-size: 0.85rem; color: var(--green-dark); margin: 10px 0 2px; }
.ms-questions { margin-bottom: 10px; }
.ms-q { display: flex; gap: 8px; align-items: flex-start; padding: 5px 0; cursor: pointer; font-size: 0.9rem; }
.ms-q input { margin-top: 3px; flex-shrink: 0; }
.ms-q.done span { color: var(--ink-soft); text-decoration: line-through; }
.ms-q .ico { width: 13px; height: 13px; color: var(--green); }

/* ---------- Lähdedokumentit: klikattavuus ja modaalin sisältö ---------- */
.doc.clickable { cursor: pointer; }
.doc.clickable:hover b { color: var(--green); text-decoration: underline; }
.modal-card.wide { max-width: 760px; }
.doc-kind { font-size: 0.8rem; font-weight: 700; color: var(--green-dark); margin-bottom: 6px; }
.doc-text {
  white-space: pre-wrap; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8rem; line-height: 1.55; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; overflow-x: auto; margin: 0;
}

/* ---------- Valokuvat ---------- */
.photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px; margin-top: 10px;
}
.photo-item { position: relative; }
.photo-item img {
  width: 100%; height: 96px; object-fit: cover; display: block;
  border-radius: var(--radius); border: 1px solid var(--border); cursor: pointer;
}
.photo-item img:hover { border-color: var(--green); }
.photo-item .del {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px;
  background: rgba(255, 255, 255, 0.92); border: 1px solid var(--border);
  border-radius: 50%; cursor: pointer; font-size: 0.7rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.photo-item .del:hover { color: var(--warn); border-color: var(--warn); }
.photo-cap {
  font-size: 0.72rem; color: var(--ink-soft); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.photo-date { font-size: 0.74rem; font-weight: 700; color: var(--green-dark); margin-bottom: 2px; }

/* ---------- Kirjausrivin kellonajan muokkaus ---------- */
.entry-row .time-edit, .log-chip .time-edit {
  font: inherit; font-size: 0.85rem; color: var(--green-dark); font-weight: 600;
  border: 1px solid transparent; border-radius: var(--radius);
  background: transparent; padding: 1px 2px; width: 74px; cursor: pointer;
}
.entry-row .time-edit:hover, .entry-row .time-edit:focus,
.log-chip .time-edit:hover, .log-chip .time-edit:focus {
  border-color: var(--border); background: #fff;
}

/* ---------- tulostettava A4-kooste ---------- */
#printView { display: none; }
@media print {
  body > header, body > main, body > footer, .modal-overlay { display: none !important; }
  body { background: #fff; }
  #printView { display: block; font-size: 10.5pt; color: #111; }
  #printView h1 { font-size: 15pt; margin: 0 0 6pt; color: var(--green-dark); }
  #printView h2 { font-size: 11.5pt; margin: 10pt 0 4pt; color: var(--green-dark);
    border-bottom: 1px solid #ccc; padding-bottom: 2pt; }
  #printView svg { width: 100%; height: auto; }
  #printView .ico { width: 9pt; height: 9pt; }
  .pv-head div { margin: 1pt 0; }
  .pv-dim { color: #666; font-size: 8.5pt; font-weight: 400; }
  .pv-table { width: 100%; border-collapse: collapse; font-size: 8.5pt; }
  .pv-table th, .pv-table td { border: 1px solid #bbb; padding: 2pt 4pt; text-align: left; vertical-align: top; }
  .pv-table th { background: #eef5f1; }
  .pv-events { margin: 0; padding-left: 14pt; font-size: 9.5pt; }
  .pv-events li { margin: 2pt 0; }
  .pv-legend { font-size: 8.5pt; }
  .pv-legend span { margin-right: 8pt; }
  .pv-legend i { display: inline-block; width: 8pt; height: 8pt; vertical-align: -1pt; margin-right: 2pt; }
  .pv-qhead { font-weight: 700; margin: 7pt 0 2pt; }
  .pv-q { display: flex; gap: 6pt; margin: 3pt 0; break-inside: avoid; }
  .pv-box { flex: 0 0 auto; width: 10pt; height: 10pt; border: 1px solid #555; border-radius: 2pt;
    display: inline-flex; align-items: center; justify-content: center; }
  .pv-box svg { width: 8pt; height: 8pt; }
  .pv-break { break-before: page; }
  .pv-chart, .pv-table tr { break-inside: avoid; }
  @page { size: A4; margin: 12mm; }
}
