/* Werfrapport v2.0 — LineBuilder
   Layout: vaste kop (werf + sync) boven een tabbalk; inhoud in kaarten op een koel grijsgroen vlak.
   Kleuren volgen de bestaande LineBuilder-modules (petrol nav, teal accent). */
:root {
  --bg: #edf3f4;
  --panel: #ffffff;
  --panel-2: #f5f8f9;
  --ink: #13242a;
  --muted: #5b6f78;
  --line: #d5e0e4;
  --line-strong: #b5c7cf;
  --brand: #0f766e;
  --brand-strong: #0b5f59;
  --brand-ink: #ffffff;
  --brand-soft: #e2f2ef;
  --nav: #0d252b;
  --nav-2: #143840;
  --nav-ink: #e7f0f2;
  --nav-muted: #9eb4bc;
  --ok: #15803d;
  --ok-soft: #dcf3e3;
  --ok-cell: #c6ebd2;
  --bad: #b91c1c;
  --bad-soft: #fbe3e3;
  --bad-cell: #f6cccc;
  --warn: #a35307;
  --warn-soft: #fcefd9;
  --neutral-cell: #e8eef0;
  --shadow: 0 1px 2px rgba(13, 37, 43, .08), 0 6px 18px rgba(13, 37, 43, .06);
  --radius: 10px;
  --font: 'Inter', ui-sans-serif, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --field-h: 40px;
  --c-ib: #a4b8c0;
  --c-ac: #0f766e;
  --c-eac: #c2560c;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a181c; --panel: #0f242a; --panel-2: #132d34; --ink: #e2edef; --muted: #93a9b1; --line: #22424a; --line-strong: #2f5761;
    --brand: #22b3a5; --brand-strong: #34c8b9; --brand-ink: #032421; --brand-soft: #0f3936;
    --nav: #06151a; --nav-2: #0d2930; --nav-ink: #e2edef; --nav-muted: #8aa3ab;
    --ok: #4ade80; --ok-soft: #12321f; --ok-cell: #164a2b; --bad: #f87171; --bad-soft: #3a1717; --bad-cell: #5a1f1f;
    --warn: #fbbf24; --warn-soft: #3a2a0c; --neutral-cell: #17323a; --shadow: 0 1px 2px rgba(0,0,0,.4); --c-ib: #4d6a73; --c-ac: #2dd4bf; --c-eac: #fb923c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a181c; --panel: #0f242a; --panel-2: #132d34; --ink: #e2edef; --muted: #93a9b1; --line: #22424a; --line-strong: #2f5761;
  --brand: #22b3a5; --brand-strong: #34c8b9; --brand-ink: #032421; --brand-soft: #0f3936;
  --nav: #06151a; --nav-2: #0d2930; --nav-ink: #e2edef; --nav-muted: #8aa3ab;
  --ok: #4ade80; --ok-soft: #12321f; --ok-cell: #164a2b; --bad: #f87171; --bad-soft: #3a1717; --bad-cell: #5a1f1f;
  --warn: #fbbf24; --warn-soft: #3a2a0c; --neutral-cell: #17323a; --shadow: 0 1px 2px rgba(0,0,0,.4); --c-ib: #4d6a73; --c-ac: #2dd4bf; --c-eac: #fb923c;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--nav); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h2 { font-size: 20px; }
h3 { font-size: 15px; }
.num, td.n, th.n { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.page { max-width: 1320px; margin: 0 auto; padding-block: 16px 64px; display: grid; gap: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- Topbar ---- */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--nav); color: var(--nav-ink); }
.topbar-in { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding-block: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: 10px; margin-right: auto; min-width: 0; }
.brand b { font-size: 11px; letter-spacing: .16em; color: var(--nav-muted); font-weight: 600; }
.brand span { font-size: 17px; font-weight: 700; white-space: nowrap; }
.brand em { font-style: normal; font-weight: 500; color: var(--nav-muted); }
.site-picker { display: flex; align-items: center; gap: 8px; min-width: 0; }
.site-picker select { background: var(--nav-2); color: var(--nav-ink); border: 1px solid transparent; border-radius: 8px; height: 36px; padding: 0 10px; max-width: 320px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 0; cursor: pointer; white-space: nowrap; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.sync-local { background: var(--nav-2); color: var(--nav-muted); }
.sync-synced { background: rgba(74, 222, 128, .16); color: #86efac; }
.sync-syncing { background: rgba(94, 234, 212, .16); color: #5eead4; }
.sync-offline { background: rgba(251, 191, 36, .16); color: #fcd34d; }
.sync-error { background: rgba(248, 113, 113, .18); color: #fca5a5; }
.user-chip { background: var(--nav-2); color: var(--nav-ink); }
.tabs { background: var(--nav); border-top: 1px solid var(--nav-2); }
.tabs-in { max-width: 1320px; margin: 0 auto; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs-in::-webkit-scrollbar { display: none; }
.tab { background: none; border: 0; color: var(--nav-muted); padding: 11px 14px; font-weight: 600; cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.tab:hover { color: var(--nav-ink); }
.tab[aria-current="page"] { color: var(--nav-ink); border-bottom-color: #2dd4bf; }
.tab .badge { margin-left: 6px; font-size: 10px; padding: 1px 6px; border-radius: 6px; background: var(--nav-2); color: var(--nav-muted); }

/* ---- Banner ---- */
.banner { border-radius: var(--radius); padding: 10px 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.banner-info { background: var(--brand-soft); color: var(--ink); }
.banner-warn { background: var(--warn-soft); color: var(--ink); }
.banner-bad { background: var(--bad-soft); color: var(--ink); }

/* ---- Cards ---- */
.card { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: grid; gap: 14px; min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-h p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.stack { display: grid; gap: 10px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; }
.subtab { border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 999px; padding: 6px 14px; font-weight: 600; cursor: pointer; }
.subtab[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

/* ---- Werfkop ---- */
.sitehead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 16px; background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.sitehead-title { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.wbs-chip { font-family: var(--mono); font-weight: 600; background: var(--nav); color: var(--nav-ink); border-radius: 6px; padding: 3px 9px; font-size: 13px; }
.sitehead h1 { font-size: 22px; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px 18px; margin-top: 12px; }
.kv div { min-width: 0; }
.kv dt { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.kv dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.btn.head-toggle { display: none; }
@media (max-width: 700px) {
  .btn.head-toggle { display: inline-flex; margin-left: auto; }
  .sitehead:not(.open) .kv > div:nth-child(n+3), .sitehead:not(.open) > .map-box { display: none; }
  .sitehead h1 { font-size: 18px; }
}
.map-box { display: grid; gap: 8px; align-content: start; min-width: 0; }
.map-frame { width: 100%; aspect-ratio: 16 / 10; max-width: 100%; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); display: block; }
.map-empty { display: grid; place-content: center; gap: 6px; justify-items: center; text-align: center; color: var(--muted); font-size: 12px; padding: 12px; }
.addr-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---- Forms ---- */
label.f { display: grid; gap: 4px; min-width: 0; }
label.f > span { font-size: 12px; font-weight: 600; color: var(--muted); }
input[type=text], input[type=number], input[type=email], input[type=tel], input[type=date], input[type=time], input[type=password], input[type=search], select, textarea {
  height: var(--field-h); border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel); padding: 0 10px; min-width: 0; width: 100%;
}
textarea { height: auto; min-height: 70px; padding: 8px 10px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brand); }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 10px 12px; }
.fgrid .span2 { grid-column: span 2; }
@media (max-width: 520px) { .fgrid .span2 { grid-column: auto; } }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--field-h); padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink); font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn:hover { border-color: var(--brand); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { background: var(--brand-strong); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.danger { color: var(--bad); }
.btn.sm { height: 32px; padding: 0 10px; font-size: 13px; }
.btn.icon { width: 32px; height: 32px; padding: 0; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg, .ico { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---- Datum-navigatie ---- */
.datebar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.datebar input[type=date] { width: auto; font-weight: 600; }
.daytitle { font-size: 18px; font-weight: 700; }
.chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.chip.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.chip.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip.brand { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.weekstrip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.wday { border: 0; border-radius: 8px; padding: 6px 4px; text-align: center; cursor: pointer; display: grid; gap: 1px; font-size: 12px; color: var(--ink); }
.wday b { font-size: 15px; }
.wday.has { background: var(--ok-cell); }
.wday.none { background: var(--bad-cell); }
.wday.off, .wday.future { background: var(--neutral-cell); color: var(--muted); }
.wday.sel { outline: 2px solid var(--brand); outline-offset: 1px; }

/* ---- Prestaties ---- */
.entries { display: grid; gap: 8px; }
.entry { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: grid; grid-template-columns: minmax(150px, 1.3fr) auto minmax(250px, 1.6fr) minmax(120px, .8fr) minmax(170px, 1.2fr) auto; gap: 8px 10px; align-items: end; background: var(--panel); }
.entry .who { display: grid; align-self: center; min-width: 0; }
.entry .who b { overflow-wrap: anywhere; }
.entry .times { display: grid; grid-template-columns: 1fr 1fr 70px; gap: 6px; }
.entry .calc { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.entry .calc .hb { font-variant-numeric: tabular-nums; font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line); }
.entry .calc .hb b { margin-left: 4px; }
.entry .calc .hb.on { background: var(--brand-soft); border-color: transparent; }
.entry .manual { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; height: var(--field-h); }
.seg button { border: 0; background: var(--panel); padding: 0 10px; cursor: pointer; font-weight: 600; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line-strong); }
.seg button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }
@media (max-width: 1100px) { .entry { grid-template-columns: minmax(0, 1fr) auto; } .entry > * { grid-column: 1 / -1; } .entry .who { grid-column: 1; } .entry .seg { grid-column: 2; justify-self: end; } .entry .del { grid-column: 2; grid-row: 1; justify-self: end; } }
.totals-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); }
.totals-bar .t { display: grid; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; padding-right: 12px; }
.totals-bar .t b { font-size: 17px; color: var(--ink); letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }

/* ---- Tabellen ---- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; max-width: 100%; }
table.tbl { border-collapse: collapse; width: 100%; font-size: 13px; }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; background: var(--panel-2); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 6px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td input, .tbl td select { height: 32px; font-size: 13px; padding: 0 8px; }
.tbl td input.w-s { width: 90px; }
.tbl tfoot td { font-weight: 700; background: var(--panel-2); border-top: 1px solid var(--line-strong); }
.tbl tr.sub td { font-weight: 700; background: var(--panel-2); }
.tbl tr.calc td { font-weight: 700; }
.tbl tr.key td { background: var(--brand-soft); font-weight: 800; }
.tbl tr.grouphead td { background: var(--panel-2); font-weight: 700; }
.neg { color: var(--bad); }
.pos { color: var(--ok); }
.bar { height: 6px; border-radius: 3px; background: var(--neutral-cell); overflow: hidden; min-width: 60px; }
.bar i { display: block; height: 100%; background: var(--brand); }
.bar i.over { background: var(--bad); }

/* ---- Kalender ---- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal .hd { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; padding: 0 4px; }
.cell { border: 0; border-radius: 8px; min-height: 86px; padding: 8px; text-align: left; display: grid; align-content: start; gap: 2px; cursor: pointer; color: var(--ink); font-size: 12px; }
.cell b { font-size: 16px; }
.cell.has { background: var(--ok-cell); }
.cell.none { background: var(--bad-cell); }
.cell.off, .cell.future { background: var(--neutral-cell); color: var(--muted); }
.cell.out { opacity: .45; }
.cell.today { outline: 2px solid var(--brand); }
.cal.week .cell { min-height: 150px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 5px; }

/* ---- KPI ---- */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 12px; }
.kpi { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; display: grid; gap: 4px; min-width: 0; }
.kpi .l { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.kpi .v { font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi .s { font-size: 12px; color: var(--muted); }
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .grid line { stroke: var(--line); }

/* ---- Lijsten ---- */
.cart { position: sticky; top: 120px; align-self: start; }
.listgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 16px; align-items: start; }
@media (max-width: 900px) { .listgrid { grid-template-columns: minmax(0, 1fr); } .cart { position: static; } .sitehead { grid-template-columns: minmax(0, 1fr); } }
.team-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 8px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 4px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 4px 2px 8px; font-size: 12px; }
.tag button { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 0 4px; }

/* ---- Werven ---- */
.sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.sitecard { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; display: grid; gap: 8px; align-content: start; border-top: 3px solid var(--brand); }
.sitecard.closed { border-top-color: var(--line-strong); }
.sitecard h3 { overflow-wrap: anywhere; }

/* ---- Dialoog / toast ---- */
dialog { border: 0; border-radius: 12px; padding: 0; background: var(--panel); color: var(--ink); width: min(640px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(7, 21, 25, .55); }
.dlg { padding: 18px; display: grid; gap: 14px; max-height: calc(100vh - 80px); overflow: auto; }
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--nav); color: var(--nav-ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; z-index: 50; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }

/* ---- Login ---- */
.login { max-width: 420px; margin: 8vh auto; }

/* ---- Rapport (papier) ---- */
.paper { -webkit-print-color-adjust: exact; print-color-adjust: exact; background: #fff; color: #142126; border-radius: 6px; box-shadow: var(--shadow); padding: 28px; display: grid; gap: 18px; overflow-x: auto; }
.paper .rp-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid #0d252b; padding-bottom: 12px; }
.paper .rp-head h2 { font-size: 22px; }
.paper .rp-brand { font-size: 11px; letter-spacing: .16em; font-weight: 700; color: #0f766e; }
.paper .rp-site { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 16px; background: #f2f6f7; border-radius: 6px; padding: 12px; }
.paper .rp-site dt { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: #61727c; font-weight: 700; }
.paper .rp-site dd { margin: 0; font-weight: 600; }
.paper h3 { font-size: 14px; border-bottom: 1px solid #c9d6dc; padding-bottom: 4px; }
.paper table { border-collapse: collapse; width: 100%; font-size: 12px; }
.paper th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: #61727c; border-bottom: 1px solid #b9c9d1; padding: 5px 6px; }
.paper td { padding: 4px 6px; border-bottom: 1px solid #e3eaed; }
.paper tr.dayrow td { background: #e8f1f0; font-weight: 700; }
.paper tfoot td { font-weight: 700; border-top: 2px solid #0d252b; }
.paper .rp-sum { display: flex; gap: 22px; flex-wrap: wrap; }
.paper .rp-sum div { display: grid; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #61727c; font-weight: 700; }
.paper .rp-sum b { font-size: 18px; color: #142126; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.paper .rp-note { font-size: 12px; background: #f7f9fa; border-left: 3px solid #0f766e; padding: 6px 10px; }
.paper .rp-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 12px; }
.paper .rp-sign div { border-top: 1px solid #8fa6b0; padding-top: 6px; font-size: 11px; color: #61727c; min-height: 50px; }

@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; }
  body::before, .topbar, .tabs, .no-print, .toast { display: none !important; }
  .page { padding: 0; max-width: none; }
  .paper { box-shadow: none; padding: 0; overflow: visible; }
  .paper tr { break-inside: avoid; }
  .wrap { padding: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
