/* Venue Clinch — design system. One file, no build step. */
:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --ink: #1d2130;
  --ink-2: #4a5164;
  --ink-3: #626a7d;
  --line: #e4e0d6;
  --line-2: #efece4;
  --brand: #c2410c;
  --brand-ink: #ffffff;
  --brand-soft: #fdeee6;
  --side: #181b26;
  --side-2: #232738;
  --ok: #17703f;      --ok-bg: #e4f4ea;
  --warn: #8a5a00;    --warn-bg: #fdf1d3;
  --err: #b3261e;     --err-bg: #fbe6e4;
  --info: #1d4f91;    --info-bg: #e5eefb;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(24,27,38,.06), 0 4px 16px rgba(24,27,38,.05);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; margin: 0; font: 15px/1.55 var(--font); color: var(--ink); background: var(--bg); font-variant-numeric: tabular-nums; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; } h4 { font-size: .95rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #1d4f91; outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--ink-3); } .small { font-size: .85rem; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); font-size: .85em; }
.stack > * + * { margin-top: 1rem; } .stack-sm > * + * { margin-top: .5rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; } .row.between { justify-content: space-between; }
.grow { flex: 1 1 0; min-width: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: inherit; font-weight: 600; font-size: .92rem; padding: .55rem .95rem; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; min-height: 40px; line-height: 1.2; }
.btn:hover { border-color: #cfc9ba; background: #fbfaf7; }
.btn-primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn-primary:hover { background: #a93608; border-color: #a93608; }
.btn-danger { color: var(--err); border-color: #e6bcb8; } .btn-danger:hover { background: var(--err-bg); }
.btn-sm { padding: .3rem .65rem; min-height: 32px; font-size: .85rem; }
.btn-lg { padding: .8rem 1.3rem; font-size: 1rem; min-height: 48px; }
.btn-link { background: none; border: 0; padding: 0; min-height: 0; color: var(--brand); font-weight: 600; cursor: pointer; text-decoration: underline; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- forms ---------- */
label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .3rem; }
.hint { font-weight: 400; color: var(--ink-3); font-size: .82rem; }
input:not([type]), input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #cfc9ba; border-radius: 8px; padding: .55rem .7rem; min-height: 40px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid #1d4f9133; border-color: #1d4f91; }
input[aria-invalid=true], select[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--err); }
.field { margin-bottom: 1rem; } .field-error { color: var(--err); font-size: .85rem; margin-top: .3rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; } .check input { margin-top: .25rem; width: 18px; height: 18px; flex: none; }
.grid { display: grid; gap: 1rem; } .g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.hp { position: absolute; left: -5000px; height: 0; overflow: hidden; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; box-shadow: var(--shadow); }
.card > h2:first-child, .card > h3:first-child { margin-bottom: .75rem; }
.card-flat { box-shadow: none; }
.alert { padding: .75rem 1rem; border-radius: 8px; border: 1px solid; margin-bottom: 1rem; font-size: .92rem; }
.alert-ok { background: var(--ok-bg); border-color: #b8dfc7; color: var(--ok); }
.alert-err { background: var(--err-bg); border-color: #efc2be; color: var(--err); }
.alert-warn { background: var(--warn-bg); border-color: #ecd596; color: var(--warn); }
.alert-info { background: var(--info-bg); border-color: #bcd2f1; color: var(--info); }
.chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 700; padding: .12rem .55rem; border-radius: 999px; background: #eceae3; color: #3a4052; white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .75; }
.chip-new, .chip-pending_approval, .chip-pending { background: var(--warn-bg); color: var(--warn); }
.chip-contacted, .chip-sent, .chip-viewed, .chip-held { background: var(--info-bg); color: var(--info); }
.chip-quoted { background: #ece8fb; color: #4a3a96; }
.chip-booked, .chip-accepted, .chip-confirmed, .chip-paid { background: var(--ok-bg); color: var(--ok); }
.chip-lost, .chip-declined, .chip-expired, .chip-failed, .chip-rejected, .chip-cancelled { background: var(--err-bg); color: var(--err); }
.tag { font-size: .72rem; font-weight: 700; padding: .1rem .45rem; border-radius: 4px; background: var(--line-2); color: var(--ink-2); }
.tag-measured { background: var(--ok-bg); color: var(--ok); } .tag-estimate { background: var(--warn-bg); color: var(--warn); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); font-weight: 700; padding: .5rem .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: .65rem .6rem; border-bottom: 1px solid var(--line-2); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.empty { text-align: center; padding: 2rem 1rem; color: var(--ink-3); } .empty strong { display: block; color: var(--ink); margin-bottom: .25rem; }

/* ---------- app shell ---------- */
.app { display: grid; grid-template-columns: 232px minmax(0,1fr); min-height: 100vh; }
.side { background: var(--side); color: #c9cde0; padding: 1rem .75rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 800; padding: .25rem .5rem; letter-spacing: -.01em; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--brand); display: grid; place-items: center; color: #fff; font-size: .9rem; flex: none; }
.venue-name { padding: 0 .5rem; font-size: .8rem; color: #8f95ad; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem .65rem; border-radius: 8px; color: #c9cde0; text-decoration: none; font-weight: 500; font-size: .93rem; }
.nav a:hover { background: var(--side-2); color: #fff; }
.nav a[aria-current=page] { background: var(--side-2); color: #fff; box-shadow: inset 3px 0 0 var(--brand); }
.nav .count { background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 0 .45rem; min-width: 20px; text-align: center; }
.nav-sep { font-size: .8rem; font-weight: 600; color: #d4d8e8; padding: .9rem .65rem .25rem; margin-top: .4rem; border-top: 1px solid rgba(255,255,255,.08); }
.side-foot { margin-top: auto; font-size: .85rem; padding: .5rem; border-top: 1px solid #2b3045; }
.side-foot .btn-link { color: #c9cde0; }
.main { padding: 1.5rem clamp(1rem, 3vw, 2.25rem) 3rem; min-width: 0; max-width: 1280px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-head h1 { margin-bottom: .15rem; } .page-head p { margin: 0; color: var(--ink-3); }
.topbar { display: none; }

/* ---------- kpis ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; }
.kpi .label { font-size: .8rem; color: var(--ink-3); font-weight: 600; display: flex; gap: .4rem; align-items: center; justify-content: space-between; }
.kpi .value { font-size: 1.7rem; font-weight: 750; letter-spacing: -.02em; margin: .15rem 0; }
.kpi .sub { font-size: .8rem; color: var(--ink-3); }

/* ---------- kanban ---------- */
.board { display: grid; grid-template-columns: repeat(5, minmax(210px, 1fr)); gap: .85rem; overflow-x: auto; padding-bottom: .5rem; align-items: start; }
.col { background: #efece4; border-radius: var(--radius); padding: .6rem; min-height: 120px; }
.col h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); margin: .2rem .3rem .6rem; display: flex; justify-content: space-between; }
.lead-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .65rem .75rem; margin-bottom: .5rem; text-decoration: none; color: var(--ink); }
.lead-card:hover { border-color: #cbb9a8; box-shadow: var(--shadow); }
.lead-card .name { font-weight: 650; } .lead-card .meta { font-size: .8rem; color: var(--ink-3); margin-top: .15rem; }
.score { display: inline-block; font-size: .72rem; font-weight: 700; padding: 0 .4rem; border-radius: 4px; background: var(--line-2); }
.score-hi { background: var(--ok-bg); color: var(--ok); } .score-mid { background: var(--warn-bg); color: var(--warn); }

/* ---------- timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); margin-left: .4rem; }
.timeline li { position: relative; padding: 0 0 1rem 1.1rem; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: .35rem; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid #b9b3a3; }
.timeline li.t-message::before, .timeline li.t-quote::before { border-color: var(--info); } .timeline li.t-payment::before, .timeline li.t-booking::before { border-color: var(--ok); }
.timeline .when { font-size: .78rem; color: var(--ink-3); }
.timeline .what { font-size: .92rem; overflow-wrap: anywhere; }

/* ---------- misc ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.dl { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .4rem 1rem; margin: 0; font-size: .92rem; } .dl dt { color: var(--ink-3); } .dl dd { margin: 0; overflow-wrap: anywhere; }
.list-clean { list-style: none; padding: 0; margin: 0; } .list-clean li { padding: .55rem 0; border-bottom: 1px solid var(--line-2); } .list-clean li:last-child { border-bottom: 0; }
.checklist li { display: flex; gap: .6rem; align-items: center; }
.tick { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c3bdaa; display: inline-grid; place-items: center; flex: none; font-size: .7rem; color: #fff; }
.tick.done { background: var(--ok); border-color: var(--ok); }
.bar { height: 10px; background: var(--line-2); border-radius: 999px; overflow: hidden; } .bar > span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.funnel-row { display: grid; grid-template-columns: 7rem 1fr 5.5rem; gap: .75rem; align-items: center; padding: .35rem 0; font-size: .9rem; }
.price-lines td:last-child, .price-lines th:last-child { text-align: right; }
.price-total td { font-weight: 750; font-size: 1.05rem; border-top: 2px solid var(--ink); }
details > summary { cursor: pointer; font-weight: 600; } details[open] > summary { margin-bottom: .6rem; }
.pill-tabs { display: inline-flex; background: #ece8dd; border-radius: 8px; padding: 3px; gap: 2px; }
.pill-tabs a { padding: .3rem .8rem; border-radius: 6px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .88rem; }
.pill-tabs a[aria-current=true] { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
code, pre { font-family: var(--mono); font-size: .85em; } pre { background: #1b1f2d; color: #e6e9f5; padding: .9rem 1rem; border-radius: 8px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
:not(pre) > code { background: var(--line-2); padding: .1rem .35rem; border-radius: 4px; }

/* ---------- public / proposal / embed ---------- */
.pub-wrap { max-width: 760px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.pub-head { display: flex; align-items: center; gap: .7rem; padding: .5rem 0 1.25rem; font-weight: 800; font-size: 1.1rem; }
.pub-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--brand); }
.proposal .total { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.pub-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem; box-shadow: var(--shadow); }
.embed-body { background: transparent; }
.embed-body .pub-wrap { padding: .25rem; }

/* ---------- marketing ---------- */
.m-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1rem, 4vw, 2.5rem); max-width: 1180px; margin: 0 auto; flex-wrap: wrap; }
.m-nav nav { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; } .m-nav nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .93rem; } .m-nav nav a:hover { color: var(--brand); }
.m-brand { display: flex; gap: .55rem; align-items: center; text-decoration: none; color: var(--ink); font-weight: 800; }
.m-wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.hero { padding: clamp(2.5rem, 7vw, 5rem) 0 2.5rem; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.03em; line-height: 1.05; }
.hero .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36rem; }
.section { padding: 3rem 0; } .section h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.02em; }
.band { background: #fff; border-block: 1px solid var(--line); }
.feature { padding: 1.1rem 0; border-top: 1px solid var(--line); } .feature:first-child { border-top: 0; }
.plan { display: flex; flex-direction: column; gap: .75rem; } .plan .price { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; } .plan .price small { font-size: .9rem; font-weight: 500; color: var(--ink-3); }
.plan.featured { border: 2px solid var(--brand); }
.prose { max-width: 44rem; } .prose h2 { margin-top: 2rem; } .prose ol, .prose ul { padding-left: 1.25rem; } .prose li { margin-bottom: .4rem; }
.answer { border-left: 4px solid var(--brand); background: var(--brand-soft); padding: .9rem 1.1rem; border-radius: 0 8px 8px 0; margin: 1rem 0 1.5rem; }
.crumbs { font-size: .85rem; color: var(--ink-3); padding: .25rem 0 1rem; } .crumbs a { color: var(--ink-3); }
.m-foot { border-top: 1px solid var(--line); padding: 2rem 0 3rem; margin-top: 3rem; color: var(--ink-3); font-size: .9rem; }
.m-foot a { color: var(--ink-2); }
.mock-ui { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 40px rgba(24,27,38,.1); padding: 1rem; font-size: .88rem; }
.mock-ui .mrow { display: flex; justify-content: space-between; gap: .75rem; padding: .55rem .2rem; border-bottom: 1px solid var(--line-2); align-items: center; } .mock-ui .mrow:last-child { border-bottom: 0; }
.calc-out { background: var(--brand-soft); border: 1px solid #f3c9b5; border-radius: 10px; padding: 1rem 1.25rem; } .calc-out .big { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }

@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 50; transform: translateX(-102%); transition: transform .2s; height: 100dvh; }
  body.nav-open .side { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); }
  .topbar { display: flex; align-items: center; gap: .75rem; padding: .6rem 1rem; background: var(--side); color: #fff; position: sticky; top: 0; z-index: 40; }
  .topbar .btn { background: transparent; color: #fff; border-color: #3a4058; }
  .two-col, .hero, .g3, .g4 { grid-template-columns: 1fr; }
  .g2 { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 1fr; gap: 0; } .dl dt { margin-top: .5rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print {
  .side, .topbar, .no-print, .btn, .m-nav, .m-foot { display: none !important; }
  body { background: #fff; } .app { display: block; } .pub-card, .card { box-shadow: none; border: 0; }
}

/* ---------- calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cal-h { background: #efece4; padding: .4rem .5rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.cal-c { background: #fff; min-height: 96px; padding: .3rem .35rem; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-empty { background: #faf9f5; }
.cal-today { background: var(--brand-soft); }
.cal-d { font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.cal-e { display: block; font-size: .72rem; line-height: 1.25; padding: 2px 5px; border-radius: 4px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-confirmed { background: var(--ok-bg); color: var(--ok); }
.cal-held { background: var(--warn-bg); color: var(--warn); border: 1px dashed #d9b86a; }
@media (max-width: 700px) { .cal-c { min-height: 64px; } .cal-e { font-size: .65rem; } }
.alert-flag { background: #fff4e5; border: 1px solid #f1c98b; color: #7a4a00; }

/* nav buttons keep their own contrast inside the marketing nav */
.m-nav nav a.btn-primary { color: var(--brand-ink); }
.m-nav nav a.btn-primary:hover { color: var(--brand-ink); }
.prose blockquote { border-left: 3px solid var(--line); margin: 1rem 0; padding: .1rem 1rem; color: var(--ink-2); }
.prose img { max-width: 100%; height: auto; border-radius: 8px; }
.logo-mark { flex: none; display: block; }
/* Logo: ring and V draw in, the spark pops, a soft gloss sweeps across. Replays on hover of the brand link. */
.logo-mark { flex: none; display: block; overflow: visible; filter: drop-shadow(0 3px 6px rgba(8,16,40,.35)); }
.logo-mark .lm-ring { stroke-dasharray: 82; animation: lm-draw .8s cubic-bezier(.65,0,.35,1) backwards; }
.logo-mark .lm-v { stroke-dasharray: 52; animation: lm-draw .6s .55s cubic-bezier(.65,0,.35,1) backwards; }
.logo-mark .lm-dot { transform-box: fill-box; transform-origin: center; animation: lm-dot .5s 1.1s cubic-bezier(.34,1.56,.64,1) backwards; }
.logo-mark .lm-shine { animation: lm-shine 1.2s 1.3s ease-in-out backwards; }
@keyframes lm-draw { from { stroke-dashoffset: 82; } to { stroke-dashoffset: 0; } }
@keyframes lm-dot { from { opacity: 0; transform: scale(0); } }
@keyframes lm-shine { from { transform: translateX(0) rotate(20deg); } to { transform: translateX(110px) rotate(20deg); } }
a:hover > .logo-mark .lm-ring, a:hover > .logo-mark .lm-v { animation: lm-draw2 .7s cubic-bezier(.65,0,.35,1); } @keyframes lm-draw2 { from { stroke-dashoffset: 82; } to { stroke-dashoffset: 0; } }
a:hover > .logo-mark .lm-dot { animation: lm-dot2 .5s .5s cubic-bezier(.34,1.56,.64,1) backwards; } @keyframes lm-dot2 { from { opacity: 0; transform: scale(0); } }
a:hover > .logo-mark .lm-shine { animation: lm-shine2 .9s ease-in-out; } @keyframes lm-shine2 { from { transform: translateX(0) rotate(20deg); } to { transform: translateX(110px) rotate(20deg); } }
.wm { letter-spacing: .005em; font-weight: 700; } .wm b { color: #f0a85c; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .logo-mark * { animation: none !important; } }
.guide { padding-left: 1.25rem; } .guide li { margin: .6rem 0; line-height: 1.55; }

.waiver-text { max-height: 18rem; overflow: auto; padding: .9rem 1rem; margin: .75rem 0 1rem; background: #faf9f5; border: 1px solid var(--line); border-radius: 10px; font-size: .92rem; line-height: 1.6; }
.cal-block { background: repeating-linear-gradient(135deg, #f1ede4 0 6px, #e9e4d8 6px 12px); color: var(--ink-2); font-size: .7rem; padding: 2px 5px; border-radius: 4px; }
.cal-c.cal-closed { background: #f6f3ec; }

/* ---------- Motion polish for the app (decorative, off for prefers-reduced-motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  main .card, main .page-head { animation: rise-in .5s cubic-bezier(.16,1,.3,1) both; }
  main .card:nth-of-type(2) { animation-delay: .05s; } main .card:nth-of-type(3) { animation-delay: .1s; }
  main .card:nth-of-type(4) { animation-delay: .15s; } main .card:nth-of-type(n+5) { animation-delay: .2s; }
  @keyframes rise-in { from { opacity: 0; transform: translateY(10px); } }
  .btn { transition: transform .15s cubic-bezier(.16,1,.3,1), box-shadow .2s, background-color .2s, border-color .2s; }
  .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(24,27,38,.12); }
  .btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
  .nav a { transition: background-color .2s, color .2s, padding-left .2s; }
  .nav a:hover { padding-left: .85rem; }
  .bar > span { transition: width .9s cubic-bezier(.16,1,.3,1); animation: bar-grow 1s cubic-bezier(.16,1,.3,1) both; transform-origin: left; }
  @keyframes bar-grow { from { transform: scaleX(0); } }
  .lead-card { transition: transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s, border-color .2s; }
  .lead-card:hover { transform: translateY(-2px); }
  .cal-e { transition: transform .15s, box-shadow .15s; } .cal-e:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(24,27,38,.15); }
  .up-list li { animation: rise-in .45s cubic-bezier(.16,1,.3,1) both; } .up-list li:nth-child(2) { animation-delay: .06s; } .up-list li:nth-child(3) { animation-delay: .12s; } .up-list li:nth-child(n+4) { animation-delay: .18s; }
}
.up-list li { padding: .5rem 0; border-bottom: 1px solid var(--line-2); } .up-list li:last-child { border: 0; }
@media print { main .card { animation: none !important; } }

/* ---------- Help agent, chat widget, calendar views, rooms ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.help-fab, .chat-fab { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60; border: 0; cursor: pointer; color: #fff; font-weight: 800; background: linear-gradient(135deg, #22345c, #0f1b36); box-shadow: 0 10px 28px rgba(8,16,40,.4), inset 0 1px 0 rgba(255,255,255,.18); transition: transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s; }
.help-fab { width: 3rem; height: 3rem; border-radius: 50%; font-size: 1.3rem; } .chat-fab { padding: .8rem 1.2rem; border-radius: 999px; font-size: .95rem; background: linear-gradient(135deg, #f0a85c, #d9733a); color: #1a1008; }
.help-fab:hover, .chat-fab:hover { transform: translateY(-2px) scale(1.04); } .help-fab:focus-visible, .chat-fab:focus-visible { outline: 3px solid #f0a85c; outline-offset: 3px; }
.help-panel, .chat-panel { position: fixed; right: 1.25rem; bottom: 5rem; z-index: 61; width: min(380px, calc(100vw - 2rem)); height: min(560px, calc(100vh - 7rem)); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(8,16,40,.3); display: flex; flex-direction: column; overflow: hidden; opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .2s, transform .25s cubic-bezier(.16,1,.3,1); }
.help-panel[hidden], .chat-panel[hidden] { display: none; } .help-panel.on, .chat-panel.on { opacity: 1; transform: none; }
.help-panel > header, .chat-panel > header { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; background: linear-gradient(135deg, #22345c, #0f1b36); color: #fff; }
.help-close { background: none; border: 0; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 .3rem; }
.help-log { flex: 1; overflow: auto; padding: .9rem; display: flex; flex-direction: column; gap: .6rem; background: #faf9f5; }
.help-msg { max-width: 88%; padding: .6rem .8rem; border-radius: 14px; font-size: .92rem; line-height: 1.5; white-space: pre-line; animation: rise-in .3s cubic-bezier(.16,1,.3,1) both; }
.help-msg.bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; } .help-msg.me { background: #22345c; color: #fff; align-self: flex-end; } .help-msg.wait { opacity: .6; }
.help-src { margin-top: .5rem; font-size: .8rem; color: var(--ink-3); white-space: normal; } .chat-link { display: inline-block; margin-top: .4rem; font-weight: 700; }
.help-chips { display: flex; gap: .4rem; flex-wrap: wrap; padding: .5rem .9rem 0; } .help-chips button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .25rem .7rem; font-size: .8rem; cursor: pointer; } .help-chips button:hover { border-color: #22345c; }
.help-form { display: flex; gap: .5rem; padding: .8rem .9rem; border-top: 1px solid var(--line); background: #fff; } .help-form input { flex: 1; }
.chat-leave { padding: .8rem .9rem; border-top: 1px solid var(--line); background: #fff; display: grid; gap: .3rem; overflow: auto; max-height: 60%; } .chat-leave[hidden] { display: none; }
.help-i { display: inline-grid; place-items: center; width: 1.15rem; height: 1.15rem; margin-left: .35rem; border-radius: 50%; border: 1px solid #b9c2d6; background: #fff; color: #22345c; font-size: .72rem; font-weight: 800; line-height: 1; cursor: pointer; vertical-align: middle; padding: 0; transition: background .15s, color .15s, transform .15s; } .help-i:hover, .help-i:focus-visible { background: #22345c; color: #fff; transform: scale(1.12); }
.seg { display: inline-flex; background: #ece8de; border-radius: 10px; padding: 3px; } .seg a { padding: .3rem .8rem; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .88rem; } .seg a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(24,27,38,.15); }
.cal-tools { flex-wrap: wrap; gap: .5rem; align-items: center; }
.cal-week { grid-template-columns: repeat(7, minmax(0, 1fr)); } .cal-tall { min-height: 220px; }
.cal-add { color: inherit; text-decoration: none; padding: 0 .25rem; border-radius: 4px; } .cal-add:hover { background: var(--brand-soft); color: var(--brand); }
.cal-plus { text-decoration: none; font-weight: 800; color: var(--brand); padding: 0 .3rem; border-radius: 4px; } .cal-plus:hover { background: var(--brand-soft); }
.cal-note { background: #fff6d6; color: #6b4a00; border-left: 3px solid #e0b43a; font-size: .7rem; padding: 2px 5px; border-radius: 4px; display: flex; justify-content: space-between; gap: .3rem; }
.cal-hours { background: #e5eefb; color: #1d4f91; font-size: .7rem; padding: 2px 5px; border-radius: 4px; } .cal-x { background: none; border: 0; cursor: pointer; font-size: 1rem; line-height: 1; color: inherit; padding: 0 .2rem; opacity: .6; } .cal-x:hover { opacity: 1; }
.room-dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; margin-right: .5rem; vertical-align: middle; }
.tl { min-width: 720px; } .tl-row { display: grid; grid-template-columns: 170px 1fr; border-bottom: 1px solid var(--line-2); min-height: 52px; } .tl-name { padding: .7rem .8rem; font-weight: 600; display: flex; flex-direction: column; justify-content: center; } .tl-name small { color: var(--ink-3); font-weight: 400; }
.tl-track { position: relative; background-image: linear-gradient(90deg, var(--line-2) 1px, transparent 1px); background-size: calc(100% / var(--cols)) 100%; } .tl-head { min-height: 34px; background: #efece4; font-size: .72rem; color: var(--ink-3); } .tl-head .tl-track { display: flex; background: none; } .tl-head span { padding: .5rem 0 0 .3rem; }
.tl-ev { position: absolute; top: 8px; bottom: 8px; border-radius: 8px; color: #fff; font-size: .75rem; padding: .3rem .5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; box-shadow: 0 2px 8px rgba(24,27,38,.2); transition: transform .15s; } .tl-ev:hover { transform: translateY(-2px); } .tl-held { opacity: .75; outline: 2px dashed rgba(255,255,255,.7); outline-offset: -4px; }
.cal-hours + .cal-e, .cal-note + .cal-e { margin-top: 2px; }
@media print { .help-fab, .help-panel, .chat-fab, .chat-panel { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .help-panel, .chat-panel, .help-msg { transition: none; animation: none; } }

.promo-strip { background: linear-gradient(90deg, #f0a85c, #d9733a); color: #1a1008; text-align: center; padding: .55rem 1rem; font-size: .92rem; font-weight: 600; } .promo-strip a { color: #1a1008; text-decoration: underline; }

/* ---------- Master admin dashboard ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.2rem; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.kpi::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, #f0a85c, #d9733a); }
.kpi small { display: block; color: var(--ink-3); font-size: .82rem; font-weight: 600; margin-bottom: .35rem; }
.kpi strong { display: block; font-size: 1.9rem; letter-spacing: -.03em; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.kpi span { display: block; margin-top: .3rem; color: var(--ink-3); font-size: .82rem; } .kpi .up { color: var(--ok); font-weight: 600; } .kpi .down { color: var(--err); font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: .35rem; height: 170px; padding-top: .5rem; } .bars-tall { height: 240px; }
.bcol { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .3rem; }
.bcol .bar { width: 100%; max-width: 34px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #f0a85c, #d9733a); transition: height .8s cubic-bezier(.16,1,.3,1); transform-origin: bottom; animation: bar-up .9s cubic-bezier(.16,1,.3,1) both; }
.bars-b .bcol .bar { background: linear-gradient(180deg, #4a73c4, #22345c); }
.bcol small { color: var(--ink-3); font-size: .68rem; } .bcol .bv { font-size: .62rem; white-space: nowrap; }
@keyframes bar-up { from { transform: scaleY(0); } }
.staff-row { display: grid; grid-template-columns: 220px 1fr auto; gap: 1rem; align-items: start; padding: 1rem .4rem; border-top: 1px solid var(--line-2); }
.perm-grid { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .3rem .8rem; } .perm-grid legend { font-weight: 700; margin-bottom: .4rem; padding: 0; }
@media (max-width: 860px) { .staff-row { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .bcol .bar { animation: none; } }
