/* Baughman Brandworks Business Dashboard (demo).
   Same look as baughmanbrandworks.com: night spruce and lake water, birch-white type,
   lantern-amber accent, Archivo, square corners, photos framed like prints. Dark for everyone. */
@font-face { font-family: "Archivo"; src: url(fonts/archivo-latin.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }

:root {
  --paper: #0e1714;
  --paper-2: #13211c;
  --lake: #10222a;
  --ink: #e8ebe4;
  --ink-2: #c4ccc3;
  --muted: #93a199;
  --rule: rgba(232, 235, 228, 0.16);
  --rule-strong: rgba(232, 235, 228, 0.42);
  --line: #2a3a33;
  --spruce: #a9c9b4;
  --accent: #e2a54b;
  --accent-2: #ecb867;
  --on-accent: #0e1714;
  --danger: #e58a6f;
  --shadow: rgba(0, 0, 0, 0.55);
  --side: 264px;
  --bar: 40px;
  --gutter: clamp(16px, 3vw, 36px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.5 "Archivo", system-ui, sans-serif; font-stretch: 100%;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 400; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
p { margin: 0 0 0.8em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 600; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Demo bar ---------- */
.demo-bar {
  position: sticky; top: 0; z-index: 90; min-height: var(--bar);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 6px max(var(--gutter), env(safe-area-inset-right)) 6px max(var(--gutter), env(safe-area-inset-left));
  padding-top: max(6px, env(safe-area-inset-top));
  background: #0a110e; border-bottom: 1px solid var(--rule); font-size: 0.86rem; color: var(--ink-2);
}
.demo-pill { background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 8px; }
.demo-text { flex: 1 1 260px; }
.demo-link { background: none; border: 0; padding: 4px 2px; cursor: pointer; font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.demo-link:hover { color: var(--accent); }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: calc(100vh - var(--bar)); min-height: calc(100svh - var(--bar)); }
.side {
  position: sticky; top: var(--bar); align-self: start; height: calc(100vh - var(--bar)); height: calc(100svh - var(--bar));
  overflow-y: auto; overscroll-behavior: contain; border-right: 1px solid var(--rule); background: var(--paper-2);
  padding: 22px 18px 20px; display: flex; flex-direction: column; gap: 6px;
}
.side-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.side-brand img { width: 40px; filter: invert(1) brightness(0.93); }
.side-brand span { font-weight: 800; font-stretch: 125%; text-transform: uppercase; font-size: 0.92rem; line-height: 1; }
.side-brand b { display: block; font-weight: 800; }
.side-sub { margin: 10px 0 14px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.side-nav { display: grid; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; background: none; cursor: pointer;
  text-align: left; font-weight: 600; font-size: 0.97rem; color: var(--ink-2); border-left: 3px solid transparent;
  transition: background-color 0.15s, color 0.15s;
}
.nav-item:hover { background: rgba(232, 235, 228, 0.05); color: var(--ink); }
.nav-item[aria-current="page"] { color: var(--ink); background: rgba(226, 165, 75, 0.1); border-left-color: var(--accent); }
.nav-item[aria-current="page"] svg { color: var(--accent); }
.nav-item .badge { margin-left: auto; }
.nav-sep { margin: 14px 12px 6px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.badge { min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: 0.74rem; font-weight: 800; }

.side-tut { margin-top: 18px; border: 1px solid var(--rule); background: var(--lake); padding: 14px; }
.side-tut h2 { font-size: 0.95rem; font-stretch: 110%; margin-bottom: 4px; }
.side-tut p { font-size: 0.84rem; color: var(--muted); margin: 0 0 10px; }
.progress { height: 6px; background: var(--line); margin-bottom: 10px; }
.progress span { display: block; height: 100%; background: var(--accent); transition: width 0.5s var(--ease); }
.checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 0.88rem; color: var(--ink-2); border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; }
.checklist button { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: inherit; }
.checklist button:hover { color: var(--accent); }
.tick { width: 18px; height: 18px; flex: none; border: 1.5px solid var(--rule-strong); display: grid; place-items: center; margin-top: 1px; }
.tick svg { width: 13px; height: 13px; stroke-width: 3; }
.checklist li.done { color: var(--muted); }
.checklist li.done .tick { background: var(--spruce); border-color: var(--spruce); color: var(--paper); }
.checklist li.done button { text-decoration: line-through; text-decoration-color: var(--muted); }
.side-cta { margin-top: auto; padding: 14px; border: 1.5px solid var(--accent); text-decoration: none; font-size: 0.86rem; color: var(--ink-2); display: block; }
.side-cta span { display: block; margin-top: 2px; font-weight: 800; font-stretch: 115%; color: var(--accent); font-size: 1rem; }
.side-cta:hover { background: var(--accent); color: var(--on-accent); }
.side-cta:hover span { color: var(--on-accent); }

.main { min-width: 0; padding: 0 0 64px; outline: none; }
.topbar {
  display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap;
  padding: clamp(22px, 3vw, 36px) var(--gutter) 20px; border-bottom: 1px solid var(--rule);
}
.topbar-title { flex: 1 1 280px; min-width: 0; }
.topbar h1 { font-stretch: 125%; text-transform: uppercase; font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 0.98; }
.topbar-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.view { padding: 24px var(--gutter) 0; }
.topbar .only-mob { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px;
  border: 1.5px solid var(--rule-strong); background: transparent; color: var(--ink); cursor: pointer;
  font-weight: 700; font-stretch: 108%; font-size: 0.95rem; line-height: 1.1; text-decoration: none; white-space: nowrap;
  transition: transform 0.18s var(--ease), background-color 0.18s, border-color 0.18s, color 0.18s;
}
.btn:hover { color: var(--ink); border-color: var(--ink); background: rgba(232, 235, 228, 0.06); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--on-accent); }
.btn--sm { padding: 7px 11px; font-size: 0.86rem; }
.btn--ghost { border-color: transparent; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 1px solid var(--rule); cursor: pointer; color: var(--ink); }
.icon-btn:hover { border-color: var(--ink); }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--accent); }

/* ---------- "In short" helper (tutorial voice) ---------- */
.howto { border-left: 4px solid var(--accent); padding: 4px 0 4px 18px; margin: 0 0 24px; max-width: 78ch; }
.howto .eyebrow { margin-bottom: 4px; }
.howto p { margin: 0; color: var(--ink-2); }
.howto .replaces { margin-top: 6px; font-size: 0.9rem; color: var(--muted); }
.howto .replaces b { color: var(--spruce); }

/* ---------- Panels ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 20px; align-items: start; }
.grid-2e { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.panel { border: 1px solid var(--rule); background: var(--paper-2); min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--rule); }
.panel-head h2 { font-size: 1.05rem; font-stretch: 112%; text-transform: uppercase; letter-spacing: 0.02em; }
.panel-body { padding: 16px 18px; }
.empty { padding: 22px 18px; color: var(--muted); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule); background: var(--lake); margin-bottom: 20px; }
.kpi { padding: 18px 20px; border-left: 1px solid var(--rule); min-width: 0; }
.kpi:first-child { border-left: 0; }
.kpi dt { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.kpi dd { margin: 8px 0 0; font-weight: 800; font-stretch: 125%; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.kpi small { display: block; margin-top: 6px; color: var(--ink-2); font-size: 0.84rem; }

/* Rows (schedule items, lists) */
.rows > li { border-top: 1px solid var(--line); }
.rows > li:first-child { border-top: 0; }
.row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 18px; background: none; border: 0; text-align: left; cursor: pointer; color: inherit; }
button.row:hover, a.row:hover { background: rgba(232, 235, 228, 0.04); }
.row-time { width: 74px; flex: none; font-weight: 800; font-stretch: 112%; font-variant-numeric: tabular-nums; }
.row-time small { display: block; font-weight: 600; font-stretch: 100%; color: var(--muted); font-size: 0.78rem; }
.row-main { flex: 1; min-width: 0; }
.row-main strong { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-main span { display: block; color: var(--muted); font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-end { flex: none; display: flex; gap: 8px; align-items: center; }
.thumb { width: 52px; height: 52px; flex: none; border: 2px solid var(--ink); overflow: hidden; background: var(--lake); }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.dot { width: 10px; height: 10px; flex: none; }
.dot--class { background: var(--spruce); }
.dot--session { background: var(--accent); }

.tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border: 1.5px solid var(--rule-strong); font-size: 0.76rem; font-weight: 700; white-space: nowrap; }
.tag--class { border-color: var(--spruce); color: var(--spruce); }
.tag--session { border-color: var(--accent); color: var(--accent); }
.tag--paid { border-color: var(--spruce); color: var(--spruce); }
.tag--due { border-color: var(--accent); color: var(--accent); }
.tag--overdue { border-color: var(--danger); color: var(--danger); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.avatars { display: flex; }
.av { width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid var(--paper-2); margin-left: -8px; font-size: 0.72rem; font-weight: 800; color: var(--paper); background: var(--spruce); }
.av:first-child { margin-left: 0; }
.av--more { background: var(--line); color: var(--ink); }
.av-lg { width: 44px; height: 44px; font-size: 0.95rem; margin: 0; border: 0; }

.attention li { display: flex; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); align-items: flex-start; }
.attention li:first-child { border-top: 0; }
.attention .i { color: var(--accent); margin-top: 2px; }
.attention p { margin: 0; font-size: 0.94rem; }
.attention p span { color: var(--muted); display: block; font-size: 0.86rem; }
.attention .row-end { margin-left: auto; }

.feed li { display: flex; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--ink-2); }
.feed li:first-child { border-top: 0; }
.feed time { margin-left: auto; color: var(--muted); font-size: 0.8rem; white-space: nowrap; }

/* ---------- Schedule ---------- */
.weeknav { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.weeknav strong { font-stretch: 112%; font-size: 1.05rem; min-width: 190px; }
.legend { display: flex; gap: 16px; margin-left: auto; font-size: 0.86rem; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.day { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); min-height: 260px; min-width: 0; background: var(--paper-2); }
.day-head { padding: 10px 10px 8px; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 6px; }
.day-head b { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.day-head span { font-weight: 800; font-stretch: 120%; font-size: 1.2rem; }
.day.is-today { background: var(--lake); }
.day.is-today .day-head span { color: var(--accent); }
.day-items { padding: 8px; display: grid; gap: 6px; }
.ev { display: block; width: 100%; text-align: left; padding: 7px 8px; border: 0; border-left: 3px solid var(--spruce); background: rgba(169, 201, 180, 0.1); cursor: pointer; font-size: 0.8rem; line-height: 1.25; }
.ev--session { border-left-color: var(--accent); background: rgba(226, 165, 75, 0.1); }
.ev:hover { background: rgba(232, 235, 228, 0.1); }
.ev b { display: block; font-variant-numeric: tabular-nums; }
.ev span { display: block; color: var(--ink-2); overflow-wrap: anywhere; }

/* ---------- Classes ---------- */
.class-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.ccard { border: 1px solid var(--rule); background: var(--paper-2); display: flex; flex-direction: column; min-width: 0; }
.ccard-img { aspect-ratio: 16 / 8; overflow: hidden; border-bottom: 4px solid var(--ink); position: relative; background: var(--lake); }
.ccard-img img { width: 100%; height: 100%; object-fit: cover; }
.ccard-img .when { position: absolute; left: 12px; bottom: 12px; background: var(--paper); padding: 6px 10px; font-weight: 800; font-stretch: 112%; font-size: 0.86rem; }
.ccard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ccard h3 { font-size: 1.25rem; font-stretch: 115%; text-transform: uppercase; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ink-2); font-size: 0.88rem; }
.meta span { display: inline-flex; gap: 6px; align-items: center; }
.meta svg { width: 16px; height: 16px; color: var(--muted); }
.spots { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.spots-bar { height: 6px; background: var(--line); margin-top: 4px; }
.spots-bar span { display: block; height: 100%; background: var(--spruce); }
.spots-bar.full span { background: var(--accent); }
.ccard-actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.dates { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.date-chip { flex: none; border: 1.5px solid var(--rule); background: none; padding: 5px 9px; cursor: pointer; font-size: 0.8rem; font-weight: 700; line-height: 1.15; text-align: center; }
.date-chip small { display: block; font-weight: 600; color: var(--muted); }
.date-chip[aria-pressed="true"] { border-color: var(--accent); background: rgba(226, 165, 75, 0.12); }

/* ---------- Sessions pipeline ---------- */
.pipe { display: grid; grid-template-columns: repeat(5, minmax(184px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.lane { background: var(--paper-2); border: 1px solid var(--rule); min-width: 0; scroll-snap-align: start; display: flex; flex-direction: column; }
.lane-head { padding: 12px 14px; border-bottom: 3px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.lane-head h2 { font-size: 0.86rem; letter-spacing: 0.1em; text-transform: uppercase; }
.lane-head span { color: var(--muted); font-weight: 700; font-size: 0.86rem; }
.lane[data-stage="delivered"] .lane-head { border-bottom-color: var(--spruce); }
.lane[data-stage="editing"] .lane-head, .lane[data-stage="booked"] .lane-head { border-bottom-color: var(--accent); }
.lane-items { padding: 10px; display: grid; gap: 10px; align-content: start; flex: 1; }
.scard { background: var(--paper); border: 1px solid var(--rule); transition: transform 0.25s var(--ease), border-color 0.2s; }
.scard.flash { border-color: var(--accent); animation: pop 0.5s var(--ease); }
@keyframes pop { 0% { transform: scale(0.96); } 60% { transform: scale(1.02); } 100% { transform: scale(1); } }
.scard-top { display: flex; gap: 10px; padding: 10px; cursor: pointer; background: none; border: 0; width: 100%; text-align: left; }
.scard-top .thumb { width: 46px; height: 46px; }
.scard-top strong { display: block; font-size: 0.94rem; }
.scard-top span { display: block; font-size: 0.8rem; color: var(--muted); }
.scard-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--line); font-size: 0.84rem; }
.scard-foot b { font-variant-numeric: tabular-nums; }

/* ---------- Clients / invoices tables ---------- */
.search { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--rule-strong); padding: 0 12px; background: var(--paper); max-width: 420px; margin-bottom: 16px; }
.search svg { color: var(--muted); }
.search input { border: 0; background: none; color: var(--ink); font: inherit; font-size: 16px; padding: 11px 0; width: 100%; outline: none; }
.search:focus-within { border-color: var(--accent); }
.table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.table th { text-align: left; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: rgba(232, 235, 228, 0.04); }
.table .r { text-align: right; }
.person { display: flex; align-items: center; gap: 10px; }
.person .av { margin: 0; border: 0; }
.money-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--rule); background: var(--lake); margin-bottom: 20px; }
.money-row > div { padding: 16px 20px; border-left: 1px solid var(--rule); }
.money-row > div:first-child { border-left: 0; }
.money-row dt { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.money-row dd { margin: 6px 0 0; font-weight: 800; font-stretch: 122%; font-size: 1.7rem; line-height: 1; font-variant-numeric: tabular-nums; }
.money-row .warn dd { color: var(--danger); }
.money-row .good dd { color: var(--spruce); }
.money-row .due dd { color: var(--accent); }
.inv-cards { display: none; }

/* ---------- Messages ---------- */
.compose { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > span, .field legend { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 0; }
fieldset.field { border: 0; margin: 0 0 16px; padding: 0; }
input.inp, select.inp, textarea.inp {
  width: 100%; border: 1.5px solid var(--rule-strong); background: var(--paper); color: var(--ink);
  font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 0; appearance: none; -webkit-appearance: none;
}
select.inp { background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 34px; }
textarea.inp { min-height: 110px; resize: vertical; line-height: 1.45; }
.inp:focus { outline: none; border-color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1.5px solid var(--rule); font-weight: 700; font-size: 0.88rem; }
.seg input:checked + span { border-color: var(--accent); background: rgba(226, 165, 75, 0.12); }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.templates { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.switch-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; border-top: 1px solid var(--line); }
.switch-list li:first-child { border-top: 0; }
.switch-list p { margin: 0; font-size: 0.94rem; }
.switch-list p span { display: block; color: var(--muted); font-size: 0.84rem; }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 1; margin: 0; }
.switch span { position: absolute; inset: 0; background: var(--line); transition: background-color 0.2s; }
.switch span::after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; background: var(--ink); transition: transform 0.25s var(--ease); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); background: var(--paper); }
.switch input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Phone mockup ---------- */
.phone {
  width: 300px; max-width: 100%; margin: 0 auto; aspect-ratio: 300 / 620; border: 10px solid #050806; border-radius: 44px;
  background: var(--paper); position: relative; overflow: hidden; box-shadow: 0 30px 60px -24px var(--shadow), 0 0 0 1px var(--rule);
}
.phone::before { content: ""; position: absolute; top: 8px; left: 50%; width: 92px; height: 26px; border-radius: 20px; background: #050806; transform: translateX(-50%); z-index: 5; }
.phone-screen { position: absolute; inset: 0; overflow-y: auto; scrollbar-width: none; }
.phone-screen::-webkit-scrollbar { display: none; }
.lock { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 23, 20, 0.15), rgba(14, 23, 20, 0.7)), url(img/lake-hero-1280.webp) 62% 50% / cover; padding: 64px 12px 12px; }
.lock-time { text-align: center; font-weight: 300; font-stretch: 90%; font-size: 4rem; line-height: 1; }
.lock-date { text-align: center; font-weight: 600; font-size: 0.92rem; margin: 4px 0 26px; }
.notif {
  background: rgba(232, 235, 228, 0.86); color: #0e1714; border-radius: 18px; padding: 10px 12px; display: flex; gap: 10px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 0.82rem; line-height: 1.3; margin-bottom: 8px;
}
.notif img { width: 34px; height: 34px; border-radius: 8px; background: var(--paper); padding: 4px; flex: none; }
.notif .ni { width: 34px; height: 34px; border-radius: 8px; background: var(--paper); flex: none; display: grid; place-items: center; }
.notif .ni img { width: 24px; height: auto; padding: 0; filter: invert(1) brightness(0.93); background: none; }
.notif b { display: flex; justify-content: space-between; gap: 8px; font-size: 0.8rem; }
.notif b small { font-weight: 500; color: #4b5852; }
.notif p { margin: 1px 0 0; overflow-wrap: anywhere; }
.notif.drop { animation: drop 0.6s var(--ease); }
@keyframes drop { from { transform: translateY(-120%); opacity: 0; } to { transform: none; opacity: 1; } }

/* Mini client app inside the phone */
.mini { padding: 44px 14px 18px; font-size: 0.86rem; }
.mini-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.mini-head img { width: 26px; filter: invert(1) brightness(0.93); }
.mini-head b { font-stretch: 125%; text-transform: uppercase; font-size: 0.78rem; line-height: 1; }
.mini h3 { font-size: 1.35rem; font-stretch: 122%; text-transform: uppercase; margin-bottom: 4px; }
.mini .k { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 16px 0 8px; }
.mini-card { border: 1px solid var(--rule); background: var(--paper-2); padding: 10px; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; }
.mini-card .mc-main { flex: 1; min-width: 0; }
.mini-card strong { display: block; font-size: 0.88rem; }
.mini-card span { display: block; color: var(--muted); font-size: 0.76rem; }
.mini-btn { border: 1.5px solid var(--rule-strong); background: none; padding: 6px 9px; font-weight: 800; font-size: 0.76rem; cursor: pointer; white-space: nowrap; }
.mini-btn.on { background: var(--spruce); border-color: var(--spruce); color: var(--paper); }
.mini-gallery { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; }
.mini-gallery img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.mini-tabbar { display: flex; justify-content: space-around; border-top: 1px solid var(--rule); margin: 16px -14px -18px; padding: 10px 0 14px; color: var(--muted); }
.mini-tabbar span { display: grid; place-items: center; gap: 2px; font-size: 0.64rem; font-weight: 700; }
.mini-tabbar span.on { color: var(--accent); }
.mini-tabbar svg { width: 18px; height: 18px; }

.app-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 10px 0 18px; }
.swatches div { border: 1px solid var(--rule); }
.swatches i { display: block; height: 54px; }
.swatches span { display: block; padding: 6px 8px; font-size: 0.72rem; font-weight: 700; color: var(--ink-2); }
.steps-list { counter-reset: s; }
.steps-list li { counter-increment: s; display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.steps-list li::before { content: counter(s); width: 26px; height: 26px; flex: none; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 0.82rem; }

/* ---------- Reports ---------- */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 200px; padding: 10px 0 0; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; min-width: 0; }
.bar i { display: block; width: 100%; max-width: 46px; background: var(--spruce); transition: height 0.8s var(--ease); }
.bar.now i { background: var(--accent); }
.bar b { font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.bar span { font-size: 0.74rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.hbars li { display: grid; grid-template-columns: 150px minmax(0, 1fr) 70px; gap: 12px; align-items: center; padding: 8px 0; font-size: 0.9rem; }
.hbars i { display: block; height: 12px; background: var(--accent); }
.hbars b { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Build yours ---------- */
.build-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.build-grid label { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); cursor: pointer; background: var(--paper-2); transition: background-color 0.2s; }
.build-grid input { position: absolute; opacity: 0; }
.build-grid label:has(input:checked) { background: rgba(226, 165, 75, 0.1); }
.build-grid label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: -3px; }
.build-grid .bi { display: flex; justify-content: space-between; align-items: center; }
.build-grid .bi svg.i { color: var(--accent); width: 26px; height: 26px; }
.build-grid .box { width: 24px; height: 24px; border: 1.5px solid var(--rule-strong); display: grid; place-items: center; }
.build-grid .box svg { width: 15px; height: 15px; stroke-width: 3; opacity: 0; }
.build-grid input:checked ~ .bi .box { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.build-grid input:checked ~ .bi .box svg { opacity: 1; }
.build-grid h3 { font-size: 1.15rem; font-stretch: 112%; }
.build-grid p { margin: 0; color: var(--ink-2); font-size: 0.94rem; }
.build-grid .replaces { margin-top: auto; padding-top: 8px; font-size: 0.84rem; color: var(--muted); }
.build-grid .replaces b { color: var(--spruce); }
.build-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; padding: 20px; border: 1px solid var(--rule); background: var(--lake); }
.build-foot p { margin: 0; flex: 1 1 260px; }

/* ---------- Drawer, modal, toasts ---------- */
.scrim { position: fixed; inset: 0; z-index: 200; background: rgba(5, 8, 6, 0.6); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 210; width: min(460px, 100%); background: var(--paper-2);
  border-left: 1px solid var(--rule); overflow-y: auto; overscroll-behavior: contain; box-shadow: -30px 0 60px -30px var(--shadow);
  animation: slide 0.35s var(--ease); padding-bottom: env(safe-area-inset-bottom);
}
@keyframes slide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { position: sticky; top: 0; z-index: 2; display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 20px 20px 16px; padding-top: max(20px, env(safe-area-inset-top)); background: var(--paper-2); border-bottom: 1px solid var(--rule); }
.drawer-head h2 { font-size: 1.5rem; font-stretch: 122%; text-transform: uppercase; }
.drawer-hero { aspect-ratio: 16 / 7; overflow: hidden; border-bottom: 4px solid var(--ink); }
.drawer-hero img { width: 100%; height: 100%; object-fit: cover; }
.drawer-hero--photo { aspect-ratio: 16 / 10; }
.drawer-hero--photo img { object-position: center 30%; }
.drawer-sec { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-sec h3 { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.drawer-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 20px 24px; }
.roster li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.roster li:first-child { border-top: 0; }
.roster .av { margin: 0; border: 0; }
.roster .name { flex: 1; min-width: 0; font-weight: 600; }
.roster .name small { display: block; color: var(--muted); font-weight: 500; }
.check-btn { border: 1.5px solid var(--rule-strong); background: none; padding: 5px 9px; cursor: pointer; font-weight: 700; font-size: 0.8rem; }
.check-btn.on { background: var(--spruce); border-color: var(--spruce); color: var(--paper); }
.stagebar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 4px 0 8px; }
.stagebar span { height: 6px; background: var(--line); }
.stagebar span.on { background: var(--accent); }
.stagebar-labels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; font-size: 0.7rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; font-size: 0.94rem; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 600; }

.modal-wrap { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(5, 8, 6, 0.7); overflow-y: auto; }
.modal { width: min(560px, 100%); background: var(--paper-2); border: 1px solid var(--rule); box-shadow: 0 40px 80px -30px #000; animation: rise 0.4s var(--ease); max-height: calc(100svh - 32px); overflow-y: auto; }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-hero { position: relative; aspect-ratio: 16 / 7; overflow: hidden; border-bottom: 4px solid var(--ink); }
.modal-hero img.bg { width: 100%; height: 100%; object-fit: cover; }
.modal-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 23, 20, 0) 30%, rgba(14, 23, 20, 0.85)); }
.modal-hero .mark { position: absolute; left: 22px; bottom: 18px; z-index: 1; width: 64px; filter: invert(1) brightness(0.93); }
.modal-body { padding: 22px 24px 24px; }
.modal-body h2 { font-stretch: 125%; text-transform: uppercase; font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1; margin-bottom: 12px; }
.modal-body p { color: var(--ink-2); }
.modal-body .btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--rule); }
.modal-head h2 { font-size: 1.2rem; font-stretch: 118%; text-transform: uppercase; }
.modal form { padding: 18px 20px 20px; }
.inside { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin: 14px 0 0; font-size: 0.92rem; }
.inside li { display: flex; gap: 8px; align-items: center; color: var(--ink); font-weight: 600; }
.inside svg { color: var(--accent); width: 18px; height: 18px; }

.toast-stack { position: fixed; z-index: 500; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast { background: var(--ink); color: var(--paper); padding: 12px 16px; font-weight: 700; font-size: 0.92rem; display: flex; gap: 10px; align-items: center; box-shadow: 0 20px 40px -16px #000; animation: rise 0.35s var(--ease); }
.toast svg { color: #2f6b47; stroke-width: 2.6; }
.toast.out { opacity: 0; transform: translateY(8px); transition: 0.3s; }

/* ---------- Tour ---------- */
.tour { position: fixed; inset: 0; z-index: 350; pointer-events: none; }
.tour-spot { position: absolute; border: 2px solid var(--accent); box-shadow: 0 0 0 9999px rgba(5, 8, 6, 0.62); transition: all 0.4s var(--ease); pointer-events: none; }
.tour-spot.none { left: 50% !important; top: 40% !important; width: 0 !important; height: 0 !important; border: 0; }
.tour-card {
  position: absolute; width: min(360px, calc(100vw - 32px)); background: var(--paper-2); border: 1px solid var(--rule-strong);
  border-top: 4px solid var(--accent); padding: 18px 18px 16px; pointer-events: auto; box-shadow: 0 30px 60px -20px #000;
  transition: top 0.4s var(--ease), left 0.4s var(--ease);
}
.tour-card .eyebrow { display: flex; justify-content: space-between; }
.tour-card h2 { font-size: 1.3rem; font-stretch: 120%; text-transform: uppercase; margin-bottom: 8px; }
.tour-card p { color: var(--ink-2); font-size: 0.95rem; }
.tour-card .try { display: flex; gap: 8px; align-items: flex-start; border: 1px dashed var(--accent); padding: 8px 10px; color: var(--ink); font-weight: 600; font-size: 0.9rem; margin-bottom: 12px; }
.tour-card .try svg { color: var(--accent); margin-top: 1px; }
.tour-nav { display: flex; gap: 8px; align-items: center; }
.tour-nav .linkbtn { margin-right: auto; font-size: 0.88rem; }
.tour-dots { display: flex; gap: 4px; margin: 0 0 12px; }
.tour-dots i { width: 18px; height: 4px; background: var(--line); }
.tour-dots i.on { background: var(--accent); }

/* ---------- Tab bar (phones) ---------- */
.tabbar { display: none; }

@media (max-width: 1100px) {
  .grid-2, .compose, .app-layout { grid-template-columns: 1fr; }
  .build-grid { grid-template-columns: 1fr 1fr; }
  .compose .phone, .app-layout .phone { order: -1; }
}
@media (max-width: 900px) {
  :root { --side: 0px; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; top: 0; left: 0; bottom: 0; z-index: 220; width: min(300px, 86vw); height: auto; transform: translateX(-102%); transition: transform 0.35s var(--ease); padding-top: max(22px, env(safe-area-inset-top)); }
  .side.is-open { transform: none; box-shadow: 30px 0 60px -30px #000; }
  .topbar .only-mob { display: grid; }
  .topbar { align-items: center; padding-top: 18px; padding-bottom: 16px; }
  .topbar-actions { width: 100%; }
  .main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .week { grid-template-columns: minmax(0, 1fr); border-left: 0; border-top: 0; }
  .day { min-height: 0; border: 1px solid var(--rule); margin-bottom: 10px; }
  .day:not(:has(.ev)) .day-items::after { content: "Nothing booked"; color: var(--muted); font-size: 0.86rem; padding: 2px; }
  .ev { font-size: 0.9rem; }
  .legend { margin-left: 0; width: 100%; }
  .pipe { grid-template-columns: repeat(5, 78%); }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    background: rgba(10, 17, 14, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--rule); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tab { display: grid; place-items: center; gap: 3px; background: none; border: 0; padding: 6px 2px; cursor: pointer; font-size: 0.68rem; font-weight: 700; color: var(--muted); position: relative; }
  .tab svg { width: 22px; height: 22px; }
  .tab[aria-current="page"] { color: var(--accent); }
  .tab .badge { position: absolute; top: 0; left: 55%; min-width: 18px; height: 18px; font-size: 0.66rem; }
  .table.inv { display: none; }
  .inv-cards { display: grid; gap: 10px; }
  .inv-card { border: 1px solid var(--rule); background: var(--paper-2); padding: 14px; display: grid; gap: 8px; }
  .inv-card .top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
  .inv-card .top b { font-size: 1.2rem; font-stretch: 115%; }
  .tour-card { left: 16px !important; right: 16px; width: auto; top: auto !important; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .toast-stack { bottom: calc(88px + env(safe-area-inset-bottom)); }
  .hide-mob { display: none; }
}
@media (max-width: 600px) {
  .money-row { grid-template-columns: 1fr; }
  .money-row > div { border-left: 0; border-top: 1px solid var(--rule); }
  .money-row > div:first-child { border-top: 0; }
  .build-grid, .grid-2e, .field-row, .inside { grid-template-columns: 1fr; }
  .hbars li { grid-template-columns: 110px minmax(0, 1fr) 60px; }
  .table.clients th:nth-child(3), .table.clients td:nth-child(3), .table.clients th:nth-child(4), .table.clients td:nth-child(4) { display: none; }
  .demo-bar { position: static; gap: 8px 12px; }
  .demo-text { font-size: 0.8rem; flex-basis: auto; }
  .tour-card { padding: 14px 14px 12px; }
  .tour-card h2 { font-size: 1.1rem; }
  .tour-card p { font-size: 0.9rem; margin-bottom: 0.6em; }
  .row { padding: 12px 14px; }
  .row-time { width: 62px; }
}
@media (hover: none) { .btn:hover, .nav-item:hover, button.row:hover { background: inherit; } .btn--accent:hover { background: var(--accent); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
