/* UK Annual Leave Maximiser: minimalist British utility design */
:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f1f4fa;
  --border: #dce3ee;
  --border-strong: #c3cede;
  --navy: #15376a;
  --navy-700: #0f2a52;
  --navy-50: #e8f0ff;
  --navy-100: #d9e5fb;
  --emerald: #24684f;
  --emerald-50: #e5f1eb;
  --emerald-200: #bcd6c8;
  --bh-bg: #f8e1c9;
  --bh-text: #6f3c19;
  --bh-border: #efcfaa;
  --wknd-bg: #e9eef6;
  --wknd-text: #44546c;
  --warn-bg: #fff4e5;
  --warn-border: #f2c98a;
  --warn-text: #7a3e0c;
  --text: #131f32;
  --muted: #4a596f;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(19, 31, 50, .05), 0 4px 14px rgba(19, 31, 50, .04);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-700); }
h1, h2, h3 { line-height: 1.2; margin: 0; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:where(a, button, input, select, summary):focus-visible { outline: 3px solid #2b65ba; outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.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; }
.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .wrap { padding: 0 1.5rem; } }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { top: 1rem; color: #fff; }
.tnum { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ header */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--text); font-weight: 650; letter-spacing: -.01em; }
.brand:hover { color: var(--text); }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--navy); color: #fff; display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 20px; height: 20px; }
.brand small { display: block; font-size: .75rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.nav { display: none; gap: .25rem; }
.nav a { text-decoration: none; color: var(--muted); font-size: .92rem; font-weight: 600; padding: .45rem .7rem; border-radius: 8px; }
.nav a:hover { background: var(--navy-50); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); background: var(--navy-50); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; font-weight: 600; font-size: .92rem; padding: .45rem .8rem; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--navy-50); }
.menu-panel { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 30; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 30px rgba(19, 31, 50, .12); padding: .4rem; min-width: 14rem; display: grid; }
.menu-panel a { text-decoration: none; padding: .6rem .75rem; border-radius: 8px; font-weight: 600; color: var(--text); }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--navy-50); color: var(--navy); }
@media (min-width: 1020px) { .nav { display: flex; } .menu { display: none; } }

/* ------------------------------------------------------------ hero */
main { flex: 1; }
.hero { padding: clamp(1.4rem, 4vw, 2.6rem) 0 clamp(1rem, 2.5vw, 1.6rem); }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--emerald); margin-bottom: .7rem; }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); font-weight: 760; letter-spacing: -.045em; line-height: 1.06; max-width: 22ch; }
.hero .lede { color: var(--muted); max-width: 62ch; font-size: clamp(1rem, 2vw, 1.12rem); margin-top: .85rem; }
.trust { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 1rem 0 0; padding: 0; list-style: none; font-size: .88rem; color: var(--muted); font-weight: 600; }
.trust li { display: inline-flex; align-items: center; gap: .4rem; }
.trust li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); }

/* ------------------------------------------------------------ controls */
.controls { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
@media (min-width: 640px) { .controls { padding: 1.35rem 1.5rem; } }
.controls-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .controls-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.15rem 1.25rem; }
  .f-nation { grid-column: span 7; } .f-year { grid-column: span 5; }
  .f-allow { grid-column: span 5; } .f-style { grid-column: span 7; }
  .f-month { grid-column: span 5; } .f-from { grid-column: span 7; }
}
.field-label { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; color: var(--muted); margin-bottom: .45rem; }
.field-label .opt { text-transform: none; letter-spacing: 0; font-weight: 500; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; }
.seg button { border: 0; background: transparent; border-radius: 8px; padding: .55rem .5rem; font-size: .9rem; font-weight: 600; color: var(--muted); min-height: 40px; line-height: 1.2; transition: background-color .15s, color .15s; }
.seg button:hover { background: var(--navy-100); color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; box-shadow: 0 1px 3px rgba(21, 55, 106, .25); }
.allow-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.input { min-height: 44px; border: 1px solid var(--border-strong); background: var(--surface); border-radius: 10px; padding: .5rem .7rem; font-size: 1rem; }
.input:focus { border-color: var(--navy); }
#allowance { width: 5.2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.presets { display: flex; gap: 4px; flex-wrap: wrap; }
.presets button { min-width: 44px; min-height: 40px; border: 1px solid var(--border); background: var(--surface-2); border-radius: 8px; font-weight: 650; font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.presets button:hover { background: var(--navy-100); color: var(--text); }
.presets button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
select.input { width: 100%; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%234a596f' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; padding-right: 2.2rem; }
.from-row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.from-row .input { flex: 1 1 11rem; }
.btn-ghost { min-height: 44px; border: 1px solid var(--border-strong); background: var(--surface); border-radius: 10px; padding: .5rem .85rem; font-weight: 600; font-size: .9rem; color: var(--navy); }
.btn-ghost:hover { background: var(--navy-50); }
.controls-note { margin-top: 1rem; font-size: .86rem; color: var(--muted); }

/* ------------------------------------------------------------ summary */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.stat { padding: clamp(.85rem, 2.5vw, 1.25rem) clamp(.9rem, 2.5vw, 1.4rem); min-width: 0; }
.stat:nth-child(2n) { border-left: 1px solid var(--border); }
.stat:nth-child(n+3) { border-top: 1px solid var(--border); }
.stat-main { background: var(--navy-50); }
.stat-label { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); line-height: 1.25; }
.stat-value { display: block; margin-top: .2rem; font-size: clamp(1.5rem, 3.6vw, 2.15rem); font-weight: 750; letter-spacing: -.04em; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-value small { font-size: .55em; font-weight: 650; color: var(--muted); letter-spacing: 0; }
.stat-warn { background: var(--warn-bg); }
.stat-warn .stat-value { color: var(--warn-text); }
@media (min-width: 760px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat:nth-child(n) { border-top: 0; border-left: 1px solid var(--border); }
  .stat:first-child { border-left: 0; }
}
.notice { margin-top: .85rem; padding: .75rem 1rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: .92rem; color: var(--muted); }
.notice strong { color: var(--text); }
.notice-warn { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn-text); }
.notice-warn strong { color: var(--warn-text); }
.link-btn { border: 0; background: none; padding: 0; color: var(--navy); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
#notice:empty { display: none; }

/* ------------------------------------------------------------ toolbar */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin: 1.5rem 0 1rem; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: #e4ebf6; border-radius: 12px; }
.tabs button { border: 0; background: transparent; border-radius: 9px; padding: .5rem .95rem; font-weight: 650; font-size: .92rem; color: var(--muted); min-height: 40px; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--navy); box-shadow: 0 1px 4px rgba(21, 55, 106, .12); }
.actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.btn { display: inline-flex; align-items: center; gap: .45rem; min-height: 42px; padding: .5rem .9rem; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); font-weight: 650; font-size: .9rem; color: var(--text); text-decoration: none; }
.btn:hover { background: var(--navy-50); color: var(--navy); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; font-size: .84rem; color: var(--muted); margin-bottom: .9rem; }
.legend span { display: inline-flex; align-items: center; gap: .4rem; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw-leave { background: var(--emerald); } .sw-bh { background: var(--bh-bg); border: 1px solid var(--bh-border); } .sw-wknd { background: var(--wknd-bg); border: 1px solid var(--border); } .sw-own { background: #3b8a6c; box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px #3b8a6c; }

/* ------------------------------------------------------------ break cards */
.breaks { display: grid; gap: .85rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 820px) { .breaks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.break-card { background: #f9fbfd; border: 1px solid var(--border); border-radius: 18px; padding: 1rem 1.1rem 1.05rem; min-width: 0; transition: border-color .15s, background-color .15s; }
.break-card.is-selected { background: var(--surface); border-color: var(--emerald-200); box-shadow: var(--shadow); }
.break-card:not(.is-selected) .strip, .break-card:not(.is-selected) .break-dates { opacity: .72; }
.break-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.break-check { display: flex; align-items: flex-start; gap: .65rem; cursor: pointer; }
.break-check input { width: 20px; height: 20px; margin: .12rem 0 0; accent-color: var(--emerald); flex: none; cursor: pointer; }
.break-title { font-weight: 720; font-size: 1.05rem; letter-spacing: -.015em; }
.break-kind { flex: none; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: .18rem .55rem; }
.is-selected .break-kind { color: var(--emerald); background: var(--emerald-50); border-color: var(--emerald-200); }
.break-math { margin: .55rem 0 0 1.95rem; font-size: .93rem; color: var(--muted); }
.break-math strong { color: var(--navy); font-weight: 750; }
.is-custom .break-math { margin-left: 0; }
.break-dates { margin: .55rem 0 0 1.95rem; display: grid; gap: .15rem; font-size: .9rem; font-variant-numeric: tabular-nums; }
.is-custom .break-dates { margin-left: 0; }
.break-dates div { display: flex; gap: .5rem; }
.break-dates dt { font-weight: 700; min-width: 2.6rem; color: var(--emerald); }
.break-dates div + div dt { color: var(--muted); }
.break-dates dd { margin: 0; }
.break-hols { margin: .3rem 0 0 1.95rem; font-size: .8rem; color: var(--bh-text); }
.strip { display: flex; flex-wrap: wrap; gap: 4px; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--border); }
.pill { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 33px; padding: .2rem .3rem; border-radius: 7px; font-size: .64rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.pill b { font-size: .8rem; }
.pill-leave { background: var(--emerald); color: #fff; }
.pill-bh { background: var(--bh-bg); color: var(--bh-text); border: 1px solid var(--bh-border); }
.pill-wknd { background: var(--wknd-bg); color: var(--wknd-text); }
.break-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .85rem; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); border-radius: 999px; padding: .32rem .7rem; font-size: .8rem; font-weight: 650; min-height: 34px; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--navy-50); border-color: var(--navy); color: var(--navy); }
.stay-link { font-size: .86rem; font-weight: 650; text-decoration: none; padding: .32rem 0; }
.stay-link:hover { text-decoration: underline; }
.empty { padding: 1rem 0; color: var(--muted); }

/* ------------------------------------------------------------ calendar */
.cal-hint { font-size: .9rem; color: var(--muted); margin-bottom: .9rem; }
.calendar { display: grid; gap: .85rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .calendar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .calendar { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .calendar { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.month { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: .85rem .85rem .9rem; }
.month h3 { font-size: .95rem; font-weight: 720; margin-bottom: .55rem; }
.cal-head, .cal-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal-head span { text-align: center; font-size: .68rem; font-weight: 700; color: #7a879b; padding-bottom: .2rem; }
.cd { display: grid; place-items: center; height: 32px; border-radius: 7px; font-size: .8rem; font-variant-numeric: tabular-nums; border: 0; padding: 0; background: transparent; }
.cd-work { color: var(--text); }
.cd-work:hover { background: var(--emerald-50); box-shadow: inset 0 0 0 1px var(--emerald-200); }
.cd-wknd { background: var(--wknd-bg); color: var(--wknd-text); }
.cd-bh { background: var(--bh-bg); color: var(--bh-text); font-weight: 700; box-shadow: inset 0 0 0 1px var(--bh-border); }
.cd-leave { background: var(--emerald); color: #fff; font-weight: 700; }
.cd-leave.is-own { background: #3b8a6c; box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px #3b8a6c; }
.cd.in-break { box-shadow: inset 0 -3px 0 var(--emerald); }
.cd-bh.in-break { box-shadow: inset 0 0 0 1px var(--bh-border), inset 0 -3px 0 var(--emerald); }
.cd.is-today { outline: 2px solid var(--navy); outline-offset: -2px; }

/* ------------------------------------------------------------ content */
.section { margin-top: clamp(2.5rem, 6vw, 4rem); }
.section > h2, .prose h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 740; letter-spacing: -.035em; }
.section-intro { color: var(--muted); margin-top: .5rem; max-width: 68ch; }
.prose { max-width: 70ch; }
.prose p, .prose ul, .prose ol { margin: 0 0 1rem; }
.prose h2 { margin: 2.2rem 0 .7rem; }
.prose h3 { font-size: 1.12rem; margin: 1.6rem 0 .5rem; }
.prose li { margin-bottom: .35rem; }
.page-head { padding: clamp(1.4rem, 4vw, 2.4rem) 0 1rem; }
.page-head h1 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); font-weight: 760; letter-spacing: -.045em; }
.page-head .lede { color: var(--muted); max-width: 64ch; font-size: 1.06rem; margin-top: .7rem; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: .8rem; }
.crumbs a { color: var(--muted); }
.table-wrap { overflow-x: auto; margin-top: 1rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; font-variant-numeric: tabular-nums; }
caption { text-align: left; padding: .85rem 1rem .2rem; font-weight: 700; }
th, td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 650; }
td.num { white-space: nowrap; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--emerald); background: var(--emerald-50); border-radius: 999px; padding: .1rem .5rem; white-space: nowrap; }
.cards { display: grid; gap: .85rem; grid-template-columns: 1fr; margin-top: 1.1rem; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.link-card { display: block; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.05rem 1.15rem; transition: border-color .15s, transform .15s; }
.link-card:hover { border-color: var(--navy); color: var(--text); }
.link-card strong { display: block; font-size: 1.02rem; color: var(--navy); }
.link-card span { display: block; color: var(--muted); font-size: .9rem; margin-top: .25rem; }
.faq { margin-top: 1rem; display: grid; gap: .55rem; max-width: 52rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: .9rem 1.1rem; }
.faq summary { cursor: pointer; font-weight: 680; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 500; color: var(--muted); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: .6rem; color: var(--muted); }
.callout { margin-top: 1.2rem; background: var(--navy-50); border: 1px solid var(--navy-100); border-radius: 16px; padding: 1.1rem 1.2rem; display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; justify-content: space-between; }
.callout p { max-width: 56ch; }

/* ------------------------------------------------------------ footer */
.site-footer { margin-top: clamp(3rem, 7vw, 5rem); border-top: 1px solid var(--border); background: var(--surface); font-size: .9rem; color: var(--muted); }
.footer-grid { display: grid; gap: 1.5rem; padding: 2rem 0 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text); margin-bottom: .6rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.footer-grid a { color: var(--muted); }
.footer-base { border-top: 1px solid var(--border); padding: 1rem 0 1.6rem; font-size: .82rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }

/* ------------------------------------------------------------ toast */
.toast { position: fixed; left: 50%; bottom: 1.2rem; transform: translate(-50%, 1rem); max-width: min(92vw, 30rem); background: #14223a; color: #fff; padding: .75rem 1.1rem; border-radius: 12px; font-size: .92rem; font-weight: 550; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.noscript { margin-top: 1rem; padding: .8rem 1rem; background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: 12px; color: var(--warn-text); }
.print-only { display: none; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ------------------------------------------------------------ print */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 10.5pt; display: block; }
  .site-header, .site-footer, .hero, .controls, .toolbar, .notice, .toast, .section, .no-print, .chips, .stay-link, .cal-hint, .noscript { display: none !important; }
  .print-only { display: block !important; margin-bottom: 8mm; }
  .print-only h1 { font-size: 16pt; }
  .print-only p { color: #333; margin-top: 2mm; }
  .stats { box-shadow: none; border-color: #bbb; margin: 0 0 6mm; }
  .breaks { display: block; }
  .break-card { break-inside: avoid; box-shadow: none !important; border-color: #bbb !important; margin-bottom: 4mm; }
  .break-card:not(.is-selected) { display: none !important; }
  #panel-breaks, #panel-calendar { display: block !important; }
  #panel-calendar { break-before: page; }
  .calendar { grid-template-columns: repeat(3, 1fr); gap: 3mm; }
  .month { break-inside: avoid; padding: 2mm 3mm; }
  .cd { height: 18px; font-size: 7.5pt; }
  .pill, .cd, .stat-main, .legend i { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ------------------------------------------------------------ tables (content pages) */
th small, td small { display: block; margin-top: .15rem; font-size: .8rem; font-weight: 400; color: var(--muted); }
.table-note { margin-top: .75rem; font-size: .92rem; color: var(--muted); }
.callout .btn { flex: none; }
