:root {
  --bg: #030303;
  --panel: #1b1b1e;
  --panel-2: #242428;
  --panel-3: #2f2f34;
  --line: #28282d;
  --line-strong: #37373d;
  --text: #f3f3f5;
  --muted: #8e8e98;
  --faint: #55555c;
  --accent: #ff2d3f;      /* Revenge red */
  --accent-2: #ff5c6a;
  --accent-soft: rgba(255, 45, 63, .14);
  --accent-deep: #b3121f;
  /* backlight: red light spilling out from behind the element, strongest underneath */
  --glow: 0 10px 28px -6px rgba(255, 45, 63, .75), 0 0 46px -8px rgba(255, 45, 63, .55), 0 0 0 1px rgba(255, 70, 85, .35);
  --glow-soft: 0 8px 22px -8px rgba(255, 45, 63, .6), 0 0 30px -10px rgba(255, 45, 63, .4);
  /* neon edge: a dark button whose outline is lit red and glows outward (and a little inward) */
  --edge-bg: #121214;
  --edge: 0 0 8px rgba(255, 45, 63, .85), 0 0 24px rgba(255, 45, 63, .45), 0 0 48px -6px rgba(255, 45, 63, .35), inset 0 0 10px rgba(255, 45, 63, .22);
  --edge-soft: 0 0 6px rgba(255, 45, 63, .6), 0 0 16px rgba(255, 45, 63, .25), inset 0 0 8px rgba(255, 45, 63, .15);
  --today: var(--accent);
  --ok: #3fae6a;
  --warn: #e0a73a;
  --danger: #ff4d5a;
  --ink: var(--accent);   /* selected / active states */
  --radius: 18px;
  --font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 16px 40px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 28px; }
h2 { font-size: 16px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* ---------- layout */
.topbar {
  height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 24px;
  border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 30;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--text); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, var(--accent-2), var(--accent) 60%, #6d0a13); color: #fff; font-weight: 800; font-size: 15px;
}
.topbar .spacer { flex: 1; }
.app { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: calc(100vh - 64px); }
.sidebar {
  border-right: 1px solid var(--line); padding: 14px 10px; background: var(--panel);
  position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; display: flex; flex-direction: column;
}
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-radius: 8px;
  color: var(--muted); font-weight: 500; position: relative;
}
.nav a:hover { background: var(--panel-2); color: var(--text); text-decoration: none; }
.nav a.active { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.nav a.active::before { content: ""; position: absolute; left: -10px; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav a.active svg { color: var(--accent-2); }
.nav svg, .topbar svg { width: 20px; height: 20px; flex: none; }
.nav-sep { height: 1px; background: var(--line); margin: 12px 8px; }
.main { padding: 28px 32px 60px; min-width: 0; }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { flex: 1; min-width: 160px; }
.menu-btn { display: none; }

/* ---------- components */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card + .card { margin-top: 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-strong); background: var(--panel-2); color: var(--text);
  padding: 9px 16px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--panel-3); text-decoration: none; }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.06); background: var(--accent); }
.btn.pill { border-radius: 999px; padding: 11px 36px; font-size: 15px; box-shadow: 0 4px 16px rgba(255, 45, 63, .35); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; border-radius: 999px; }
.btn.dark:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.danger { color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); background: rgba(229, 72, 77, .1); }
.btn.danger-fill { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn.icon { padding: 8px; }
.btn:disabled { opacity: .45; cursor: default; }
.btn:disabled:hover { background: var(--panel-2); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

input, select, textarea {
  width: 100%; background: var(--bg); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; font: inherit;
}
/* Windows draws dropdown lists white when the select is transparent, so give options their own dark colors */
select option, select optgroup { background: var(--panel); color: var(--text); }
select option:disabled { color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 45, 63, .22); }
input:disabled { background: var(--panel-2); color: var(--muted); }
input[type=color] { padding: 3px; height: 40px; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--today); margin: 0; flex: none; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text); font-weight: 600; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.empty-state { text-align: center; padding: 48px 20px; }
.empty-state .big { font-size: 42px; margin-bottom: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #fff; background: var(--c, #999);
}
.avatar.empty { background: transparent; border: 1px dashed var(--line-strong); }

/* segmented control (Day / Week / Month) */
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; padding: 3px; gap: 2px; background: var(--panel-2); }
.seg button { background: none; color: var(--muted); border: 0; padding: 7px 16px; font: inherit; font-weight: 600; cursor: pointer; border-radius: 6px; }
.seg button:hover { background: var(--panel-3); color: var(--text); }
.seg button.active { background: var(--ink); color: #fff; }

/* chips (toggle pills) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line-strong); background: var(--panel-2); color: var(--muted); border-radius: 999px;
  padding: 6px 13px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip:disabled { opacity: .35; cursor: not-allowed; }

/* toggle switch */
.switch { position: relative; width: 40px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--line-strong); border-radius: 99px; cursor: pointer; transition: .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }

/* popovers (dropdown panels) */
.pop-wrap { position: relative; }
.popover {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; min-width: 290px;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden;
}
.pop-section { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.pop-section:last-child { border-bottom: 0; }
.pop-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.pop-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 18px; background: var(--panel-2); border-top: 1px solid var(--line); font-size: 13px; }
.pop-row { display: flex; align-items: center; gap: 12px; padding: 10px 18px; cursor: pointer; font-weight: 500; }
.pop-row:hover { background: var(--panel-2); }
.pop-row.head { background: var(--panel-2); font-weight: 600; }
.pop-row .count { margin-left: auto; color: var(--muted); font-size: 13px; }
.f-count { background: var(--accent); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; margin-left: 2px; }
.pop-note { font-size: 12px; color: var(--muted); margin-top: 8px; }
.popover.filters-pop { width: min(400px, calc(100vw - 32px)); }
.popover select:disabled { opacity: .45; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-2); font: inherit; font-weight: 600; cursor: pointer; }

/* ---------- calendar */
.cal-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.cal-toolbar .grow { flex: 1; }
.date-nav { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel-2); height: 42px; }
.date-nav > * + * { border-left: 1px solid var(--line-strong); }
.date-nav button { background: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; padding: 0 14px; color: var(--text); height: 100%; }
.date-nav button:hover:not(:disabled) { background: var(--panel-3); }
.date-nav button:disabled { color: var(--faint); cursor: default; }
.date-nav svg { width: 18px; height: 18px; display: block; }
.date-nav .pop-wrap > button { min-width: 220px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.tb-btn { height: 42px; }
.caret { width: 14px; height: 14px; }

.month-picker { min-width: 280px; padding: 14px; }
.mp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-weight: 700; }
.mp-head button { border: 0; background: none; color: var(--text); font: inherit; font-size: 18px; cursor: pointer; padding: 2px 10px; border-radius: 6px; }
.mp-head button:hover { background: var(--panel-2); }
.mp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mp-grid button { border: 1px solid var(--line); background: var(--panel-2); color: var(--text); border-radius: 8px; padding: 9px 0; font: inherit; font-weight: 600; cursor: pointer; }
.mp-grid button:hover { background: var(--panel-3); }
.mp-grid button.cur { background: var(--ink); border-color: var(--ink); color: #fff; }

.cal-hint { background: var(--panel-2); border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; font-size: 13px; }

/* event colors: --c is the artist color */
.evt-tint { background: color-mix(in srgb, var(--c) 22%, var(--panel)); border-left: 3px solid var(--c); color: var(--text); }
.evt-block {
  background: repeating-linear-gradient(135deg, #222226 0 6px, #2a2a2f 6px 12px);
  border-left: 3px solid #6b6b73; color: var(--muted);
}
.evt-trip {
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 20%, var(--panel)) 0 7px, color-mix(in srgb, var(--c) 10%, var(--panel)) 7px 14px);
  border-left: 3px dashed var(--c); color: var(--text);
}
.evt-flash { background: color-mix(in srgb, var(--c) 32%, var(--panel)); border-left: 3px solid var(--c); color: var(--text); font-weight: 600; }
.evt-cancelled { opacity: .55; }
.evt-cancelled b, .evt-cancelled .name { text-decoration: line-through; }
.kind-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .75; }

/* month */
.cal-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-wd { padding: 10px 8px; text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .06em; border-bottom: 1px solid var(--line); }
.cal-cell { min-height: 124px; padding: 8px 8px 10px; border-bottom: 1px solid var(--line); cursor: pointer; min-width: 0; }
.cal-cell:hover { background: rgba(255, 255, 255, .025); }
.cal-cell.other .dn { color: var(--faint); }
.cal-cell-head { display: flex; justify-content: flex-end; align-items: center; margin-bottom: 6px; min-height: 26px; }
.cal-cell .dn { font-size: 13px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.cal-cell.today .dn { background: var(--today); color: #fff; font-weight: 700; }
.cal-chip {
  display: block; font-size: 12.5px; padding: 4px 8px; border-radius: 4px; margin-top: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
}
.cal-chip:hover { filter: brightness(.97); }
.cal-chip .t { color: var(--muted); }
.cal-chip .name { font-weight: 650; }
.cal-more { font-size: 12px; color: var(--muted); padding: 4px 8px; font-weight: 600; }

/* day / week */
.cal-scroll { height: calc(100vh - 250px); min-height: 440px; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.cal-grid { display: grid; position: relative; }
.cal-corner, .cal-head { position: sticky; top: 0; z-index: 5; background: var(--panel); border-bottom: 1px solid var(--line); }
.cal-corner { left: 0; z-index: 6; }
.cal-head { padding: 8px 4px; text-align: center; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; border-left: 1px solid var(--line); }
.cal-head .wd { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.cal-head .dn { font-size: 18px; font-weight: 600; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.cal-head:hover .dn { background: var(--panel-2); }
.cal-head .allday { align-self: stretch; display: flex; flex-direction: column; gap: 3px; margin-top: 4px; text-align: left; }
.cal-head .allday .cal-chip { margin-top: 0; font-size: 11.5px; padding: 3px 6px; }
.cal-head.today .dn { background: var(--today); color: #fff; }
.cal-hours { position: sticky; left: 0; z-index: 4; background: var(--panel); }
.cal-hour { height: 48px; position: relative; }
.cal-hour span { position: absolute; top: -8px; right: 8px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.cal-col { position: relative; border-left: 1px solid var(--line); }
.cal-slot { height: 24px; border-top: 1px solid var(--line); cursor: pointer; }
.cal-slot.half { border-top: 1px dashed rgba(255, 255, 255, .05); }
.cal-slot:hover { background: rgba(255, 255, 255, .04); }
.cal-evt {
  position: absolute; z-index: 2; overflow: hidden; cursor: pointer; border-radius: 5px; padding: 3px 8px;
  font-size: 12px; line-height: 1.35; display: flex; flex-direction: column; box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}
.cal-evt:hover { z-index: 3; box-shadow: 0 3px 12px rgba(0, 0, 0, .45); }
.cal-evt b, .cal-evt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-evt .t { color: var(--muted); }
.cal-evt.short { flex-direction: row; gap: 6px; align-items: center; }
.cal-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--accent-2); z-index: 1; pointer-events: none; }
.cal-now::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-2); }

/* ---------- Add New chooser (full screen) */
.chooser { position: fixed; inset: 0; z-index: 45; background: var(--bg); overflow-y: auto; animation: fade .12s ease-out; }
.chooser-bar { display: flex; align-items: center; gap: 16px; height: 76px; padding: 0 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); }
.chooser-bar h2 { font-size: 22px; }
.chooser-body { max-width: 980px; margin: 0 auto; padding: 56px 24px; }
.chooser-body h1 { font-size: 28px; margin-bottom: 6px; }
.chooser-body .when { color: var(--muted); }
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 28px; }
.choice {
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 44px 22px 40px; text-align: center; cursor: pointer;
  font: inherit; color: var(--text); display: flex; flex-direction: column; align-items: center; gap: 10px; transition: box-shadow .12s, border-color .12s;
}
.choice:hover:not(:disabled) { border-color: var(--accent); box-shadow: var(--shadow); }
.choice svg { width: 72px; height: 72px; margin-bottom: 14px; }
.choice b { font-size: 18px; font-weight: 650; }
.choice span { color: var(--muted); font-size: 14px; }
.choice:disabled { cursor: default; opacity: .5; }
.choice .soon { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2); }
@keyframes fade { from { opacity: 0; } }

/* color swatches (team.js) */
.swatches { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.swatch { position: relative; }
.swatch input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.swatch span { display: block; width: 28px; height: 28px; border-radius: 50%; background: var(--c); cursor: pointer; border: 2px solid var(--panel); box-shadow: 0 0 0 1px var(--line-strong); }
.swatch input:checked + span { box-shadow: 0 0 0 2px var(--c); }
.swatch input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 3px; }

/* ---------- full-page appointment form */
.fullpage { position: fixed; inset: 0; z-index: 45; background: var(--bg); overflow-y: auto; }
.kind-pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 11px; font-size: 12px; font-weight: 600; color: var(--muted); }
.kind-pill .dot { width: 6px; height: 6px; background: var(--accent); }
.btn.pill-sm { border-radius: 999px; padding: 9px 26px; }
.fp-body { display: grid; grid-template-columns: minmax(0, 700px) 320px; gap: 36px; justify-content: center; padding: 36px 24px 80px; }
.fp-main { min-width: 0; }
.fp-h { font-size: 16px; font-weight: 650; margin: 28px 0 10px; }
.fp-h:first-of-type { margin-top: 4px; }
.rows { border: 1px solid var(--line-strong); border-radius: 8px; overflow: visible; background: var(--panel); }
.row { display: grid; grid-template-columns: 190px minmax(0, 1fr); border-bottom: 1px solid var(--line); min-height: 46px; }
.row:last-child { border-bottom: 0; }
.row-label { background: var(--panel-2); padding: 12px 14px; font-size: 13px; color: var(--text); border-right: 1px solid var(--line); display: flex; align-items: center; }
.row:first-child .row-label { border-top-left-radius: 8px; }
.row:last-child .row-label { border-bottom-left-radius: 8px; }
.row-ctl { display: flex; align-items: stretch; }
.row-ctl > input, .row-ctl > select, .row-ctl > textarea { border: 0; border-radius: 0; background: transparent; padding: 12px 14px; }
.row-ctl > input:focus, .row-ctl > select:focus, .row-ctl > textarea:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.row-ctl.split > select { flex: 0 0 170px; border-right: 1px solid var(--line); }
.price-cells { flex: 1; display: flex; align-items: stretch; min-width: 0; }
.cell-label { background: var(--panel-2); padding: 0 14px; display: flex; align-items: center; font-size: 13px; border-right: 1px solid var(--line); white-space: nowrap; }
.price-cells .cell-label + .money-in + .cell-label { border-left: 1px solid var(--line); }
.money-in { flex: 1; display: flex; align-items: center; padding-left: 14px; min-width: 70px; color: var(--muted); }
.money-in input { border: 0; background: transparent; padding: 12px 10px 12px 4px; min-width: 0; }
.money-in input:focus { box-shadow: none; }
.money-in:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.photos-row { display: block; padding: 14px; }
.photo-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.add-photo, .thumb { width: 86px; height: 86px; border-radius: 8px; flex: none; }
.add-photo { border: 1px dashed var(--line-strong); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 13px; text-align: center; cursor: pointer; line-height: 1.3; color: var(--text); }
.add-photo:hover { border-color: var(--accent); }
.add-photo .plus { color: var(--accent); font-size: 20px; line-height: 1; margin-bottom: 4px; }
.thumb { position: relative; overflow: hidden; border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .7); color: #fff; font-size: 11px; cursor: pointer; }

.client-search { position: relative; display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel); }
.client-search svg { width: 16px; height: 16px; margin-left: 14px; color: var(--muted); flex: none; }
.client-search input { border: 0; background: transparent; padding: 12px; }
.client-search input:focus { box-shadow: none; }
.client-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 45, 63, .22); }
#clientBox, #ckClient { position: relative; }
#ckClient { z-index: 6; }
.client-dd { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; max-height: 360px; overflow-y: auto; }
.dd-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; border-bottom: 1px solid var(--line); }
.dd-row:last-child { border-bottom: 0; }
.dd-row:hover { background: var(--panel-2); }
.dd-row > span:last-child { display: flex; flex-direction: column; }
.dd-row.create b { color: var(--accent-2); }
.client-card { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel-2); padding: 16px 18px; }
.client-card .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.client-card .grow b { font-size: 16px; }
.avatar.lg { width: 46px; height: 46px; font-size: 15px; background: var(--accent-soft); color: var(--accent-2); }
.client-dd .avatar { background: var(--panel-3); color: var(--muted); }
.plus-circle { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--accent-2); color: var(--accent-2); display: grid; place-items: center; font-size: 13px; line-height: 1; flex: none; }
.dd-row.create { background: var(--panel-2); }
.client-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin-top: 16px; }
.phone-in { display: flex; }
.phone-in select { flex: 0 0 104px; border-radius: 8px 0 0 8px; border-right: 0; padding-right: 4px; }
.phone-in input { border-radius: 0 8px 8px 0; }
.client-done { display: flex; justify-content: flex-end; margin-top: 12px; }
.money-in.missing { box-shadow: inset 0 0 0 1px var(--danger); }
.clear-q { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 14px; font-size: 14px; }
.clear-q:hover { color: var(--text); }

.fp-summary { position: relative; }
.summary-card { position: sticky; top: 100px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--panel); overflow: hidden; }
.summary-card > .muted { padding: 18px 18px 0; }
.sum-client { font-size: 20px; font-weight: 650; padding: 6px 18px 0; }
.sum-client.muted { color: var(--muted); }
.sum-when { padding: 4px 18px 0; font-size: 14px; color: var(--muted); }
.sum-with, .sum-when.big { padding: 6px 18px 0; font-size: 15px; color: var(--text); }
.sum-with:empty { display: none; }
.dt-ctl { align-items: center; }
.dt-ctl input { border: 0; border-radius: 0; background: transparent; padding: 12px 14px; flex: 1; min-width: 0; }
.dt-ctl input + input { border-left: 1px solid var(--line); }
.dt-ctl input:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.dt-ctl .req { color: #ff8a8d; font-size: 12px; font-weight: 600; padding: 0 14px; white-space: nowrap; }
.dt-btn { flex: 1; min-width: 0; text-align: left; background: none; border: 0; color: var(--text); font: inherit; padding: 12px 14px; cursor: pointer; }
.dt-btn.muted { color: var(--muted); }
.dt-btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
/* date & time pop-up (pickDateTime in app.js) */
.dtp-bg { align-items: center; }
.dtp { display: flex; width: min(640px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); animation: pop .15s ease-out; }
.dtp-cal { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; padding: 22px 22px 18px; }
.dtp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 17px; }
.dtp-nav { width: 32px; height: 32px; border: 0; border-radius: 6px; background: none; color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.dtp-nav:hover { background: var(--panel-2); }
.dtp-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px 2px; text-align: center; }
.dtp-wd { padding-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.dtp-day { position: relative; width: 40px; height: 40px; margin: 0 auto; border: 0; border-radius: 50%; background: none; color: var(--muted); font: inherit; font-size: 15px; cursor: pointer; }
.dtp-day:hover { background: var(--panel-2); }
.dtp-day.open { background: var(--accent-soft); color: var(--accent-2); font-weight: 700; }
.dtp-day.sel { background: var(--accent); color: #fff; }
.dtp-day.today::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.dtp-tz { display: flex; flex-direction: column; gap: 4px; margin-top: auto; padding-top: 22px; font-size: 14px; }
.dtp-times { flex: 0 0 200px; display: flex; flex-direction: column; gap: 4px; min-height: 0; padding: 22px 14px 18px 18px; border-left: 1px solid var(--line); }
.dtp-slots { display: flex; flex-direction: column; gap: 8px; max-height: 340px; margin-top: 10px; padding-right: 6px; overflow-y: auto; }
.dtp-slot { flex: none; padding: 10px 0; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--panel); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.dtp-slot:hover { border-color: var(--accent); }
.dtp-slot.sel { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (max-width: 640px) {
  .dtp-bg { padding: 16px; }
  .dtp { flex-direction: column; }
  .dtp-times { flex-basis: auto; border-left: 0; border-top: 1px solid var(--line); }
  .dtp-slots { max-height: 200px; }
}
/* ---------- time block page (time-block-form.js) */
.fp-body.single { grid-template-columns: minmax(0, 820px); }
.tb-error { margin: -2px 0 10px; font-size: 13px; color: var(--accent-2); }
.tb-pick { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.tb-pick span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-pick svg { flex: none; color: var(--muted); }
.tb-pick.ph { color: var(--muted); }
.tb-pick:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.tb-pick.missing { box-shadow: inset 0 0 0 1px var(--accent); }
.row-ctl > .grow { flex: 1; min-width: 0; display: flex; }
.info { position: relative; margin-left: auto; width: 15px; height: 15px; flex: none; display: grid; place-items: center; border: 1.5px solid var(--muted); border-radius: 50%; font-size: 9px; font-weight: 800; color: var(--muted); cursor: help; }
.info:hover::after, .info:focus::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 10; width: 290px;
  padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--panel-3); box-shadow: var(--shadow);
  color: var(--text); font-size: 12px; font-weight: 600; line-height: 1.35;
}
.popover.mc-pop { width: 320px; min-width: 0; padding: 16px 18px; }
.mc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 16px; }
.dtp-nav:disabled { opacity: .3; cursor: default; background: none; }
.mc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 4px; text-align: center; }
.mc-wd { padding: 4px 0 8px; font-size: 12px; color: var(--muted); }
.mc-day { height: 38px; border: 0; border-radius: 50%; background: none; color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.mc-day:hover:not(:disabled) { background: var(--panel-2); }
.mc-day:disabled { opacity: .3; cursor: default; }
.mc-day.today { box-shadow: inset 0 0 0 1px var(--muted); }
.mc-day.mid { border-radius: 0; background: var(--accent-soft); }
.mc-day.sel { background: var(--accent); color: #fff; font-weight: 700; box-shadow: none; }
.mc-day.sel.end { background: var(--accent-deep); }
.mc-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.popover.tp-pop { width: 190px; min-width: 0; }
.tp-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: 250px; }
.tp-col { display: flex; flex-direction: column; padding: 6px 0; overflow-y: auto; border-right: 1px solid var(--line); scrollbar-width: none; }
.tp-col:last-child { border-right: 0; }
.tp-opt { flex: none; padding: 9px 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 15px; cursor: pointer; }
.tp-opt:hover { background: var(--panel-2); }
.tp-opt.on { background: var(--accent-soft); color: var(--accent-2); font-weight: 700; }
.tp-foot { display: flex; justify-content: flex-end; padding: 10px; border-top: 1px solid var(--line); }
.popover.ms-pop { top: calc(100% + 2px); left: 0; right: 0; min-width: 0; padding: 6px 0; }
.ms-row { display: flex; align-items: center; gap: 14px; padding: 11px 22px; cursor: pointer; }
.ms-row:hover { background: var(--panel-2); }
.ms-row.on { background: var(--accent-soft); }
.actions-row { display: flex; gap: 8px; padding: 12px 14px; flex-wrap: wrap; }
.locked-note { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.sum-when.warn { color: var(--accent-2); }
.sum-rows { display: grid; grid-template-columns: auto 1fr; gap: 12px 0; margin: 18px 18px 0; padding-bottom: 16px; font-size: 13px; }
.sum-rows dt { color: var(--muted); }
.sum-rows dd { margin: 0; padding-left: 10px; text-align: right; }
.sum-rows .total { border-top: 1px solid var(--line); padding-top: 14px; font-weight: 700; color: var(--text); font-size: 15px; }
.sum-foot { background: var(--panel-2); border-top: 1px solid var(--line); padding: 14px 18px; }
.sum-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.sum-btn { width: 100%; border-radius: 999px; padding: 12px; }

/* ---------- appointment side panel */
.panel-wrap { position: fixed; inset: 0; z-index: 44; }
.panel-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .15s; }
.side-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--panel);
  border-left: 1px solid var(--line-strong); box-shadow: var(--shadow); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .18s ease-out;
}
.panel-wrap.open .panel-dim { opacity: 1; }
.panel-wrap.open .side-panel { transform: none; }
.sp-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sp-head b { font-size: 16px; }
.btn.pill-outline { border-radius: 999px; }
.sp-body { overflow-y: auto; flex: 1; }
.sp-section { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.sp-section:last-child { border-bottom: 0; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 11px; font-size: 13px; font-weight: 650; border: 1px solid; }
.status-pill .dot { width: 7px; height: 7px; background: currentColor; }
.st-unconfirmed { color: #f0c66d; background: rgba(224, 167, 58, .12); border-color: rgba(224, 167, 58, .35); }
.st-confirmed { color: #6fd39a; background: rgba(63, 174, 106, .12); border-color: rgba(63, 174, 106, .35); }
.st-completed { color: #7ab8ff; background: rgba(61, 139, 217, .12); border-color: rgba(61, 139, 217, .35); }
.st-noshow { color: #ff8a8d; background: rgba(229, 72, 77, .12); border-color: rgba(229, 72, 77, .35); }
.st-cancelled { color: var(--muted); background: var(--panel-2); border-color: var(--line-strong); }
.sp-checkout { width: 100%; border-radius: 999px; padding: 12px; font-size: 15px; margin: 14px 0 18px; }
.sp-date { font-size: 17px; font-weight: 700; margin: 0 0 4px; }
.kind-tag-pill { display: inline-block; margin-top: 12px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.sp-artist { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.sp-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.sp-client { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sp-client .grow { flex: 1; min-width: 0; }
.sp-client b { font-size: 16px; }
.avatar.dark { background: var(--panel-3); color: var(--text); border: 1px solid var(--line-strong); }
.link-btn.underline { text-decoration: underline; font-weight: 500; }
.sp-kv { display: grid; grid-template-columns: 100px 1fr; gap: 8px 12px; margin: 0; font-size: 13.5px; }
.sp-kv dt { color: var(--muted); }
.sp-kv dd { margin: 0; word-break: break-word; }
.sp-kv a { color: var(--text); }
.sp-text { margin: 10px 0 0; white-space: pre-wrap; font-size: 13.5px; }
.sp-photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.sp-photos img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.sp-pay { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13.5px; }
.sp-pay.total { font-weight: 700; font-size: 15px; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px; }
.sp-outline { width: 100%; border-radius: 999px; margin-top: 12px; background: transparent; }
.sp-toggle { display: flex; width: 100%; justify-content: space-between; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.sp-toggle > span { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12px; }
.sp-toggle.collapsed .chev { display: inline-block; transform: rotate(180deg); }
.sp-history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sp-history.collapsed { display: none; }
.sp-history li { display: flex; flex-direction: column; padding-left: 14px; position: relative; font-size: 13.5px; }
.sp-history li::before { content: ""; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }
.menu { display: flex; flex-direction: column; padding: 6px; }
.menu-item { background: none; border: 0; color: var(--text); font: inherit; text-align: left; padding: 9px 12px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.menu-item:hover { background: var(--panel-2); }
.menu-item.danger { color: #ff8a8d; }
.popover.menu-pop { min-width: 210px; }
.menu + .menu { border-top: 1px solid var(--line); }
.menu-title { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 12px 2px; }
.note-box { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-top: 12px; font-size: 13.5px; white-space: pre-wrap; }
.note-label { font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
@media print {
  body.printing-panel > *:not(.panel-wrap), body.printing-panel .panel-dim, body.printing-panel .sp-head button,
  body.printing-panel .pop-wrap, body.printing-panel [data-checkout], body.printing-panel [data-msg] { display: none !important; }
  body.printing-panel .side-panel { position: static; width: auto; transform: none; box-shadow: none; border: 0; }
  body.printing-panel .panel-wrap { position: static; }
  body.printing-panel .panel-wrap.print-hide { display: none !important; }
  body.printing-panel .sp-body { overflow: visible; }
}
.cal-chip.selected, .cal-evt.selected { outline: 2px solid var(--text); outline-offset: 1px; }

/* ---------- modal */
.modal-bg {
  position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto;
}
.modal { width: 100%; max-width: 580px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); animation: pop .15s ease-out; }
.modal.wide { max-width: 820px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 18px; }
.modal-body { padding: 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--panel-2); border-radius: 0 0 14px 14px; }
.modal-foot .left { margin-right: auto; }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 70;
  background: var(--panel-3); color: var(--text); border: 1px solid var(--line-strong); padding: 11px 20px; border-radius: 999px; box-shadow: var(--shadow); font-weight: 600;
}
.toast.error { border-color: var(--danger); color: #ff9c9f; }

@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .menu-btn { display: inline-flex; }
  .sidebar {
    position: fixed; left: 0; top: 64px; bottom: 0; width: 260px; z-index: 40; height: auto;
    transform: translateX(-105%); transition: transform .2s; box-shadow: var(--shadow);
  }
  .sidebar.open { transform: none; }
  .main { padding: 18px 16px 60px; }
  h1 { font-size: 24px; }
  .date-nav .pop-wrap > button { min-width: 140px; }
  .cal-toolbar .grow { display: none; }
  .cal-scroll { height: calc(100vh - 320px); }
  .cal-cell { min-height: 80px; padding: 4px 3px; }
  .cal-chip { font-size: 10.5px; padding: 2px 4px; }
  .cal-chip .t { display: none; }
  .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .choice { padding: 26px 12px; }
  .choice svg { width: 48px; height: 48px; margin-bottom: 4px; }
  .choice b { font-size: 15px; }
  .popover { min-width: 0; width: min(290px, calc(100vw - 32px)); }
  .modal-bg { padding: 0; }
  .modal { border-radius: 0; min-height: 100%; max-width: none; }
}
@media (max-width: 1000px) {
  .fp-body { grid-template-columns: minmax(0, 1fr); padding: 20px 16px 60px; }
  .summary-card { position: static; }
}
@media (max-width: 640px) {
  .row { grid-template-columns: minmax(0, 1fr); }
  .row-label { border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 14px; border-radius: 0 !important; }
  .row-ctl.split { flex-wrap: wrap; }
  .row-ctl.split > select { flex: 1 1 100%; border-right: 0; border-bottom: 1px solid var(--line); }
  .client-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .choices { grid-template-columns: minmax(0, 1fr); }
}


/* ---------- settings: business information (settings.js) */
.biz-rows { margin-top: 16px; padding: 6px 18px; border-radius: 14px; background: var(--panel-2); }
.biz-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.biz-row + .biz-row { border-top: 1px solid var(--line); }
.biz-row .btn { flex: none; }
.biz-k { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; font-weight: 650; }
.biz-k .info { margin-left: 0; }
.biz-v { color: var(--muted); white-space: pre-wrap; word-break: break-word; }

/* ---------- team (team.js): list, employee panel, add/edit page, manage hours, offboarding */
#teamCard { margin-top: 16px; }
.card.team-card { padding: 0; overflow: hidden; }
.team-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.team-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.team-table-wrap { overflow-x: auto; }
.team-table { width: 100%; border-collapse: collapse; }
.team-table th { text-align: left; font-size: 13px; font-weight: 650; padding: 16px 24px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.team-table td { padding: 16px 24px; border-bottom: 1px solid var(--line); }
.team-table tbody tr:last-child td { border-bottom: 0; }
.team-table tr.gone td { color: var(--muted); }
.team-table .right { text-align: right; }
.team-name { display: flex; align-items: center; gap: 12px; font-weight: 600; white-space: nowrap; }
.team-name .avatar { width: 34px; height: 34px; font-size: 12px; }
.side-panel.team-panel { background: var(--bg); }
.team-panel .sp-body { padding: 10px; }
.team-note { margin: 0 0 10px; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-2); font-weight: 600; }
.br-sec { background: var(--panel); border-radius: 14px; padding: 4px 20px 18px; margin-bottom: 10px; }
.br-sec h3 { display: flex; justify-content: space-between; align-items: center; font-size: 17px; margin: 0 0 14px; padding: 16px 0 14px; border-bottom: 1px solid var(--line); }
.br-kv { margin-bottom: 14px; }
.br-k { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.br-v { font-size: 14.5px; word-break: break-word; }
.br-v a { color: var(--accent-2); text-decoration: underline; }
.team-dot { display: inline-block; width: 26px; height: 26px; border-radius: 50%; }
.br-foot { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); background: var(--panel); }
.br-foot.two { grid-template-columns: 1fr 1fr; }
.br-foot button { padding: 18px 0; border: 0; background: none; color: var(--accent-2); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.br-foot button + button { border-left: 1px solid var(--line-strong); }
.br-foot button:hover { background: var(--panel-2); }
.row-ctl.pair > input, .row-ctl.pair > select { flex: 1; min-width: 0; }
.row-ctl.pair > .cell-label { flex: none; min-width: 120px; border-left: 1px solid var(--line); }
.link-prefix { display: flex; align-items: center; padding: 0 4px 0 14px; color: var(--muted); font-size: 13px; white-space: nowrap; background: var(--panel-2); border-right: 1px solid var(--line); padding-right: 12px; }
.team-swatches { align-items: center; padding: 10px 14px; }
.team-hours-head { display: flex; align-items: baseline; justify-content: space-between; margin-top: 24px; }
.team-hours-head .link-btn { color: var(--text); }
.team-hours-row { display: flex; justify-content: space-between; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.hours-edit { display: flex; flex-direction: column; }
.hours-row { display: grid; grid-template-columns: auto 1fr 130px auto 130px; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours-row:last-child { border-bottom: 0; }
.hours-row input[type=time]:disabled { opacity: .4; }
.hours-day { font-weight: 600; }
.fullpage.ob { display: flex; flex-direction: column; }
.ob-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 40px; }
.ob-crumb { display: flex; align-items: center; gap: 10px; }
.ob-crumb .dot { width: 8px; height: 8px; background: var(--accent); box-shadow: 0 0 8px rgba(255, 45, 63, .8); }
.ob-body { flex: 1; width: 100%; max-width: 800px; margin: 0 auto; padding: 8vh 24px 40px; }
.ob-body h1 { font-size: 40px; line-height: 1.15; margin: 10px 0 18px; }
.ob-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ob-desc { color: var(--muted); font-size: 17px; margin: 0 0 26px; }
.ob-note { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.ob-opt { display: flex; align-items: center; gap: 18px; padding: 22px 24px; margin-bottom: 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--panel); cursor: pointer; }
.ob-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ob-opt.on { border-color: #ff3b4b; box-shadow: var(--edge-soft); }
.ob-radio { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid var(--line-strong); }
.ob-opt.on .ob-radio { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 4px, transparent 5px); }
.ob-text { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.ob-text b { font-size: 17px; }
.ob-text span { color: var(--muted); }
.ob-tag { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2); }
.ob-when { margin-top: 4px; }
.ob-review { border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; background: var(--panel); }
.ob-review > div { display: grid; grid-template-columns: 200px 1fr auto; align-items: center; gap: 12px; padding: 20px 24px; }
.ob-review > div + div { border-top: 1px solid var(--line); }
.ob-k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ob-foot { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 40px; border-top: 1px solid var(--line); background: var(--bg); }
.ob-bars { display: flex; gap: 8px; }
.ob-bars span { width: 52px; height: 4px; border-radius: 2px; background: var(--line-strong); }
.ob-bars span.on { background: var(--accent); box-shadow: 0 0 6px rgba(255, 45, 63, .7); }
.ob-confirm { text-align: center; font-size: 15px; }
@media (max-width: 640px) {
  .ob-head, .ob-foot { padding-left: 16px; padding-right: 16px; }
  .ob-body h1 { font-size: 30px; }
  .ob-review > div { grid-template-columns: 1fr auto; }
  .ob-review .ob-k { grid-column: 1 / -1; }
  .hours-row { grid-template-columns: auto 1fr; }
  .row-ctl.pair { flex-wrap: wrap; }
}

/* sidebar groups (Porter's collapsible "Shop Settings") */
.nav-group-head {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border: 0; border-radius: 12px;
  background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; cursor: pointer;
}
.nav-group-head:hover { background: var(--panel); color: var(--text); }
.nav-group-head span { flex: 1; text-align: left; }
.nav-group-head svg:last-child { width: 16px; height: 16px; transition: transform .15s; transform: rotate(180deg); }
.nav-group.open .nav-group-head svg:last-child { transform: none; }
.nav-sub { display: none; flex-direction: column; gap: 4px; margin: 4px 0 0 26px; padding-left: 10px; border-left: 1px solid var(--line); }
.nav-group.open .nav-sub { display: flex; }
.nav .nav-sub a { padding: 9px 14px; font-size: 13px; text-transform: none; letter-spacing: 0; font-weight: 500; }
.row-help { padding: 6px 14px 10px; font-size: 12px; color: var(--muted); }

/* customers */
.top-act { margin-left: 6px; }
.cust-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.cust-search { display: flex; align-items: center; gap: 10px; width: 300px; max-width: 100%; padding: 0 14px; height: 44px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
.cust-search svg { width: 18px; height: 18px; flex: none; }
.cust-search input { border: 0; background: none; padding: 0; height: 100%; flex: 1; min-width: 0; color: var(--text); outline: none; box-shadow: none; }
.cust-artists { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 200px; max-width: 320px; height: 44px; padding: 0 16px; border-radius: 12px; background: var(--edge-bg); border: 1px solid rgba(255, 45, 63, .7); box-shadow: var(--edge-soft); color: var(--text); font: inherit; cursor: pointer; }
.cust-artists svg { transition: transform .15s; flex: none; }
.cust-artists.open svg { transform: rotate(180deg); }
.popover.cust-artist-pop { min-width: 220px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font: inherit; font-size: 16px; padding: 12px 18px; cursor: pointer; white-space: nowrap; margin-bottom: -1px; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); font-weight: 600; border-bottom-color: var(--accent); }
.info-box { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin-bottom: 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line-strong); }
.info-box p { margin: 4px 0 0; color: var(--muted); }
.info-box > div { flex: 1; }
.info-i { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--accent-2); color: var(--accent-2); font-size: 12px; font-weight: 800; }
.cust-empty { padding: 28px 24px; margin: 0; color: var(--muted); }
.cust-name { font-weight: 600; }
.nowrap { white-space: nowrap; }
.blocked-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; vertical-align: middle; }
.blocked-tag.lg { margin-top: 8px; font-size: 12px; }
.pager { display: flex; justify-content: center; gap: 4px; padding: 12px; border-top: 1px solid var(--line); }
.pager button, .pager span { min-width: 36px; height: 34px; display: grid; place-items: center; border-radius: 8px; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.pager button:hover:not(:disabled) { background: var(--panel-2); color: var(--text); }
.pager button:disabled { opacity: .35; cursor: default; }
.pager span.on { background: var(--panel-2); color: var(--text); font-weight: 700; }

.cust-page { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 28px; align-items: start; }
.cust-side { background: var(--panel); border-radius: var(--radius); padding: 18px 22px 24px; position: sticky; top: 90px; }
.cust-side-top { display: flex; align-items: center; justify-content: space-between; }
.cust-back { color: var(--muted); font-weight: 600; }
.cust-back:hover { color: var(--text); text-decoration: none; }
.cust-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 10px 0 22px; }
.cust-hero h1 { font-size: 26px; margin: 10px 0 0; text-transform: none; letter-spacing: 0; }
.cust-hero .btn { margin-top: 14px; padding: 0 26px; }
.avatar.cust-avatar { width: 96px; height: 96px; font-size: 32px; font-weight: 800; background: #000; color: #fff; box-shadow: var(--edge-soft); border: 1px solid rgba(255, 45, 63, .5); }
.cust-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
.cust-stats div, .pay-stats div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cust-stats div + div { border-left: 1px solid var(--line); }
.cust-stats b { font-size: 17px; }
.cust-stats span, .pay-stats span { color: var(--muted); font-size: 12px; }
.cust-info { margin: 20px 0 0; }
.cust-info dt { color: var(--muted); font-size: 13px; margin-top: 16px; }
.cust-info dd { margin: 4px 0 0; font-size: 16px; overflow-wrap: anywhere; }
.cust-info dd.pre { white-space: pre-wrap; font-size: 14px; }
.cust-main { min-width: 0; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 18px; padding-bottom: 26px; position: relative; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 1px; background: var(--line-strong); }
.tl-icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--panel); }
.tl-icon svg { width: 18px; height: 18px; }
.tl-title { display: block; font-size: 18px; font-weight: 700; margin-top: 6px; }
.link-plain { background: none; border: 0; padding: 0; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.link-plain.tl-title { font-size: 18px; font-weight: 700; }
.link-plain:hover { color: var(--accent-2); }
.tl-detail { margin-top: 4px; font-size: 15px; }
.tl-more { margin-left: 62px; }
.cust-sum { color: var(--muted); font-size: 16px; margin: 0 0 16px; }
.cust-appts { width: 100%; border-collapse: collapse; }
.cust-appts th { text-align: left; color: var(--muted); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--line-strong); }
.cust-appts td { padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cust-appts tbody tr { cursor: pointer; }
.cust-appts tbody tr:hover td { background: var(--panel); }
.cust-appts .right { text-align: right; }
.chev-cell { color: var(--muted); width: 24px; }
.pay-stats { display: flex; gap: 48px; flex-wrap: wrap; padding-bottom: 24px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.pay-stats div { align-items: flex-start; }
.pay-stats b { font-size: 26px; }
.pay-list { list-style: none; margin: 0; padding: 0; }
.pay-list li { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.files-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.file-card { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.file-thumb { aspect-ratio: 7 / 6; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--panel); overflow: hidden; padding: 0; cursor: pointer; display: grid; place-items: center; margin-bottom: 8px; }
.file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-del { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .7); color: #fff; cursor: pointer; opacity: 0; transition: opacity .15s; }
.file-card:hover .file-del, .file-del:focus { opacity: 1; }
.file-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdf-badge { padding: 8px 14px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-2); font-weight: 800; letter-spacing: .05em; }
.pdf-badge.sm { padding: 4px 6px; font-size: 10px; }
.modal-body p.center { text-align: center; }
.drop-zone { display: grid; place-items: center; min-height: 140px; padding: 20px; border: 1px dashed var(--line-strong); border-radius: 12px; cursor: pointer; text-align: center; }
.drop-zone.over, .drop-zone:hover { border-color: var(--accent); background: var(--accent-soft); }
.drop-text { color: var(--accent-2); text-decoration: underline; font-weight: 600; overflow-wrap: anywhere; }
.viewer { position: fixed; inset: 0; z-index: 80; background: #000; display: flex; flex-direction: column; }
.viewer-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: #fff; }
.viewer-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.viewer-count { font-weight: 700; font-size: 13px; margin-left: 6px; }
.viewer-btn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; border: 0; background: none; color: #fff; font-size: 26px; cursor: pointer; }
.viewer-btn:hover { background: rgba(255, 255, 255, .1); text-decoration: none; }
.viewer-btn.danger:hover { color: var(--accent-2); }
.viewer-btn svg { width: 22px; height: 22px; }
.viewer-stage { flex: 1; min-height: 0; position: relative; display: grid; place-items: center; padding: 0 16px; background: #000; }
.viewer-stage img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; }
.viewer-stage iframe { width: min(100%, 1000px); height: 100%; border: 0; background: #fff; }
.viewer-full { position: absolute; right: 16px; bottom: 12px; }
.viewer-strip { display: flex; justify-content: center; gap: 8px; padding: 14px; overflow-x: auto; }
.viewer-strip button { width: 72px; height: 54px; flex: none; padding: 0; border-radius: 6px; border: 2px solid transparent; background: #111; overflow: hidden; cursor: pointer; display: grid; place-items: center; }
.viewer-strip button.on { border-color: var(--accent); box-shadow: var(--edge-soft); }
.viewer-strip img { width: 100%; height: 100%; object-fit: cover; }
.search-bg { align-items: flex-start; padding-top: 6vh; }
.search-pop { width: min(1100px, calc(100vw - 32px)); max-height: 88vh; display: flex; flex-direction: column; background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow), var(--edge-soft); overflow: hidden; }
.search-in { display: flex; align-items: center; gap: 14px; padding: 0 22px; height: 66px; border-bottom: 1px solid var(--line); color: var(--muted); }
.search-in svg { width: 22px; height: 22px; flex: none; }
.search-in input { flex: 1; border: 0; background: none; font-size: 18px; color: var(--text); outline: none; box-shadow: none; padding: 0; height: 100%; }
.search-res { overflow-y: auto; padding: 0 28px 16px; }
.search-res:empty { display: none; }
.sr-head { color: var(--muted); font-size: 16px; padding: 22px 0 10px; }
.sr-row { display: flex; align-items: center; gap: 18px; width: 100%; padding: 18px 8px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); font: inherit; font-size: 15px; text-align: left; cursor: pointer; border-radius: 0; }
.sr-row:hover { background: var(--panel-2); }
.sr-row svg { width: 24px; height: 24px; flex: none; color: var(--muted); }
.sr-row b { white-space: nowrap; }
.sr-row span:not(.blocked-tag) { color: var(--muted); }
.sr-plus { width: 24px; text-align: center; font-size: 26px; line-height: 1; color: var(--text) !important; }
.row-ctl.pair > .phone-in { flex: 1; min-width: 0; }
@media (max-width: 900px) {
  .cust-page { grid-template-columns: minmax(0, 1fr); }
  .cust-side { position: static; }
  .cust-search { width: 100%; }
  .cust-appts th:nth-child(3), .cust-appts td:nth-child(3) { display: none; }
  .sr-row { flex-wrap: wrap; gap: 6px 14px; }
  .sr-row span { flex-basis: 100%; padding-left: 38px; }
}

/* checkout */
.ck-table tbody tr { cursor: pointer; }
.ck-table tbody tr:hover td { background: var(--panel-2); }
.ck-amt { display: inline-block; min-width: 96px; font-weight: 600; }
.ck-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 6px; border: 1px solid var(--line-strong); font-size: 12px; font-weight: 700; white-space: nowrap; vertical-align: middle; }
.ck-tag.ok { border-color: transparent; background: rgba(63, 174, 106, .16); color: #5fd08b; }
.ck-tag.void { border-color: transparent; background: var(--accent-soft); color: var(--accent-2); }
.ck-pager { justify-content: flex-end; align-items: center; gap: 10px; padding-right: 24px; }
.ck-page { display: flex; flex-direction: column; }
.ck-step { color: var(--muted); padding-left: 14px; border-left: 1px solid var(--line-strong); font-size: 13px; }
.ck-top-due { font-size: 24px; margin-left: 10px; }
.ck-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 420px; min-height: calc(100vh - 76px); }
.ck-main { padding: 36px 48px 80px; max-width: 900px; width: 100%; }
.ck-sum { background: var(--panel); padding: 32px 36px; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.ck-sum-title { color: var(--accent-2); font-weight: 700; margin-bottom: 18px; }
.ck-sum-row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ck-sum-row.b { font-weight: 700; }
.ck-sum-row .link-btn[disabled] { opacity: .4; cursor: default; }
.ck-sum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 22px 0 6px; font-size: 20px; font-weight: 600; }
.ck-sum-total b { font-size: 34px; }
.ck-warn { color: var(--accent-2); font-weight: 600; font-size: 13px; text-align: right; margin: 0; min-height: 1em; }
.ck-warn.left { text-align: left; margin: 6px 0 22px; }
.ck-sum-foot { margin-top: auto; padding-top: 24px; }
.ck-go { width: 100%; height: 56px; font-size: 16px; border-radius: 999px; }
p.center, .center { text-align: center; }
.ck-rows { margin: 22px 0 30px; }
.ck-picked { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 0 6px 0 14px; }
.ck-lines-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ck-line { display: flex; align-items: center; gap: 12px; width: 100%; padding: 18px 22px; margin-bottom: 10px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); font: inherit; font-size: 16px; text-align: left; cursor: pointer; }
.ck-line:hover { border-color: rgba(255, 45, 63, .6); }
.ck-kind { padding: 2px 8px; border-radius: 6px; background: var(--panel-3); color: var(--muted); font-size: 12px; font-weight: 600; }
.ck-adds { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.ck-adds .btn { display: inline-flex; align-items: center; gap: 8px; }
.ck-adds svg { width: 18px; height: 18px; }
.ck-back { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; padding: 0; margin-bottom: 22px; }
.ck-back:hover { color: var(--text); }
.ck-pay-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.ck-pay-head .fp-h { margin: 0; }
.ck-method { display: flex; align-items: center; gap: 18px; width: 100%; padding: 18px 26px; margin-bottom: 12px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); font: inherit; font-size: 16px; text-align: left; cursor: pointer; }
.ck-method svg { width: 24px; height: 24px; flex: none; color: var(--muted); }
.ck-method span:first-of-type { flex: 1; }
.ck-method:hover:not(.off) { border-color: rgba(255, 45, 63, .7); box-shadow: var(--edge-soft); }
.ck-method.on { border-color: var(--accent); box-shadow: var(--edge-soft); }
.ck-method.off { opacity: .5; }
.ck-bal { padding: 3px 9px; border-radius: 6px; background: rgba(63, 174, 106, .16); color: #5fd08b; font-size: 13px; font-weight: 600; }
.ck-done { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px 0; text-align: center; }
.ck-done-icon { width: 56px; height: 56px; color: #5fd08b; }
.ck-change { font-size: 22px; }
.tip-pop { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.tip-icon { width: 54px; height: 54px; padding: 12px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-2); box-shadow: var(--edge-soft); }
.tip-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; }
.tip-opt { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 6px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--panel-2); color: var(--text); font: inherit; cursor: pointer; }
.tip-opt span { color: var(--muted); font-size: 13px; }
.tip-opt.on, .tip-opt:hover { border-color: var(--accent); box-shadow: var(--edge-soft); }
.tip-amt { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; padding: 14px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--panel-2); font-size: 30px; font-weight: 600; }
.tip-amt span { color: var(--muted); font-size: 20px; }
.tip-amt input { width: 160px; border: 0; background: none; font: inherit; color: var(--text); text-align: left; padding: 0; box-shadow: none; }
.modal.ck-picker { width: min(900px, calc(100vw - 32px)); }
.pk-group { border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; }
.pk-group-head { padding: 16px 20px; background: var(--accent-soft); color: var(--accent-2); font-weight: 700; display: flex; gap: 10px; align-items: center; }
.pk-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; width: 100%; padding: 18px 20px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--text); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.pk-row:hover { background: var(--panel-2); }
.pk-row.add { justify-content: flex-start; border: 0; border-radius: 12px; }
.pk-search { width: 100%; margin-bottom: 14px; }
.pk-list { min-height: 200px; border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.pk-list p, .pk-soon { padding: 14px; margin: 0; }
.link-btn.danger-text { color: var(--accent-2); }
.ck-split-body { max-width: 960px; margin: 0 auto; padding: 48px 24px 80px; }
.ck-split-amt { font-size: 38px; margin: 18px 0 26px; text-transform: none; letter-spacing: 0; }
.money-in.sp-in { height: 58px; }
.money-in.sp-in input { font-size: 18px; }
.ck-max { border: 0; border-radius: 8px; margin: 8px; padding: 0 14px; background: var(--accent-soft); color: var(--accent-2); font: inherit; font-weight: 700; cursor: pointer; }
.side-panel.ck-panel { background: var(--bg); }
.ck-panel .sp-body { padding: 12px; }
.ck-card { background: var(--panel); border-radius: 14px; padding: 20px 24px; margin-bottom: 12px; }
.ck-card h3 { margin: 0 0 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 18px; text-transform: none; letter-spacing: 0; }
.ck-card-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.ck-card-head h3 { border: 0; margin: 0; }
.ck-kv { padding: 10px 0; }
.ck-kv > div:first-child { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 3px; }
.ck-dline { display: flex; justify-content: space-between; padding: 10px 0; color: var(--muted); }
.ck-dtotal { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; margin-top: 6px; border-top: 1px solid var(--line-strong); font-size: 18px; font-weight: 700; }
.ck-dtotal b { font-size: 28px; color: #5fd08b; }
.ck-tx { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.ck-tx:last-of-type { border-bottom: 0; }
.ck-tx .ck-tag { margin-top: 6px; }
.ck-collect { width: 100%; margin-top: 12px; }
.rc-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.rc-opt { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--panel-2); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.rc-opt:hover { border-color: var(--accent); box-shadow: var(--edge-soft); }
@media (max-width: 900px) {
  .ck-body { grid-template-columns: minmax(0, 1fr); }
  .ck-main { padding: 20px 16px 30px; }
  .ck-sum { border-left: 0; border-top: 1px solid var(--line); padding: 24px 16px 40px; }
  .ck-step, .ck-top-due, .chooser-bar .small { display: none; }
  .tip-opts { grid-template-columns: repeat(2, 1fr); }
  .rc-opts { grid-template-columns: 1fr; }
}

/* reports */
.rp-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.rp-filters select, .rp-filters input[type=date] { width: auto; height: 44px; border-radius: 12px; }
.rp-range { color: var(--muted); padding: 0 6px; }
.rp-note { margin-bottom: 18px; }
.card.rp-card { padding: 0; overflow: hidden; margin-bottom: 18px; }
.rp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 24px 16px; border-bottom: 1px solid var(--line); }
.rp-head h2 { margin: 0 0 4px; }
.rp-head p { margin: 0; font-size: 13px; }
.rp-dl { flex: none; }
.rp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-bottom: 1px solid var(--line); }
.rp-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 12px; text-align: center; }
.rp-stat + .rp-stat { border-left: 1px solid var(--line); }
.rp-stat span { color: var(--muted); font-size: 12px; }
.rp-stat b { font-size: 22px; }
.rp-stat small { color: var(--faint); font-size: 11px; }
.rp-chart { display: flex; align-items: flex-end; gap: 4px; height: 190px; padding: 18px 24px 34px; }
.rp-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; min-width: 4px; }
.rp-bar span { width: 100%; max-width: 38px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--accent-2), var(--accent-deep)); box-shadow: 0 0 12px rgba(255, 45, 63, .35); }
.rp-bar em { position: absolute; bottom: -22px; font-style: normal; font-size: 10px; color: var(--muted); white-space: nowrap; }
.rp-table th.num, .rp-table td.num { text-align: right; white-space: nowrap; }
.rp-table td.warn { color: var(--warn); }
.rp-table tfoot td { border-top: 1px solid var(--line-strong); font-weight: 700; }
.rp-table tbody tr[data-ck] { cursor: pointer; }
.rp-table tbody tr[data-ck]:hover td { background: var(--panel-2); }
.rp-share { display: inline-block; width: 120px; height: 8px; border-radius: 4px; background: var(--panel-3); overflow: hidden; vertical-align: middle; margin-right: 8px; }
.rp-share span { display: block; height: 100%; background: var(--accent); box-shadow: 0 0 8px rgba(255, 45, 63, .5); }
.rp-warn { margin: 0; padding: 12px 24px; color: var(--warn); font-size: 13px; border-top: 1px solid var(--line); }
.rp-foot { margin: 0; padding: 12px 24px 16px; }
@media (max-width: 700px) {
  .rp-head { flex-direction: column; }
  .rp-stat + .rp-stat { border-left: 0; }
  .rp-chart { padding: 14px 12px 30px; }
}

/* sign in + account menu */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(ellipse at 50% 40%, rgba(255, 45, 63, .10), transparent 60%), var(--bg); }
.auth-card { width: min(440px, 100%); display: flex; flex-direction: column; gap: 14px; padding: 36px 34px 30px; border-radius: 22px; background: var(--panel); border: 1px solid rgba(255, 45, 63, .35); box-shadow: var(--shadow), var(--edge-soft); }
.auth-brand { font-size: 15px; margin-bottom: 6px; }
.auth-card h1 { margin: 4px 0 6px; font-size: 26px; }
.auth-card p { margin: 0; }
.auth-card .field { margin: 0; }
.auth-btn { height: 48px; margin-top: 6px; font-size: 15px; }
.auth-err { color: var(--accent-2); font-weight: 600; font-size: 13px; min-height: 1em; }
.auth-err:empty { display: none; }
.acct { margin-left: 10px; }
.acct-btn { display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; border: 0; border-radius: 999px; background: none; color: var(--text); font: inherit; cursor: pointer; }
.acct-btn:hover { background: var(--panel); }
.acct-btn .avatar { width: 34px; height: 34px; font-size: 12px; }
.acct-name { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; max-width: 190px; }
.acct-name b, .acct-name small { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-name small { color: var(--muted); font-size: 12px; }
.popover.acct-pop { min-width: 270px; }
.acct-head { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); }
.team-login-btns { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 0 4px; }
.reset-url { width: 100%; margin: 12px 0 6px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
.biz-select { width: auto; min-width: 200px; }
@media (max-width: 700px) {
  .acct-name, .acct-btn > svg { display: none; }
}

/* ================================================================ theme layer
   The dark "neon" look: near-black background, borderless rounded panels, uppercase headings,
   pill buttons and a soft red glow on whatever is active. Layout lives above; this only restyles. */
::selection { background: rgba(255, 45, 63, .35); }
* { scrollbar-color: var(--panel-3) transparent; scrollbar-width: thin; }
h1, h2, h3 { font-family: var(--font); }

/* shell */
.topbar { background: var(--bg); border-bottom: 1px solid var(--line); height: 68px; }
.brand { font-size: 16px; letter-spacing: .04em; text-transform: uppercase; }
.brand-mark { border-radius: 10px; box-shadow: var(--glow); }
.sidebar { background: var(--bg); border-right: 1px solid var(--line); padding: 18px 14px; }
.nav { gap: 4px; }
.nav a { padding: 12px 16px; border-radius: 12px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.nav a:hover { background: var(--panel); }
.nav a.active { background: var(--accent); color: #fff; box-shadow: var(--glow); }
.nav a.active::before { display: none; }
.nav a.active svg { color: #fff; }
.nav-sep { margin: 14px 10px; }
.main { background: var(--bg); }
.page-head h1, .main > h1 { color: var(--accent); text-transform: uppercase; letter-spacing: .02em; font-size: 26px; font-weight: 700; text-shadow: 0 0 22px rgba(255, 45, 63, .35); }

/* panels */
.card { border: 0; border-radius: var(--radius); padding: 24px; }
.card h2, .fp-h, .modal-head h2 { text-transform: uppercase; letter-spacing: .03em; font-weight: 700; }
.rows { border-color: var(--line); border-radius: 14px; }
.row:first-child .row-label { border-top-left-radius: 14px; }
.row:last-child .row-label { border-bottom-left-radius: 14px; }
.modal { border: 0; border-radius: 20px; }
.modal-foot { border-radius: 0 0 20px 20px; }
.popover { border-color: var(--line-strong); border-radius: 14px; }
.summary-card { border: 0; border-radius: var(--radius); }
.fullpage, .chooser { background: var(--bg); }
.chooser-bar { background: var(--bg); }

/* controls */
.btn { border-radius: 999px; }
.btn.icon { border-radius: 50%; }
.btn.primary { box-shadow: var(--glow-soft); }
.btn.primary:hover:not(:disabled) { box-shadow: var(--glow); }
.btn.primary:disabled { box-shadow: none; }
.btn.pill { box-shadow: var(--glow); }
input, select, textarea { border-radius: 12px; border-color: var(--line-strong); }
.seg { border-radius: 999px; padding: 4px; }
.seg button { border-radius: 999px; }
.seg button.active { box-shadow: var(--glow-soft); }
.chip.on { box-shadow: var(--glow-soft); }
.switch input:checked + span { box-shadow: var(--glow-soft); }

/* calendar highlights */
.cal-cell.today .dn, .cal-head.today .dn { box-shadow: var(--glow); }
.cal-now, .cal-now::before { background: var(--accent); box-shadow: 0 0 8px rgba(255, 45, 63, .8); }
.dtp-day.sel, .mc-day.sel, .dtp-slot.sel { box-shadow: var(--glow); }
.date-nav { border-radius: 999px; overflow: hidden; }
.page-head h1, .main > h1 { text-shadow: 0 0 18px rgba(255, 45, 63, .55), 0 4px 40px rgba(255, 45, 63, .45); }
.cal-month { background: var(--panel); border-radius: var(--radius); overflow: hidden; }
.cal-month .cal-cell:not(:nth-child(7n)) { border-right: 1px solid var(--line); }
.cal-scroll { border: 0; border-radius: var(--radius); }

/* neon-edge look for active and main buttons (overrides the solid red fills above) */
.btn.primary, .btn.pill, .btn.dark, .nav a.active, .seg button.active, .chip.on {
  background: var(--edge-bg); color: #fff; border: 1.5px solid #ff3b4b; box-shadow: var(--edge);
}
.nav a.active { color: #fff; }
.nav a.active svg { color: var(--accent-2); }
.seg button.active, .chip.on { box-shadow: var(--edge-soft); }
.btn.primary:hover:not(:disabled), .btn.pill:hover, .btn.dark:hover { background: #1a1a1d; filter: none; box-shadow: var(--edge), 0 0 36px rgba(255, 45, 63, .35); }
.btn.primary:disabled { border-color: rgba(255, 59, 75, .35); box-shadow: none; color: var(--muted); background: var(--edge-bg); }
.cal-cell.today .dn, .cal-head.today .dn, .dtp-day.sel, .mc-day.sel, .dtp-slot.sel {
  background: var(--edge-bg); color: #fff; box-shadow: 0 0 0 1.5px #ff3b4b, var(--edge-soft);
}
.mc-day.sel.end { background: var(--edge-bg); }
.brand-mark { box-shadow: var(--edge-soft); }
