@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Cinzel:wght@500;600&display=swap");
:root {
  --bg: #120d09; --panel: #1d1712; --panel-2: #271f18; --fg: #f3f0eb; --muted: rgba(243, 240, 235, .68); --line: rgba(255, 255, 255, .1);
  --cream: #f1eee9; --on-cream: #4f4941; --tan: #cbb6a2; --ok: #8fc79a; --warn: #e5b56f; --bad: #e58f83;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; --serif: "Cinzel", Georgia, serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--fg); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(30px, 4vw, 50px); }
h2 { font-size: 21px; }
h3 { font: 600 14px var(--sans); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
.h2-size { font-size: 24px; }
.grow { flex: 1 1 200px; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.wrap { width: min(1180px, 100%); margin: 0 auto; padding: 0 24px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.brand { font-family: var(--serif); font-size: 19px; letter-spacing: .14em; text-decoration: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--panel-2); color: var(--fg); font: 500 13.5px var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: #33291f; }
.btn.primary { background: var(--cream); color: var(--on-cream); font-weight: 600; }
.btn.primary:hover { background: #fff; }
.btn.danger { color: var(--bad); }
.btn.mini { min-height: 32px; padding: 0 12px; font-size: 12.5px; }
.btn:disabled { opacity: .55; cursor: default; }
.card { background: var(--panel); border-radius: 18px; padding: 22px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.stack { display: grid; gap: 18px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
label { display: grid; gap: 5px; font-size: 12.5px; color: var(--muted); min-width: 0; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--input, #15100c); color: var(--fg); font: 14px var(--sans); }
textarea { min-height: 92px; resize: vertical; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--panel-2); font-size: 12px; white-space: nowrap; }
.pill.ok { color: var(--ok); } .pill.warn { color: var(--warn); } .pill.bad { color: var(--bad); }
.error { color: var(--bad); font-size: 13.5px; }
.notice { color: var(--ok); font-size: 13.5px; }
.list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); }
.item > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.empty { color: var(--muted); font-size: 13.5px; }

/* catalogue */
.hero { padding: 54px 0 34px; display: grid; gap: 12px; max-width: 720px; }
.vans { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; padding-bottom: 60px; }
.van { display: grid; grid-template-rows: auto 1fr; background: var(--panel); border-radius: 20px; overflow: hidden; text-decoration: none; transition: transform .2s; }
.van:hover { transform: translateY(-3px); }
.van-pic { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: linear-gradient(135deg, #3a2c21, #15100c); }
.van-txt { display: grid; gap: 8px; padding: 18px 20px 20px; align-content: start; }
.van-n { font-family: var(--serif); color: var(--tan); }
.spec { margin: 2px 0 8px; padding: 0; list-style: none; font-size: 13.5px; color: var(--muted); display: grid; gap: 2px; }
.van .btn { justify-self: start; align-self: end; }

/* sign-in */
.center { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login { width: min(420px, 100%); }

/* phases */
.phases { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; overflow-x: auto; }
.phases li { flex: 1 0 auto; padding: 8px 10px 0; border-top: 3px solid var(--line); font-size: 12px; color: var(--muted); white-space: nowrap; }
.phases li.done { border-color: var(--tan); }
.phases li.now { border-color: var(--cream); color: var(--fg); font-weight: 600; }

/* dashboard and leads */
.page { padding-bottom: 50px; }
.btn.current { background: var(--cream); color: var(--on-cream); }
.btn.current:hover { background: #fff; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.kpi { gap: 4px; }
.kpi strong { font-size: 25px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.pipeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 8px; }
.stage { display: grid; gap: 2px; padding: 12px; border-radius: 10px; background: var(--panel-2); text-decoration: none; }
.stage strong { font-size: 21px; font-weight: 600; }
summary { cursor: pointer; font: 500 15px var(--sans); }
details[open] summary { margin-bottom: 4px; }
.table-wrap { overflow-x: auto; padding: 8px 14px; }
table { width: 100%; min-width: 820px; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 14px; }
th { font-size: 12px; font-weight: 500; color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }

/* client and admin layouts */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 18px; padding-bottom: 50px; }
.admin { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 18px; align-items: start; padding-bottom: 50px; }
.leads { display: grid; gap: 8px; }
.lead { display: grid; gap: 4px; width: 100%; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--panel); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.lead:hover { background: var(--panel-2); }
.lead[aria-current="true"] { outline: 1.5px solid var(--tan); }
.lead strong { overflow-wrap: anywhere; }
.lead .row { gap: 6px; }
.choice { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 10px; background: var(--panel-2); color: var(--fg); font-size: 13.5px; cursor: pointer; }
.choice input { width: auto; margin-top: 4px; }
.choice span { display: grid; }
.linkbox { font-size: 12.5px; }
.sr-only { position: absolute; width: 1px; height: 1px; min-width: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* admin side: a light frame of its own, with the same components drawn from these tokens */
.admin-ui {
  --bg: #e9e8e5; --panel: #fff; --panel-2: #f4f3f1; --fg: #1d1c18; --muted: #65625c; --line: #e2e0dc; --input: #fff;
  --cream: #17171a; --on-cream: #fff; --tan: #5f6b70; --ok: #27724a; --warn: #2f383d; --bad: #ad3f2c; --accent: #a9b2b6; --grad: linear-gradient(135deg, #9fa9ae, #c9cccb 55%, #f0e8dc); --grad-soft: linear-gradient(90deg, #d0d6d9, #f1ebe1);
  color-scheme: light; font-size: 14px;
}
.admin-ui h1, .admin-ui h2 { font-family: var(--sans); }
.admin-ui h1 { font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.admin-ui h2 { font-size: 14.5px; font-weight: 600; }
.admin-ui .btn { gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: 13px; }
.admin-ui .btn:hover { background: var(--panel-2); }
.admin-ui .btn.primary { border-color: var(--cream); background: var(--cream); color: var(--on-cream); }
.admin-ui .btn.primary:hover { background: #33312a; }
.admin-ui .btn.mini { min-height: 32px; padding: 0 16px; font-size: 12.5px; white-space: nowrap; flex: none; }
.admin-ui .card { gap: 16px; border: 0; border-radius: 24px; padding: 16px; background: var(--glass-2); }
.admin-ui .stack, .admin-ui .fields, .admin-ui .admin, .admin-ui .grid-2 { gap: 16px; }
.admin-ui .row, .admin-ui .list, .admin-ui .leads, .admin-ui label { gap: 8px; }
.admin-ui .table-wrap { padding: 0 8px; }
.admin-ui th, .admin-ui td { padding: 16px 8px; }
.admin-ui summary { margin: 0; }
.admin-ui details[open] summary { margin-bottom: 8px; }
.admin-ui .grid-2, .admin-ui .admin { padding-bottom: 0; }
.admin-ui .item { gap: 8px 16px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--glass-3); }
.admin-ui .pill { padding: 0 8px; background: #efeee8; color: #4c4a42; font-size: 11.5px; }
.admin-ui .pill.ok { background: #e4f1e8; color: var(--ok); } .admin-ui .pill.warn { background: var(--grad-soft); color: var(--warn); } .admin-ui .pill.bad { background: #f8e5e1; color: var(--bad); }
.admin-ui input, .admin-ui select, .admin-ui textarea { padding: 8px 16px; background: var(--input); border-radius: 8px; font-size: 13.5px; }
.admin-ui .choice { gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--glass-3); }
.ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* admin frame: logo and pills on top, soft grey page, rounded cards */
/* colours sampled from img/login-van.jpg: hazy sky, warm light, sand, lake */
.admin-ui { --glass: rgba(255, 255, 255, .34); --glass-2: rgba(255, 255, 255, .36); --glass-3: rgba(255, 255, 255, .55); --muted: #4f4c46; --line: rgba(60, 55, 45, .16); background: radial-gradient(90% 70% at 85% 25%, #faeee0 0%, transparent 70%), linear-gradient(170deg, #aaafb3 0%, #c5c6c8 24%, #d6d3ce 46%, #d2cec3 66%, #b8afa2 86%, #a6a8a7 100%) fixed; background-attachment: fixed; }
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .18s ease; }
.shell.collapsed { grid-template-columns: 72px minmax(0, 1fr); }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 24px; padding: 16px 0 16px 16px; --muted: #3a3833; overflow: hidden auto; }
.side-head { display: grid; gap: 16px; padding-right: 16px; }
.side-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.side-tools { display: flex; align-items: center; gap: 8px; }
.side-brand.logo { margin-left: 8px; }
.side-toggle { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border: 0; border-radius: 9px; background: none; color: var(--muted); cursor: pointer; }
.side-toggle:hover { background: var(--glass); color: var(--fg); }
.side-nav { display: grid; gap: 8px; align-content: start; flex: 1; }
.side-link { display: flex; align-items: center; gap: 16px; min-height: 40px; margin-right: 16px; padding: 0 8px; border-radius: 12px; color: var(--muted); font-size: 14px; text-decoration: none; white-space: nowrap; }
.side-link:hover { background: var(--glass); color: var(--fg); }
.side-link[aria-current="page"], .side-link.open { color: var(--fg); font-weight: 600; }
.side-link[aria-current="page"] .ico, .side-link.open .ico { color: var(--tan); }
.side-sub { display: grid; padding: 8px 0 8px 8px; border-radius: 24px 0 0 24px; background: var(--glass); }
.sub-link { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 20px 0 0 20px; color: var(--muted); font-size: 13px; text-decoration: none; white-space: nowrap; }
.sub-link .ico { display: none; }
.sub-link:hover { color: var(--fg); }
.sub-link[aria-current="page"] { background: rgba(255, 255, 255, .72); color: var(--fg); font-weight: 600; }
.side-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.side-count { min-width: 24px; padding: 0 8px; border-radius: 999px; background: rgba(255, 255, 255, .72); color: var(--fg); font-size: 11px; font-weight: 600; text-align: center; }
.sub-link[aria-current="page"] .side-count { background: var(--panel); }
.side-user { display: flex; align-items: center; gap: 8px; min-height: 48px; padding-right: 16px; }
.side-mail { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.collapsed .side-bar { flex-direction: column; }
.collapsed .side-tools { flex-direction: column; }
.collapsed .side-head { justify-items: center; }
.collapsed .side-brand.logo { width: 32px; height: 32px; margin: 0; aspect-ratio: auto; -webkit-mask: url(img/heronys-logo.svg) left center / auto 100% no-repeat; mask: url(img/heronys-logo.svg) left center / auto 100% no-repeat; }
.collapsed .side-label, .collapsed .side-mail { display: none; }
.collapsed .side-link { justify-content: center; padding: 0; }
.collapsed .sub-link { position: relative; justify-content: center; padding: 0 8px 0 0; }
.collapsed .sub-link .ico { display: block; }
.collapsed .side-count { position: absolute; top: 0; right: 8px; min-width: 16px; padding: 0; background: var(--cream); color: var(--on-cream); font-size: 10px; }
.collapsed .side-user { flex-direction: column; }
.content { min-width: 0; margin: 8px 8px 8px 0; border-radius: 24px; background: var(--glass); overflow: clip; }
.topbar { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 24px 24px 0; }
.admin-ui .page-title { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.top-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.today { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 16px; border-radius: 999px; background: var(--glass-2); color: var(--muted); font-size: 12.5px; }
.tool { position: relative; display: grid; place-items: center; width: 32px; height: 32px; flex: none; border: 0; border-radius: 9px; background: none; color: var(--muted); cursor: pointer; }
.tool:hover { background: var(--glass); color: var(--fg); }
.admin-ui .page { width: 100%; margin: 0; padding: 16px 24px 24px; }
@media (max-width: 760px) {
  .shell, .shell.collapsed { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; gap: 16px; padding-bottom: 8px; overflow: visible; }
  .side-toggle { visibility: hidden; }
  .content { margin: 0 8px 8px; border-radius: 24px; }
  .topbar, .admin-ui .page { padding-left: 16px; padding-right: 16px; }
  .today { font-size: 12px; }
}
.round { position: relative; display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); color: var(--fg); cursor: pointer; }
.small-round { width: 30px; height: 30px; }
.badge { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--cream); color: var(--on-cream); font-size: 10.5px; font-weight: 600; line-height: 17px; text-align: center; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--grad); color: var(--fg); font-size: 13px; font-weight: 600; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.dash-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; align-items: center; }
.dash-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.dash-left { display: grid; grid-template-rows: auto 1fr; gap: 16px; min-width: 0; }
.admin-ui .vans-card { position: relative; margin-top: -32px; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.admin-ui .dash-left { margin-top: -32px; position: relative; }
.hero-side { position: relative; z-index: 1; display: grid; gap: 24px; }
.hero-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px 0; }
.fig { display: grid; gap: 8px; padding-left: 16px; border-left: 1px solid #9c9890; min-width: 0; }
.fig p { margin: 0; }
.fig p.small { font-size: 16px; }
.fig strong { font-size: clamp(32px, 3vw, 56px); font-weight: 500; letter-spacing: -.01em; overflow-wrap: anywhere; }
.segs { display: flex; gap: 2px; height: 14px; }
.seg { flex: 1 1 0; min-width: 8px; border-radius: 999px; }
.seg.won { background: var(--cream); }
.seg.sent { background: linear-gradient(90deg, #9fa9ae, #d6d3ce); }
.seg.rest { background: repeating-linear-gradient(135deg, #cfccc6 0 2px, transparent 2px 5px); }
.seg-note { margin: 0; }
.hero-pic { --cx: calc(100% - 602px); --rx: 470px; --soft: 680px; --ry: 650px; --top: 24%; position: relative; height: 460px; margin: -48px -32px 0; pointer-events: none; }
.hero-pic::before, .hero-pic::after { content: ''; position: absolute; top: 0; bottom: 0; background: url(img/login-van.jpg) right 139px top -693px / auto 1750px no-repeat; }
.hero-pic::before { left: -200px; right: -200px; filter: blur(48px); -webkit-mask: radial-gradient(ellipse var(--soft) var(--ry) at var(--cx) 60%, #000 40%, rgba(0,0,0,.72) 58%, rgba(0,0,0,.36) 73%, rgba(0,0,0,.12) 88%, transparent 100%), linear-gradient(to bottom, transparent, rgba(0,0,0,.2) 6%, rgba(0,0,0,.65) 14%, #000 var(--top), #000 86%, transparent); -webkit-mask-composite: source-in; mask: radial-gradient(ellipse var(--soft) var(--ry) at var(--cx) 60%, #000 40%, rgba(0,0,0,.72) 58%, rgba(0,0,0,.36) 73%, rgba(0,0,0,.12) 88%, transparent 100%), linear-gradient(to bottom, transparent, rgba(0,0,0,.2) 6%, rgba(0,0,0,.65) 14%, #000 var(--top), #000 86%, transparent); mask-composite: intersect; }
.hero-pic::after { left: -200px; right: -200px; -webkit-mask: radial-gradient(ellipse var(--rx) var(--ry) at var(--cx) 60%, #000 78%, rgba(0,0,0,.72) 84.6%, rgba(0,0,0,.36) 90.1%, rgba(0,0,0,.12) 95.6%, transparent 100%), linear-gradient(to bottom, transparent, rgba(0,0,0,.2) 6%, rgba(0,0,0,.65) 14%, #000 var(--top), #000 86%, transparent); -webkit-mask-composite: source-in; mask: radial-gradient(ellipse var(--rx) var(--ry) at var(--cx) 60%, #000 78%, rgba(0,0,0,.72) 84.6%, rgba(0,0,0,.36) 90.1%, rgba(0,0,0,.12) 95.6%, transparent 100%), linear-gradient(to bottom, transparent, rgba(0,0,0,.2) 6%, rgba(0,0,0,.65) 14%, #000 var(--top), #000 86%, transparent); mask-composite: intersect; }
.dash-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dash-low > .card, .dash-right > .card { align-content: start; }
.admin-ui .stat { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.stat-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.stat-foot p { margin: 0; }
.stat-n { font-size: 25px; font-weight: 500; letter-spacing: -.01em; }
.barcode { display: flex; align-items: flex-end; height: 40px; }
.tick-hit { display: flex; align-items: flex-end; height: 100%; padding: 0 1px; }
.tick { display: block; width: 2px; background: #8f8b84; }
.tick.on { background: var(--cream); }
.phase-bars { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.phase-bar { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 8px; font-size: 12.5px; text-decoration: none; }
.phase-bar:hover .phase-name { text-decoration: underline; }
.phase-track { display: flex; height: 24px; border-radius: 999px; background: var(--glass-3); overflow: hidden; }
.phase-fill { display: flex; align-items: center; justify-content: flex-end; min-width: 32px; padding: 0 8px; border-radius: 999px; background: var(--cream); color: var(--on-cream); font-size: 11.5px; font-weight: 600; }
.phase-zero { align-self: center; padding: 0 8px; color: var(--muted); font-size: 11.5px; }
.dash-low { display: grid; grid-template-columns: minmax(0, 2.8fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.dash-right { gap: 16px; }
.table-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pick { display: block; width: auto; flex: 0 1 auto; }
.admin-ui .pick select, .admin-ui .pick input { width: auto; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: 13px; }
.pick-search { position: relative; display: flex; align-items: center; margin-left: auto; color: var(--muted); }
.pick-search .ico { position: absolute; left: 16px; pointer-events: none; }
.admin-ui .pick-search input { width: 184px; padding-left: 40px; }
.dash-low .table-wrap { overflow-x: auto; }
.dash-low table { min-width: 760px; }
.admin-ui .vans-card { grid-template-rows: auto auto 1fr; border: 1px solid rgba(255, 255, 255, .38); background: linear-gradient(145deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, .1)); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .45), 0 24px 48px rgba(60, 50, 40, .08); -webkit-backdrop-filter: blur(32px) saturate(1.25); backdrop-filter: blur(32px) saturate(1.25); }
.van-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.van-nav { display: flex; align-items: center; gap: 8px; }
.vans-card .round { border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .34); transition: background .4s cubic-bezier(.22, 1, .36, 1), opacity .4s cubic-bezier(.22, 1, .36, 1), transform .4s cubic-bezier(.22, 1, .36, 1); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.vans-card .round:hover:not(:disabled) { background: rgba(255, 255, 255, .6); transform: scale(1.06); }
.vans-card .round:disabled { opacity: .4; cursor: default; }
.van-tools .pick-search { flex: 1 1 160px; margin-left: 0; }
.admin-ui .van-tools select, .admin-ui .van-tools input { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .34); transition: background .4s cubic-bezier(.22, 1, .36, 1), border-color .4s cubic-bezier(.22, 1, .36, 1); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.admin-ui .van-tools select:hover, .admin-ui .van-tools input:hover, .admin-ui .van-tools input:focus { border-color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .55); }
.admin-ui .van-tools .pick-search input { width: 100%; }
/* two cards in view, the rest slides in sideways */
.van-cards { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 8px) / 2); gap: 8px; min-height: 376px; overflow: auto hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 16px; }
.van-cards::-webkit-scrollbar { display: none; }
.van-cards:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.van-cards.sliding { scroll-snap-type: none; }
.van-cards .empty { grid-column: 1 / -1; align-self: center; text-align: center; }
.van-card { position: relative; border-radius: 16px; background: #120d09; overflow: hidden; scroll-snap-align: start; animation: van-in .7s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes van-in { from { opacity: 0; transform: translateY(8px); } }
.van-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.22, 1, .36, 1); }
.van-card:hover img { transform: scale(1.03); }
.vans-card .van-card .round { position: absolute; top: 8px; right: 8px; color: #fff; border-color: rgba(255, 255, 255, .28); background: rgba(30, 26, 22, .26); }
.vans-card .van-card .round:hover { background: rgba(30, 26, 22, .46); }
/* the frost sits on its own layer so its blur and tint can fade out upwards, with no edge on the photo */
.van-glass { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 8px; padding: 72px 16px 16px; color: #fff; }
.van-glass::before { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(to top, rgba(30, 26, 22, .66), rgba(30, 26, 22, .5) 50%, rgba(30, 26, 22, 0)); -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3); -webkit-mask: linear-gradient(to top, #000 45%, rgba(0, 0, 0, .55) 70%, rgba(0, 0, 0, .15) 88%, transparent); mask: linear-gradient(to top, #000 45%, rgba(0, 0, 0, .55) 70%, rgba(0, 0, 0, .15) 88%, transparent); }
.van-glass > * { position: relative; z-index: 1; }
.van-glass strong { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.van-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.van-tag { padding: 4px 8px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 12px; line-height: 1.2; }
@media (prefers-reduced-motion: reduce) {
  .van-card { animation: none; }
  .van-card img, .vans-card .round { transition: none; }
  .van-card:hover img { transform: none; }
}
.lead-cell { display: flex; align-items: center; gap: 16px; }
.thumb { display: block; width: 40px; height: 32px; flex: none; border-radius: 8px; background: #d8d6d1; object-fit: cover; }
.lead-name { font-weight: 500; text-decoration: none; }
.lead-name:hover { text-decoration: underline; }
.wait { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 16px; border-radius: 16px; background: var(--glass-3); overflow-wrap: anywhere; }
.event { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 16px; background: var(--glass-3); }
.event > div { min-width: 0; overflow-wrap: anywhere; }
.tip { position: fixed; z-index: 20; display: grid; padding: 8px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: 0 8px 24px rgba(40, 36, 20, .14); font-size: 12.5px; pointer-events: none; }
.tip span { color: var(--muted); }
.dash-tasks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.tasks-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
.admin-ui .agenda { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.agenda-part { display: grid; gap: 16px; min-width: 0; }
.agenda-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.agenda-row > .agenda { grid-column: span 2; }
.admin-ui .tasks-card { align-content: start; }
.task { display: flex; align-items: center; gap: 16px; padding: 8px 16px; border-radius: 16px; background: var(--glass-3); }
.task-txt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.task-txt strong { font-weight: 500; }
.task.done .task-txt strong { color: var(--muted); text-decoration: line-through; }
.admin-ui .task-check { width: 16px; height: 16px; flex: none; padding: 0; accent-color: var(--cream); }
.month-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.kind-meeting { --kind: #2f3e4e; } .kind-event { --kind: #8f8778; } .kind-deadline { --kind: #8a4a4f; } .kind-task { --kind: #65625c; }
.next { display: flex; align-items: center; gap: 16px; padding: 8px 16px; border-radius: 16px; background: var(--glass-3); }
.next .ico { color: var(--kind); }
.next strong { font-weight: 500; }
.next-meta { color: var(--muted); font-size: 13px; }
.next.is-today { background: color-mix(in srgb, var(--kind) 20%, #fff); }
.next.is-today strong { font-weight: 600; }
.next.is-today .next-meta { color: color-mix(in srgb, var(--kind) 70%, #000); }
@media (max-width: 1320px) {
  .tasks-layout { grid-template-columns: minmax(0, 1fr); }
}
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.month-head { color: var(--muted); font-size: 12px; text-align: center; }
.day { position: relative; display: grid; justify-items: center; align-content: center; min-height: 40px; padding: 0; border: 0; border-radius: 8px; background: var(--glass-3); color: var(--fg); font: 500 13px var(--sans); cursor: pointer; }
.day:hover { background: var(--panel); }
.day.other { background: none; color: var(--muted); font-weight: 400; }
.day.now .day-n { text-decoration: underline; text-underline-offset: 4px; }
.day.picked { background: var(--cream); color: var(--on-cream); }
.day-dot { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--tan); }
.day.picked .day-dot { background: var(--accent); }
.month.large .day { justify-items: stretch; align-content: start; gap: 8px; min-height: 96px; padding: 8px; text-align: left; overflow: hidden; }
.day-task, .day-more { overflow: hidden; font-size: 11.5px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.day-more { opacity: .75; }
.day-more { opacity: .75; }
@media (max-width: 760px) {
  .dash-tasks { grid-template-columns: minmax(0, 1fr); }
  .month { gap: 8px; }
  .admin-ui .agenda { grid-template-columns: minmax(0, 1fr); }
  .month.large .day { min-height: 40px; padding: 0; justify-items: center; align-content: center; }
  .day-task, .day-more { display: none; }
}
@media (min-width: 1700px) {
  .dash-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1500px) {
  .hero-pic { --cx: calc(100% - 581px); }
  .hero-pic::before, .hero-pic::after { background-position: right 144px top -627px; background-size: auto 1650px; }
}
@media (max-width: 1200px) {
  .dash-hero { grid-template-columns: minmax(0, 1fr); }
  .hero-pic { margin: 0; }
}
@media (max-width: 1100px) {
  .admin-ui .vans-card { margin-top: 0; }
}
@media (max-width: 1000px) {
  .hero-pic { --cx: 50%; --rx: 195px; --soft: 300px; --ry: 280px; --top: 8%; height: 200px; }
  .hero-pic::before, .hero-pic::after { background-position: calc(50% - 12px) -287px; background-size: auto 720px; }
}
@media (max-width: 1100px) {
  .dash-top { grid-template-columns: minmax(0, 1fr); }
  .agenda-row { grid-template-columns: minmax(0, 1fr); }
  .agenda-row > .agenda { grid-column: auto; }
}
@media (max-width: 1320px) {
  .dash-low { grid-template-columns: minmax(0, 1fr); }
  .dash-right { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
}
@media (max-width: 760px) {
  .dash-stats { grid-template-columns: minmax(0, 1fr); }
  .van-cards { grid-auto-columns: 86%; min-height: 320px; }
  .pick-search { margin-left: 0; }
}
@media (max-width: 880px) { .admin { grid-template-columns: minmax(0, 1fr); } .grid-2 { grid-template-columns: minmax(0, 1fr); } }

/* leads page: same glass, white and near-black as the dashboard */
.content.list-mode #topbar { display: none; }
.content.list-mode .page { padding-top: 24px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
#newBox:not([open]) { display: none; }
.admin-ui .schedule { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.schedule .day.picked { background: var(--grad); color: var(--fg); }
.schedule .day.picked .day-dot { background: var(--fg); }
.slots { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.slot { display: flex; align-items: flex-start; gap: 16px; padding: 16px; border-radius: 16px; background: var(--glass-3); color: var(--fg); text-decoration: none; transition: background .3s ease; }
.slot:hover, .next-slot { background: #fff; }
.slot .ico { flex: none; color: var(--kind); }
.slot-time { flex: none; width: 48px; font-size: 13px; font-weight: 500; line-height: 1.5; }
.slot-txt { display: grid; flex: 1; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.slot-title { font-weight: 500; }
.slot-meta, .slot-notes { color: var(--muted); font-size: 13px; line-height: 1.5; }
.slot-done .slot-title { color: var(--muted); text-decoration: line-through; }
.slot .lead-tag { flex: none; }
.ws-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.ws-head .round { width: 48px; height: 48px; border: 0; background: rgba(255, 255, 255, .55); text-decoration: none; }
.admin-ui .ws-title { margin: 0; font-size: clamp(32px, 3.4vw, 48px); font-weight: 400; letter-spacing: .01em; line-height: 1; }
.lead-figs { display: flex; flex-wrap: wrap; gap: 8px 48px; margin-left: 24px; }
.lead-fig { display: flex; align-items: baseline; gap: 8px; }
.lead-fig strong { font-size: clamp(32px, 3.4vw, 48px); font-weight: 400; line-height: 1; }
.lead-fig span { color: var(--muted); font-size: 14px; }
.work { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.work-main, .work-part { display: grid; gap: 16px; min-width: 0; }
.work-main { gap: 32px; }
.work-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.admin-ui .work-head h2 { margin: 0 8px 0 0; font-size: 24px; font-weight: 400; }
.work-count { margin-right: 8px; color: var(--fg); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.work-head .pick-search { margin-left: 0; }
.admin-ui .work-head input { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .34); }
.admin-ui .work-head .pick-search input { width: 144px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { min-height: 40px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; background: rgba(255, 255, 255, .24); color: var(--fg); font: 500 13px var(--sans); cursor: pointer; transition: background .3s ease; }
.chip:hover { background: rgba(255, 255, 255, .5); }
.chip[aria-pressed="true"] { border-color: #fff; background: #fff; }
/* the folder: a tab on the left, and a smooth notch on the right where the round buttons sit */
.folder { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='76' height='60'%3E%3Cpath d='M0 0H6A20 20 0 0 1 26 20A20 20 0 0 0 46 40H56A20 20 0 0 1 76 60H0Z'/%3E%3C/svg%3E") right top / 76px 60px no-repeat, linear-gradient(#000 0 0) left top / calc(100% - 76px + 1px) 60px no-repeat, linear-gradient(#000 0 0) left bottom / 100% calc(100% - 59px) no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='76' height='60'%3E%3Cpath d='M0 0H6A20 20 0 0 1 26 20A20 20 0 0 0 46 40H56A20 20 0 0 1 76 60H0Z'/%3E%3C/svg%3E") right top / 76px 60px no-repeat, linear-gradient(#000 0 0) left top / calc(100% - 76px + 1px) 60px no-repeat, linear-gradient(#000 0 0) left bottom / 100% calc(100% - 59px) no-repeat; }
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: 288px; gap: 16px; align-items: start; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: rgba(60, 55, 45, .3) transparent; }
.kanban:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.kan-col { display: grid; gap: 8px; align-content: start; min-height: 240px; padding: 8px; border-radius: 24px; background: rgba(255, 255, 255, .18); transition: background .3s ease; }
.kan-col.over { background: rgba(255, 255, 255, .5); }
.kan-head { display: flex; align-items: center; justify-content: space-between; padding: 8px; }
.admin-ui .kan-head h3 { margin: 0; font-size: 14px; font-weight: 500; }
.kan-head .work-count { margin: 0; }
.kan-cards { display: grid; gap: 8px; }
.kan-empty { margin: 0; padding: 24px 8px; border: 1px dashed rgba(60, 55, 45, .24); border-radius: 16px; color: var(--muted); font-size: 13px; text-align: center; }
.lead-card { position: relative; cursor: grab; transition: opacity .3s ease; }
.lead-card.dragging { opacity: .4; }
.lead-body { display: grid; gap: 8px; justify-items: start; width: 100%; padding: 16px; border: 0; border-radius: 24px; background: rgba(255, 255, 255, .5); color: var(--fg); font: inherit; text-align: left; cursor: inherit; transition: background .3s ease; }
.lead-body:hover { background: rgba(255, 255, 255, .72); }
.lead-body:focus-visible, .lead-card.chosen .lead-body { background: #fff; outline: 0; }
.lead-card > .round { position: absolute; top: 2px; right: 2px; border: 0; background: rgba(255, 255, 255, .5); }
.lead-title { margin-top: 8px; font-size: 18px; font-weight: 500; line-height: 1.2; overflow-wrap: anywhere; }
.lead-sub { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.lead-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; width: 100%; margin-top: 8px; }
.lead-col { display: grid; gap: 4px; min-width: 0; justify-items: start; }
.lead-col.end { flex: none; justify-items: end; }
.lead-label { color: var(--muted); font-size: 11px; }
.lead-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.lead-tag { padding: 4px 8px; border-radius: 999px; background: rgba(60, 55, 45, .1); font-size: 11.5px; line-height: 1.2; white-space: nowrap; }
.lead-tag.warn { background: var(--grad-soft); color: var(--warn); }
.phase-dots { display: flex; gap: 2px; padding: 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, .6); }
.phase-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(60, 55, 45, .16); }
.phase-dot.on { background: #17171a; }
.round:disabled { opacity: .5; }
.summary { position: sticky; top: 16px; display: grid; gap: 8px; padding: 8px; border-radius: 24px; background: rgba(255, 255, 255, .18); }
.summary-head { display: flex; align-items: center; gap: 8px; padding: 16px; border-radius: 24px; background: #fff; }
.summary-who { flex: 1; min-width: 0; }
.summary-head .round { border: 0; background: var(--panel-2); }
.summary-name { font-size: 18px; font-weight: 500; line-height: 1.2; overflow-wrap: anywhere; }
.summary-sub { margin: 0; color: var(--muted); font-size: 13px; }
.summary-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.summary-facts > div { display: grid; align-content: start; justify-items: start; gap: 4px; padding: 16px; border-radius: 24px; background: rgba(255, 255, 255, .5); min-width: 0; }
.summary-facts strong { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.summary-part { display: grid; gap: 8px; padding: 16px; border-radius: 24px; background: rgba(255, 255, 255, .5); }
.admin-ui .summary h3 { margin: 0; color: var(--muted); font-size: 11px; font-weight: 400; }
.summary-text { margin: 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.summary-docs { display: grid; gap: 4px; }
.summary-doc { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px; border-radius: 16px; background: rgba(255, 255, 255, .6); color: var(--fg); font-size: 12.5px; text-decoration: none; transition: background .3s ease; }
.summary-doc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.summary-doc:hover { background: #fff; }
@media (max-width: 1100px) {
  .work, .admin-ui .schedule { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .lead-figs { margin-left: 0; }
}
@media (max-width: 760px) {
  .lead-figs { gap: 8px 24px; }
  .kanban { grid-auto-columns: 86%; }
}

/* admin sign-in: full screen, the form on a frosted half and the van on the other */
.glass-brand { width: 150px; align-self: flex-start; }
.glass-inner { width: min(400px, 100%); margin: auto; padding: 40px 0; }
.glass-login h1 { margin: 0 0 34px; font: 700 clamp(29px, 3vw, 38px)/1.2 var(--sans); letter-spacing: -.01em; color: #23211d; }
.glass-form { display: grid; gap: 18px; }
.glass-form p { margin: 0; }
.glass-form label { gap: 2px; color: #23211d; font-size: 13.5px; }
.glass-form input { padding: 8px 0 10px; border: 0; border-bottom: 1px solid rgba(35, 33, 29, .6); border-radius: 0; background: transparent; color: #23211d; font-size: 16px; }
.glass-form input:focus { outline: 0; border-bottom-color: #23211d; box-shadow: 0 1px 0 #23211d; }
.glass-form input:-webkit-autofill { -webkit-text-fill-color: #23211d; caret-color: #23211d; transition: background-color 99999s; }
.glass-form .btn { min-height: 50px; font-size: 14.5px; font-weight: 500; }
.glass-form .btn.primary { margin-top: 8px; background: #24242b; color: #fff; box-shadow: 0 12px 24px rgba(30, 30, 36, .3); }
.glass-form .btn.primary:hover { background: #34343c; }
.glass-form .btn:not(.primary) { background: #fff; color: #1d1c18; }
.glass-form .btn:not(.primary):hover { background: #efeee8; }
.glass-form .btn:focus-visible { outline: 2px solid #23211d; outline-offset: 2px; }
.glass-form .error { padding: 8px 12px; border-radius: 10px; background: rgba(110, 24, 14, .72); color: #fff; }
.glass-foot { margin: 0; color: #23211d; }

/* the logo is a mask so each surface can give it the colour it reads on */
.logo { display: block; aspect-ratio: 356 / 82; width: 124px; background: #9a8d84; font-size: 0; -webkit-mask: url(img/heronys-logo.svg) center / contain no-repeat; mask: url(img/heronys-logo.svg) center / contain no-repeat; }
.side-brand.logo { width: 128px; background: #4a443d; }
.glass-brand.logo { width: 150px; background: #23211d; }

/* sign-in layout: the sky and water of the photo stretch softly under the form on the same horizon, the sharp photo fades into them, and a light veil in the same colours keeps the form readable */
.glass-login { color: #23211d; background: #cec9c1; }
.glass-split { position: relative; isolation: isolate; display: grid; grid-template-columns: 42fr 58fr; min-height: 100vh; overflow: hidden; }
.glass-split::before { content: ""; position: absolute; inset: -60px; background: url(img/login-van.jpg) 60px calc(50vh - 68.8vw + 60px) / 300vw 128.1vw no-repeat; filter: blur(30px); }
.glass-split::after { content: ""; position: absolute; inset: 0 auto 0 0; z-index: 1; width: 46vw; background: rgba(226, 222, 214, .5); -webkit-mask: linear-gradient(to right, #000 26vw, rgba(0, 0, 0, .7) 32vw, rgba(0, 0, 0, .3) 39vw, transparent 46vw); mask: linear-gradient(to right, #000 26vw, rgba(0, 0, 0, .7) 32vw, rgba(0, 0, 0, .3) 39vw, transparent 46vw); }
.glass-panel { position: relative; z-index: 2; display: flex; flex-direction: column; padding: 36px clamp(24px, 6vw, 96px) 30px; }
.glass-photo { position: absolute; inset: 0 0 0 30vw; background: url(img/login-van.jpg) 2.8vw calc(50vh - 68.8vw) / 72vw auto no-repeat; -webkit-mask: linear-gradient(to right, transparent 2.8vw, rgba(0, 0, 0, .25) 5.5vw, rgba(0, 0, 0, .75) 9.5vw, #000 12vw); mask: linear-gradient(to right, transparent 2.8vw, rgba(0, 0, 0, .25) 5.5vw, rgba(0, 0, 0, .75) 9.5vw, #000 12vw); }
@media (max-width: 960px) {
  .glass-split { grid-template-columns: minmax(0, 1fr); grid-template-rows: 50vw 1fr; }
  .glass-split::before { display: none; }
  .glass-split::after { inset: calc(50vw - 40px) 0 0 0; width: auto; background: linear-gradient(to bottom, #d3cfc6, #cac6bd 45%, #b4b4af); -webkit-mask: linear-gradient(to bottom, transparent, #000 70px); mask: linear-gradient(to bottom, transparent, #000 70px); }
  .glass-photo { inset: 0; background: url(img/login-van.jpg) -16vw -92vw / 125vw auto no-repeat; -webkit-mask: none; mask: none; }
  .glass-panel { grid-row: 2; padding: 24px 24px 22px; }
  .glass-inner { padding: 28px 0; }
}

/* 3D overviews and van catalogue, inside the dashboard */
.ov-banner { padding: 8px 16px; border-radius: 16px; background: var(--grad-soft); color: var(--warn); font-size: 13px; }
.ov-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ov-stat strong { font-size: 25px; font-weight: 500; line-height: 1.2; }
.admin-ui .ov-stat { gap: 4px; }
.ov-table { min-width: 960px; }
.ov-table td { vertical-align: middle; }
.ov-actions { display: flex; justify-content: flex-end; gap: 4px; }
.admin-ui .ov-actions .btn { padding: 0 12px; }
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.admin-ui .cat-card { grid-template-rows: auto 1fr auto; }
.cat-pic { display: block; width: 100%; padding: 0; border: 0; border-radius: 16px; background: #120d09; overflow: hidden; cursor: pointer; }
.cat-pic img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.2s cubic-bezier(.22, 1, .36, 1); }
.cat-pic:hover img { transform: scale(1.03); }
.cat-txt { display: grid; gap: 8px; align-content: start; padding: 0 8px; }
.admin-ui .cat-txt h2 { font-size: 20px; font-weight: 500; }
.cat-txt .spec { margin: 0; color: var(--muted); }
.cat-users { display: grid; gap: 4px; margin-top: 8px; }
.cat-users .lead-tag { color: var(--fg); text-decoration: none; }
.cat-users .lead-tag:hover { text-decoration: underline; }
.cat-actions { padding: 0 8px 8px; }
.dlg { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 24px; border: 0; border-radius: 24px; background: #f6f5f2; color: var(--fg); box-shadow: 0 24px 64px rgba(30, 26, 22, .3); }
.dlg::backdrop { background: rgba(30, 26, 22, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.dlg-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.dlg-head h2 { margin-right: auto; }
.dlg-foot { justify-content: flex-end; }
.dlg-warn { padding: 8px 16px; border-radius: 16px; background: var(--grad-soft); color: var(--warn); }
.dlg.viewer { width: calc(100vw - 32px); height: calc(100vh - 32px); max-width: none; padding: 16px; }
.dlg.viewer[open] { display: flex; flex-direction: column; }
.dlg.viewer .chip { border-color: var(--line); background: transparent; }
.dlg.viewer .chip[aria-pressed="true"] { border-color: var(--cream); background: var(--cream); color: var(--on-cream); }
.viewer-slot { flex: 1; min-height: 0; border-radius: 16px; background: #120d09; overflow: hidden; }
.viewer-slot iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 1100px) { .cat-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .ov-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* overviews grouped by client */
.ov-groups { display: grid; gap: 8px; }
.ov-group { border-radius: 16px; background: var(--glass-3); }
.ov-group > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0; padding: 8px 16px; list-style: none; cursor: pointer; }
.ov-group > summary::-webkit-details-marker { display: none; }
.ov-group > summary > .ico { transition: transform .2s ease; }
.ov-group[open] > summary > .ico { transform: rotate(90deg); }
.ov-who { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.ov-who strong { display: block; font-weight: 500; }
.ov-group .table-wrap { padding: 0 16px 8px; }
.admin-ui .ov-table th, .admin-ui .ov-table td { padding: 8px; }
.ov-name { display: flex; align-items: center; gap: 8px; }
.admin-ui .ov-table .pick select { min-height: 32px; padding: 0 8px; font-size: 12.5px; }
