/* Contract Hub — Luton Town FC
   The "glass" look from the Stadium Events dashboard: navy and orange, frosted panels over the
   Kenilworth Road photograph, soft rounded corners. Always the light palette. */

:root {
  --navy-900: #0b1a33; --navy-800: #14284b; --navy-700: #1d3763; --navy-glass: #0f1d41;
  --orange: #f5851f; --orange-d: #d96f0c;

  --surface: rgba(255,255,255,.95);
  --surface-2: #eef1f7;
  --border: rgba(15,29,65,.16);
  --border-2: rgba(15,29,65,.3);
  --text: #101a33; --text-dim: #38435b; --text-mute: #4a556c;

  --green: #1f8a4c; --green-bg: #e4f4ea;
  --amber: #9a5c00; --amber-bg: #fdf1dd;
  --red: #c02627;   --red-bg: #fce8e8;
  --blue: #1c5fbe;  --blue-bg: #e5eefb;
  --violet: #6b3fa0; --violet-bg: #efe8f8;
  --slate: #38435b; --slate-bg: #eaeef5;

  --radius: 14px; --radius-sm: 9px;
  --shadow: 0 6px 24px rgba(5,12,30,.16);
  --focus: 0 0 0 3px rgba(245,133,31,.45);
  --max: 1280px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { background: var(--navy-glass); }
body {
  margin: 0; color: var(--text); background: var(--navy-glass); min-height: 100vh;
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* The photo and its navy wash live on fixed layers behind everything. */
body::after { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none; background: url(/glass-backdrop.jpg) center top / cover no-repeat; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: rgba(15,29,65,.74); }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
h1 { font-size: 24px; } h2 { font-size: 17px; } h3 { font-size: 15px; }
.mute { color: var(--text-mute); } .dim { color: var(--text-dim); }
.small { font-size: 13px; } .tiny { font-size: 12px; }
.right { text-align: right; } .nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

/* ---------- Top bar ---------- */
.topbar { background: rgba(15,29,65,.93); border-bottom: 1px solid rgba(255,255,255,.2); position: sticky; top: 0; z-index: 30; }
.topbar-inner { max-width: var(--max); margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 22px; min-height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; flex: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 50%; background: #fff; padding: 2px; object-fit: contain; }
.brand strong { display: block; font-size: 15px; letter-spacing: .01em; line-height: 1.2; }
.brand small { display: block; font-size: 11px; color: rgba(255,255,255,.62); line-height: 1.2; }
.topbar nav { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.topbar nav::-webkit-scrollbar { display: none; }
.topbar nav a { color: rgba(255,255,255,.8); padding: 7px 12px; border-radius: 10px; font-size: 14px; white-space: nowrap; position: relative; }
.topbar nav a:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.topbar nav a.on { background: var(--orange); color: #fff; font-weight: 600; }
.topbar nav .count { background: var(--orange); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 0 6px; margin-left: 5px; }
.topbar nav a.on .count { background: #fff; color: var(--orange-d); }
.who { color: rgba(255,255,255,.85); font-size: 13px; padding: 4px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: none; cursor: pointer; display: inline-flex; gap: 7px; align-items: center; white-space: nowrap; font-family: inherit; }
.who:hover { background: rgba(255,255,255,.1); color: #fff; }
.who-role { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; background: rgba(255,255,255,.16); padding: 1px 6px; border-radius: 999px; }

/* ---------- Page ---------- */
main { max-width: var(--max); width: calc(100% - 28px); margin: 20px auto; padding: 24px 22px 36px; background: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.55); border-radius: 24px; min-height: 60vh; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head p { margin: 4px 0 0; color: var(--text-dim); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.foot { text-align: center; color: rgba(255,255,255,.88); font-size: 12.5px; padding: 0 16px 24px; }

.card { background: var(--surface); border: 1px solid rgba(255,255,255,.7); border-radius: 16px; box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 18px; min-width: 0; }
.card > h2 { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card > h2 .link { font-size: 13px; font-weight: 400; }
.card.flush { padding: 0; overflow: hidden; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.main-side { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid > .card { margin-bottom: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { position: relative; overflow: hidden; background: var(--surface); border: 1px solid rgba(255,255,255,.7); border-radius: 16px; box-shadow: var(--shadow); padding: 17px 18px 14px; min-width: 0; display: block; color: var(--text); }
.stat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--border-2); }
.stat.amber::before { background: var(--orange); } .stat.green::before { background: var(--green); } .stat.red::before { background: var(--red); } .stat.blue::before { background: var(--blue); }
.stat b { display: block; font-size: 26px; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat span { display: block; font-size: 13px; color: var(--text-dim); }
.stat small { display: block; font-size: 12px; color: var(--text-mute); margin-top: 2px; }
a.stat:hover { text-decoration: none; box-shadow: var(--shadow), 0 0 0 2px var(--orange); }

/* ---------- Controls ---------- */
.btn { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 15px; border-radius: 10px; border: 1px solid var(--border-2); background: #fff; color: var(--text); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; line-height: 1.3; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.primary { background: var(--orange); border-color: var(--orange-d); color: #fff; }
.btn.primary:hover { background: var(--orange-d); }
.btn.navy { background: var(--navy-800); border-color: var(--navy-900); color: #fff; }
.btn.navy:hover { background: var(--navy-700); }
.btn.danger { color: var(--red); border-color: rgba(192,38,39,.4); }
.btn.danger:hover { background: var(--red-bg); }
.btn.good { background: var(--green); border-color: #176c3b; color: #fff; } .btn.good:hover { background: #176c3b; }
.btn.sm { padding: 4px 10px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

label { display: block; font-size: 13px; font-weight: 600; color: var(--text-dim); margin-bottom: 4px; }
input, select, textarea { font: inherit; font-size: 14.5px; width: 100%; padding: 8px 11px; border: 1px solid var(--border-2); border-radius: 10px; background: #fff; color: var(--text); min-width: 0; }
input[type="checkbox"], input[type="radio"] { width: auto; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: var(--focus); border-color: var(--orange-d); }
input[type="date"] { -webkit-appearance: none; appearance: none; display: block; min-height: 38px; text-align: left; }
.field { margin-bottom: 14px; min-width: 0; }
.field .hint { font-size: 12px; color: var(--text-mute); margin-top: 3px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 16px; }
.form-grid .wide { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text); font-size: 14.5px; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; align-items: end; }
.filters > div { min-width: 150px; flex: 0 1 auto; } .filters .grow { flex: 1 1 220px; }
.filters label { font-size: 12px; }

.view-switch { display: inline-flex; border: 1px solid var(--border-2); border-radius: 10px; overflow: hidden; background: #fff; }
.view-switch a, .view-switch button { padding: 7px 14px; font: inherit; font-size: 14px; color: var(--text-dim); background: #fff; border: 0; cursor: pointer; }
.view-switch > * + * { border-left: 1px solid var(--border-2); }
.view-switch > *:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.view-switch > .on { background: var(--navy-800); color: #fff; font-weight: 600; }

/* ---------- Badges ---------- */
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 10px; border-radius: 999px; background: var(--slate-bg); color: var(--slate); white-space: nowrap; line-height: 1.6; }
.badge.draft { background: var(--slate-bg); color: var(--slate); }
.badge.in_approval { background: var(--blue-bg); color: var(--blue); }
.badge.active { background: var(--green-bg); color: var(--green); }
.badge.expiring { background: var(--amber-bg); color: var(--amber); }
.badge.expired, .badge.rejected { background: var(--red-bg); color: var(--red); }
.badge.terminated, .badge.cancelled, .badge.waiting { background: var(--slate-bg); color: var(--text-mute); }
.badge.approved { background: var(--green-bg); color: var(--green); }
.badge.pending { background: var(--amber-bg); color: var(--amber); }
.badge.violet { background: var(--violet-bg); color: var(--violet); }
.chip { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 0 8px; border-radius: 999px; background: var(--navy-800); color: #fff; letter-spacing: .02em; }
.due { font-size: 12px; font-weight: 600; } .due.red { color: var(--red); } .due.amber { color: var(--amber); } .due.green { color: var(--green); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-mute); padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
th.sort { cursor: pointer; user-select: none; } th.sort:hover { color: var(--text); }
td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.click { cursor: pointer; } tbody tr.click:hover td { background: #f6f8fc; }
td .sub { font-size: 12.5px; color: var(--text-mute); }

.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 10px 0; border-bottom: 1px solid var(--border); display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.list li:last-child { border-bottom: 0; padding-bottom: 0; } .list li:first-child { padding-top: 0; }
.list .grow { min-width: 0; flex: 1; }
.list a.title { color: var(--text); font-weight: 600; } .list a.title:hover { color: var(--blue); }
.empty { text-align: center; color: var(--text-mute); padding: 26px 12px; }

.alert-box { padding: 10px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 14px; border: 1px solid transparent; }
.alert-box.red { background: var(--red-bg); color: var(--red); border-color: rgba(192,38,39,.25); }
.alert-box.amber { background: var(--amber-bg); color: var(--amber); border-color: rgba(154,92,0,.25); }
.alert-box.blue { background: var(--blue-bg); color: var(--blue); border-color: rgba(28,95,190,.25); }
.alert-box.green { background: var(--green-bg); color: var(--green); border-color: rgba(31,138,76,.25); }

/* ---------- Bars ---------- */
.bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 170px; padding-top: 8px; }
.bar { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; text-align: center; }
.bar i { display: block; width: 100%; max-width: 38px; background: var(--navy-700); border-radius: 6px 6px 0 0; min-height: 0; }
.bar.soon i { background: var(--orange); }
.bar.empty-bar i { background: var(--border); height: 2px !important; }
.bar em { font-style: normal; font-size: 11px; color: var(--text-dim); margin-bottom: 3px; font-weight: 600; white-space: nowrap; }
.bar span { font-size: 11px; color: var(--text-mute); margin-top: 5px; }
.meter { height: 12px; background: var(--slate-bg); border-radius: 999px; overflow: hidden; display: flex; }
.meter > i { display: block; height: 100%; background: var(--navy-700); }
.meter > i.pipe { background: repeating-linear-gradient(135deg, #9fb0d0 0 5px, #c4d0e6 5px 10px); }
.meter.over > i:first-child { background: var(--red); }
.meter.warn > i:first-child { background: var(--orange); }

/* ---------- Detail page ---------- */
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 18px; }
.kv dt { font-size: 12px; color: var(--text-mute); text-transform: uppercase; letter-spacing: .05em; }
.kv dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.summary-text { white-space: pre-wrap; line-height: 1.6; }
.side-fact { padding: 10px 0; border-bottom: 1px solid var(--border); } .side-fact:last-child { border-bottom: 0; }
.side-fact small { display: block; color: var(--text-mute); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.side-fact b { font-size: 18px; font-variant-numeric: tabular-nums; } .side-fact span { display: block; font-size: 13px; }

.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps li { display: flex; gap: 12px; padding-bottom: 16px; position: relative; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--border); }
.steps .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; background: var(--slate-bg); color: var(--text-mute); }
.steps .dot.approved { background: var(--green); color: #fff; } .steps .dot.rejected { background: var(--red); color: #fff; }
.steps .dot.pending { background: var(--orange); color: #fff; } .steps .dot.cancelled { background: var(--slate-bg); color: var(--text-mute); }
.steps .body { min-width: 0; flex: 1; }
.steps .quote { background: var(--surface-2); border-radius: 10px; padding: 7px 11px; margin-top: 5px; font-size: 14px; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; } .feed li:last-child { border-bottom: 0; }
.feed .meta { font-size: 12px; color: var(--text-mute); }
.feed .comment { background: var(--surface-2); border-radius: 10px; padding: 7px 11px; margin-top: 4px; white-space: pre-wrap; }

.drop { border: 2px dashed var(--border-2); border-radius: 12px; padding: 14px; text-align: center; color: var(--text-dim); font-size: 14px; }
.drop.over { border-color: var(--orange); background: var(--amber-bg); }

/* ---------- Board ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(268px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.col { background: rgba(224,230,242,.88); border: 1px solid rgba(255,255,255,.7); border-radius: 16px; padding: 10px; min-height: 160px; display: flex; flex-direction: column; gap: 9px; transition: background .12s, box-shadow .12s; }
.col header { display: flex; justify-content: space-between; align-items: baseline; padding: 3px 5px 2px; gap: 8px; }
.col header h3 { font-size: 14px; display: flex; align-items: center; gap: 7px; }
.col header .tot { font-size: 12px; color: var(--text-dim); text-align: right; line-height: 1.3; }
.col .swatch { width: 10px; height: 10px; border-radius: 50%; background: var(--slate); }
.col.s-in_approval .swatch { background: var(--blue); } .col.s-active .swatch { background: var(--green); }
.col.s-expiring .swatch { background: var(--orange); } .col.s-closed .swatch { background: var(--red); }
.col.ok { background: rgba(255,241,220,.95); box-shadow: 0 0 0 2px var(--orange); }
.col.no { opacity: .55; }
.kcard { background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: 0 1px 3px rgba(5,12,30,.15); cursor: grab; border: 1px solid transparent; display: block; color: var(--text); }
.kcard:hover { border-color: var(--orange); text-decoration: none; }
.kcard.dragging { opacity: .4; }
.kcard .top { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 3px; }
.kcard .ref { font-size: 11.5px; color: var(--text-mute); font-weight: 600; letter-spacing: .02em; }
.kcard strong { display: block; font-size: 14.5px; line-height: 1.3; }
.kcard .cp { font-size: 13px; color: var(--text-dim); }
.kcard .foot-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; }
.kcard .tags { margin-top: 7px; display: flex; gap: 5px; flex-wrap: wrap; }
.kcard .avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--navy-700); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; flex: none; }
.col .none { text-align: center; color: var(--text-mute); font-size: 13px; padding: 16px 4px; }

/* ---------- Calendar ---------- */
.cal-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cal-head h2 { min-width: 160px; font-size: 20px; }
.cal { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #fff; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dow { background: var(--navy-800); color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.cal-dow div { padding: 7px 10px; }
.day { min-height: 112px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 4px 5px 5px; min-width: 0; background: #fff; }
.day:nth-child(7n) { border-right: 0; }
.day.out { background: #f4f6fa; } .day.out .dn { color: var(--text-mute); opacity: .7; }
.day.weekend { background: #fafbfd; }
.day .dn { font-size: 12.5px; font-weight: 600; color: var(--text-dim); padding: 1px 4px; display: inline-block; border-radius: 999px; min-width: 22px; text-align: center; }
.day.today .dn { background: var(--orange); color: #fff; }
.ev { display: block; font-size: 12px; line-height: 1.3; padding: 2px 6px; margin-top: 3px; border-radius: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; border-left: 3px solid; color: var(--text); cursor: pointer; background: none; border-top: 0; border-right: 0; border-bottom: 0; width: 100%; text-align: left; font-family: inherit; }
.ev:hover { text-decoration: none; filter: brightness(.95); }
.ev.k-start { background: var(--blue-bg); border-color: var(--blue); }
.ev.k-end { background: var(--red-bg); border-color: var(--red); }
.ev.k-notice { background: var(--amber-bg); border-color: var(--orange); }
.ev.k-project { background: var(--violet-bg); border-color: var(--violet); }
.ev.faint { opacity: .55; font-style: italic; }
.more { font-size: 12px; margin-top: 3px; background: none; border: 0; color: var(--blue); cursor: pointer; padding: 0 4px; font-family: inherit; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--text-dim); align-items: center; }
.legend label { display: inline-flex; gap: 6px; align-items: center; margin: 0; font-weight: 500; font-size: 13px; cursor: pointer; }
.legend .sw { width: 12px; height: 12px; border-radius: 3px; border-left: 3px solid; display: inline-block; }
.sw.k-start { background: var(--blue-bg); border-color: var(--blue); } .sw.k-end { background: var(--red-bg); border-color: var(--red); }
.sw.k-notice { background: var(--amber-bg); border-color: var(--orange); } .sw.k-project { background: var(--violet-bg); border-color: var(--violet); }
.agenda-day { margin-bottom: 14px; } .agenda-day h3 { font-size: 13px; color: var(--text-dim); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Overlays ---------- */
.overlay { position: fixed; inset: 0; background: rgba(8,16,36,.6); z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal { background: #fff; border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.4); width: min(640px, 100%); max-height: 90vh; overflow: auto; padding: 22px 24px; }
.modal.wide { width: min(820px, 100%); }
.modal h2 { margin-bottom: 12px; }
.modal .btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100% - 32px)); }
.toast { background: var(--navy-800); color: #fff; padding: 11px 16px; border-radius: 12px; box-shadow: var(--shadow); font-size: 14px; border-left: 4px solid var(--green); }
.toast.error { border-left-color: var(--red); background: #3b1115; }

.login { max-width: 520px; margin: 8vh auto 0; }
.login .who-btn { display: flex; width: 100%; justify-content: space-between; align-items: center; text-align: left; padding: 11px 14px; margin-bottom: 8px; font: inherit; background: #fff; border: 1px solid var(--border-2); border-radius: 12px; cursor: pointer; }
.login .who-btn:hover { border-color: var(--orange); background: var(--amber-bg); }
.spin { text-align: center; color: var(--text-mute); padding: 40px; }
pre.mail { white-space: pre-wrap; font: 13px/1.5 ui-monospace, Consolas, monospace; background: var(--surface-2); padding: 12px; border-radius: 10px; margin: 0; }

@media (max-width: 960px) {
  .grid.main-side, .grid.two, .grid.three { grid-template-columns: 1fr; }
}
/* Not enough width for brand, seven links and the person chip on one row: nav gets its own row. */
@media (max-width: 1040px) {
  .topbar-inner { flex-wrap: wrap; gap: 8px 12px; padding: 6px 14px 8px; min-height: 0; }
  .brand { order: 1; } .who { order: 2; margin-left: auto; }
  .topbar nav { order: 3; flex: 1 0 100%; }
}
@media (max-width: 640px) {
  main { width: calc(100% - 16px); margin: 10px auto; padding: 16px 12px 28px; border-radius: 20px; }
  .card { padding: 14px; }
  .topbar-inner { gap: 10px; padding: 0 10px; flex-wrap: wrap; padding-bottom: 6px; }
  .brand small { display: none; }
  .topbar nav { order: 3; flex: 1 0 100%; }
  .who .who-role { display: none; }
  .day { min-height: 74px; padding: 2px; } .ev { font-size: 11px; padding: 1px 3px; }
  .cal-dow div { padding: 6px 3px; font-size: 11px; }
  h1 { font-size: 21px; }
}
@media (prefers-reduced-transparency: reduce) { main, .card, .stat { background: #fff; } }
@media print { body::before, body::after, .topbar, .foot, .actions { display: none; } main { background: #fff; border: 0; } }
