/* Production Planner — hand-written CSS, no build step. Mobile first. */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --text: #1c2430;
  --muted: #5d6878;
  --border: #dde2e8;
  --primary: #5b2a6e;
  --primary-hover: #451f54;
  --primary-text: #ffffff;
  --focus: #3b82f6;
  --accent-bg: #f1e8f6;

  --overdue: #b42318;
  --overdue-bg: #fdecea;
  --due-soon: #9a5b00;
  --due-soon-bg: #fff4dc;
  --upcoming: #1e7a46;
  --upcoming-bg: #e5f5ec;
  --unscheduled: #556070;
  --unscheduled-bg: #eceff3;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --gutter: 16px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1419;
    --surface: #171d24;
    --surface-2: #1e252e;
    --text: #e6eaef;
    --muted: #98a3b3;
    --border: #2b3440;
    --primary: #c39bd8;
    --primary-hover: #d6b8e6;
    --primary-text: #1c0f22;
    --overdue: #ff8a80;
    --overdue-bg: #3a1714;
    --due-soon: #ffc55c;
    --due-soon-bg: #3a2a0c;
    --upcoming: #6fd49a;
    --upcoming-bg: #12301f;
    --unscheduled: #aab4c2;
    --unscheduled-bg: #232b35;
    --accent-bg: #2c1f33;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); }
a:hover { color: var(--primary-hover); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .25em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .75em; }
code { font-size: .9em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
code.token { display: inline-block; word-break: break-all; user-select: all; padding: 6px 8px; }

[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; }

.muted { color: var(--muted); }
.small { font-size: .875rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 max(var(--gutter), env(safe-area-inset-left)) 0 max(var(--gutter), env(safe-area-inset-right));
}

main.container { flex: 1; padding-top: 20px; padding-bottom: 40px; }

/* ---------- Top bar & navigation ---------- */

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top);
}

.topbar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-height: 56px;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--text); text-decoration: none;
  margin-right: auto; padding: 10px 0;
  min-width: 0;
}
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand img { border-radius: 7px; flex-shrink: 0; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; background: transparent; color: var(--text);
  border-radius: var(--radius-sm); cursor: pointer;
}

.nav {
  display: none;
  flex-basis: 100%;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0 12px;
}
.topbar.is-open .nav { display: flex; }

.nav a:not(.btn) {
  color: var(--text); text-decoration: none; padding: 10px 12px; border-radius: var(--radius-sm);
}
.nav a:not(.btn):hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--surface-2); font-weight: 600; color: var(--primary); }
.nav__spacer { display: none; }
.nav__form { margin: 0; }
.nav .btn { align-self: flex-start; margin: 2px 0; padding-left: 12px; padding-right: 12px; font-weight: 400; font-size: 1rem; }
.nav .btn--primary { margin: 6px 12px; font-weight: 600; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav { display: flex; flex-direction: row; flex-basis: auto; flex: 1; align-items: center; padding: 0 0 0 24px; gap: 4px; }
  .brand { margin-right: 0; }
  .nav__spacer { display: block; flex: 1; }
  .nav a:not(.btn) { padding: 6px 10px; }
  .nav .btn { margin: 0 0 0 4px; align-self: center; font-size: .875rem; font-weight: 600; }
}

.offline-banner {
  background: var(--due-soon-bg); color: var(--due-soon);
  text-align: center; padding: 8px var(--gutter); font-size: .9rem;
  border-bottom: 1px solid var(--border);
}

.footer { color: var(--muted); font-size: .85rem; padding-top: 16px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 8px 16px;
  font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); text-decoration: none; cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); color: var(--text); }
.btn--primary { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }
.btn--primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--primary-text); }
.btn--ghost { background: transparent; border-color: transparent; }
.btn--ghost:hover { background: var(--surface-2); }
.btn--danger-ghost { background: transparent; border-color: transparent; color: var(--overdue); }
.btn--danger-ghost:hover { background: var(--overdue-bg); color: var(--overdue); }
.btn--sm { min-height: 34px; padding: 5px 12px; font-size: .875rem; }
.btn--block { width: 100%; }
.inline-form { display: inline; margin: 0; }

/* ---------- Page structure ---------- */

.page-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 12px 16px; margin-bottom: 20px;
}
.page-head > div:first-child { min-width: 0; flex: 1 1 280px; }
.page-head p { margin: 0; }
.page-head__actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.page-head__filter select { min-width: 200px; }

.crumbs { font-size: .9rem; margin-bottom: 6px; color: var(--muted); }
.crumbs a { color: var(--muted); }

.section { margin-top: 28px; }
.section__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.section__head .section__title { margin: 0; }
.section__title { font-size: 1.1rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.subhead { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; }
.count {
  display: inline-block; min-width: 24px; padding: 0 8px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); font-size: .8rem; font-weight: 600; text-align: center;
}

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.card + .card { margin-top: 16px; }
.card.narrow, .narrow { max-width: 640px; }
.card--link { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--text); transition: border-color .15s; }
.card--link:hover { border-color: var(--primary); color: var(--text); }
.card__title { font-size: 1.1rem; margin: 0; }
.card-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card-grid--compact { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.card-grid .card + .card { margin-top: 0; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }

.notes p { margin: 0 0 .4em; }
.notes { margin-bottom: 16px; }
.card.notes { margin-bottom: 20px; }

.empty {
  text-align: center; padding: 48px 16px; background: var(--surface);
  border: 1px dashed var(--border); border-radius: var(--radius);
}
.empty--inline { padding: 24px; }

.auth-card { max-width: 420px; margin: 24px auto; }

.plain-list { padding-left: 1.2em; }
details > summary { cursor: pointer; color: var(--muted); }

/* ---------- Status ---------- */

.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
  background: var(--unscheduled-bg); color: var(--unscheduled);
}
.badge--alert, .badge--prep-blocked, .badge--chart-changed { background: var(--overdue-bg); color: var(--overdue); }
.badge--warn, .badge--prep-in_progress, .badge--need-needed, .badge--chart-draft, .badge--prod-rehearsing { background: var(--due-soon-bg); color: var(--due-soon); }
.badge--prep-ready, .badge--need-gathered, .badge--chart-final, .badge--prod-ready { background: var(--upcoming-bg); color: var(--upcoming); }
.badge--prod-planning, .badge--event-performance { background: var(--accent-bg); color: var(--primary); }
.badge--event-dress, .badge--event-tech { background: var(--due-soon-bg); color: var(--due-soon); }
h1 .badge { vertical-align: middle; font-size: .8rem; }
.text-alert { color: var(--overdue); }

/* ---------- Details lists ---------- */

.details { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px 20px; margin: 0 0 12px; }
.details dt { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.details dd { margin: 0; }

/* ---------- Tables (stack into cards on phones) ---------- */

.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; }
.table .actions { text-align: right; white-space: nowrap; }
.table .table__group th { background: transparent; color: var(--text); font-size: .95rem; text-transform: none; letter-spacing: 0; padding-top: 16px; }
.table tbody + tbody .table__group th { border-top: 1px solid var(--border); }

@media (max-width: 699px) {
  .table--stack thead { display: none; }
  .table--stack tr { display: block; padding: 10px 14px; border-bottom: 1px solid var(--border); }
  .table--stack tbody tr:last-child { border-bottom: 0; }
  .table--stack td { display: flex; gap: 12px; padding: 3px 0; border: 0; text-align: left; }
  .table--stack td[data-label]::before {
    content: attr(data-label); flex: 0 0 90px; color: var(--muted);
    font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; padding-top: 3px;
  }
  .table--stack td > * { min-width: 0; }
  .table--stack td:empty { display: none; }
  .table--stack .num, .table--stack .actions { text-align: left; justify-content: flex-start; }
}

/* ---------- Forms ---------- */

.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.field-row { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 560px) { .field-row { flex-direction: row; } }
label, .label { font-weight: 600; font-size: .95rem; }
.optional { font-weight: 400; color: var(--muted); font-size: .85rem; }
.hint { margin: 0; color: var(--muted); font-size: .85rem; }
.field--narrow { flex: 0 0 auto; max-width: 200px; }

input[type="text"], input:not([type]), input[type="search"], input[type="password"], input[type="date"],
input[type="number"], select, textarea {
  width: 100%; font: inherit; font-size: 16px; /* 16px stops iOS zoom-on-focus */
  color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 12px; min-height: 42px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: 2px solid color-mix(in srgb, var(--focus) 30%, transparent); outline-offset: 0; }
select:disabled { opacity: .6; }

.check { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); }

.fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px 16px; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.fieldset legend { font-weight: 700; padding: 0 6px; }

.form__actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.inline-fields { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-bottom: 12px; }
.inline-fields .field { flex: 0 1 260px; }
@media (max-width: 519px) { .form__actions .btn { flex: 1; } }

/* ---------- Alerts & flash ---------- */

.alert { padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.alert ul { margin: 6px 0 0; padding-left: 1.2em; }
.alert--error { background: var(--overdue-bg); color: var(--overdue); }

.flash {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 18px;
  background: var(--upcoming-bg); color: var(--upcoming); font-weight: 500;
  transition: opacity .25s, transform .25s;
}
.flash--error { background: var(--overdue-bg); color: var(--overdue); }
.flash--info { background: var(--surface-2); color: var(--text); }
.flash.is-leaving { opacity: 0; transform: translateY(-6px); }
.flash__close { background: none; border: 0; color: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 4px; }

/* Standalone (installed PWA) tweaks */
@media (display-mode: standalone) {
  .footer { display: none; }
}


/* Standalone (installed PWA) tweaks */
@media (display-mode: standalone) {
  .footer { display: none; }
}

/* ---------- Bits shared across pages ---------- */

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip {
  display: inline-block; padding: 0 8px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font-size: .75rem; font-weight: 500; text-decoration: none; vertical-align: middle;
}
.qty { font-weight: 600; font-variant-numeric: tabular-nums; }

.segmented { display: flex; flex-wrap: wrap; gap: 6px; }
.segmented label {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius-sm); font-weight: 500;
}
.segmented label:has(input:checked) { border-color: var(--primary); background: var(--accent-bg); font-weight: 700; }
.segmented input { accent-color: var(--primary); }

.progress {
  display: block; width: 100%; height: 8px; margin: 6px 0 0;
  appearance: none; border: 0; border-radius: 999px; overflow: hidden; background: var(--surface-2);
}
.progress::-webkit-progress-bar { background: var(--surface-2); border-radius: 999px; }
.progress::-webkit-progress-value { background: var(--primary); border-radius: 999px; }
.progress::-moz-progress-bar { background: var(--primary); border-radius: 999px; }
.progress--done::-webkit-progress-value { background: var(--upcoming); }
.progress--done::-moz-progress-bar { background: var(--upcoming); }

.two-col { display: grid; gap: 20px; align-items: start; }
.two-col > * { min-width: 0; }
.two-col .card + .card, .two-col > div > .card + .card { margin-top: 16px; }
@media (min-width: 900px) {
  .two-col { grid-template-columns: 1fr 1fr; }
  .two-col--wide-left { grid-template-columns: 3fr 2fr; }
}

.move { display: inline-flex; gap: 0; }
.move .btn { min-width: 32px; padding: 5px 8px; }
.paste { margin-top: 16px; }
.paste summary { margin-bottom: 10px; }
.danger-zone { border-color: color-mix(in srgb, var(--overdue) 35%, var(--border)); }
.card--alert { border-left: 5px solid var(--overdue); }
.card h3 { margin-bottom: 12px; }
.is-past { opacity: .6; }
.print-only { display: none; }

/* ---------- Production header & tabs ---------- */

.prod-head { margin-bottom: 8px; }
.tabs {
  display: flex; gap: 2px; overflow-x: auto; margin: 0 0 20px; border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}
.tabs a {
  padding: 10px 14px; white-space: nowrap; text-decoration: none; color: var(--muted); font-weight: 600;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--primary); border-bottom-color: var(--primary); }

/* ---------- Dashboard & overview ---------- */

.prod-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.prod-card p { margin: 0; }
.prod-card__next { margin-top: 6px !important; }
.prod-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0 0; font-size: .85rem; }
.prod-card__stats dt { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; }
.prod-card__stats dd { margin: 0; font-weight: 600; }

.stat-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.stat:hover { border-color: var(--primary); color: var(--text); }
.stat__label { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.stat__value { font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.stat__value small { font-size: .9rem; font-weight: 600; color: var(--muted); }
.stat__sub { color: var(--muted); font-size: .85rem; }

.dept-list, .event-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.dept-list li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0 10px; }
.dept-list .progress { grid-column: 1 / -1; margin: 2px 0 0; }

/* ---------- Readiness & needs ---------- */

.prep-total { flex: 1 1 260px; max-width: 420px; }
.dept .section__head .progress { max-width: 200px; margin: 0; }
.prep-row--ready td:first-child strong, .need-row--returned td:first-child strong { color: var(--muted); }
.need-row.is-short { background: color-mix(in srgb, var(--overdue-bg) 50%, transparent); }
.status-form select { min-height: 34px; padding: 4px 8px; font-size: .9rem; width: auto; font-weight: 600; }
.status-select--ready, .status-select--gathered { color: var(--upcoming); }
.status-select--blocked { color: var(--overdue); }
.status-select--in_progress, .status-select--needed { color: var(--due-soon); }
.add-box { position: sticky; top: 72px; }
@media (max-width: 899px) { .add-box { position: static; } }

.pick-list { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-direction: column; }
.pick-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-top: 1px solid var(--border); }
.pick-list li:first-child { border-top: 0; }
.need-add { display: flex; gap: 6px; align-items: center; margin: 0; }
.need-add .need-add__qty { width: 72px; min-height: 34px; padding: 4px 8px; }
.need-add .need-add__dept { width: auto; min-height: 34px; padding: 4px 8px; font-size: .9rem; }

/* ---------- Mic chart ---------- */

.chart-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1 1 320px; }
.chart-wrap {
  overflow-x: auto; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.chart { border-collapse: separate; border-spacing: 0; font-size: .9rem; min-width: 100%; }
.chart th, .chart td { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 6px 8px; text-align: left; vertical-align: top; }
.chart thead th { background: var(--surface-2); position: sticky; top: 0; z-index: 1; }
.chart th small, .chart td small { display: block; color: var(--muted); font-weight: 400; font-size: .75rem; }
.chart__corner, .chart__mic {
  position: sticky; left: 0; z-index: 2; background: var(--surface-2); white-space: nowrap; min-width: 110px;
}
.chart__corner { z-index: 3; }
.chart__scene { min-width: 110px; }
.chart__cell { min-width: 110px; }
.chart__cell.is-on { background: var(--surface); }
.chart__who { font-weight: 600; }
.chart__cell.is-swap { background: var(--due-soon-bg); }
.chart__cell.is-conflict { background: var(--overdue-bg); }
.chart__cell.is-changed { outline: 3px solid var(--primary); outline-offset: -3px; }
.chart--edit td { padding: 4px; }
.chart--edit select { min-width: 150px; min-height: 36px; padding: 4px 6px; font-size: .9rem; }
.chart--edit select.is-filled { background: var(--accent-bg); transition: background .8s; }
.chart-edit .section__head .check { flex: 1 1 320px; font-weight: 400; }
.legend { margin-top: 8px; }
.legend__swap { background: var(--due-soon-bg); padding: 0 6px; border-radius: 4px; }
.legend__changed { outline: 2px solid var(--primary); padding: 0 6px; border-radius: 2px; }
.mic-tag { display: inline-block; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 4.5em; }
.swaps, .people { padding-left: 1.1em; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.people { list-style: none; padding: 0; }
.swaps ul, .people ul { list-style: none; padding: 0; margin: 4px 0 0; font-size: .9rem; }
.section > .two-col, .chart-wrap + .legend + .two-col, .chart-wrap + .two-col { margin-top: 20px; }

@media print {
  .topbar, .footer, .btn, .no-print, .flash, .offline-banner, .tabs, .crumbs, .prod-head, .page-head__actions { display: none !important; }
  .print-only { display: block; }
  .print-only h1 { font-size: 1.3rem; }
  body { background: #fff; color: #000; font-size: 11pt; }
  main.container { padding: 0; max-width: none; }
  .chart-wrap { overflow: visible; box-shadow: none; border: 0; }
  .chart { font-size: 9pt; }
  .chart th, .chart td { border-color: #999; padding: 3px 5px; min-width: 0; }
  .chart thead th, .chart__mic, .chart__corner { position: static; background: #eee; }
  .chart__cell.is-swap { background: #fff3cd; }
  .chart__cell.is-changed { outline: 0; }
  .card, .table-wrap { box-shadow: none; break-inside: avoid; }
  .two-col { grid-template-columns: 1fr 1fr; }
  @page { size: landscape; margin: 12mm; }
}
