/* IWM Self Catering: owner app
   Clean dashboard style: white canvas, soft grey cards, black for the one primary action,
   blue for links and selection, generous rounding, icons in the menu. */

/* Plus Jakarta Sans (variable 200–800): friendly open shapes, still businesslike. Two subsets, so accented names load only when needed. */
@font-face { font-family: "Plus Jakarta Sans"; src: url("/fonts/plus-jakarta-sans-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ink: #111318;
  --ink-2: #4b5059;
  --ink-3: #8a8f99;
  --line: #eceef1;
  --line-2: #e1e4e8;
  --paper: #ffffff;
  --sand: #f7f8fa;            /* soft card / hover */
  --sand-2: #f1f2f5;
  --accent: #21534f;          /* ink green: primary buttons, active pills, login panel */
  --accent-hover: #183f3c;
  --accent-tint: #e6efed;     /* active menu item */
  --brand: #21534f;           /* links, selection, charts, booked bars (the original ink green) */
  --brand-hover: #183f3c;
  --brand-tint: #e6efed;
  --info: #2f6bff;            /* informational badges only */
  --info-tint: #ebf1ff;
  --orange: #f2a65a;
  --amber: #b45309;
  --amber-tint: #fef3e2;
  --red: #e5484d;
  --red-tint: #feecec;
  --green: #18a058;
  --green-tint: #e7f7ee;
  --radius: 12px;
  --radius-lg: 16px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sidebar: 248px;
  --shadow: 0 1px 2px rgba(17, 19, 24, .04), 0 8px 24px rgba(17, 19, 24, .06);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* the hidden attribute must win over .field, .row and other display rules */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.015em; }
h1 { font-size: 22px; line-height: 1.25; }
h2 { font-size: 17px; }
h3 { font-size: 14.5px; }
p { margin: 0 0 10px; }
small, .small { font-size: 12.5px; }
.muted { color: var(--ink-3); }
.ink-2 { color: var(--ink-2); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }   /* booking refs: the main font with fixed-width digits, friendlier than a typewriter face */
.num, .money, td.num, th.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.nowrap { white-space: nowrap; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ic { flex: none; display: block; }

/* ── Shell ── */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { background: var(--paper); border-right: 1px solid var(--line); padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 6px 18px; }
.brand-link { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; }
.brand-link:hover { text-decoration: none; color: var(--ink); }
.brand-mark { position: relative; width: 30px; height: 30px; border-radius: 9px; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: var(--ink); flex: none; }
.brand-mark i { position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); border: 2px solid #fff; }
.brand-name { font-weight: 650; font-size: 16px; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.collapse { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; flex: none; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.collapse:hover { background: var(--sand); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: 14px; }
.nav a .ic { color: #9aa0aa; }
.nav a:hover { background: var(--sand); color: var(--ink); text-decoration: none; }
.nav a.on { background: var(--accent-tint); color: var(--accent); font-weight: 600; }
.nav a.on .ic { color: var(--accent); }
.nav .lbl { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav .count { font-size: 11px; font-weight: 600; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--sand-2); color: var(--ink-2); display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.nav .count.alert { background: #ff5a5f; color: #fff; }
.nav-label { font-size: 13px; color: #b0b5be; padding: 16px 12px 6px; }
.nav-label:first-child { padding-top: 4px; }
.nav a.nav-add { color: var(--brand); margin-top: 14px; }
.nav a.nav-add .ic { color: var(--brand); }
.linkish { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Collapsed menu: icons only */
html.nav-mini { --sidebar: 76px; }
html.nav-mini .sidebar { padding: 18px 10px; }
html.nav-mini .lbl, html.nav-mini .nav-label, html.nav-mini .nav .count { display: none; }
html.nav-mini .brand { flex-direction: column; padding: 2px 0 14px; }
html.nav-mini .collapse { transform: rotate(180deg); }
html.nav-mini .nav a { justify-content: center; padding: 0; position: relative; }
html.nav-mini .nav-label + a, html.nav-mini .nav a.nav-add { margin-top: 10px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 18px 32px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; }
.icon-btn.menu-btn { display: none; }
.hello { flex: 1; min-width: 0; }
.hello-title { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
.hello-sub { color: var(--ink-3); font-size: 13.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.date-chip { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 14px; border-radius: 22px; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 14px; }
.date-chip .ic { color: var(--ink-2); }
.date-chip:hover { background: var(--sand); text-decoration: none; color: var(--ink); }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--sand); color: var(--ink); }
.dot-count { position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #ff5a5f; color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
details.me { position: relative; }
details.me > summary { list-style: none; display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 10px 0 4px; border-radius: 22px; border: 1px solid var(--line); cursor: pointer; }
details.me > summary::-webkit-details-marker { display: none; }
details.me > summary:hover { background: var(--sand); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
.chev { color: var(--ink-2); }
.menu { position: absolute; right: 0; top: calc(100% + 8px); width: 240px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; z-index: 40; }
.menu a, .menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; border-radius: 8px; color: var(--ink); font: inherit; background: none; border: 0; text-align: left; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--sand); text-decoration: none; color: var(--ink); }
.menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: flex; flex-direction: column; }
.menu-head span { color: var(--ink-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.menu-label { font-size: 12px; color: var(--ink-3); padding: 8px 10px 2px; }

.page { width: 100%; max-width: 1360px; padding: 28px 32px 64px; }
.page.wide { max-width: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head .sub { color: var(--ink-3); margin-top: 4px; }
.crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 6px; }
.crumbs a { color: var(--ink-3); }
.test-banner { background: var(--amber-tint); color: var(--amber); padding: 8px 32px; font-size: 13px; }
.test-banner a { color: var(--amber); font-weight: 600; text-decoration: underline; }
.test-banner.info { background: var(--info-tint); color: #1f55dc; }

/* ── Layout helpers ── */
.stack > * + * { margin-top: 20px; }
.stack-sm > * + * { margin-top: 8px; }
.cluster { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.split { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.right { text-align: right; }
.cols > *, .grid-2 > *, .grid-3 > *, .report-grid > *, .stack > * { min-width: 0; }   /* wide tables scroll inside their panel instead of pushing the page sideways */

/* ── Surfaces ── */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px 12px; }
.panel-head h2 { font-size: 16px; }
.panel-head + .panel-body { padding-top: 4px; }
.panel-body { padding: 18px 20px; }
.panel-foot { padding: 12px 20px; border-top: 1px solid var(--line); background: var(--sand); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.panel.flush .panel-body { padding: 0; }
.note { background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; color: var(--ink-2); }
.callout { border: 1px solid var(--line); border-left: 3px solid var(--brand); background: var(--paper); padding: 12px 16px; border-radius: var(--radius); }
.callout.warn { border-left-color: #f59e0b; background: #fffbf3; }
.callout.bad { border-left-color: var(--red); background: #fff8f8; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 7px; justify-content: center; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); font: inherit; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .12s; }
.btn:hover { background: var(--sand); color: var(--ink); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-danger { color: var(--red); border-color: #f6c9ca; }
.btn-danger:hover { background: var(--red-tint); color: var(--red); }
.btn-quiet { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn-quiet:hover { background: var(--sand-2); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ── Pills (period switchers, filters) ── */
.pills { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.pills a, .pills button { height: 32px; padding: 0 13px; border-radius: 9px; color: var(--ink-3); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; border: 0; background: none; cursor: pointer; font-family: inherit; }
.pills a:hover, .pills button:hover { color: var(--ink); background: var(--sand); text-decoration: none; }
.pills .on { background: var(--accent); color: #fff !important; }

/* ── Forms ── */
.form { max-width: 760px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > label, .label { font-weight: 550; font-size: 13px; color: var(--ink); }
.field .hint { font-size: 12.5px; color: var(--ink-3); }
.field .error, .error-text { font-size: 12.5px; color: var(--red); }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=url], input[type=tel], input[type=search], input[type=time], select, textarea {
  font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line-2); border-radius: 10px; height: 40px; padding: 0 12px; width: 100%; transition: border-color .12s, box-shadow .12s; }
textarea { height: auto; min-height: 96px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(33, 83, 79, .15); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); width: 16px; height: 16px; margin: 0; }
.check { display: flex; gap: 9px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 2px; flex: none; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.row-tight { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span { display: grid; place-items: center; padding: 0 11px; border: 1px solid var(--line-2); border-right: 0; border-radius: 10px 0 0 10px; background: var(--sand); color: var(--ink-3); }
.input-prefix input { border-radius: 0 10px 10px 0; }
.search { position: relative; }
.search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search input { padding-left: 38px; border-radius: 11px; }
.days { display: flex; gap: 6px; flex-wrap: wrap; }
.days label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 9px; padding: 6px 10px; font-weight: 500; cursor: pointer; }
.days label:has(input:checked) { background: var(--brand-tint); border-color: #bcd3ce; }
.form-actions { display: flex; gap: 8px; align-items: center; padding-top: 6px; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.section-title { font-size: 14px; font-weight: 600; margin: 6px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }

/* ── Tables ── */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-weight: 500; font-size: 13px; color: var(--ink-3); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafbfc; }
.table a.rowlink { color: var(--ink); font-weight: 600; }
.table a.rowlink:hover { color: var(--brand); }
.table .sub { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.table-wrap { overflow-x: auto; }

/* ── Status badges ── */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--sand-2); color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.b-ok { background: var(--green-tint); color: var(--green); }
.b-warn { background: var(--amber-tint); color: var(--amber); }
.b-bad { background: var(--red-tint); color: var(--red); }
.b-info { background: var(--info-tint); color: var(--info); }
.b-accent { background: var(--accent); color: #fff; }
.chan { white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--paper); line-height: 20px; }

/* ── Flash ── */
.flash { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 18px; border: 1px solid; }
.flash.ok { background: var(--green-tint); border-color: #c8ebd6; color: #0f6b3a; }
.flash.bad { background: var(--red-tint); border-color: #f8cfd0; color: #a3262b; }
.flash ul { margin: 4px 0 0; padding-left: 18px; }

/* ── Tabs (as pills) ── */
.tabs { display: flex; gap: 4px; margin-bottom: 22px; overflow-x: auto; padding: 4px; background: var(--sand); border-radius: 12px; width: fit-content; max-width: 100%; }
.tabs a { height: 34px; padding: 0 14px; display: inline-flex; align-items: center; color: var(--ink-3); font-weight: 600; font-size: 13.5px; border-radius: 9px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--ink); background: var(--paper); box-shadow: 0 1px 2px rgba(17,19,24,.08), 0 0 0 1px var(--line); }

/* ── Definition lists ── */
.dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; margin: 0; }
.cols > :last-child .dl { grid-template-columns: 76px 1fr; gap: 8px 12px; }   /* the narrow right-hand column on booking and guest pages */
.dl dt { color: var(--ink-3); }
.dl dd { margin: 0; overflow-wrap: anywhere; min-width: 0; }
.ledger { width: 100%; border-collapse: collapse; }
.ledger td { padding: 7px 0; border-bottom: 1px dashed var(--line-2); }
.ledger td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger tr.total td { border-bottom: 0; border-top: 1px solid var(--line-2); font-weight: 650; padding-top: 10px; }
.ledger tr.minor td { color: var(--ink-3); border-bottom: 0; }

/* ── Today: stat cards ── */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius-lg); background: var(--sand); border: 1px solid var(--line); color: var(--ink); transition: box-shadow .15s, background .15s; }
a.stat:hover { background: var(--paper); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.stat-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; flex: none; box-shadow: 0 0 0 1px var(--line); }
.stat .k { font-size: 13px; color: var(--ink-3); }
.stat .v { font-size: 24px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.2; margin-top: 2px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.delta { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; letter-spacing: 0; }
.delta::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); margin: 0 3px; }
.delta.up { color: var(--green); }
.delta.down { color: var(--red); }
.delta.flat { color: var(--ink-3); }

/* Summary strip (IWM admin) in the same card style */
.today-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.today-strip > div { padding: 18px; border-radius: var(--radius-lg); background: var(--sand); border: 1px solid var(--line); }
.today-strip .k { font-size: 13px; color: var(--ink-3); }
.today-strip .v { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.today-strip .v small { font-size: 12.5px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }

/* ── Today: report chart ── */
.report { padding: 6px 0 4px; margin-bottom: 26px; }
.report-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: stretch; }
.report h2 { font-size: 18px; }
.report .sub { color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.big { font-size: 46px; font-weight: 650; letter-spacing: -0.035em; line-height: 1.05; margin-top: 28px; font-variant-numeric: tabular-nums; }
.report .delta { margin-top: 10px; font-size: 13px; }
.report .pills { margin-top: auto; padding-top: 28px; }
.report-left { display: flex; flex-direction: column; }
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: 220px; overflow: visible; }
.chart .months { display: grid; grid-template-columns: repeat(12, 1fr); font-size: 12.5px; color: var(--ink-3); text-align: center; margin-top: 8px; }
.chart .months span.on { color: var(--ink); font-weight: 600; background: var(--sand); border-radius: 8px; padding: 2px 0; }
.chart .tip { position: absolute; transform: translate(-50%, -100%); background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 12px; font-size: 12px; pointer-events: none; white-space: nowrap; box-shadow: var(--shadow); opacity: 0; transition: opacity .1s; }
.chart .tip b { display: block; font-size: 13px; margin-bottom: 4px; }
.chart .tip span { display: block; padding-left: 8px; border-left: 2px solid var(--brand); margin-top: 3px; color: #d6d9df; }
.chart .tip span.ly { border-left-color: var(--orange); }
.chart-key { display: flex; gap: 14px; font-size: 12.5px; color: var(--ink-3); justify-content: flex-end; margin-bottom: 6px; }
.chart-key i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }

/* ── Today: promo / all-clear card ── */
.promo { border-radius: var(--radius-lg); padding: 20px; background: linear-gradient(135deg, #f3f6ff 0%, #fbf7ff 55%, #fff8f1 100%); border: 1px solid var(--line); }
.promo h2 { font-size: 19px; }
.promo p { color: var(--ink-2); font-size: 13.5px; margin-top: 6px; }

/* ── Lists on Today ── */
.attention { list-style: none; margin: 0; padding: 0; }
.attention li { display: flex; gap: 12px; padding: 13px 20px; border-top: 1px solid var(--line); align-items: flex-start; }
.attention .dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: none; background: #f59e0b; }
.attention .dot.bad { background: var(--red); }
.attention .dot.todo { background: transparent; border: 1.5px solid var(--ink-3); }
.attention .dot.ok { background: var(--green); }
.attention .grow { flex: 1; min-width: 0; }
.attention .title { font-weight: 600; }
.attention .detail { color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.movement { list-style: none; margin: 0; padding: 0; }
.movement li { display: grid; grid-template-columns: 78px 1fr auto; gap: 10px; padding: 11px 20px; border-top: 1px solid var(--line); align-items: baseline; }
.movement .when { color: var(--ink-3); font-size: 12.5px; }
.progress { height: 6px; background: var(--sand-2); border-radius: 3px; overflow: hidden; margin: 0 20px 8px; }
.progress span { display: block; height: 100%; background: var(--brand); border-radius: 3px; }

/* ── Planner (availability) ── */
.planner-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.planner { display: grid; min-width: max-content; font-size: 12px; }
.planner .ph { position: sticky; left: 0; z-index: 2; background: var(--paper); border-right: 1px solid var(--line); padding: 0 12px; display: flex; align-items: center; font-weight: 600; font-size: 13px; min-height: 44px; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.planner .dh { text-align: center; border-bottom: 1px solid var(--line); border-right: 1px solid #f3f4f6; padding: 5px 0 4px; color: var(--ink-3); line-height: 1.15; }
.planner .dh b { display: block; color: var(--ink); font-weight: 600; font-size: 12px; }
.planner .dh.we { background: #fafbfc; }
.planner .dh.today b { color: #fff; background: var(--accent); border-radius: 6px; display: inline-block; padding: 1px 5px; }
.planner .mh { grid-row: 1; border-bottom: 1px solid var(--line); padding: 6px 8px; font-weight: 650; font-size: 12px; color: var(--ink-2); border-left: 1px solid var(--line-2); white-space: nowrap; }
.planner .cell { border-bottom: 1px solid var(--line); border-right: 1px solid #f3f4f6; min-height: 44px; position: relative; }
.planner .cell.we { background: #fafbfc; }
.planner .cell.unpriced { background-image: repeating-linear-gradient(90deg, transparent 0 5px, #eceef1 5px 6px); }
.planner a.cell.add { display: block; cursor: pointer; }
.planner a.cell.add:hover { background: var(--brand-tint); box-shadow: inset 0 0 0 1px #bcd3ce; text-decoration: none; }
.planner a.cell.add:hover::after { content: "+"; display: grid; place-items: center; height: 100%; color: var(--brand); font-weight: 700; font-size: 16px; }
.planner .bar { align-self: center; height: 28px; margin: 0 1px; border-radius: 8px; padding: 0 8px; display: flex; align-items: center; gap: 5px; overflow: hidden; white-space: nowrap; font-weight: 600; text-decoration: none; position: relative; z-index: 1; font-size: 12px; }
.planner .bar.booked { background: var(--brand); color: #fff; }
.planner .bar.booked:hover { background: var(--brand-hover); color: #fff; text-decoration: none; }
.planner .bar.provisional { background: repeating-linear-gradient(135deg, #fde7c4 0 6px, #fef2dd 6px 12px); color: #8a4b05; border: 1px solid #f6cf93; }
.planner .bar.request { background: var(--paper); color: var(--amber); border: 1.5px dashed #f0b35d; }
.planner .bar.channel { background: #4b5563; color: #fff; }
.planner .bar.blocked { background: repeating-linear-gradient(135deg, #eceef1 0 4px, #f6f7f9 4px 8px); color: var(--ink-2); border: 1px solid var(--line-2); }
.planner .bar.needs { box-shadow: inset 0 -3px 0 #f5b83d; }
.planner .bar .chan { background: rgba(255,255,255,.18); color: inherit; border-color: rgba(255,255,255,.35); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12.5px; color: var(--ink-2); margin-top: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 20px; height: 12px; border-radius: 4px; display: inline-block; }
.legend i.booked { background: var(--brand); }
.legend i.channel { background: #4b5563; }
.legend i.provisional { background: repeating-linear-gradient(135deg, #fde7c4 0 4px, #fef2dd 4px 8px); border: 1px solid #f6cf93; }
.legend i.request { border: 1.5px dashed #f0b35d; }
.legend i.blocked { background: repeating-linear-gradient(135deg, #eceef1 0 3px, #f6f7f9 3px 6px); border: 1px solid var(--line-2); }
.legend i.unpriced { background-image: repeating-linear-gradient(90deg, transparent 0 3px, #dfe2e6 3px 4px); border: 1px solid var(--line); }

/* ── Timeline ── */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 20px; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.timeline li::after { content: ""; position: absolute; left: 6.5px; top: 16px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline .t { font-weight: 600; }
.timeline .m { font-size: 12.5px; color: var(--ink-3); }

/* ── Empty states ── */
.empty { text-align: left; padding: 22px 20px; color: var(--ink-2); }
.empty h3 { margin-bottom: 4px; }

/* ── Details/disclosure ── */
details.disclose > summary { cursor: pointer; font-weight: 600; color: var(--brand); list-style: none; }
details.disclose > summary::-webkit-details-marker { display: none; }
details.disclose > summary::before { content: "+ "; }
details.disclose[open] > summary::before { content: "− "; }
details.disclose[open] > summary { margin-bottom: 12px; }

/* ── Code ── */
pre.code, textarea.code { font-family: var(--mono); font-size: 12.5px; background: var(--sand); border: 1px solid var(--line); border-radius: 10px; padding: 12px; white-space: pre-wrap; word-break: break-all; margin: 0; }
.copyrow { display: flex; gap: 8px; }
.copyrow input { font-family: var(--mono); font-size: 12.5px; }

/* ── Auth ── */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { background: var(--accent); color: #e2ece9; padding: 44px 52px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side h2 { font-size: 28px; line-height: 1.25; font-weight: 600; color: #fff; max-width: 440px; letter-spacing: -0.02em; }
.auth-side ul { padding-left: 18px; margin: 20px 0 0; line-height: 1.8; max-width: 440px; }
.auth-side .small { color: #b8d0cc; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; background: var(--paper); }
.auth-box { width: 100%; max-width: 380px; }
.auth-box h1 { margin-bottom: 4px; }
.auth-box .sub { color: var(--ink-3); margin-bottom: 22px; }
.auth-box .btn-primary { width: 100%; height: 44px; }

/* ── Responsive ── */
@media (max-width: 1180px) {
  .stats, .today-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-grid { grid-template-columns: 1fr; gap: 16px; }
  .big { margin-top: 14px; }
  .report .pills { padding-top: 14px; }
}
@media (max-width: 980px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .date-chip span { display: none; }
  .date-chip { width: 44px; padding: 0; justify-content: center; }
}
@media (max-width: 760px) {
  html.nav-mini { --sidebar: 248px; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 50; transform: translateX(-102%); transition: transform .18s ease; box-shadow: 0 0 0 100vmax rgba(0,0,0,0); }
  body.nav-open .sidebar { transform: none; box-shadow: 0 0 0 100vmax rgba(17,19,24,.35); }
  .collapse { display: none; }
  html.nav-mini .lbl, html.nav-mini .nav-label { display: initial; }
  .icon-btn.menu-btn { display: grid; }
  .topbar { padding: 12px 16px; gap: 10px; }
  .hello-title { font-size: 16px; }
  .hello-sub { font-size: 12.5px; }
  .date-chip { display: none; }
  .page { padding: 18px 16px 48px; }
  .stats { gap: 10px; }
  .stat { padding: 14px; gap: 10px; }
  .stat-icon { width: 36px; height: 36px; }
  .stat .v { font-size: 20px; }
  .big { font-size: 36px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .dl { grid-template-columns: 110px 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .test-banner { padding: 8px 16px; }
  .table.responsive thead { display: none; }
  .table.responsive tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .table.responsive td { display: flex; justify-content: space-between; gap: 10px; border: 0; padding: 4px 16px; text-align: left; }
  .table.responsive td::before { content: attr(data-label); color: var(--ink-3); font-size: 12.5px; }
}
@media (max-width: 460px) {
  .stats, .today-strip { grid-template-columns: 1fr; }
  details.me > summary .chev { display: none; }
}

@media print {
  .sidebar, .topbar, .test-banner, .no-print, .page-head .cluster { display: none !important; }
  .shell { display: block; }
  body { background: #fff; }
  .panel { border-color: #ccc; }
}
