/* Copied unchanged from the RBS Team App (RealBooneStudios/CH booking/public/app.css @ a4d5e55, 2026-11-06)
   so Books looks exactly like it. Re-copy it when the Team App design changes; Books-only styles live in app.css. */
/* Real Boone Studios booking app — styled after Apple's current (macOS/iOS 26 "Liquid Glass") design language:
   translucent glass surfaces over a soft wallpaper, concentric rounded corners, pill controls,
   SF system type, and full light/dark support. */

:root {
  color-scheme: light dark;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI Variable", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;

  /* system palette (light) */
  --accent: #ff6b1a;
  --accent-2: #ff3d6e;
  --accent-ink: #ffffff;
  --accent-text: #e2560b;
  --accent-soft: rgba(255, 107, 26, .13);
  --blue: #007aff; --green: #34c759; --red: #ff3b30; --orange: #ff9500; --yellow: #ffcc00; --purple: #af52de; --teal: #30b0c7; --indigo: #5856d6;

  --bg: #f2f2f7;
  --ink: #1d1d1f;
  --ink-2: rgba(60, 60, 67, .78);
  --muted: rgba(60, 60, 67, .58);
  --line: rgba(60, 60, 67, .12);
  --line-strong: rgba(60, 60, 67, .2);
  --fill: rgba(118, 118, 128, .12);
  --fill-2: rgba(118, 118, 128, .08);
  --glass: rgba(255, 255, 255, .62);
  --glass-strong: rgba(255, 255, 255, .8);
  --glass-edge: rgba(255, 255, 255, .7);
  --card: rgba(255, 255, 255, .74);
  --field: rgba(255, 255, 255, .7);
  --shadow: 0 1px 1px rgba(0, 0, 0, .03), 0 8px 24px -8px rgba(0, 0, 0, .12);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .04), 0 24px 60px -20px rgba(0, 0, 0, .25);
  --highlight: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 0 0 1px rgba(255, 255, 255, .35);

  --ok: #248a3d; --ok-soft: rgba(52, 199, 89, .16);
  --warn: #c93400; --warn-soft: rgba(255, 149, 0, .17);
  --err: #d70015; --err-soft: rgba(255, 59, 48, .13);
  --info: #0066d6; --info-soft: rgba(0, 122, 255, .12);
  --neutral-soft: rgba(118, 118, 128, .14);

  --wash-1: rgba(255, 149, 0, .22); --wash-2: rgba(255, 45, 85, .16); --wash-3: rgba(0, 122, 255, .14); --wash-4: rgba(52, 199, 89, .1);
  --seg-on: rgba(255, 255, 255, .8);
  --r-xl: 26px; --r-lg: 20px; --r-md: 14px; --r-sm: 10px;
  --blur: blur(28px) saturate(180%);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #ff7a2e;
    --accent-2: #ff4f7b;
    --accent-text: #ff9a5c;
    --accent-soft: rgba(255, 122, 46, .2);
    --blue: #0a84ff; --green: #30d158; --red: #ff453a; --orange: #ff9f0a; --purple: #bf5af2; --teal: #40c8e0; --indigo: #5e5ce6;
    --bg: #000000;
    --ink: #f5f5f7;
    --ink-2: rgba(235, 235, 245, .8);
    --muted: rgba(235, 235, 245, .55);
    --line: rgba(84, 84, 88, .45);
    --line-strong: rgba(84, 84, 88, .7);
    --fill: rgba(118, 118, 128, .24);
    --fill-2: rgba(118, 118, 128, .16);
    --glass: rgba(40, 40, 44, .55);
    --glass-strong: rgba(44, 44, 48, .82);
    --glass-edge: rgba(255, 255, 255, .1);
    --card: rgba(28, 28, 30, .72);
    --field: rgba(118, 118, 128, .18);
    --shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 10px 30px -10px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .8);
    --highlight: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(255, 255, 255, .06);
    --ok: #30d158; --ok-soft: rgba(48, 209, 88, .18);
    --warn: #ffb340; --warn-soft: rgba(255, 159, 10, .2);
    --err: #ff6961; --err-soft: rgba(255, 69, 58, .2);
    --info: #64b5ff; --info-soft: rgba(10, 132, 255, .22);
    --neutral-soft: rgba(118, 118, 128, .26);
    --wash-1: rgba(255, 122, 46, .2); --wash-2: rgba(191, 90, 242, .16); --wash-3: rgba(10, 132, 255, .16); --wash-4: rgba(48, 209, 88, .06);
    --seg-on: rgba(99, 99, 102, .75);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --accent: #ff7a2e;
  --accent-2: #ff4f7b;
  --accent-text: #ff9a5c;
  --accent-soft: rgba(255, 122, 46, .2);
  --blue: #0a84ff; --green: #30d158; --red: #ff453a; --orange: #ff9f0a; --purple: #bf5af2; --teal: #40c8e0; --indigo: #5e5ce6;
  --bg: #000000;
  --ink: #f5f5f7;
  --ink-2: rgba(235, 235, 245, .8);
  --muted: rgba(235, 235, 245, .55);
  --line: rgba(84, 84, 88, .45);
  --line-strong: rgba(84, 84, 88, .7);
  --fill: rgba(118, 118, 128, .24);
  --fill-2: rgba(118, 118, 128, .16);
  --glass: rgba(40, 40, 44, .55);
  --glass-strong: rgba(44, 44, 48, .82);
  --glass-edge: rgba(255, 255, 255, .1);
  --card: rgba(28, 28, 30, .72);
  --field: rgba(118, 118, 128, .18);
  --shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 10px 30px -10px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .8);
  --highlight: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(255, 255, 255, .06);
  --ok: #30d158; --ok-soft: rgba(48, 209, 88, .18);
  --warn: #ffb340; --warn-soft: rgba(255, 159, 10, .2);
  --err: #ff6961; --err-soft: rgba(255, 69, 58, .2);
  --info: #64b5ff; --info-soft: rgba(10, 132, 255, .22);
  --neutral-soft: rgba(118, 118, 128, .26);
  --wash-1: rgba(255, 122, 46, .2); --wash-2: rgba(191, 90, 242, .16); --wash-3: rgba(10, 132, 255, .16); --wash-4: rgba(48, 209, 88, .06);
  --seg-on: rgba(99, 99, 102, .75);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; line-height: 1.45; min-height: 100vh; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.015em; }
h1 { font-size: 2rem; font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: 1.12rem; font-weight: 650; }
h3 { font-size: 1rem; }
code { background: var(--fill); padding: 1px 6px; border-radius: 6px; font: .88em ui-monospace, "SF Mono", Menlo, monospace; }
::selection { background: var(--accent-soft); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.pre { white-space: pre-wrap; font-family: inherit; }
.right { margin-left: auto; }
.right-text { text-align: right; }
.warn-text { color: var(--err); }
.dim { opacity: .5; }
.i { width: 18px; height: 18px; flex: none; }

/* Soft wallpaper behind the glass. */
body {
  background:
    radial-gradient(60vmax 50vmax at 8% -10%, var(--wash-1), transparent 60%),
    radial-gradient(50vmax 45vmax at 105% 5%, var(--wash-2), transparent 60%),
    radial-gradient(60vmax 50vmax at 80% 110%, var(--wash-3), transparent 60%),
    radial-gradient(50vmax 40vmax at -10% 100%, var(--wash-4), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
}

/* Liquid-glass material */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--highlight), var(--shadow-lg);
}

.logo {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 70%, white), var(--accent) 45%, var(--accent-2));
  color: var(--accent-ink); font-weight: 800; font-size: .72rem; letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 4px 12px -4px rgba(255, 90, 40, .6);
}
.logo.big { width: 56px; height: 56px; border-radius: 16px; font-size: 1.15rem; margin-bottom: 16px; }
.logo-img { display: block; height: 32px; width: auto; max-width: 120px; object-fit: contain; flex: none; border-radius: 6px; }
.logo-img.big { height: 64px; max-width: 220px; margin-bottom: 16px; }
.brand-preview { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r-md); background: var(--fill-2); }
.brand-preview .logo.big, .brand-preview .logo-img.big { margin-bottom: 0; }
.doc-brand { display: flex; gap: 14px; align-items: flex-start; }
.pub-brand span { white-space: nowrap; }

/* ---------- admin shell ---------- */
.admin { display: grid; grid-template-columns: 272px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 10px; margin: 10px 0 10px 10px; height: calc(100vh - 20px);
  border-radius: var(--r-xl); padding: 14px 10px; display: flex; flex-direction: column; overflow-y: auto; z-index: 30;
}
.brand { padding: 4px 8px 14px; }
.brand a { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: .98rem; text-decoration: none; }
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: .74rem; }
.nav-section { font-size: .72rem; font-weight: 600; color: var(--muted); padding: 14px 10px 4px; }
.sidebar nav { display: grid; gap: 1px; }
.sidebar nav a {
  display: flex; align-items: center; gap: 10px; color: var(--ink); padding: 6px 8px; border-radius: 11px;
  font-size: .92rem; font-weight: 500; transition: background .15s, transform .25s var(--spring);
}
.sidebar nav a:hover { background: var(--fill-2); text-decoration: none; }
.sidebar nav a:active { transform: scale(.97); }
.sidebar nav a.active { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.tile {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7.5px; color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 82%, white), var(--tint));
  box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .4), 0 1px 2px rgba(0, 0, 0, .15);
}
.tile .i { width: 16px; height: 16px; stroke-width: 2; }
.sidebar-foot { margin-top: auto; padding: 12px 6px 2px; display: grid; gap: 10px; font-size: .85rem; }
.portal-link {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 999px; font-weight: 600;
  background: var(--fill-2); color: var(--accent-text);
}
.portal-link:hover { background: var(--accent-soft); text-decoration: none; }
.me { display: flex; align-items: center; gap: 10px; padding: 4px; }
.me > span:nth-child(2) { flex: 1; min-width: 0; font-weight: 600; line-height: 1.2; }
.me small { display: block; color: var(--muted); font-weight: 400; }
.me form { margin: 0; }
.avatar {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; font-weight: 700; font-size: .75rem; flex: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 75%, white), var(--c));
}
.link { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; font: inherit; font-size: .8rem; }
.link:hover { color: var(--accent-text); }

.content { padding: 14px 30px 70px; min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  margin: 0 -30px 18px; padding: 16px 30px 12px;
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 70%, transparent), transparent);
  mask-image: linear-gradient(to bottom, #000 75%, transparent);
}
.topbar h1 { margin: 0; }
.burger { display: none; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; place-items: center; background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-edge); box-shadow: var(--shadow); }
.navtoggle, .scrim { display: none; }

@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .sidebar { position: fixed; top: 10px; left: 0; width: 280px; transform: translateX(-110%); transition: transform .45s var(--spring); }
  .navtoggle:checked ~ .sidebar { transform: none; }
  .navtoggle:checked ~ .scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(0, 0, 0, .25); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
  .burger { display: grid; }
  .content { padding: 8px 16px 60px; }
  .topbar { margin: 0 -16px 14px; padding: 12px 16px 10px; }
  h1 { font-size: 1.6rem; }
}

/* ---------- surfaces ---------- */
.card {
  background: var(--card); border: 1px solid var(--glass-edge); border-radius: var(--r-lg); padding: 20px; margin-bottom: 16px;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: var(--highlight), var(--shadow);
}
.card.flush { padding: 0; overflow-x: auto; }
.card-head { padding: 16px 20px 4px; }
.narrow { max-width: 780px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.grid2.wide-left { grid-template-columns: 1.4fr 1fr; }
.grid2 > section > .card:last-child { margin-bottom: 0; }
@media (max-width: 1150px) { .grid2, .grid2.wide-left { grid-template-columns: 1fr; } }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .row2:not(.keep), .row3 { grid-template-columns: 1fr; gap: 0; } }
/* booking address rows stay side by side on phones */
.row-addr { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 12px; }
.row-nums { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .row-addr { grid-template-columns: 1fr 1fr; gap: 0 10px; } .row-addr > :first-child { grid-column: 1 / -1; } .row-nums { column-gap: 10px; } }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.stack { display: grid; gap: 10px; }
.actions { display: flex; gap: 10px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.inline-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-btns form { margin: 0; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- form controls ---------- */
.field { display: grid; gap: 5px; margin-bottom: 10px; font-size: .86rem; }
.field > span { color: var(--ink-2); font-weight: 550; padding-left: 2px; }
.field small { color: var(--muted); padding-left: 2px; }
input, select, textarea {
  font: inherit; font-size: .95rem; color: inherit; width: 100%; min-width: 0;
  background: var(--field); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px;
  transition: border-color .15s, box-shadow .2s, background .15s;
}
textarea { resize: vertical; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 9l5-5 5 5M7 15l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
}
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--accent); }
input[type=color] { padding: 3px; height: 40px; cursor: pointer; }
input[type=file] { padding: 7px; }
input[type=file]::file-selector-button { font: inherit; border: 0; border-radius: 999px; padding: 6px 14px; margin-right: 10px; background: var(--accent-soft); color: var(--accent-text); font-weight: 600; cursor: pointer; }
.check { display: inline-flex; gap: 9px; align-items: center; font-size: .92rem; cursor: pointer; }
.card > .check, .card form > .check, form.card > .check, .stack > .check { display: flex; margin: 8px 0; }

/* Apple-style switches for every checkbox in a .check label */
.check input[type=checkbox] {
  appearance: none; -webkit-appearance: none; flex: none; width: 40px; height: 24px; border-radius: 999px; margin: 0; padding: 0;
  background: var(--fill); border: 0; position: relative; cursor: pointer; transition: background .25s;
}
.check input[type=checkbox]::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .2), 0 0 0 .5px rgba(0, 0, 0, .04); transition: transform .35s var(--spring);
}
.check input[type=checkbox]:checked { background: var(--green); }
.check input[type=checkbox]:checked::after { transform: translateX(16px); }
.check input[type=checkbox]:focus-visible { box-shadow: 0 0 0 4px var(--accent-soft); }

fieldset { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; margin: 0 0 12px; background: var(--fill-2); }
legend { font-weight: 650; font-size: .88rem; padding: 0 6px; }
.w-xs { width: 74px; } .w-sm { width: 116px; } .w-md { width: 210px; } .w-lg { width: 330px; }

/* ---------- buttons (capsules) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; cursor: pointer;
  border: 1px solid var(--glass-edge); border-radius: 999px; padding: 8px 16px;
  font: inherit; font-size: .92rem; font-weight: 600; color: var(--ink);
  background: var(--glass-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: var(--highlight), 0 1px 2px rgba(0, 0, 0, .06), 0 2px 8px -2px rgba(0, 0, 0, .08);
  transition: transform .3s var(--spring), box-shadow .2s, background .15s, filter .15s;
}
.btn:hover { text-decoration: none; filter: brightness(1.03); box-shadow: var(--highlight), 0 2px 4px rgba(0, 0, 0, .06), 0 6px 16px -4px rgba(0, 0, 0, .14); }
.btn:active { transform: scale(.96); }
.btn.primary {
  color: var(--accent-ink); border-color: transparent;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 82%, white), var(--accent) 55%, color-mix(in srgb, var(--accent) 80%, var(--accent-2)));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 16px -6px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn.primary:hover { filter: brightness(1.06) saturate(1.05); }
.btn.ghost { background: var(--fill-2); border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.btn.ghost:hover { background: var(--fill); }
.btn.danger { color: var(--red); }
.btn.danger:hover { background: var(--err-soft); }
.btn.sm { padding: 5px 12px; font-size: .84rem; }
.btn.big { padding: 13px 26px; font-size: 1.05rem; }
.btn:disabled { opacity: .45; cursor: default; transform: none; filter: none; }

/* segmented controls */
.btn-group, .tabs {
  display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--fill); flex-wrap: wrap;
}
.btn-group .btn, .tabs a {
  border: 0; background: transparent; box-shadow: none; border-radius: 999px; padding: 6px 14px; font-weight: 550;
  color: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; font-size: .88rem;
}
.btn-group .btn:hover, .tabs a:hover { background: var(--fill-2); text-decoration: none; filter: none; }
.btn-group .btn.on, .tabs a.on {
  background: var(--seg-on); color: var(--ink); font-weight: 650;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .04), 0 3px 8px rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.tabs { margin-bottom: 16px; }
.tabs.small { margin: 0; }
.tabs.small a { padding: 4px 12px; font-size: .82rem; }

/* ---------- feedback ---------- */
.flash {
  padding: 11px 16px; border-radius: var(--r-md); margin-bottom: 16px; font-weight: 550;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); animation: pop .5s var(--spring);
}
.flash.ok { background: var(--ok-soft); color: var(--ok); }
.flash.err { background: var(--err-soft); color: var(--err); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.callout { background: var(--accent-soft); border-radius: var(--r-md); padding: 12px 14px; margin-top: 14px; display: grid; gap: 4px; }
.callout input { margin-top: 4px; }

.badge {
  display: inline-block; font-size: .72rem; font-weight: 650; padding: 3px 9px; border-radius: 999px;
  background: var(--neutral-soft); color: var(--ink-2); text-transform: capitalize; white-space: nowrap; letter-spacing: .01em;
}
.b-confirmed, .b-paid, .b-delivered, .b-completed { background: var(--ok-soft); color: var(--ok); }
.b-pending, .b-awaiting_deposit, .b-partial, .b-editing, .b-shot { background: var(--warn-soft); color: var(--warn); }
.b-cancelled, .b-void, .b-no_show { background: var(--neutral-soft); color: var(--muted); }
.b-overdue { background: var(--err-soft); color: var(--err); }
.b-open, .b-scheduled { background: var(--info-soft); color: var(--info); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: middle; box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 0%, transparent); }

/* ---------- tables ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; font-weight: 600; color: var(--muted); font-size: .76rem; border-bottom: 1px solid var(--line); padding: 12px 14px 8px; white-space: nowrap; }
.tbl td { border-bottom: 1px solid var(--line); padding: 11px 14px; vertical-align: top; }
.tbl tbody tr { transition: background .12s; }
.card .tbl tbody tr:hover { background: var(--fill-2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl tr.total td { font-weight: 700; border-top: 1px solid var(--line-strong); }
.tbl-scroll { overflow-x: auto; }
.tbl.items td { padding: 6px 4px; border: 0; }
.tbl.items input, .tbl.items select { padding: 7px 10px; }
.card > .tbl:only-child td:first-child, .card > .tbl:only-child th:first-child { padding-left: 4px; }
.bar { display: inline-block; height: 8px; width: var(--w); max-width: 130px; border-radius: 999px; margin-right: 8px; vertical-align: middle; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 16px 18px 15px; display: grid; gap: 2px;
  background: var(--card); border: 1px solid var(--glass-edge); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: var(--highlight), var(--shadow); transition: transform .35s var(--spring);
}
.stat:hover { transform: translateY(-2px); }
.stat::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 3px; background: var(--tone, var(--accent)); opacity: .9; }
.stat:nth-child(6n+1) { --tone: linear-gradient(90deg, var(--orange), var(--accent-2)); }
.stat:nth-child(6n+2) { --tone: linear-gradient(90deg, var(--blue), var(--teal)); }
.stat:nth-child(6n+3) { --tone: linear-gradient(90deg, var(--green), var(--teal)); }
.stat:nth-child(6n+4) { --tone: linear-gradient(90deg, var(--purple), var(--indigo)); }
.stat:nth-child(6n+5) { --tone: linear-gradient(90deg, var(--yellow), var(--orange)); }
.stat:nth-child(6n+6) { --tone: linear-gradient(90deg, var(--accent-2), var(--purple)); }
.stat span { color: var(--muted); font-size: .8rem; font-weight: 600; }
.stat { container-type: inline-size; }
/* Shrinks with the card so seven-figure totals fit. */
.stat b { font-size: clamp(1.05rem, 13cqi, 1.65rem); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat small { color: var(--muted); font-size: .8rem; }
.stat.warn::before { --tone: var(--red); background: var(--red); }
.small-stats .stat b { font-size: 1.25rem; }

/* ---------- filters / pager ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.filters input, .filters select { width: auto; border-radius: 999px; padding-left: 14px; }
.filters input[name=q] {
  min-width: 240px; flex: 1 1 240px; max-width: 380px; padding-left: 36px;
  background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 13px center;
}
.filters .field { margin: 0; }
.pager { display: flex; gap: 16px; justify-content: center; align-items: center; padding: 14px; color: var(--muted); }
.pager a { padding: 6px 14px; border-radius: 999px; background: var(--fill-2); }
.sec-title { margin: 28px 2px 10px; }
.sec-title.first { margin-top: 8px; }
.sec-title .muted { font-weight: 400; font-size: .9rem; }

.dl { display: grid; grid-template-columns: 130px 1fr; gap: 9px 16px; margin: 0 0 16px; }
.dl dt { color: var(--muted); font-size: .86rem; }
.dl dd { margin: 0; }
@media (max-width: 640px) { .dl { grid-template-columns: 1fr; gap: 2px; } .dl dt { margin-top: 8px; } }

/* production pipeline */
.pipeline { display: flex; gap: 4px; margin-bottom: 14px; padding: 4px; border-radius: 999px; background: var(--fill); }
.pipeline span, .pipeline.tap > * { flex: 1; text-align: center; font-size: .78rem; font-weight: 600; padding: 6px 0; border-radius: 999px; color: var(--muted); text-transform: capitalize; transition: background .3s; }
/* The booking page's stage bar: each stage is a button. */
.pipeline.tap { margin-bottom: 6px; }
.pipeline.tap > * { border: 0; background: none; font: inherit; font-size: .85rem; font-weight: 600; padding: 10px 0; cursor: pointer; text-decoration: none; min-height: 40px; }
.pipeline.tap > *:not(.on):hover { background: var(--fill-2); color: var(--ink); }
.pipeline.tap > [aria-current] { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 1px; }
.stage-card { padding-bottom: 10px; }
#production { scroll-margin-top: 150px; }
.stage-card p { margin: 0 4px; }
.pipeline span.on, .pipeline.tap > .on { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 80%, white), var(--accent)); color: var(--accent-ink); box-shadow: 0 2px 8px -2px color-mix(in srgb, var(--accent) 60%, transparent); }

/* admin service picker */
.quote { background: var(--fill-2); border: 1px dashed var(--line-strong); border-radius: var(--r-md); padding: 12px 14px; margin: 10px 0 16px; font-size: .9rem; }
.quote table { width: 100%; }
.quote td:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* autocomplete popover */
.ac { position: relative; }
.ac-list {
  position: absolute; left: 0; right: 0; top: calc(100% - 4px); z-index: 40; display: none; max-height: 280px; overflow-y: auto; padding: 5px;
  border-radius: var(--r-md); background: linear-gradient(var(--card), var(--card)), var(--bg); /* the card's color, solid: nothing shows through */
  border: 1px solid var(--glass-edge); box-shadow: var(--shadow-lg);
}
.ac-list.open { display: block; animation: pop .35s var(--spring); }
/* Cards are frosted glass (their own layer), so a card with an open list sits above the cards after it. */
.card:has(.ac-list.open), .card:focus-within { position: relative; z-index: 30; }
.ac-list div { padding: 8px 10px; border-radius: 9px; cursor: pointer; font-size: .9rem; }
.ac-list div:hover, .ac-list div.hl { background: var(--accent); color: var(--accent-ink); }

/* ---------- calendar ---------- */
.cal-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.cal-toolbar input[type=date] { width: auto; border-radius: 999px; }
.cal-headrow { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; margin: 10px 0 12px; }
.cal-title { font-size: 1.35rem; font-weight: 700; margin: 0 2px; }
.cal-nav { flex: none; }
.cal-nav .btn { padding: 7px 14px; }
.cal-nav [data-nav="-1"], .cal-nav [data-nav="1"] { font-size: 1.15rem; line-height: 1; padding: 6px 15px 8px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 2px; padding: 5px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; cursor: pointer; user-select: none;
  background: color-mix(in srgb, var(--c) 16%, transparent); color: color-mix(in srgb, var(--c) 75%, var(--ink));
  transition: transform .3s var(--spring), opacity .2s;
}
.chip:active { transform: scale(.94); }
.chip.off { background: var(--fill-2); color: var(--muted); }
.chip.off .dot { background: var(--muted) !important; }
.calendar {
  border-radius: var(--r-lg); overflow: auto; max-height: calc(100vh - 220px);
  background: var(--card); border: 1px solid var(--glass-edge); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: var(--highlight), var(--shadow);
}
.cal-grid { display: grid; position: relative; min-width: 100%; }
.cal-head {
  position: sticky; top: 0; z-index: 5; padding: 10px 6px; font-weight: 600; font-size: .84rem; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid var(--line);
  background: var(--glass-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.cal-head.today { color: var(--red); }
.cal-corner { position: sticky; left: 0; top: 0; z-index: 6; background: var(--glass-strong); border-bottom: 1px solid var(--line); }
.cal-times { position: sticky; left: 0; z-index: 4; background: var(--glass-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.cal-time { height: var(--hour); font-size: .7rem; font-weight: 500; color: var(--muted); text-align: right; padding: 0 8px; transform: translateY(-.6em); }
.cal-col {
  position: relative; border-left: 1px solid var(--line); cursor: pointer;
  background-image: repeating-linear-gradient(to bottom, var(--line) 0, var(--line) 1px, transparent 1px, transparent var(--hour));
}
.cal-col:hover { background-color: var(--fill-2); }
.cal-off { position: absolute; left: 0; right: 0; background: var(--fill-2); pointer-events: none; }
.cal-ev {
  position: absolute; border-radius: 8px; padding: 4px 7px 4px 9px; font-size: .74rem; line-height: 1.28; overflow: hidden; cursor: pointer;
  background: color-mix(in srgb, var(--c) 20%, var(--glass-strong)); color: color-mix(in srgb, var(--c) 72%, var(--ink));
  border-left: 3px solid var(--c); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .3s var(--spring), box-shadow .2s;
}
.cal-ev:hover { z-index: 3; text-decoration: none; transform: scale(1.02); box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--c) 60%, transparent); }
.cal-ev b { display: block; font-weight: 650; }
.cal-ev .svc { opacity: .8; }
.cal-ev.pending { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 14%, transparent) 0 6px, color-mix(in srgb, var(--c) 24%, transparent) 6px 12px); border-left-style: dashed; }
.cal-ev.block { --c: #8e8e93; background: repeating-linear-gradient(135deg, var(--fill) 0 6px, var(--fill-2) 6px 12px); color: var(--ink-2); }
.cal-now { position: absolute; left: -4px; right: 0; height: 2px; background: var(--red); z-index: 2; pointer-events: none; }
/* month view */
.cal-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-mhead {
  position: sticky; top: 0; z-index: 2; padding: 8px 6px; font-size: .78rem; font-weight: 600; color: var(--muted); text-align: center;
  border-bottom: 1px solid var(--line); background: var(--glass-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.cal-mday {
  min-height: 112px; padding: 4px 4px 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 2px; min-width: 0; cursor: pointer; position: relative;
}
.cal-mday:nth-child(7n) { border-right: 0; }
.cal-mday:hover { background: var(--fill-2); }
.cal-mday.other { background: var(--fill-2); }
.cal-mday.other .cal-mnum { color: var(--muted); font-weight: 500; }
.cal-mnum {
  align-self: flex-start; border: 0; background: none; font: inherit; font-size: .82rem; font-weight: 650; color: var(--ink);
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer; padding: 0;
}
.cal-mday.today .cal-mnum { background: var(--red); color: #fff; }
.cal-mev {
  display: block; font-size: .72rem; line-height: 1.3; padding: 2px 5px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: color-mix(in srgb, var(--c) 16%, transparent); color: color-mix(in srgb, var(--c) 72%, var(--ink));
}
.cal-mev:hover { text-decoration: none; background: color-mix(in srgb, var(--c) 28%, transparent); }
.cal-mev .dot { width: 7px; height: 7px; margin-right: 4px; }
.cal-mev b { font-weight: 650; }
.cal-mev.pending { border: 1px dashed var(--c); }
.cal-mev.block { --c: #8e8e93; background: repeating-linear-gradient(135deg, var(--fill) 0 5px, var(--fill-2) 5px 10px); color: var(--ink-2); }
.cal-more { border: 0; background: none; font: inherit; font-size: .72rem; font-weight: 600; color: var(--accent-text); text-align: left; padding: 1px 5px; cursor: pointer; }
.cal-mcount { display: none; }
@media (max-width: 700px) {
  /* Phones: a count bubble per day; tap a day to see it. */
  .cal-mday { min-height: 58px; align-items: center; padding: 4px 2px; }
  .cal-mev, .cal-more { display: none; }
  .cal-mcount { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; font-size: .7rem; font-weight: 700; background: var(--accent-soft); color: var(--accent-text); }
}
.cal-now::before { content: ""; position: absolute; left: 0; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }

/* ---------- auth ---------- */
.bare { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.auth-card { border-radius: var(--r-xl); padding: 34px 32px; width: 100%; max-width: 410px; animation: pop .6s var(--spring); }
.auth-card h1 { font-size: 1.7rem; margin-bottom: 4px; }
.auth-card .btn { width: 100%; margin-top: 6px; padding: 11px; }

/* ---------- public portal ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.pub-header { position: sticky; top: 0; z-index: 20; padding: 10px 12px 0; }
.pub-bar { max-width: 1080px; margin: 0 auto; border-radius: 999px; padding: 8px 10px 8px 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pub-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 1.02rem; }
.pub-brand:hover { text-decoration: none; }
.pub-contact { display: flex; gap: 6px; font-size: .86rem; }
.pub-contact a { padding: 6px 12px; border-radius: 999px; background: var(--fill-2); color: var(--ink-2); font-weight: 550; }
.pub-contact .ph-short { display: none; }
.pub-contact a:hover { background: var(--accent-soft); color: var(--accent-text); text-decoration: none; }
@media (max-width: 560px) {
  /* one slim row on phones, and it scrolls away so the form gets the screen */
  .pub-header { position: relative; }
  .pub-bar { flex-wrap: nowrap; gap: 8px; }
  .pub-brand span { font-size: .92rem; white-space: nowrap; }
  .pub-contact { font-size: .8rem; gap: 4px; }
  .pub-contact a { padding: 5px 9px; white-space: nowrap; }
}
@media (max-width: 400px) {
  .pub-contact .ph-full { display: none; }
  .pub-contact .ph-short { display: inline; }
}
.pub-main { padding-top: 34px; padding-bottom: 60px; }
.pub-footer { color: var(--muted); font-size: .84rem; padding-bottom: 34px; text-align: center; }
.hero { margin-bottom: 24px; padding: 0 4px; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.3rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 6px;
  background: linear-gradient(100deg, var(--ink) 30%, var(--accent-text)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); margin: 0; font-size: 1.1rem; }
.lead { font-size: 1.15rem; font-weight: 650; }
.center-card { margin: 0 auto; }

.booker { display: grid; grid-template-columns: 1fr 330px; gap: 18px; align-items: start; }
@media (max-width: 920px) { .booker { grid-template-columns: 1fr; } .summary { position: static !important; } }
.booker > .card { padding: 24px; animation: pop .5s var(--spring); }
.steps { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--fill); flex-wrap: wrap; }
.steps-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.steps > button { font: inherit; border: 0; background: none; cursor: pointer; }
.steps > button.done:hover { background: var(--accent-soft); }
.restart { font: inherit; font-size: .8rem; font-weight: 600; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px 8px; border-radius: 999px; }
.restart:hover { color: var(--accent-text); background: var(--fill-2); }
.steps > span, .steps > button { font-size: .82rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; color: var(--muted); transition: all .35s var(--spring); }
.steps > span.on { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 82%, white), var(--accent)); color: var(--accent-ink); box-shadow: 0 3px 10px -3px color-mix(in srgb, var(--accent) 70%, transparent); }
.steps > .done { color: var(--accent-text); }
.svc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-bottom: 18px; }
.svc-cards.pkgs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.svc-card .price .save { display: block; font-size: .78rem; font-weight: 600; color: var(--ok); }
.svc-card .price s { font-weight: 400; }
.pick-first { margin: 4px 0 18px; }
.svc-card {
  position: relative; display: grid; gap: 4px; align-content: start; padding: 14px 16px; cursor: pointer; border-radius: var(--r-lg);
  background: var(--field); border: 1.5px solid var(--line); transition: transform .35s var(--spring), border-color .2s, background .2s, box-shadow .2s;
}
.svc-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: var(--shadow); }
.svc-card:active { transform: scale(.98); }
.svc-card.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 8px 24px -12px color-mix(in srgb, var(--accent) 80%, transparent); }
.svc-card.on::before {
  content: ""; position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; animation: pop .4s var(--spring);
  background: var(--accent);
}
/* the check takes the readable ink color, so it shows on light and dark brand colors */
.svc-card.on::after {
  content: ""; position: absolute; top: 16px; right: 16px; width: 14px; height: 14px; animation: pop .4s var(--spring);
  background: var(--accent-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / contain;
}
.svc-card.on .tag { opacity: 0; }
.svc-card b { padding-right: 26px; font-weight: 650; }
.svc-thumb { display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: var(--fill-2); color: var(--accent-text); }
.svc-thumb img, .svc-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-thumb.wide { aspect-ratio: 3 / 2; margin: -4px -6px 6px; width: calc(100% + 12px); max-width: none; }
.svc-thumb.wide.placeholder svg { width: 34px; height: 34px; opacity: .8; }
.svc-thumb.placeholder { background: linear-gradient(135deg, var(--accent-soft), var(--fill-2)); }
.svc-card.is-addon { grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; }
.svc-card.is-addon > :not(.svc-thumb):not(.tag) { grid-column: 2; }
.svc-card.is-addon .svc-thumb { grid-column: 1; grid-row: 1 / span 4; width: 64px; height: 64px; }
.svc-card.is-addon .svc-thumb svg { width: 24px; height: 24px; }
.svc-card.on .svc-thumb.wide + .tag, .svc-card .svc-thumb.wide ~ .tag { top: 18px; right: 18px; background: var(--glass-strong); }
.svc-card.is-package.on::before { top: 18px; right: 18px; }
.svc-card.is-package.on::after { top: 22px; right: 22px; }
.media-edit { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 560px) { .media-edit { grid-template-columns: 1fr; } }
.media-preview { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--fill-2); display: grid; place-items: center; text-align: center; padding: 4px; }
.media-preview img, .media-preview video { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.svc-cell { display: flex; gap: 12px; align-items: flex-start; }
.svc-mini { flex: none; width: 54px; height: 36px; border-radius: 8px; overflow: hidden; background: var(--fill-2); display: grid; place-items: center; }
.svc-mini img, .svc-mini video { width: 100%; height: 100%; object-fit: cover; }
.svc-mini .muted { display: none; }
.svc-card .price { font-weight: 750; font-size: 1.05rem; }
.svc-note { font-size: .82rem; font-weight: 600; color: var(--ink); line-height: 1.3; } /* one line under the price ("For high-end homes…") */
.pkg-intro { margin: -4px 0 10px; }
.svc-badge {
  justify-self: start; width: fit-content; max-width: 100%; font-size: .68rem; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; padding: 2px 9px; border-radius: 999px;
  text-align: center; text-wrap: balance; line-height: 1.35; /* a badge that wraps on a phone stays centered in its pill */
  background: var(--accent); color: var(--accent-ink);
}
/* Pick-one choices (e.g. 25 photos | 40 photos + drone): equal tiles along the bottom of the card. */
.opt-row { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 8px; margin: 8px 0 0; width: 100%; }
.opt {
  font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; padding: 10px 8px; border-radius: 12px; min-height: 64px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; line-height: 1.25;
  border: 1.5px solid var(--line-strong); background: var(--field); color: var(--ink); transition: all .2s var(--spring);
}
.svc-card .opt b { color: var(--accent-text); font-size: 1.02rem; font-weight: 750; padding-right: 0; }
/* Side by side with a taller card, the choices sit along the bottom edge. */
@media (min-width: 561px) {
  .svc-card.has-options { display: flex; flex-direction: column; }
  .svc-card.has-options .opt-row { margin-top: auto; padding-top: 8px; }
}
.opt:hover { border-color: var(--accent); }
.opt.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.svc-card .opt.on b { color: var(--accent-ink); }
.svc-card .qty-row { flex-wrap: wrap; }
.svc-card .qty-row label { display: inline-flex; align-items: center; gap: 6px; }
.svc-card .qty-row label.later { font-size: .8rem; color: var(--ink-2); }
.svc-card .qty-row label.later input { width: auto; }
.more-svcs { margin: -6px 0 18px; }
.more-svcs > summary {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-weight: 650; font-size: .9rem;
  padding: 8px 14px; border-radius: 999px; background: var(--fill-2); color: var(--accent-text); margin-bottom: 10px;
}
.more-svcs > summary::-webkit-details-marker { display: none; }
.more-svcs > summary::after { content: "›"; font-size: 1.1rem; line-height: 1; transition: transform .25s var(--spring); }
.more-svcs[open] > summary::after { transform: rotate(90deg); }
.svc-card .price small { font-weight: 500; font-size: .78rem; }
.travel-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.travel-chip { font: inherit; font-size: .88rem; font-weight: 550; padding: 8px 14px; border-radius: 999px; cursor: pointer; border: 1.5px solid var(--line); background: var(--field); color: var(--ink); transition: transform .3s var(--spring), background .2s; }
.travel-chip b { color: var(--accent-text); margin-left: 4px; }
.travel-chip:hover { transform: translateY(-1px); }
.travel-chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.travel-chip.on b { color: var(--accent-ink); }
.svc-card .desc { font-size: .84rem; color: var(--muted); }
.svc-card .qty-row { display: flex; gap: 8px; align-items: center; font-size: .85rem; margin-top: 4px; }
.svc-card .qty-row input { width: 70px; padding: 4px 10px; }
.svc-card .tag {
  position: absolute; top: 13px; right: 13px; font-size: .66rem; font-weight: 750; text-transform: uppercase; letter-spacing: .05em;
  padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text);
}
.cat-title { font-size: .95rem; font-weight: 700; margin: 20px 2px 10px; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; margin: 12px 0 16px; }
@media (max-width: 560px) { .days { grid-template-columns: repeat(4, 1fr); } }
.day {
  border-radius: var(--r-md); background: var(--field); border: 1.5px solid var(--line); padding: 9px 4px; text-align: center; cursor: pointer; font-size: .8rem; font-weight: 550; color: var(--muted);
  transition: transform .35s var(--spring), border-color .2s, background .2s;
}
.day:hover { transform: translateY(-2px); }
.day b { display: block; font-size: 1.25rem; color: var(--ink); }
.day.none { opacity: .35; cursor: default; transform: none; }
.day.on { border-color: transparent; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 82%, white), var(--accent)); color: color-mix(in srgb, var(--accent-ink) 85%, transparent); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.day.on b, .day.on .muted { color: var(--accent-ink); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 7px; }
.slot {
  font: inherit; font-weight: 650; padding: 10px 0; text-align: center; cursor: pointer; color: var(--accent-text);
  border-radius: 999px; background: var(--accent-soft); border: 0; transition: transform .3s var(--spring), background .2s;
}
.slot:hover { transform: scale(1.04); }
.day .wx { display: block; font-size: .72rem; font-weight: 600; color: var(--ink-2); margin-top: 2px; white-space: nowrap; }
.day .wx .rain { display: block; font-size: .68rem; font-weight: 600; color: var(--info); }
.day.on .wx { color: inherit; } /* the picked day's own text color (white on the booking page's dark chip) */
.day.on .wx .rain { color: inherit; }
.twi-head { margin: 14px 2px 6px; color: var(--ink-2); }
.slot.twi:not(.on) { background: linear-gradient(180deg, color-mix(in srgb, #ff9f6e 16%, var(--field)), color-mix(in srgb, #8e7cc3 14%, var(--field))); }
.wx-line { display: inline-block; margin-top: 10px; padding: 6px 12px; border-radius: 999px; background: var(--fill-2); }
#twi-note:empty, #slot-weather:empty, #rain-legend:empty { display: none; }
.slot .rain { display: block; font-size: .7rem; font-weight: 600; line-height: 1.1; color: var(--info); opacity: .85; }
.slot .rain.wet { opacity: 1; font-weight: 750; }
.slot .rain.none { visibility: hidden; }
.slot.on .rain { color: var(--accent-ink); }
.slot.on { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 80%, transparent); }
.summary { position: sticky; top: 90px; padding: 22px !important; }
.summary table { width: 100%; font-size: .9rem; border-collapse: collapse; }
.summary td { padding: 5px 0; vertical-align: top; }
.summary td:last-child { text-align: right; white-space: nowrap; padding-left: 10px; font-variant-numeric: tabular-nums; }
.summary .tot td { border-top: 1px solid var(--line); font-weight: 750; font-size: 1.05rem; padding-top: 10px; }
.nav-btns { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; gap: 10px; }
.nav-btns .m-total { display: none; }
/* Phones: the order card sits below the form, so keep the total and Next button in view. */
@media (max-width: 920px) {
  .nav-btns {
    position: sticky; bottom: 0; z-index: 6; margin: 20px -24px -24px; padding: 12px 24px calc(12px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
    border-top: 1px solid var(--line); border-radius: 0 0 var(--r-lg) var(--r-lg);
  }
  .nav-btns .m-total { display: flex; flex-direction: column; align-items: center; order: 1; flex: 1; line-height: 1.15; font-variant-numeric: tabular-nums; }
  .nav-btns .m-total small { font-size: .7rem; color: var(--muted); }
  .nav-btns .m-total b { font-size: 1.05rem; }
  .nav-btns > :last-child { order: 2; }
}
@media (max-width: 560px) {
  /* step bar: numbers, with the current step's name */
  .steps { display: flex; flex-wrap: nowrap; flex: 1 1 100%; }
  .steps > span, .steps > button { padding: 6px 12px; }
  .steps > :not(.on) .lbl { display: none; }
  .steps > span.on { flex: 1; text-align: center; }
  .steps-row { row-gap: 4px; }
  .restart { margin-left: auto; }
  /* service cards: photo on the left, text on the right */
  .svc-cards, .svc-cards.pkgs { grid-template-columns: 1fr; gap: 8px; }
  .svc-card.is-package { grid-template-columns: 76px minmax(0, 1fr); column-gap: 12px; }
  .svc-card.is-package > :not(.svc-thumb):not(.tag) { grid-column: 2; }
  .svc-card.is-package .svc-thumb.wide { grid-column: 1; grid-row: 1 / span 4; width: 76px; height: 76px; aspect-ratio: auto; margin: 0; }
  .svc-card.is-package.has-options > .opt-row { grid-column: 1 / -1; }
  .svc-card.is-package.on::before { top: 12px; right: 12px; }
  .svc-card.is-package.on::after { top: 16px; right: 16px; }
  .booker > .card { padding: 20px 18px; }
  .nav-btns { margin: 20px -18px -20px; padding-left: 18px; padding-right: 18px; }
}
.hp { position: absolute; left: -9999px; }
.lookup-note { margin: -2px 2px 10px; min-height: 1.2em; }
#distance-note:empty { min-height: 0; margin: 0; }
.signed-in { margin: -4px 0 12px; }
.saved-props { display: grid; gap: 6px; margin-bottom: 14px; }
.acct-link { font-weight: 650; color: var(--accent-text) !important; }
.acct-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.acct-actions form { margin: 0; }
.acct-grid { margin-bottom: 0; }
.acct-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line); color: var(--ink); border-radius: 10px; }
.acct-row:hover { background: var(--fill-2); text-decoration: none; }
.acct-row:last-child { border-bottom: 0; }
.acct-date { display: grid; font-size: .8rem; color: var(--muted); }
.acct-date b { color: var(--ink); font-size: .9rem; }
.acct-main { display: grid; min-width: 0; }
.acct-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-card h1 { font-size: 1.8rem; }

/* invoice document */
.invoice-doc .bill-to { margin: 20px 0; padding: 12px 14px; border-radius: var(--r-md); background: var(--fill-2); }
.invoice-doc tfoot td { border: 0; padding: 5px 14px; }
@media print {
  .pub-header, .pub-footer, .no-print, .sidebar, .topbar, .flash { display: none !important; }
  .card { box-shadow: none; border: 0; background: #fff; }
  html, body { background: #fff; color: #000; }
}

.steps-list { margin: 0 0 8px; padding-left: 22px; }
.steps-list li { margin-bottom: 5px; }
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 16px; margin: 14px 0; }
.sample { overflow-x: auto; margin: 14px 0; border-radius: var(--r-md); background: var(--fill-2); }
.sample table { font-size: .78rem; }
.report-box { background: var(--fill-2); border-radius: var(--r-md); padding: 14px; margin-top: 14px; }
details summary { cursor: pointer; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- phone app ---------- */
.phone-app { min-height: 100vh; padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
.app-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; align-items: center; gap: 10px; margin: 8px max(10px, env(safe-area-inset-left, 0px)) 0; padding: 8px 14px 8px 8px; border-radius: 999px; font-size: 1rem; }
.app-top .logo-img { height: 28px; }
.app-user { margin-left: auto; color: var(--muted); font-size: .85rem; }
.app-main { max-width: 640px; margin: 0 auto; padding: 14px max(14px, env(safe-area-inset-left, 0px)) 20px max(14px, env(safe-area-inset-right, 0px)); }
.app-day-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.app-who { margin-bottom: 12px; }
.app-day h2 { font-size: 1.25rem; margin: 18px 2px 10px; }
.shoot { position: relative; border-radius: var(--r-lg); padding: 14px 14px 12px 18px; margin-bottom: 12px; background: var(--card); border: 1px solid var(--glass-edge); box-shadow: var(--highlight), var(--shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); overflow: hidden; }
.shoot::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--c); }
.shoot.pending { border-style: dashed; }
.shoot h3 { margin: 6px 0 2px; font-size: 1.12rem; }
.shoot-head { display: flex; justify-content: space-between; align-items: center; }
.shoot-time { font-weight: 750; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.shoot-time small { font-weight: 500; color: var(--muted); margin-left: 4px; }
.access { margin: 8px 0; padding: 8px 10px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-weight: 600; font-size: .92rem; }
.shoot-svcs { margin: 6px 0; padding-left: 18px; font-size: .9rem; }
.shoot-actions, .shoot-stage { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.shoot-stage input[type=url] { flex: 1 1 220px; }
.shoot-stage p { flex-basis: 100%; margin: 0; }
.off-pill { display: inline-block; margin-bottom: 10px; padding: 6px 12px; border-radius: 999px; background: var(--fill); font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.center { text-align: center; }
.app-tabs { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 2px; padding: 6px; border-radius: 999px; width: min(440px, calc(100vw - 20px)); }
.app-tabs a { flex: 1; display: grid; justify-items: center; gap: 2px; padding: 6px 4px; border-radius: 999px; color: var(--muted); font-size: .7rem; font-weight: 600; }
.app-tabs a:hover { text-decoration: none; }
.app-tabs a.on { color: var(--accent-text); background: var(--accent-soft); }
.app-tabs svg { width: 22px; height: 22px; }
.install-hint { position: fixed; z-index: 31; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 18px; font-size: .88rem; width: min(440px, calc(100vw - 20px)); justify-content: space-between; }
.install-hint[hidden] { display: none; }
.install-hint svg { vertical-align: -3px; }

/* ---------- rewards ---------- */
.rewards-card .points { font-size: 1.05rem; margin: 4px 0 8px; }
.rewards-card .points b { font-size: 1.7rem; letter-spacing: -.02em; }
.progress { height: 10px; border-radius: 999px; background: var(--fill); overflow: hidden; margin-bottom: 8px; }
.progress span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.tier { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--fill); }
.tier-silver { background: linear-gradient(135deg, #e5e7eb, #9ca3af); color: #1f2937; }
.tier-gold { background: linear-gradient(135deg, #fde68a, #f59e0b); color: #422006; }
.tier-platinum { background: linear-gradient(135deg, #f1f5f9, #cbd5e1 45%, #a5b4fc); color: #1e1b4b; }
.tier-member { background: var(--fill); color: var(--ink-2); }
/* loyalty card on the booking page */
.loyal-card { padding: 14px 16px; margin: 0 0 16px; border-radius: var(--r-lg); border: 1.5px solid var(--line); background: var(--field); display: grid; gap: 8px; }
.loyal-card.tier-bg-silver { background: linear-gradient(135deg, color-mix(in srgb, #e5e7eb 55%, var(--field)), var(--field)); }
.loyal-card.tier-bg-gold { background: linear-gradient(135deg, color-mix(in srgb, #fde68a 45%, var(--field)), var(--field)); border-color: color-mix(in srgb, #f59e0b 40%, var(--line)); }
.loyal-card.tier-bg-platinum { background: linear-gradient(135deg, color-mix(in srgb, #c7d2fe 45%, var(--field)), color-mix(in srgb, #e2e8f0 40%, var(--field))); border-color: color-mix(in srgb, #818cf8 40%, var(--line)); }
.loyal-card p { margin: 0; }
.loyal-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 1.05rem; }
.loyal-stats { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 6px; }
.loyal-stats div { display: grid; text-align: center; padding: 8px 4px; border-radius: var(--r-md); background: color-mix(in srgb, var(--card) 70%, transparent); }
.loyal-stats b { font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.loyal-stats span { font-size: .72rem; color: var(--muted); }
.loyal-fact, .loyal-next { color: var(--ink-2); }
.coupon-list { display: grid; gap: 8px; margin-top: 8px; }
.coupon { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; padding: 10px 14px; border-radius: 14px; border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, transparent); background: var(--accent-soft); }
.coupon code { font-size: .9rem; font-weight: 700; }
.coupon-row { display: flex; gap: 8px; align-items: flex-end; }
.coupon-row .field { flex: 1; margin: 0; }
.reward-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.badge.plain { text-transform: none; }
.nowrap { white-space: nowrap; }
@media (max-width: 640px) { .small .nowrap { white-space: normal; } }
.callout + .card, .callout + section.card { margin-top: 16px; }

/* address suggestions */
.addr-list div { display: flex; flex-direction: column; gap: 1px; }
.addr-list .sub { font-size: .8rem; color: var(--muted); }
.addr-list div:hover .sub, .addr-list div.hl .sub { color: color-mix(in srgb, var(--accent-ink) 80%, transparent); }
.addr-list .credit { margin: 4px 10px 2px; font-size: .7rem; color: var(--muted); text-align: right; }
.travel-note { color: var(--warn); }

/* website photo picker */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 12px 0 20px; }
.pick { margin: 0; border-radius: var(--r-md); overflow: hidden; background: var(--card); border: 1.5px solid var(--line); display: flex; flex-direction: column; }
.pick.chosen { border-color: var(--accent); box-shadow: 0 6px 18px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.pick img, .pick video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--fill-2); }
.pick figcaption { padding: 8px; display: grid; gap: 4px; }
.pick figcaption .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticky-actions { position: sticky; bottom: 0; padding: 12px 0; background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.inline-form .grow { flex: 1; min-width: 240px; }

/* travel on the services step */
.travel-panel { padding: 14px 16px; border-radius: var(--r-lg); background: var(--field); border: 1.5px solid var(--line); margin-bottom: 18px; display: grid; gap: 6px; }
.travel-panel p { margin: 0; }
.travel-panel .acct-ok { color: var(--ok); }
.travel-panel .travel-fine { font-size: .78rem; margin-top: 2px; }
.trip-charge { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.trip-charge span { font-weight: 650; }
.trip-charge .amt { font-size: 1.45rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.trip-charge .amt.free { color: var(--ok); }
.trip-math { margin-top: -4px !important; }
.acct-pitch { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; padding: 10px 12px; border-radius: var(--r-md); background: var(--accent-soft); }
.acct-pitch p { flex: 1 1 220px; }
.perks { list-style: none; padding: 0; margin: 4px 0 16px; display: grid; gap: 6px; text-align: left; }
.welcome-back { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; margin: 0 0 14px; border-radius: var(--r-md); background: var(--accent-soft); }
.welcome-back p { flex: 1 1 100%; margin: 0; }
.welcome-back form { margin: 0; }
.signed-in .link { color: var(--accent-text); font-size: inherit; }
.shoot-stage textarea { flex: 1 1 100%; min-height: 54px; font-size: .9rem; }

/* "Your photographer" on the services step */
/* All the cards in view, no sideways scroll: as many across as fit (all four on a tablet or a ~700 px panel), two by two on a phone. */
.team-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.25rem, 1fr)); gap: 8px; padding: 2px 2px 6px; }
@media (max-width: 480px) { .team-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.team-card {
  min-width: 0; display: grid; justify-items: center; align-content: start; gap: 3px; padding: 10px 6px 8px; text-align: center; cursor: pointer; font: inherit; color: var(--ink);
  border-radius: var(--r-lg); border: 1.5px solid var(--line); background: var(--field); transition: transform .3s var(--spring), border-color .2s, background .2s;
}
.team-card:hover:not(:disabled) { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.team-card.on { border-color: var(--accent); background: var(--accent-soft); }
.team-card:disabled { opacity: .45; cursor: not-allowed; }
.team-card b { font-size: .88rem; }
.team-card .tags { font-size: .66rem; color: var(--muted); text-align: center; line-height: 1.2; }
.avatar-lg { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-weight: 750; color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--c, #888) 70%, white), var(--c, #888)); }
.avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg.any { background: var(--accent-soft); color: var(--accent-text); font-size: 1.3rem; }
.avatar-lg.any svg { width: 55%; height: 55%; }
.team-bio { margin: 2px 2px 16px; min-height: 1.2em; }
.media-preview.round { aspect-ratio: 1; max-width: 140px; border-radius: 50%; }
.media-preview.round img { border-radius: 50%; }

/* contractor invoices */
.payout-doc h2 { margin: 2px 0; }
.payout-doc .right { text-align: right; }
.payout-lines { margin-top: 14px; }
.payout-lines tr.sub td { color: var(--ink-2); font-size: .86rem; border-top: 0; padding-top: 2px; }
.payout-lines tr.group td { font-weight: 650; color: var(--muted); font-size: .78rem; padding-top: 18px; }
form.inline { display: inline; margin: 0; }

.perks { margin: 8px 0 4px; padding-left: 0; list-style: none; }
.perks li { padding-left: 22px; position: relative; margin: 3px 0; }
.perks li::before { content: '✓'; position: absolute; left: 2px; color: var(--accent-text); font-weight: 700; }

/* shoot pipeline */
button.linklike { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }
.callout + .stats { margin-top: 16px; }
/* editor bills */
.bill-actions { min-width: 320px; }
.bill-actions > form, .bill-actions > span { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 6px 6px 0; vertical-align: middle; }
.bill-actions .field { margin: 0; }
.bill-actions .field > span:empty { display: none; }
.bill-actions select, .bill-actions input { width: auto; padding: 6px 10px; font-size: .85rem; }

.team-card .lvl { font-size: .68rem; font-weight: 650; color: var(--accent-text); letter-spacing: .01em; line-height: 1.2; }
.summary ul.plain { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.summary ul.plain li { display: flex; justify-content: space-between; gap: 10px; }
.svc-card.off { opacity: .45; filter: grayscale(.7); cursor: not-allowed; }
.svc-card.off:hover { transform: none; border-color: var(--line); box-shadow: none; }
.svc-card .off-note { font-size: .74rem; font-weight: 650; color: var(--ink-2); }
.opt:disabled { opacity: .45; cursor: not-allowed; }
.shoot .leave { font-size: .85rem; margin: 4px 0; }
.shoot .leave.tight { color: var(--err); font-weight: 600; }
.summary tr.due td { font-weight: 700; color: var(--accent-text); padding-top: 6px; }

/* Build version, quiet at the bottom of every page */
.build { display: block; color: var(--muted); font-size: .72rem; opacity: .75; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
a.build:hover { color: var(--accent-text); opacity: 1; text-decoration: none; }
.build-link { color: inherit; font-variant-numeric: tabular-nums; }
.build-link:hover { color: var(--accent-text); text-decoration: none; }
.pub-footer .build { margin-top: 6px; }
body.bare > .build { position: fixed; left: 0; right: 0; bottom: max(10px, env(safe-area-inset-bottom)); text-align: center; }
.app-main > .build { text-align: center; padding: 18px 0 6px; }

/* ---------- office booking form ---------- */
.ob { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.ob-main { display: grid; gap: 16px; min-width: 0; }
.ob-sec h2 { display: flex; align-items: center; gap: 10px; }
.ob-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-size: .8rem; font-weight: 700; }
.ob-search { width: 100%; font-size: 1.02rem; padding: 12px 16px; border-radius: 999px; }
#new-cust summary, .ob-more summary { cursor: pointer; color: var(--accent-text); font-weight: 600; font-size: .9rem; padding: 10px 2px 4px; list-style: none; }
#new-cust summary::-webkit-details-marker, .ob-more summary::-webkit-details-marker { display: none; }
.ob-more summary::before { content: '＋ '; }
.ob-more[open] summary::before { content: '－ '; }
.ob-group { margin: 16px 0 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ob-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ob-sec-head h2 { margin: 0; }
.ob-find { flex: 0 1 220px; min-width: 0; padding: 7px 12px; border-radius: 999px; }
/* Other services: folded to a button, picked ones still showing. */
.ob-fold-btn { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; margin-top: 16px; border: 1px dashed var(--line-strong); border-radius: 12px; background: none; cursor: pointer; font-weight: 650; text-align: left; }
.ob-fold-btn small { padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: .75rem; letter-spacing: 0; }
.ob-fold-btn svg { width: 16px; height: 16px; margin-left: auto; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.ob-fold-btn:hover { border-color: var(--accent); color: var(--accent-text); }
.ob-fold.open .ob-fold-btn { border-style: solid; }
.ob-fold.open .ob-fold-btn svg { transform: rotate(180deg); }
.ob-fold:not(.open) .ob-card:not(.on) { display: none; }
.ob-fold:not(.open):has(.ob-card.on) .ob-grid { margin-top: 8px; }
.ob-fold.open .ob-grid { margin-top: 8px; animation: ob-drop .2s ease-out; }
@keyframes ob-drop { from { opacity: 0; transform: translateY(-4px); } }
.ob-card.nomatch, [data-group].empty { display: none !important; }
.ob-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.ob-card {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "tick title pen" "tick meta pen" "price price price" "qty qty qty";
  gap: 2px 10px; align-items: start; padding: 11px 12px; border-radius: var(--r-md); background: var(--field); border: 1.5px solid var(--line);
  cursor: pointer; user-select: none; transition: border-color .15s, background .15s, transform .25s var(--spring), box-shadow .15s;
}
.ob-card:hover { border-color: var(--line-strong); }
.ob-card:active { transform: scale(.98); }
.ob-card.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--field)); box-shadow: 0 0 0 3px var(--accent-soft); }
.ob-card[hidden] { display: none; }
.ob-check { position: absolute; opacity: 0; pointer-events: none; }
.ob-card:has(.ob-check:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.ob-tick { grid-area: tick; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: background .15s, border-color .15s; }
.ob-card.on .ob-tick { background: var(--accent); border-color: var(--accent); }
.ob-card.on .ob-tick::after { content: ''; width: 9px; height: 5px; margin-top: -2px; border: 2px solid var(--accent-ink); border-top: 0; border-right: 0; transform: rotate(-45deg); }
.ob-title { grid-area: title; font-weight: 600; font-size: .93rem; line-height: 1.25; }
.ob-meta { grid-area: meta; font-size: .78rem; color: var(--muted); }
.ob-price { grid-area: price; margin-top: 6px; display: flex; gap: 6px; align-items: baseline; font-variant-numeric: tabular-nums; }
.ob-price b { font-size: .98rem; }
.ob-price s { color: var(--muted); font-size: .8rem; }
.ob-card.custom .ob-price b { color: var(--accent-text); }
.ob-card.custom .ob-price b::after { content: ' custom'; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.ob-pen { grid-area: pen; width: 30px; height: 30px; margin: -4px -4px 0 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.ob-pen svg { width: 16px; height: 16px; }
.ob-pen:hover, .ob-pen:focus-visible { background: var(--fill); color: var(--accent-text); }
.ob-qty { grid-area: qty; margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.ob-qty button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--fill); font: inherit; font-size: 1.05rem; cursor: pointer; color: var(--ink); }
.ob-qty input { width: 52px; text-align: center; padding: 5px 4px; }
.ob-qty small { color: var(--muted); font-size: .74rem; }
.ob-line { display: grid; grid-template-columns: 1fr 110px auto auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.ob-money { display: flex; align-items: center; gap: 4px; }
.ob-money > span { color: var(--muted); }
.ob-money input { width: 100%; min-width: 0; }
.ob-tax { border: 1.5px solid var(--line-strong); background: transparent; color: var(--muted); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all .15s; }
.ob-tax.on { border-color: var(--ok); color: var(--ok); background: var(--ok-soft); }
.ob-x { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--fill); color: var(--muted); font-size: 1.1rem; cursor: pointer; }
.ob-staff { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ob-person { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--field); cursor: pointer; transition: border-color .15s, transform .25s var(--spring); }
.ob-person:active { transform: scale(.97); }
.ob-person input { position: absolute; opacity: 0; pointer-events: none; }
.ob-person:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ob-person:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.ob-person > span:last-child { font-weight: 600; font-size: .9rem; line-height: 1.1; }
.ob-person small { display: block; font-weight: 400; color: var(--muted); font-size: .72rem; }
.avatar.none { --c: #8e8e93; }
.ob-side { position: sticky; top: 16px; }
.ob-summary .quote { margin-top: 0; }
.ob-summary tr.total td { padding-top: 6px; border-top: 1px solid var(--line); }
.ob-summary tr.custom em, .quote em { font-style: normal; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-text); }
.ob-travel .ob-pen { display: inline-grid; width: 26px; height: 26px; margin: 0 0 0 2px; vertical-align: middle; }
.ob-opts { display: grid; gap: 6px; margin: 4px 0 14px; font-size: .88rem; }
.ob-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-actions .btn.big { flex: 1 1 100%; justify-content: center; }
.ob-bar { display: none; background: var(--glass-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--line); }
.ob-pop { position: absolute; z-index: 60; width: 280px; padding: 14px; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); display: grid; gap: 8px; animation: ob-pop .18s var(--spring); }
.ob-pop[hidden] { display: none; }
.ob-pop .field { margin: 0; }
.ob-pop-btns { display: flex; flex-wrap: wrap; gap: 6px; }
@keyframes ob-pop { from { opacity: 0; transform: translateY(-4px) scale(.97); } }
.danger-zone { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.btn.danger { color: var(--err); }
.b-draft { background: var(--info-soft); color: var(--info); }
@media (max-width: 1000px) {
  .ob { grid-template-columns: 1fr; }
  .ob-side { position: static; }
  .ob-bar { display: flex; position: sticky; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 20; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 999px; box-shadow: var(--shadow-lg); }
  .ob-bar small { display: block; color: var(--muted); font-size: .72rem; }
  .ob-bar b { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
}
@media (max-width: 640px) {
  .ob-grid { grid-template-columns: 1fr 1fr; }
  .ob-line { grid-template-columns: 1fr 92px; }
  .ob-line .ob-tax { justify-self: start; }
}
@media (max-width: 640px) {
  .ob .row3.ob-town { grid-template-columns: 1fr 64px 92px; gap: 0 8px; }
  .ob .row3.ob-nums { grid-template-columns: 1.4fr 1fr 1fr; gap: 0 8px; }
  .ob .row3.ob-when { grid-template-columns: 1fr 1fr; gap: 0 8px; }
  .ob .row3.ob-when > :first-child { grid-column: 1 / -1; }
}
/* Phones: one service per line (name and time, the price at the right), so the list stays short. */
@media (max-width: 600px) {
  .ob-grid { grid-template-columns: 1fr; gap: 6px; }
  .ob-card { grid-template-columns: auto 1fr auto auto; grid-template-areas: "tick title price pen" "tick meta price pen" "qty qty qty qty"; align-items: center; padding: 9px 10px 9px 12px; }
  .ob-price { margin-top: 0; flex-direction: column; align-items: flex-end; gap: 0; }
  .ob-pen { margin: 0 -4px 0 0; }
  .ob-tick { align-self: start; margin-top: 2px; }
}

/* ---------- embedded (the calendar's booking panel) ---------- */
body.embed { background: transparent; }
body.embed .content { padding: 14px 16px 24px; max-width: none; }
body.embed .ob { grid-template-columns: 1fr; }
body.embed .ob-side { position: static; }
body.embed .ob-bar { display: flex; position: sticky; bottom: 10px; z-index: 20; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 999px; box-shadow: var(--shadow-lg); }
body.embed .ob-bar small { display: block; color: var(--muted); font-size: .72rem; }
body.embed .ob-bar b { font-size: 1.1rem; }

/* ---------- calendar: slot under the mouse, press-in, booking panel ---------- */
.cal-col:hover { background-color: transparent; }
.cal-ghost {
  position: absolute; left: 3px; right: 3px; z-index: 2; pointer-events: none; border-radius: 8px;
  background: var(--fill); border: 1px dashed var(--line-strong); color: var(--ink-2);
  display: flex; align-items: center; gap: 6px; padding: 0 8px; font-size: .74rem; overflow: hidden; white-space: nowrap;
}
.cal-ghost[hidden] { display: none; }
.cal-ghost span { margin-left: auto; color: var(--accent-text); font-weight: 600; }
.cal-ghost.press { animation: cal-press .32s var(--spring); background: var(--accent-soft); border-color: var(--accent); }
@keyframes cal-press { 0% { transform: scale(1); } 35% { transform: scale(.94); } 100% { transform: scale(1); } }
@media (hover: none) { .cal-ghost:not(.press) { display: none; } }
.cal-sheet { position: fixed; inset: 0; z-index: 80; }
.cal-sheet-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .28); opacity: 0; transition: opacity .25s; }
.cal-sheet-panel {
  position: absolute; top: 10px; right: 10px; bottom: 10px; width: min(620px, calc(100vw - 20px)); border-radius: var(--r-xl);
  display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--bg);
  transform: translateX(105%); transition: transform .3s cubic-bezier(.2, .9, .3, 1);
}
.cal-sheet.open .cal-sheet-scrim { opacity: 1; }
.cal-sheet.open .cal-sheet-panel { transform: none; }
.cal-sheet-panel header { display: flex; align-items: center; gap: 10px; padding: 12px 12px 10px 20px; border-bottom: 1px solid var(--line); }
.cal-sheet-panel header b { flex: 1; font-size: 1.05rem; }
.cal-sheet-x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--fill); color: var(--ink); font-size: 1.3rem; cursor: pointer; }
.cal-sheet-panel iframe { flex: 1; width: 100%; border: 0; background: transparent; }
body.sheet-open { overflow: hidden; }
@media (max-width: 700px) {
  .cal-sheet-panel { top: max(24px, env(safe-area-inset-top)); left: 0; right: 0; bottom: 0; width: auto; border-radius: var(--r-xl) var(--r-xl) 0 0; transform: translateY(105%); }
}
.cal-toast { position: fixed; z-index: 90; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; transition: all .25s var(--spring); padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow-lg); font-weight: 600; }
.cal-toast.show { opacity: 1; transform: translate(-50%, 0); }
.cal-toast a { margin-left: 8px; }

/* ---------- agreements ---------- */
.agree-list { margin: 8px 0 6px; padding-left: 20px; display: grid; gap: 5px; }
.agree-list li { line-height: 1.45; }
.agree-card { text-align: left; }
.agree-check { margin-top: 8px; font-weight: 600; }
.agree-form { display: grid; gap: 10px; margin-top: 6px; max-width: 420px; }
.agree-set { border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 14px 4px; margin: 0 0 12px; }
.agree-set legend { font-weight: 700; padding: 0 6px; }
.terms-doc h2 { font-size: 1.05rem; margin-top: 20px; }
.terms-full { white-space: pre-wrap; line-height: 1.6; font-size: .95rem; }

/* ---------- phones: nothing wider than the screen; list tables as cards ---------- */
fieldset { min-inline-size: 0; }
.grid2 > *, .row2 > *, .row3 > *, .ob-main > * { min-width: 0; }
.field input, .field select, .field textarea { min-width: 0; max-width: 100%; }
@media (max-width: 640px) {
  .card.flush { overflow: visible; }
  table.tbl.stackable, table.tbl.stackable tbody { display: block; }
  table.tbl.stackable thead { display: none; }
  table.tbl.stackable tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  table.tbl.stackable tr:last-child { border-bottom: 0; }
  table.tbl.stackable td { display: block; padding: 0; border: 0; text-align: left; min-width: 0; overflow-wrap: anywhere; }
  table.tbl.stackable td:first-child { grid-column: 1 / -1; font-weight: 600; }
  table.tbl.stackable td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
  table.tbl.stackable td:empty { display: none; }
  table.tbl.stackable td[colspan] { grid-column: 1 / -1; }
  table.tbl.stackable td.num { text-align: left; }
}
@media (max-width: 640px) {
  .tbl.hours tr { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .tbl.hours td { padding: 0; border: 0; }
  .tbl.hours td:first-child { grid-column: 1 / -1; }
  .tbl.hours td:nth-child(2), .tbl.hours td:nth-child(4) { display: inline-block; }
  .tbl.hours tr { grid-template-columns: 1fr auto 1fr; }
  .tbl.hours input[type=time] { width: 100%; min-width: 0; }
}
.acct-again { display: inline-block; margin: -4px 0 8px 86px; font-size: .82rem; font-weight: 600; }

/* ---------- search box in the top bar ---------- */
.topbar { display: flex; align-items: center; gap: 14px; }
.gsearch { position: relative; margin-left: auto; width: min(340px, 40vw); }
.gsearch input { width: 100%; border-radius: 999px; padding: 9px 14px 9px 36px; font-size: .9rem;
  background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 13px center; }
.gsearch-list { position: fixed; z-index: 70; background: color-mix(in srgb, var(--bg) 94%, transparent); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); max-height: 70vh; overflow-y: auto; padding: 6px; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.gsearch-list[hidden] { display: none; }
.gs-row { display: flex; align-items: center; gap: 4px; border-radius: 10px; }
.gs-row.hl, .gs-row:hover { background: var(--accent-soft); }
.gs-main { flex: 1; min-width: 0; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "kind label" "kind sub"; gap: 0 10px; padding: 8px 10px; color: var(--ink); text-decoration: none; }
.gs-main b, .gs-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-acts { display: flex; gap: 4px; padding-right: 6px; }
.gs-acts a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--field); color: var(--accent-text); border: 1px solid var(--line); }
.gs-acts a:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.gs-acts svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gsearch-list .gs-head { margin: 8px 10px 2px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.gsearch-list .gs-head:first-child { margin-top: 4px; }
.gsearch-list.grouped .gs-kind { display: none; }
.gsearch-list.grouped .gs-main { grid-template-columns: 1fr; grid-template-areas: "label" "sub"; }
.gsearch-list b { grid-area: label; font-size: .92rem; }
.gsearch-list small { grid-area: sub; color: var(--muted); font-size: .78rem; }
.gs-kind { grid-area: kind; align-self: center; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); width: 54px; }
.gsearch-list p { margin: 8px 10px; }
@media (max-width: 900px) { .gsearch { width: auto; flex: 1; } .topbar h1 { flex: none; } }
@media (max-width: 640px) { .topbar { flex-wrap: wrap; } .gsearch { order: 3; flex-basis: 100%; } }

/* Bookings filters: on phones, only search, Filters and New booking until opened */
.filters-toggle { display: none; }
@media (max-width: 640px) {
  #bk-filters .filters-toggle { display: inline-flex; }
  #bk-filters input[name=q] { flex: 1 1 100%; }
  #bk-filters:not(.open) > :not(input[name=q]):not(.filters-toggle):not(.btn.primary) { display: none; }
  #bk-filters.open .filters-toggle { background: var(--accent-soft); color: var(--accent-text); }
}
@media (max-width: 640px) { body:has(.filters input[name=q]) .gsearch { display: none; } }

/* ---------- client pages: easier reading on phones, and "Aa" for larger text ---------- */
.text-size { display: inline-grid; place-items: center; min-width: 40px; height: 34px; padding: 0 10px; border: 0; border-radius: 999px;
  background: var(--fill-2); color: var(--ink-2); cursor: pointer; font: inherit; font-weight: 650; line-height: 1; }
.text-size span { font-size: .78rem; letter-spacing: -.02em; }
.text-size b { font-size: 1.15rem; margin-left: 1px; }
.text-size:hover, .text-size[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-text); }
.pub-contact { align-items: center; }
/* Phones: everything a size up, and no small print under about 13px. */
@media (max-width: 640px) {
  html.pub { font-size: 17px; }
  html.pub .small, html.pub small, html.pub .svc-card .desc, html.pub .pub-footer { font-size: .9rem; }
  html.pub .team-card .tags, html.pub .team-card .lvl, html.pub .svc-badge, html.pub .build { font-size: .78rem; }
}
/* iPhone: follow the Text Size chosen in the phone's settings (never smaller than above). */
@supports (font: -apple-system-body) {
  @media (max-width: 640px) and (hover: none) {
    html.pub:not([data-text="large"]) { font: -apple-system-body; font-family: var(--font); font-size: max(17px, 1em); }
  }
}
/* "Aa": larger still, on any screen. */
html.pub[data-text="large"] { font-size: 18.5px; }
@media (max-width: 640px) { html.pub[data-text="large"] { font-size: 20.5px; } }
html.pub[data-text="large"] .small, html.pub[data-text="large"] small, html.pub[data-text="large"] .svc-card .desc { font-size: .92rem; }
html.pub[data-text="large"] .team-card .tags, html.pub[data-text="large"] .team-card .lvl, html.pub[data-text="large"] .svc-badge { font-size: .8rem; }
@media (max-width: 640px) { html.pub .nav-btns small, html.pub .m-total small { font-size: .78rem; } }
/* The top bar and photographer cards keep their shape at any text size. */
html.pub .team-card { width: auto; min-width: 0; } /* the grid sets the width */
/* "Senior Photographer" breaks between the words, never inside one; tags may still wrap anywhere. */
html.pub .team-card .lvl { overflow-wrap: normal; hyphens: manual; }
html.pub .team-card .tags { overflow-wrap: normal; hyphens: manual; } /* skills wrap between skills, never inside one */
.team-card .skill { white-space: nowrap; } /* "Video Ready" stays on one line */
@media (max-width: 640px) {
  html.pub .pub-bar { font-size: 15px; }
  html.pub .pub-brand span { font-size: 15px; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  html.pub .pub-brand { min-width: 0; flex: 1 1 auto; }
  html.pub .pub-contact { font-size: 13.5px; flex: none; }
  html.pub .text-size span { font-size: 12px; }
  html.pub .text-size b { font-size: 17px; }
}
.booker > * { min-width: 0; } /* the photographer row scrolls; it never widens the page */

/* ---------- dashboard: one screen of what needs you ---------- */
.dash-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin: -4px 0 20px; }
.dash-date { margin: 0; font-size: .78rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.dash-hello { margin: 2px 0 0; font-size: 1.85rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.dash-sum { margin: 4px 0 0; color: var(--ink-2); font-size: 1rem; }
.dash-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-actions .i { width: 16px; height: 16px; stroke-width: 2; }
.dash { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-areas: "a b" "c b"; gap: 18px; align-items: start; }
.dash-col { display: grid; gap: 18px; align-content: start; min-width: 0; }
.dash-col:nth-child(1) { grid-area: a; }
.dash-col:nth-child(2) { grid-area: b; }
.dash-col-2 { grid-area: c; }
.dash .card { margin: 0; padding: 20px 22px; }
.dash .spread h2 { margin: 0; }
.dash h2 { font-size: 1.05rem; letter-spacing: -.01em; }

/* next up: the shoot that's on now or coming next, tinted by its photographer's color */
.nextup {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 20px 22px 18px; color: var(--ink);
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--c) 26%, transparent), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--c) 10%, var(--card)), var(--card));
  border: 1px solid color-mix(in srgb, var(--c) 28%, var(--glass-edge));
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: var(--highlight), var(--shadow);
}
.nu-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 70%, var(--ink)); }
.nu-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 55%, transparent); }
.nextup.live .nu-pulse { animation: nu-pulse 1.8s ease-out infinite; }
@keyframes nu-pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.nu-addr { display: block; margin: 8px 0 0; font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); overflow-wrap: anywhere; }
.nu-addr:hover { text-decoration: none; color: var(--accent-text); }
.nu-meta { margin: 6px 0 0; font-weight: 600; color: var(--ink-2); }
.nu-svc { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.nu-foot { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-top: 16px; }
.nu-leave { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: .85rem; font-weight: 650; background: var(--accent-soft); color: var(--accent-text); }
.nu-leave .i, .tl-leave .i { width: 15px; height: 15px; stroke-width: 2; }
.nu-btns { display: flex; gap: 8px; margin-left: auto; }
.nu-btns .i { width: 15px; height: 15px; stroke-width: 2; }
.who { display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.who .avatar { width: 24px; height: 24px; font-size: .62rem; }

.reach { display: flex; flex-wrap: wrap; gap: 6px; }
.reach .btn { padding: 6px 11px; font-size: .82rem; }
.reach .i { width: 14px; height: 14px; stroke-width: 2; }
.reach .late, .reach .omw { color: var(--accent-text); }
.reach form.inline { display: contents; }
.nu-foot .reach { flex-basis: 100%; order: 3; }
.nu-foot .nu-btns { order: 2; }
.tl-card .reach { margin-top: 8px; }

/* today and tomorrow as a timeline */
.tl { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; position: relative; }
.tl::before { content: ""; position: absolute; left: 79px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--line); }
.tl-item { display: grid; grid-template-columns: 66px 28px minmax(0, 1fr); align-items: start; }
.tl-time { font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; padding-top: 12px; text-align: right; font-size: .92rem; }
.tl-time small { display: block; color: var(--muted); font-weight: 500; font-size: .76rem; }
.tl-dot { justify-self: center; margin-top: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px var(--card), 0 0 0 4px color-mix(in srgb, var(--c) 35%, transparent); position: relative; z-index: 1; }
.tl-card { min-width: 0; display: grid; gap: 3px; padding: 11px 14px; border-radius: var(--r-md); background: var(--fill-2); border: 1px solid transparent; transition: background .15s, border-color .15s; }
.tl-card:hover { background: var(--fill); }
.tl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.tl-head a { color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.tl-card > small { color: var(--muted); font-size: .84rem; }
.tl-foot { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; margin-top: 4px; }
.tl-leave { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-text); font-weight: 650; font-size: .82rem; }
.tl-leave.tight, .nu-leave.tight { color: var(--err); }
.nu-leave.tight { background: color-mix(in srgb, var(--err) 12%, transparent); }
.tl-item.past { opacity: .5; }
.tl-item.past .tl-dot { background: var(--line-strong); box-shadow: 0 0 0 3px var(--card); }
.tl-item.live .tl-card { background: color-mix(in srgb, var(--c) 12%, transparent); border-color: color-mix(in srgb, var(--c) 35%, transparent); }
.tl-item.live .tl-dot { animation: nu-pulse 1.8s ease-out infinite; }
.tl-now { display: grid; grid-template-columns: 66px 28px minmax(0, 1fr); align-items: center; font-size: .74rem; font-weight: 750; color: var(--red); text-transform: uppercase; letter-spacing: .05em; }
.tl-now span { text-align: right; }
.tl-now i { justify-self: center; width: 10px; height: 10px; border-radius: 50%; background: var(--red); position: relative; z-index: 1; }
.tl-now em { font-style: normal; height: 2px; background: linear-gradient(90deg, var(--red), transparent); border-radius: 2px; font-size: 0; }
.sr-badges { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; flex: none; }

/* needs you */
.todo-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; }
.todo { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 10px; margin: 0 -10px; border-radius: var(--r-md); transition: background .15s; }
.todo:hover { background: var(--fill-2); }
.todo-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--t) 78%, white), var(--t)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 2px 6px -2px color-mix(in srgb, var(--t) 60%, transparent); }
.todo-ic .i { width: 18px; height: 18px; stroke-width: 2.1; }
.todo-main { display: grid; gap: 1px; min-width: 0; }
.todo-main b { font-weight: 600; }
.todo-main b a { color: inherit; }
.todo-main b a:hover { color: var(--accent-text); text-decoration: none; }
.todo-main small { color: var(--muted); font-size: .84rem; }
.todo form { margin: 0; }
.dash-todo .count { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; display: inline-grid; place-items: center; background: linear-gradient(180deg, var(--accent), var(--accent-2)); color: var(--accent-ink); font-weight: 700; font-size: .85rem; box-shadow: 0 2px 8px -2px var(--accent); }

/* empty states */
.dash-empty { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 22px 8px 12px; }
.dash-empty .i { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--warn-soft); color: var(--orange); stroke-width: 2; margin-bottom: 6px; }
.dash-empty.ok .i { background: var(--ok-soft); color: var(--ok); }
.dash-empty b { font-weight: 650; font-size: 1.02rem; }
.dash-empty small { color: var(--muted); }

/* the week ahead */
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.week-strip a { display: grid; justify-items: center; align-content: start; gap: 3px; padding: 10px 2px 9px; border-radius: var(--r-md); color: var(--ink); text-decoration: none; background: var(--fill-2); border: 1px solid transparent; transition: transform .3s var(--spring), background .15s; }
.week-strip a:hover { background: var(--fill); }
.week-strip a:active { transform: scale(.95); }
.week-strip a.today { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.week-strip a.today small, .week-strip a.today b { color: var(--accent-text); }
.week-strip small { font-size: .68rem; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .05em; }
.week-strip b { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
.week-strip .dots { display: flex; gap: 3px; height: 7px; margin: 2px 0; }
.week-strip .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.week-strip em { font-style: normal; font-size: .72rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.week-strip a.free em { color: var(--muted); font-weight: 500; }
.dash-foot { margin-top: 20px; text-align: center; }

@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c"; }
}
@media (max-width: 640px) {
  .dash-hero { margin-top: -8px; margin-bottom: 16px; }
  .dash-hello { font-size: 1.55rem; }
  .dash-actions { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash-actions .btn { padding: 9px 6px; font-size: .85rem; }
  .dash .card { padding: 16px; }
  .nextup { padding: 18px 16px 16px; }
  .nu-addr { font-size: 1.4rem; }
  .nu-btns { margin-left: 0; width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .tl::before { left: 67px; }
  .tl-item, .tl-now { grid-template-columns: 56px 24px minmax(0, 1fr); }
  .tl-time { font-size: .84rem; }
  .tl-card { padding: 10px 12px; }
  .tl-head { flex-wrap: wrap; }
  .reach { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reach .late { grid-column: 1 / -1; }
  .reach:has(.omw) .late { grid-column: span 2; } /* On my way and Running late share the last row */
  .todo { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; }
  .week-strip { gap: 4px; }
  .week-strip a { padding: 8px 0 7px; }
  .week-strip b { font-size: 1.05rem; }
  .week-strip em { font-size: 0; }
}

@media (max-width: 380px) { .dash-actions .i { display: none; } }

/* ---------- calendar on phones: List view, and no scroll-inside-a-scroll ---------- */
body.cal-listing .calendar { max-height: none; overflow: visible; background: transparent; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; }
body.cal-listing .cal-help { display: none; }
.cal-list { display: grid; gap: 14px; padding-bottom: 45vh; } /* room for the last days to reach the top */
.cal-strip { position: sticky; z-index: 15; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 6px; border-radius: 18px;
  background: var(--glass-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-edge); box-shadow: var(--shadow); }
.cal-strip button { display: grid; justify-items: center; gap: 1px; padding: 6px 0 5px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.cal-strip button small { font-size: .68rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.cal-strip button b { font-size: 1.05rem; line-height: 1.15; }
.cal-strip button.today b { color: var(--red); }
.cal-strip button.on { background: var(--accent); }
.cal-strip button.on small, .cal-strip button.on b { color: var(--accent-ink); }
.cal-strip .dots { display: flex; gap: 2px; height: 5px; }
.cal-strip .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.cal-strip button.on .dots i { background: var(--accent-ink); }
.cal-lday { background: var(--card); border: 1px solid var(--glass-edge); border-radius: var(--r-lg); box-shadow: var(--highlight), var(--shadow); padding: 12px 14px; display: grid; gap: 8px; scroll-margin-top: 140px; }
.cal-lday header { display: flex; align-items: center; gap: 10px; }
.cal-lday header > span:first-child { flex: 1; min-width: 0; }
.cal-lday header em { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .04em; margin-left: 4px; }
.cal-lday header .n { font-size: .8rem; color: var(--muted); }
.cal-litem { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 10px 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink);
  background: color-mix(in srgb, var(--c, #8e8e93) 12%, var(--card)); border-left: 4px solid var(--c, #8e8e93); }
.cal-litem:hover { text-decoration: none; filter: brightness(.98); }
.cal-litem:active { transform: scale(.985); }
.cal-litem .t { font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; line-height: 1.2; }
.cal-litem .t small { display: block; color: var(--muted); font-weight: 500; font-size: .76rem; }
.cal-litem .m { display: grid; gap: 1px; min-width: 0; }
.cal-litem .m small { color: var(--muted); font-size: .82rem; }
.cal-litem .m .s { color: var(--ink-2); }
.cal-litem.block { --c: #8e8e93; background: repeating-linear-gradient(135deg, var(--fill-2) 0 8px, transparent 8px 16px); }
.cal-litem.pending { border-left-style: dashed; }
.cal-lempty { color: var(--muted); font-size: .9rem; margin: 0; }
@media (max-width: 700px) {
  .calendar { max-height: none; }
  .cal-toolbar { gap: 8px; }
  .cal-toolbar input[type=date] { flex: 1 1 140px; }
  #cal-staff { order: 5; width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
}

/* ---------- phones: no zoom on typing, a menu that scrolls to its end ---------- */
/* iPhones zoom into any text box under 16px (and stay zoomed), so boxes are 16px on touch screens. */
@media (pointer: coarse), (max-width: 900px) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]), select, textarea { font-size: max(16px, 1em) !important; }
}
@media (max-width: 900px) {
  /* Pinned to the visible screen (above Safari's toolbar), not the full 100vh behind it. */
  .sidebar {
    top: 10px; bottom: 10px; height: auto; max-height: calc(100dvh - 20px);
    overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }
  /* While the menu is open the page behind it doesn't scroll. */
  html:has(.navtoggle:checked), body:has(.navtoggle:checked) { overflow: hidden; }
  .sidebar .nav-section { padding-top: 10px; }
}

/* Swipe sideways for the next or previous day, week or month. */
.calendar { touch-action: pan-y; }
body.cal-listing .calendar { touch-action: pan-y pinch-zoom; } /* the List keeps the browser's own pinch zoom */
.calendar.swiping { transition: none; }
.calendar.settle { transition: transform .25s var(--spring), opacity .2s; }
.calendar > .in-next { animation: cal-in-next .28s ease-out; }
.calendar > .in-prev { animation: cal-in-prev .28s ease-out; }
@keyframes cal-in-next { from { transform: translateX(40px); opacity: 0; } }
@keyframes cal-in-prev { from { transform: translateX(-40px); opacity: 0; } }
.cal-swipe-hint { text-align: center; color: var(--muted); font-size: .8rem; margin: -4px 0 8px; }
@media (hover: hover) { .cal-swipe-hint { display: none; } }
/* Touch screens swipe, so only Today is needed. */
@media (hover: none) and (pointer: coarse) { .cal-nav [data-nav="-1"], .cal-nav [data-nav="1"] { display: none; } }
@media (prefers-reduced-motion: reduce) { .calendar > .in-next, .calendar > .in-prev { animation: none; } }
/* Pinch: the calendar follows the fingers, then the new view zooms into place. */
.calendar.clip { overflow: hidden; }
.calendar > * { transition: transform .26s var(--spring), opacity .2s; }
.calendar.pinching > * { transition: none; will-change: transform; }
.calendar > .in-zin { animation: cal-in-zin .32s var(--spring); }
.calendar > .in-zout { animation: cal-in-zout .32s var(--spring); }
@keyframes cal-in-zin { from { transform: scale(.82); opacity: 0; } }
@keyframes cal-in-zout { from { transform: scale(1.18); opacity: 0; } }
.cal-pinch-tag {
  position: fixed; left: 50%; top: 42%; z-index: 60; transform: translate(-50%, -50%) scale(.85); pointer-events: none;
  padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: 1.05rem; opacity: 0;
  background: var(--glass-strong); color: var(--ink); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  transition: opacity .15s, transform .3s var(--spring), background .15s, color .15s;
}
.cal-pinch-tag.on { opacity: .9; transform: translate(-50%, -50%) scale(1); }
.cal-pinch-tag.ready { background: var(--accent); color: var(--accent-ink); border-color: transparent; transform: translate(-50%, -50%) scale(1.12); }
@media (prefers-reduced-motion: reduce) { .calendar > .in-zin, .calendar > .in-zout { animation: none; } }
@media (max-width: 700px) {
  .cal-headrow { margin: 6px 0 10px; }
  .cal-title { font-size: 1.2rem; }
  /* Every view fits the screen: no sideways scrolling inside, so sideways is a swipe. */
  .calendar { overflow-x: hidden; }
  .cal-time { padding: 0 5px; font-size: .64rem; }
  .cal-head { padding: 8px 2px; }
  .cal-grid.narrow .cal-head { display: grid; gap: 1px; font-size: .95rem; line-height: 1.1; }
  .cal-grid.narrow .cal-head small { font-size: .62rem; font-weight: 600; color: var(--muted); text-transform: uppercase; }
  .cal-grid.narrow .cal-head.today small { color: var(--red); }
  .cal-grid.narrow .cal-ev { padding: 3px 3px 3px 5px; font-size: .62rem; line-height: 1.2; border-left-width: 2px; border-radius: 5px; overflow-wrap: normal; word-break: normal; hyphens: none; }
  .cal-grid.narrow .cal-ev .svc { display: none; }
}

/* ---------- quick quote: a sheet over the dashboard ---------- */
dialog.qq { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; color: var(--ink); overflow: hidden; }
dialog.qq::backdrop { background: rgba(0, 0, 0, .32); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.qq-sheet {
  position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(460px, calc(100% - 24px)); display: flex; flex-direction: column;
  border-radius: var(--r-xl); background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-lg), var(--highlight);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); animation: qq-in-side .35s var(--spring); overflow: hidden;
}
@keyframes qq-in-side { from { transform: translateX(40px); opacity: 0; } }
.qq-head { display: flex; align-items: center; gap: 8px; padding: 16px 16px 10px 20px; border-bottom: 1px solid var(--line); }
.qq-head h2 { flex: 1; margin: 0; font-size: 1.2rem; }
.qq-grab { display: none; }
.qq-x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--fill); color: var(--ink-2); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.qq-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 6px 20px 16px; }
.qq-body section { padding: 12px 0; border-bottom: 1px solid var(--line); }
.qq-body section:last-child { border-bottom: 0; }
.qq-body h3 { margin: 0 0 8px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.qq-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; margin-top: 10px; align-items: start; }
.qq-row span { display: block; font-size: .8rem; color: var(--ink-2); font-weight: 550; margin-bottom: 5px; }
.qq-note { margin: 8px 0 0; font-size: .84rem; color: var(--accent-text); min-height: 1em; }
.qq-note:empty { display: none; }
.qq-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.qq-chip { font: inherit; font-size: .86rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--field); color: var(--ink); cursor: pointer; transition: transform .25s var(--spring), background .15s; }
.qq-chip:active { transform: scale(.94); }
.qq-chip.on { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.qq-group { margin: 6px 0 4px; font-size: .78rem; font-weight: 650; color: var(--ink-2); }
.qq-svcs { display: grid; gap: 4px; }
.qq-svc { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: var(--r-md); cursor: pointer; background: var(--fill-2); border: 1.5px solid transparent; transition: background .15s, border-color .15s, transform .25s var(--spring); user-select: none; }
.qq-svc:active { transform: scale(.985); }
.qq-svc.on { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.qq-check { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; }
.qq-svc.package .qq-check { border-radius: 50%; }
.qq-svc.on .qq-check { background: var(--accent); border-color: var(--accent); }
.qq-svc.on .qq-check::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--accent-ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.qq-name { font-weight: 550; font-size: .92rem; min-width: 0; }
.qq-name em { font-style: normal; font-size: .72rem; font-weight: 650; color: var(--accent-text); margin-left: 4px; white-space: nowrap; }
.qq-price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qq-price small { font-weight: 500; color: var(--muted); font-size: .72rem; }
.qq-qty { display: inline-flex; align-items: center; gap: 2px; border-radius: 999px; background: var(--field); border: 1px solid var(--line); }
.qq-qty button { width: 30px; height: 28px; border: 0; background: none; font: inherit; font-size: 1.05rem; cursor: pointer; color: var(--ink); }
.qq-qty b { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.qq-more { margin-top: 6px; justify-self: start; }
.qq-foot { border-top: 1px solid var(--line); padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--glass-strong) 80%, transparent); }
.qq-break summary { list-style: none; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "l t" "s s"; align-items: baseline; gap: 0 10px; cursor: pointer; padding: 0 4px 10px; }
.qq-break summary::-webkit-details-marker { display: none; }
.qq-total-label { grid-area: l; font-weight: 650; color: var(--ink-2); }
.qq-total-label::after { content: " ▾"; font-size: .7rem; color: var(--muted); }
.qq-break[open] .qq-total-label::after { content: " ▴"; }
#qq-total { grid-area: t; justify-self: end; font-size: 1.7rem; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
#qq-sub { grid-area: s; color: var(--muted); font-size: .82rem; }
.qq-table { width: 100%; border-collapse: collapse; font-size: .86rem; margin: 0 0 10px; }
.qq-table td { padding: 4px 4px; border-top: 1px solid var(--line); }
.qq-table td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qq-table tr.t td { color: var(--ink-2); }
.qq-table tr.g td { font-weight: 700; }
.qq-actions { display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: 8px; }
.qq-actions .btn[aria-disabled] { opacity: .45; pointer-events: none; }
@media (max-width: 700px) {
  .qq-sheet { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 92dvh; height: 92dvh; border-radius: 26px 26px 0 0; animation: qq-in-up .4s var(--spring); }
  @keyframes qq-in-up { from { transform: translateY(60%); } }
  .qq-grab { display: block; position: absolute; left: 50%; top: 6px; width: 38px; height: 5px; margin-left: -19px; border-radius: 3px; background: var(--line-strong); }
  .qq-head { padding-top: 18px; }
  .qq-row { grid-template-columns: 1fr; }
  .qq-actions { grid-template-columns: repeat(3, 1fr); }
  .qq-actions .primary { grid-column: 1 / -1; }
  .dash-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.qq-send { display: grid; gap: 8px; padding: 12px; margin: 0 0 10px; border-radius: var(--r-md); background: var(--fill-2); }
.qq-send[hidden] { display: none; }
.qq-send-title { margin: 0; font-size: .86rem; color: var(--ink-2); }
.qq-send-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qq-send-btns { display: flex; justify-content: flex-end; gap: 8px; }
.qq-send-msg { margin: 0; font-size: .84rem; color: var(--ok); }
.qq-send-msg:empty { display: none; }
.b-booked { background: var(--ok-soft); color: var(--ok); }
.b-opened { background: var(--info-soft); color: var(--info); }
.b-sent { background: var(--neutral-soft); color: var(--ink-2); }
@media (max-width: 700px) { .qq-send-row { grid-template-columns: 1fr; } }
/* delivery: a link box for each kind of media */
.dlinks { display: grid; gap: 2px; }
.dlink em.sent { font-style: normal; color: var(--ok); font-weight: 600; margin-left: 6px; }
.edit-who { margin: 6px 0; line-height: 1.45; color: var(--ink-2); }
.dl-btns { flex-wrap: wrap; }

/* ---------- client shoot tracker: Booked → Shoot day → Editing → Ready ---------- */
.trk { margin: 14px 0 6px; }
.trk-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.trk-steps li { display: grid; justify-items: center; gap: 6px; text-align: center; position: relative; font-size: .78rem; font-weight: 600; color: var(--muted); }
.trk-steps li::before { content: ""; position: absolute; top: 8px; right: 50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.trk-steps li:first-child::before { display: none; }
.trk-steps li.done::before, .trk-steps li.now::before { background: var(--accent); }
.trk-steps i { width: 19px; height: 19px; border-radius: 50%; background: var(--card); border: 3px solid var(--line-strong); position: relative; z-index: 1; box-sizing: border-box; }
.trk-steps li.done i { background: var(--accent); border-color: var(--accent); }
.trk-steps li.done i::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.trk-steps li.now { color: var(--ink); }
.trk-steps li.now i { border-color: var(--accent); background: var(--card); box-shadow: 0 0 0 5px var(--accent-soft); }
.trk-line { margin: 12px 0 0; font-weight: 600; }
.trk-media { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.trk-media li { display: inline-flex; align-items: baseline; gap: 5px; padding: 5px 11px; border-radius: 999px; font-size: .84rem; font-weight: 600; background: var(--fill-2); color: var(--ink-2); }
.trk-media li small { font-weight: 500; color: var(--muted); }
.trk-media li.ready, .trk-media li.waiting { background: var(--ok-soft); color: var(--ok); }
.trk-media li.ready small, .trk-media li.waiting small { color: inherit; opacity: .8; }
.trk-media li.editing { background: var(--warn-soft); color: var(--warn); }
.trk-media li.editing small { color: inherit; opacity: .8; }
.trk.compact { margin: 10px 0 2px; }
.trk.compact .trk-line { margin-top: 8px; font-size: .92rem; }
.acct-shoot { display: block; padding: 14px 12px 12px; margin: 0 -6px 8px; border-radius: var(--r-md); color: var(--ink); background: var(--fill-2); }
.acct-shoot:hover { text-decoration: none; background: var(--fill); }
.acct-shoot-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.acct-shoot-head b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-shoot-head .small { flex: none; }
/* office booking: a shoot with no property address */
.ob-prop > .spread { margin-bottom: 12px; gap: 10px; flex-wrap: wrap; }
.ob-prop > .spread h2 { margin: 0; }
.ob-noaddr { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.ob-noaddr-note { display: none; }
.ob-prop.noaddr .ob-noaddr-note { display: block; margin: -4px 0 8px; }
.ob-prop.noaddr .ob-town, .ob-prop.noaddr .ob-nums, .ob-prop.noaddr .lookup-note, .ob-prop.noaddr #distance-note { display: none; }

/* ---------- Arby in the team app ---------- */
.arby { display: grid; gap: 14px; }
.arby-mic {
  justify-self: center; width: 168px; height: 168px; border-radius: 50%; border: 0; cursor: pointer; margin-top: 6px;
  display: grid; place-items: center; align-content: center; gap: 10px; color: var(--accent-ink); font: inherit;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--accent) 70%, white), var(--accent) 55%, var(--accent-2));
  box-shadow: 0 14px 34px -10px color-mix(in srgb, var(--accent) 70%, transparent), var(--highlight);
  transition: transform .3s var(--spring), box-shadow .3s;
}
.arby-mic:active { transform: scale(.95); }
.arby-mic b { font-size: 1.05rem; font-weight: 700; }
.arby-mic-dot { width: 34px; height: 46px; border-radius: 18px; border: 3.5px solid currentColor; position: relative; }
.arby-mic-dot::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 3.5px; height: 10px; margin-left: -1.75px; background: currentColor; border-radius: 2px; }
.arby-mic.on { animation: arby-pulse 1.4s ease-out infinite; }
@keyframes arby-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 100% { box-shadow: 0 0 0 26px transparent; } }
@media (prefers-reduced-motion: reduce) { .arby-mic.on { animation: none; outline: 4px solid var(--accent-soft); } }
.arby-hint { text-align: center; margin: -4px 0 0; color: var(--ink-2); font-weight: 600; min-height: 1.2em; }
.arby-hint:empty { display: none; }
.arby-form { display: grid; gap: 8px; padding: 12px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--glass-edge); box-shadow: var(--highlight), var(--shadow); }
.arby-form textarea { resize: vertical; min-height: 76px; }
.arby-row { display: flex; gap: 8px; align-items: center; }
.arby-for { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.arby-for span { font-weight: 600; color: var(--ink-2); font-size: .9rem; }
.arby-for select { flex: 1; min-width: 0; }
.arby-answer { padding: 14px 16px; border-radius: var(--r-lg); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.arby-answer p { margin: 6px 0 0; line-height: 1.5; overflow-wrap: anywhere; }
.arby-answer.busy { background: var(--fill-2); border-color: var(--line); }
.arby-wait { margin: 0 !important; font-weight: 700; }
.arby-h { margin: 6px 2px 0; font-size: 1rem; }
.arby-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.arby-item { padding: 12px 14px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--glass-edge); box-shadow: var(--shadow); }
.arby-item b { display: block; margin-top: 4px; font-weight: 600; overflow-wrap: anywhere; }
.arby-item p { margin: 4px 0 0; color: var(--ink-2); font-size: .92rem; line-height: 1.45; overflow-wrap: anywhere; }
.arby-item-head { display: flex; align-items: center; gap: 8px; }
.arby-item-head small { color: var(--muted); }

/* Arby on the office pages: typing first, a small optional mic */
.arby.desk { max-width: 760px; }
.arby.desk .arby-form textarea { min-height: 110px; }
.arby-mic-sm { display: inline-flex; align-items: center; gap: 6px; }
.arby-mic-sm.on { outline: 3px solid var(--accent-soft); }

/* Ask Arby on every team page: the round button and the side panel (public/arby.js) */
.arby-fab { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; align-items: center; gap: 8px;
  padding: 12px 18px; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 700; color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent), var(--shadow-lg);
  transition: transform .25s var(--spring); }
.arby-fab:hover { transform: translateY(-2px); }
.arby-fab-i { font-size: 1.05rem; line-height: 1; }
body.arby-open .arby-fab { display: none; }
body.arby-lift .arby-fab { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
.arby-panel { position: fixed; top: 10px; right: 10px; bottom: 10px; z-index: 65; width: min(420px, calc(100vw - 20px)); display: flex; flex-direction: column;
  border-radius: var(--r-xl); background: color-mix(in srgb, var(--bg) 97%, transparent); box-shadow: var(--shadow-lg); overflow: hidden; }
.arby-panel[hidden] { display: none; }
.arby-p-head { display: flex; gap: 12px; align-items: center; padding: 16px 16px 12px; border-bottom: 1px solid var(--line); }
.arby-p-head small { display: block; color: var(--muted); font-size: .8rem; }
.arby-p-head .arby-fab-i { color: var(--accent-text); font-size: 1.3rem; }
.arby-x { margin-left: auto; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); }
.arby-log { flex: 1; overflow: auto; padding: 14px 16px; display: grid; gap: 10px; align-content: start; overscroll-behavior: contain; }
.arby-msg { background: var(--card); border: 1px solid var(--glass-edge); border-radius: var(--r-md); padding: 10px 13px; font-size: .94rem; line-height: 1.5; overflow-wrap: anywhere; }
.arby-msg p { margin: 0 0 6px; } .arby-msg p:last-child { margin: 0; }
.arby-msg ul { margin: 0 0 6px; padding-left: 18px; }
.arby-me { justify-self: end; max-width: 85%; background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.arby-err { border-color: color-mix(in srgb, var(--err) 40%, transparent); }
.arby-try { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.arby-try .chip { border: 1px solid var(--line-strong); background: var(--fill); color: var(--ink); border-radius: 999px; padding: 6px 11px; font: inherit; font-size: .82rem; cursor: pointer; }
.arby-msg.arby-wait { display: flex; gap: 5px; align-items: center; width: fit-content; }
.arby-msg.arby-wait span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: arby-dot 1s infinite alternate; }
.arby-msg.arby-wait span:nth-child(2) { animation-delay: .2s; } .arby-msg.arby-wait span:nth-child(3) { animation-delay: .4s; }
.arby-msg.arby-wait small { margin-left: 6px; color: var(--muted); }
@keyframes arby-dot { to { opacity: .25; transform: translateY(-3px); } }
.arby-p-form { display: grid; gap: 8px; padding: 12px 16px 10px; border-top: 1px solid var(--line); }
.arby-p-form textarea { resize: none; min-height: 60px; }
.arby-p-row { display: flex; gap: 8px; align-items: center; }
.arby-p-form .arby-hint { margin: 0; text-align: left; font-weight: 500; font-size: .78rem; color: var(--muted); }
.arby-more { padding: 0 16px 10px; }
.arby-more summary { cursor: pointer; font-weight: 650; font-size: .88rem; color: var(--ink-2); padding: 4px 0; }
.arby-more .arby-recent { max-height: 30vh; overflow: auto; margin-top: 6px; }
@media (max-width: 640px) {
  .arby-fab { padding: 14px; right: 14px; } .arby-fab-t { display: none; }
  .arby-panel { inset: 0; width: auto; border-radius: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
}
/* The search box's brief answer from Arby */
.gs-arby { padding: 10px 12px; margin-bottom: 4px; border-radius: var(--r-md); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.gs-arby p { margin: 4px 0 0; line-height: 1.45; font-size: .92rem; overflow-wrap: anywhere; }
.gs-arby .gs-more { margin-top: 6px; font-weight: 700; color: var(--accent-text); }
.gs-arby-wait { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.gs-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--accent); animation: gs-spin .8s linear infinite; flex: none; }
@keyframes gs-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .arby-msg.arby-wait span, .gs-spin { animation: none; } }

/* Settings → Backup: each part of the nightly backup */
.backup-parts { list-style: none; padding: 0; margin: 6px 0 10px; display: grid; gap: 4px; }
.backup-parts .bad { color: var(--err); }
.backup-parts .skip { color: var(--muted); }
.backup-parts .warn { color: var(--orange); }

/* Services list: select mode and the bulk bar */
.svc-list:not(.selecting) .sel { display: none; }
.svc-tbl .sel { width: 36px; padding-right: 0; }
.svc-tbl .sel input { width: 18px; height: 18px; accent-color: var(--accent); }
.svc-list.selecting tbody tr { cursor: pointer; }
.svc-list.selecting tr.picked { background: color-mix(in srgb, var(--accent) 7%, transparent); }
@media (max-width: 640px) {
  .svc-tbl tr { position: relative; }
  .svc-list.selecting .svc-tbl tr { padding-right: 48px; }
  table.tbl.stackable.svc-tbl td.sel { position: absolute; top: 14px; right: 14px; }
  table.tbl.stackable.svc-tbl td.sel + td { grid-column: 1 / -1; font-weight: 600; }
  table.tbl.stackable.svc-tbl td.sel + td::before { content: none; }
  table.tbl.stackable.svc-tbl td.sel + td .muted { font-weight: 400; }
}
#svc-select[aria-pressed="true"] { border-color: var(--accent); color: var(--accent-text); }
.bulk-bar { position: sticky; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0; padding: 10px 12px 10px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--glass-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--shadow-lg); }
.bulk-bar[hidden] { display: none; }
.bulk-bar b { margin-right: auto; font-variant-numeric: tabular-nums; }
.bulk-bar select, .bulk-bar input { width: auto; min-width: 0; max-width: 200px; padding: 6px 10px; }
.bulk-bar button:disabled { opacity: .45; cursor: default; }
@media (max-width: 600px) { .bulk-bar b { flex: 1 1 100%; } }

/* Office booking: travel, by the drive or typed in */
.ob-tb { margin-top: 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--fill-2); display: grid; gap: 8px; }
.ob-tb-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ob-tb p { margin: 0; }
.ob-tb .seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--field); border: 1px solid var(--line); }
.ob-tb .seg label { position: relative; cursor: pointer; }
.ob-tb .seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ob-tb .seg span { display: block; padding: 5px 12px; border-radius: 999px; font-size: .84rem; font-weight: 600; color: var(--muted); transition: background .15s, color .15s; }
.ob-tb .seg input:checked + span { background: var(--accent); color: var(--accent-ink); }
.ob-tb .seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ob-tb-manual { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ob-tb-manual[hidden], .ob-tb p[hidden] { display: none; }
.ob-tb-manual .ob-money { width: 130px; }

/* Office booking: "Already shot: invoice and deliver" (off the calendar) */
.ob-mode { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; margin: 0; }
.ob-mode-text { display: grid; gap: 2px; }
.ob-mode-text small { color: var(--muted); font-size: .84rem; line-height: 1.35; }
.ob-mode:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.opt-sched, .ob-btns { display: contents; }
.opt-inv, .ob-inv-t, .ob-deliver { display: none; }
.ob.inv-only .opt-sched, .ob.inv-only .ob-sched-t { display: none; }
.ob.inv-only label.opt-inv { display: inline-flex; }
.ob.inv-only .btn.opt-inv { display: inline-flex; }
.ob.inv-only .ob-actions .btn.opt-inv { flex: 1 1 100%; }
.ob.inv-only .ob-inv-t { display: inline; }
.ob.inv-only .ob-deliver { display: block; }
.ob.inv-only .ob-when > :not(:first-child), .ob.inv-only #slot-hint, .ob.inv-only .ob-when + #slot-hint + .field { display: none; }
.ob.inv-only .ob-when { grid-template-columns: minmax(0, 220px); }
.ob-deliver .dlinks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 640px) { .ob-deliver .dlinks { grid-template-columns: 1fr; } }
.linkish { border: 0; background: none; padding: 0; font: inherit; color: var(--accent-text); text-decoration: underline; cursor: pointer; }
.ob-license[hidden] { display: none; }
.ob-license textarea, .ob-license-edit textarea { font-size: .88rem; line-height: 1.5; }
.inv-license { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); font-size: .86rem; line-height: 1.55; }
.inv-license h3 { margin: 0 0 6px; font-size: .95rem; }
.inv-license p { margin: 0; white-space: pre-wrap; }

/* Headshots: session cards with their time and retouched images, and the "what's it for" chips. */
.hs-where { margin-top: 8px; }
.hs-alt { margin: 18px 0 0; }
.hs-cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.hs-card .hs-facts { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.hs-use { background: none; border: 0; padding: 0; margin: 8px 0 4px; }
.hs-use legend { padding: 0; font-size: .85rem; }
.hours-tbl { table-layout: fixed; width: 100%; }
.hours-tbl td { padding: 4px 6px 4px 0; }
.hours-tbl td:first-child { width: 42%; }
.hours-tbl input[type="time"] { width: 100%; min-width: 0; padding-left: 8px; padding-right: 4px; }
.hs-card .svc-thumb.wide.placeholder { aspect-ratio: 3 / 1; }

/* Proofs: the client taps favorites; the photographer's card shows the same grid, smaller. */
.proof-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
.proof-grid.small-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.proof { position: relative; display: grid; gap: 4px; margin: 0; cursor: pointer; border-radius: var(--r-md); padding: 4px; border: 2px solid transparent; transition: border-color .2s, background .2s; }
.proof img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; display: block; background: var(--fill-2); }
.proof input { position: absolute; top: 12px; left: 12px; width: 22px; height: 22px; accent-color: var(--accent); }
.proof.on { border-color: var(--accent); background: var(--accent-soft); }
.proof-name, .proof figcaption { font-size: .75rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proof form { position: absolute; top: 8px; right: 8px; }
.proof-x { border: 0; border-radius: 50%; width: 24px; height: 24px; cursor: pointer; background: var(--glass-strong); color: var(--ink); font-size: .75rem; }
.proof-bar { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0 calc(4px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); font-weight: 650; }
ol.picks { margin: 4px 0 8px; padding-left: 20px; }

/* A team headshot day's run sheet (phone app and team pages). */
ol.run { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
ol.run li { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-top: 1px solid var(--line); }
ol.run li b { min-width: 64px; font-variant-numeric: tabular-nums; }
ol.run li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
ol.run li.open { color: var(--muted); }
.hd-slots .slot { position: relative; display: grid; place-items: center; }
.hd-slots .slot input { position: absolute; opacity: 0; pointer-events: none; }
.hd-slots .slot:has(input:checked) { background: var(--accent); color: var(--accent-ink); }
.hd-slots .slot:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.hd-slots .slot.taken { opacity: .4; cursor: default; text-decoration: line-through; }
.hd-slots .slot small { font-size: .68rem; font-weight: 600; text-decoration: none; }

/* Headshots → Availability: the link to send, and eight weeks of headshot hours. */
.hs-tabs { margin-bottom: 14px; }
.hs-link { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hs-link input { flex: 1 1 240px; min-width: 0; }
.hs-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.hs-dow { font-size: .72rem; color: var(--muted); text-align: center; padding-bottom: 2px; }
.hs-day { display: grid; align-content: start; gap: 1px; min-height: 58px; padding: 5px 4px; border-radius: 10px; background: var(--fill-2); color: var(--ink); text-decoration: none; font-size: .78rem; border: 1.5px solid transparent; }
.hs-day:hover { border-color: var(--accent); }
.hs-day .d { font-weight: 650; }
.hs-day .h { font-size: .72rem; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-day .n { font-size: .7rem; font-weight: 700; color: var(--accent-text); }
.hs-day .n.team { color: var(--info); }
.hs-day.open { background: color-mix(in srgb, var(--ok) 16%, var(--field)); }
.hs-day.extra { background: color-mix(in srgb, var(--ok) 30%, var(--field)); }
.hs-day.blocked:not(.open) { background: repeating-linear-gradient(135deg, var(--fill-2) 0 6px, color-mix(in srgb, var(--danger, #d33) 12%, var(--fill-2)) 6px 12px); }
.hs-day.blocked .h { color: var(--muted); }
.hs-day.past { opacity: .4; }
.hs-day.on { border-color: var(--accent); }
.hs-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 10px; }
.hs-key { display: inline-block; width: 12px; height: 12px; border-radius: 4px; background: var(--fill-2); }
.hs-key.open { background: color-mix(in srgb, var(--ok) 16%, var(--field)); }
.hs-key.extra { background: color-mix(in srgb, var(--ok) 30%, var(--field)); }
.hs-key.blocked { background: repeating-linear-gradient(135deg, var(--fill-2) 0 3px, color-mix(in srgb, var(--danger, #d33) 20%, var(--fill-2)) 3px 6px); }
@media (max-width: 420px) { .hs-day { min-height: 50px; padding: 4px 2px; font-size: .72rem; } .hs-day .h { font-size: .64rem; } }

/* Clients list */
.cl-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cl-tiles { display: flex; gap: 10px; flex-wrap: wrap; }
.cl-tiles > * { display: grid; gap: 1px; padding: 10px 16px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--glass-edge); color: var(--ink); text-decoration: none; min-width: 108px; }
.cl-tiles b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.cl-tiles small { color: var(--muted); font-size: .76rem; }
.cl-tiles a.warn b { color: var(--err); }
.cl-tiles a:hover { border-color: var(--accent); }
.cl-tools { display: flex; gap: 8px; margin-bottom: 10px; }
.cl-search { flex: 1; position: relative; display: flex; align-items: center; }
.cl-search .i { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.cl-search input { width: 100%; padding-left: 40px; border-radius: 999px; }
.cl-tools select { width: auto; border-radius: 999px; }
.cl-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cl-chips::-webkit-scrollbar { display: none; }
.cl-chips a { flex: none; padding: 6px 14px; border-radius: 999px; font-size: .86rem; font-weight: 600; color: var(--ink); background: var(--fill); text-decoration: none; }
.cl-chips a.on { background: var(--accent); color: var(--accent-ink); }
.cl-count { margin: 10px 4px 8px; }
ul.cl-list { list-style: none; margin: 0 0 12px; padding: 4px 0; }
.cl-letter { position: sticky; top: 0; z-index: 1; padding: 6px 18px 4px; font-size: .74rem; font-weight: 800; letter-spacing: .08em; color: var(--accent-text); background: linear-gradient(var(--card), var(--card)), var(--bg); border-top: 1px solid var(--line); }
.cl-letter:first-child { border-top: 0; }
.cl-row { display: flex; align-items: center; gap: 6px; padding: 0 12px 0 0; border-top: 1px solid var(--line); }
.cl-letter + .cl-row, .cl-row:first-child { border-top: 0; }
.cl-row:hover { background: var(--fill-2); }
.cl-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 6px 10px 16px; color: var(--ink); text-decoration: none; }
.cl-avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: .82rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, hsl(var(--h) 62% 52%), hsl(calc(var(--h) + 35) 62% 44%)); }
.cl-who { flex: 1; min-width: 0; display: grid; }
.cl-who b, .cl-who small, .cl-stats small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-who b { font-size: .95rem; }
.cl-who small, .cl-stats small { color: var(--muted); font-size: .8rem; }
.cl-stats { flex: none; display: grid; text-align: right; font-size: .86rem; min-width: 120px; }
.cl-owe { flex: none; padding: 3px 9px; border-radius: 999px; font-size: .76rem; font-weight: 700; color: var(--err); background: color-mix(in srgb, var(--err) 12%, transparent); }
.cl-acts { flex: none; display: flex; gap: 4px; }
.cl-acts a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--accent-text); background: var(--fill); }
.cl-acts a:hover { background: var(--accent); color: var(--accent-ink); }
.cl-acts .i { width: 16px; height: 16px; }
.cl-foot { text-align: center; }
@media (max-width: 640px) {
  .cl-top .btn { flex: 1 1 100%; justify-content: center; order: -1; }
  .cl-tiles { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cl-tiles > * { min-width: 0; padding: 8px 10px; }
  .cl-tiles b { font-size: 1rem; }
  .cl-main { gap: 10px; padding: 10px 4px 10px 12px; flex-wrap: wrap; }
  .cl-stats { display: none; }
  .cl-owe.d, .cl-acts a.cl-mail { display: none; }
  .cl-who .cl-owe.m { display: inline-block; justify-self: start; margin-top: 3px; padding: 1px 8px; font-size: .72rem; font-style: normal; }
  .cl-acts a { width: 36px; height: 36px; }
  body.own-search .gsearch { display: none; }
}
.cl-owe.m { display: none; }
.cl-flags { display: contents; }
/* Wide screens: each client reads across in columns (phone, town, type, last photographer, last
   shoot) under a row of labels, instead of the name on the left and everything else far right. */
.cl-col, .cl-head { display: none; }
@media (min-width: 900px) {
  .cl-main { display: grid; grid-template-columns: 38px minmax(0, 2.2fr) minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1.1fr) minmax(120px, 1fr) minmax(0, auto); column-gap: 16px; }
  .cl-col { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; }
  .cl-phone { font-variant-numeric: tabular-nums; }
  .cl-town, .cl-by { color: var(--muted); }
  .cl-acts { width: 110px; justify-content: flex-end; }
  .cl-flags { display: flex; gap: 6px; justify-content: flex-end; }
  .cl-flags .badge.cl-type { display: none; } /* the Type column says it */
  .cl-head { display: flex; position: sticky; top: 0; z-index: 2; background: var(--card); border-top: 0; }
  .cl-head:hover { background: var(--card); }
  .cl-head .cl-main { padding-top: 8px; padding-bottom: 8px; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
  .cl-head .cl-col, .cl-head .cl-who, .cl-head .cl-stats { font-size: inherit; color: inherit; }
  .cl-head + .cl-letter { border-top: 1px solid var(--line); }
  .cl-letter { top: 33px; }
  .cl-kind-tag { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--fill); color: var(--ink); }
  .cl-kind-tag.realtor { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-text); }
  .cl-kind-tag.rental, .cl-kind-tag.both { background: color-mix(in srgb, var(--teal) 18%, transparent); color: #00787a; }
  .cl-kind-tag.other { color: var(--muted); }
}

/* Invoices list: the clients list's look. The client and the shoot's address (or first line) on the
   left, the total on the right, a status pill; on wide screens invoice # and date get columns. */
.iv-sorts { display: flex; gap: 4px; margin-top: 8px; padding: 3px; border-radius: 999px; background: var(--fill); width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.iv-sorts::-webkit-scrollbar { display: none; }
.iv-sorts a { flex: none; padding: 5px 13px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.iv-sorts a.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.iv-due { color: var(--err); }
.iv-dates { flex: none; align-self: center; }
.iv-dates summary { cursor: pointer; padding: 8px 14px; border-radius: 999px; background: var(--fill); font-size: .86rem; font-weight: 600; list-style: none; }
.iv-dates summary::-webkit-details-marker { display: none; }
.iv-dates[open] { flex-basis: 100%; }
.iv-dates[open] summary { display: none; }
.iv-dates span { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.iv-dates input { width: auto; }
.cl-tools:has(.iv-dates[open]) { flex-wrap: wrap; }
.iv-row { display: flex; align-items: center; border-top: 1px solid var(--line); }
.iv-row:first-child, .iv-head + .iv-row { border-top: 0; }
.iv-row:hover { background: var(--fill-2); }
.iv-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 11px 16px; color: var(--ink); text-decoration: none; }
.iv-who { flex: 1; min-width: 0; display: grid; }
.iv-who b, .iv-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iv-who b { font-size: .95rem; }
.iv-who small { color: var(--muted); font-size: .8rem; }
.iv-who .iv-line { color: var(--ink-2, var(--ink)); opacity: .85; }
.iv-amt { flex: none; display: grid; text-align: right; font-variant-numeric: tabular-nums; }
.iv-amt b { font-size: .95rem; }
.iv-amt small { color: var(--err); font-size: .76rem; font-weight: 600; }
.iv-state { flex: none; display: flex; justify-content: flex-end; align-items: center; gap: 6px; min-width: 92px; }
.iv-paid { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.iv-pill { padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; background: var(--fill); color: var(--muted); }
.iv-pill.paid { background: var(--ok-soft); color: var(--ok); }
.iv-pill.open, .iv-pill.partial { background: var(--warn-soft); color: var(--warn); }
.iv-pill.overdue { background: var(--err-soft); color: var(--err); }
.iv-pill.waiting { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); }
.iv-row.void .iv-who b, .iv-row.void .iv-amt b { color: var(--muted); text-decoration: line-through; }
.iv-col, .iv-head { display: none; }
@media (max-width: 1099px) {
  .iv-main { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px; row-gap: 4px; padding: 11px 14px; }
  .iv-main > .cl-avatar { grid-row: 1 / 3; align-self: center; }
  .iv-who { grid-row: 1 / 3; align-self: center; }
  .iv-amt { grid-column: 3; grid-row: 1; align-self: end; }
  .iv-state { grid-column: 3; grid-row: 2; min-width: 0; align-self: start; }
  .iv-who .iv-co { display: none; }
}
@media (min-width: 1100px) {
  .iv-main { display: grid; grid-template-columns: 38px minmax(0, 1.3fr) minmax(0, 2fr) 104px minmax(96px, auto) 108px; column-gap: 16px; }
  .iv-who .iv-line, .iv-who .iv-meta { display: none; }
  .iv-col { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; }
  .iv-col small { display: block; color: var(--muted); font-size: .74rem; }
  .iv-where { color: var(--ink); }
  .iv-num { font-variant-numeric: tabular-nums; color: var(--muted); }
  .iv-head { display: flex; position: sticky; top: 0; z-index: 2; background: var(--card); }
  .iv-head:hover { background: var(--card); }
  .iv-head .iv-main { padding-top: 8px; padding-bottom: 8px; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
  .iv-head .iv-col, .iv-head .iv-who, .iv-head .iv-amt { font-size: inherit; color: inherit; }
}

/* Quick time picker */
.tp { position: relative; }
.tp-native { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.tp.typing .tp-native { position: static; opacity: 1; pointer-events: auto; width: 100%; height: auto; margin-top: 6px; }
.tp-btn { width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--field); color: var(--ink); font: inherit; font-size: max(16px, 1rem); font-weight: 600; cursor: pointer; text-align: left; }
.tp-btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--accent-text); stroke-width: 2; stroke-linecap: round; }
.tp.open .tp-btn, .tp-btn:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
.tp-panel { position: absolute; z-index: 45; left: 0; top: calc(100% + 6px); width: max(100%, 300px); max-height: 360px; overflow-y: auto; padding: 8px; border-radius: var(--r-md);
  background: linear-gradient(var(--card), var(--card)), var(--bg); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-lg); animation: pop .25s var(--spring); }
.tp-panel[hidden] { display: none; }
.card:has(.tp.open) { position: relative; z-index: 30; }
.tp-row { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 6px; padding: 2px 0; }
.tp-row b { font-size: .8rem; color: var(--muted); font-weight: 650; }
.tp-row div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.tp-chip { padding: 8px 0; border-radius: 9px; border: 0; background: var(--fill); color: var(--ink); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; }
.tp-chip:hover { background: var(--accent-soft); }
.tp-chip.on { background: var(--accent); color: var(--accent-ink); }
.tp-chip.off { opacity: .45; }
.tp-chip.busy { background: color-mix(in srgb, var(--err) 14%, transparent); color: var(--err); text-decoration: line-through; }
.tp-chip.busy.on { background: var(--err); color: #fff; text-decoration: none; }
.tp-foot { display: flex; justify-content: space-between; gap: 10px; padding: 8px 4px 2px; font-size: .84rem; border-top: 1px solid var(--line); margin-top: 6px; }
@media (max-width: 640px) {
  .tp-panel { max-height: 58vh; }
  .tp-chip { padding: 11px 0; }
}
.dur-note { margin: 4px 0 0; color: var(--accent-text); }
.dur-note[hidden] { display: none; }
.clock { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.clock .i { width: 14px; height: 14px; }
.clock-on { font-size: .82rem; font-weight: 600; color: var(--accent-text); }
.clock.done { font-size: .8rem; color: var(--muted); gap: 4px; }
.tl-card .clock { margin-top: 8px; }
.nu-foot .clock { flex-basis: 100%; order: 3; }
.clock-edit { margin-top: 4px; }
.clock-edit .inline-form { margin-top: 6px; gap: 8px; }
.clock-edit input[type=time] { width: auto; }

/* Time to head out */
.headout { flex-basis: 100%; order: 2; display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--ink); }
.headout b { display: flex; align-items: center; gap: 6px; color: var(--accent-text); }
.headout b .i { width: 16px; height: 16px; }
.headout > span { font-size: .88rem; }
.headout-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.omw.busy, .btn.busy { opacity: .6; pointer-events: none; }

/* ---------- "?" explainers next to fields (help.js) ---------- */
.help-q { display: inline-grid; place-items: center; width: 18px; height: 18px; padding: 0; margin-left: 2px; vertical-align: 1px; border: 0; border-radius: 50%; background: var(--fill); color: var(--muted); font: 700 .7rem/1 var(--font); cursor: pointer; transition: background .15s, color .15s; }
.help-q:hover, .help-q[aria-expanded="true"] { background: var(--accent-soft); color: var(--accent-text); }
.help-q:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* A bigger tap target on phones, without a bigger circle. */
@media (pointer: coarse) { .help-q { position: relative; } .help-q::after { content: ""; position: absolute; inset: -10px; } }
h2 > .help-q, legend > .help-q { vertical-align: 2px; }
.help-pop { position: absolute; z-index: 90; padding: 12px 14px; border-radius: var(--r-md); background: color-mix(in srgb, var(--bg) 96%, transparent); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--shadow-lg); font-size: .875rem; line-height: 1.45; color: var(--ink); animation: help-in .14s ease-out; }
.help-pop b { display: block; margin-bottom: 4px; font-size: .9rem; }
.help-pop p { margin: 0; color: var(--ink-2); }
@keyframes help-in { from { opacity: 0; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .help-pop { animation: none; } }
.time-why { margin-top: 4px; }
.time-why summary { cursor: pointer; color: var(--accent-text); }
.time-why ul { margin: 6px 0; padding-left: 18px; }
.dur-note button.link { padding: 0; border: 0; background: none; color: var(--accent-text); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.clock-row { margin-top: 8px; }
.clock-undo { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
form.inline.clock { display: inline-flex; }
.clock-wrap { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nu-foot .clock-wrap { flex-basis: 100%; order: 3; }
.tl-card .clock-wrap { margin-top: 8px; }
.nu-foot .clock-wrap .clock, .tl-card .clock-wrap .clock { flex-basis: auto; order: 0; margin-top: 0; }

/* Whole rows and cards that open their booking (rowlink.js): a pointer, a hover, and a chevron. */
.rowlink { cursor: pointer; -webkit-tap-highlight-color: transparent; }
table.tbl tr.rowlink > td { transition: background .12s; }
table.tbl tr.rowlink:hover > td, table.tbl tr.rowlink:active > td { background: var(--fill-2); }
table.tbl tr.rowlink > td:last-child { position: relative; padding-right: 34px; }
table.tbl tr.rowlink > td:last-child::after, li.todo.rowlink:not(:has(.btn))::after, .tl-card.rowlink::after {
  content: ''; position: absolute; right: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-top: 2px solid var(--muted); border-right: 2px solid var(--muted); transform: rotate(45deg); opacity: .7; }
li.todo.rowlink, .tl-card.rowlink { position: relative; }
li.todo.rowlink:not(:has(.btn)) { padding-right: 30px; }
.tl-card.rowlink { padding-right: 30px; }
li.todo.rowlink:active, .tl-card.rowlink:active, .nextup.rowlink:active { background: var(--fill); }
@media (max-width: 640px) {
  table.tbl.stackable tr.rowlink { position: relative; padding-right: 34px; }
  table.tbl.stackable tr.rowlink > td:last-child { position: static; padding-right: 0; }
  table.tbl.stackable tr.rowlink > td:last-child::after { right: 14px; }
  table.tbl.stackable tr.rowlink:hover > td, table.tbl.stackable tr.rowlink:active > td { background: none; }
  table.tbl.stackable tr.rowlink:active { background: var(--fill-2); }
}

/* Pay stays out of sight until asked for: a profile's pay fields, and Payouts' running totals. */
.pay-fields input.pay-blur:not(:focus):not(:placeholder-shown) { filter: blur(6px); cursor: pointer; }
.pay-hide { filter: blur(6px); cursor: pointer; transition: filter .15s; user-select: none; }
.pay-hide.shown { filter: none; user-select: auto; }

/* Shoot pipeline → Change folder: the Dropbox folder browser. */
.folder-change > summary { list-style: none; display: inline-flex; margin: 6px 0 2px; }
.folder-change > summary::-webkit-details-marker { display: none; }
.folder-change[open] > summary { margin-bottom: 12px; }
.folder-picker { border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; background: var(--fill-2); }
.fp-crumbs { margin-bottom: 8px; overflow-wrap: anywhere; }
.fp-list { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow-y: auto; display: grid; gap: 2px; }
.fp-list button { width: 100%; text-align: left; border: 0; background: none; font: inherit; color: var(--ink); padding: 9px 10px; border-radius: 10px; cursor: pointer; overflow-wrap: anywhere; }
.fp-list button:hover, .fp-list button.on { background: var(--fill); }
.fp-list button.on { font-weight: 600; }
.fp-up { color: var(--muted) !important; }
.fp-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.fp-new { display: inline-flex; gap: 6px; flex: 1 1 220px; }
.fp-new input { flex: 1; min-width: 0; }

/* The booking's wrap-up (After the shoot): the two spots, RAW for the editor and the finals. */
.wrap-card { border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.wrap-steps { margin: 4px 0 14px; padding-left: 22px; display: grid; gap: 12px; }
.wrap-steps > li { display: grid; gap: 6px; }
.wrap-steps > li::marker { font-weight: 700; color: var(--accent); }
.link-count { margin: -4px 2px 4px; }
.link-count:empty { display: none; }

/* A stat that opens something (My clients: next and last shoot). */
a.stat.stat-link { color: inherit; text-decoration: none; }
a.stat.stat-link:hover { background: var(--fill-2); }

/* Delivering: the read-back and "Send to Ana". */
.send-row { display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--r-md); background: var(--fill-2); }
.send-readback { margin: 0; }
.send-row [data-send-btn][disabled] { opacity: .45; cursor: not-allowed; }

/* Clients: the rental tag reads in the dark theme too. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cl-kind-tag.rental, :root:not([data-theme="light"]) .cl-kind-tag.both { color: var(--teal); } }
:root[data-theme="dark"] .cl-kind-tag.rental, :root[data-theme="dark"] .cl-kind-tag.both { color: var(--teal); }
/* Clients: the vacation rental badge. */
.badge.cl-type.rental, .badge.cl-type.both { background: color-mix(in srgb, #00a3a3 16%, transparent); color: #007a7a; }

/* ---------- payroll ---------- */
.pf-todo, .pf-done { list-style: none; margin: 8px 0 0; padding: 0; }
.pf-todo li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pf-todo li:last-child { border-bottom: 0; }
.pf-when { min-width: 4.5em; font-weight: 650; font-variant-numeric: tabular-nums; }
.pf-what { flex: 1; display: grid; gap: 2px; min-width: 0; }
.pf-what small, .pf-done small { color: var(--muted); }
.pf-done li { display: grid; padding: 6px 0; }
.pf-steps { margin: 16px 0 0; padding-left: 22px; display: grid; gap: 14px; }
.pf-steps p { margin: 0 0 6px; }
.pf-rows { display: grid; background: var(--fill-2); border-radius: var(--r-md); padding: 4px 12px; }
.pf-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.pf-row:last-child { border-bottom: 0; }
.pf-label { font-size: .88rem; color: var(--ink-2); display: grid; }
.pf-label small { color: var(--muted); font-size: .76rem; }
.pf-val { font-variant-numeric: tabular-nums; text-align: right; word-break: break-all; }
.stub .row3 { margin: 12px 0; }
@media (max-width: 640px) {
  .pf-todo li { flex-wrap: wrap; }
  .pf-what { flex-basis: calc(100% - 6em); }
  .pf-row { grid-template-columns: 1fr auto; }
  .pf-row .pf-label { grid-column: 1 / -1; }
}
.pf-todo li.pf-ticked .pf-what { opacity: .55; }
.pf-todo li.pf-ticked .pf-what b { text-decoration: line-through; }

/* Site Studio: chat beside the preview, then the draft, Paul's list and history */
.studio-top { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.studio-meter { min-width: 220px; font-size: .9rem; }
.studio-meter .bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 4px; }
.studio-meter .bar i { display: block; height: 100%; background: var(--accent); }
.studio-meter.warn .bar i { background: #ff9500; }
.studio-meter.paused .bar i { background: #ff3b30; }
.studio-grid { display: grid; gap: 16px; grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.4fr); align-items: start; }
.studio-grid > .studio-draft { grid-column: 1 / -1; }
.studio-log { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; }
.studio-log .msg { padding: 8px 12px; border-radius: 12px; background: var(--field, var(--line)); white-space: pre-wrap; }
.studio-log .msg.me { align-self: flex-end; background: var(--accent-soft); }
.studio-log .msg.err { color: #c62828; }
.studio-preview-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.studio-preview-head .btn[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-text); }
.studio-frame { display: flex; justify-content: center; }
.studio-frame iframe { border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; height: 640px; width: 100%; }
.studio-frame.phone iframe { width: 390px; max-width: 100%; }
.studio-changes { margin: 0; padding-left: 1.2em; }
.studio-changes li { margin: 2px 0; }
#studio-confirm { max-width: 420px; }
#studio-confirm::backdrop { background: rgba(0, 0, 0, .32); }
@media (max-width: 860px) { .studio-grid { grid-template-columns: 1fr; } }
.studio-shot { display: flex; align-items: center; gap: 10px; }
.studio-shot img { max-height: 90px; max-width: 160px; border-radius: 8px; border: 1px solid var(--line-strong); }
.studio-grid > .studio-photos { grid-column: 1 / -1; }
.studio-sheet { display: flex; flex-direction: column; gap: 14px; max-height: 520px; overflow-y: auto; }
.studio-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.studio-thumb { position: relative; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--line); aspect-ratio: 3 / 2; cursor: pointer; }
.studio-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.studio-thumb.dim img { opacity: .4; }
.studio-thumb .star { position: absolute; top: 4px; right: 6px; color: #ffcc00; font-style: normal; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.studio-thumb .virt { position: absolute; bottom: 4px; left: 4px; font-size: .7rem; font-style: normal; background: rgba(0,0,0,.6); color: #fff; padding: 1px 5px; border-radius: 6px; }
.studio-pick { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.studio-pick img { max-width: 320px; width: 100%; border-radius: 10px; }
.studio-notes ol { padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
.studio-notes textarea { width: 100%; }
.studio [hidden] { display: none !important; }
.studio-items { padding-left: 1.2em; display: flex; flex-direction: column; gap: 10px; }
.studio-items > li .btn { margin-top: 4px; }
.studio-earlier summary { cursor: pointer; }

/* Site Studio v2: the whole window. The page full-size, a slim bar on top, Arby docked on the right; on a phone
   Arby's box in the top bar, the tools in a strip at the bottom and Arby's answers in a sheet that slides up. */
html.full, body.full { height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; }
body.full { background: var(--bg, #f2f2f7); }
.sv2 { --vvh: 100dvh; position: fixed; inset: 0; height: var(--vvh); display: flex; flex-direction: column; padding: 8px 12px 12px; box-sizing: border-box; }
.sv2 [hidden] { display: none !important; }
.sv2-bar { position: relative; display: flex; align-items: center; gap: 8px; padding: 0 0 8px; flex-wrap: wrap; }
.sv2-bar .btn[aria-pressed="true"], .sv2-tool[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-text); }
.sv2-grow { flex: 1; }
.sv2-title { white-space: nowrap; }
.sv2-market { font: inherit; font-weight: 700; border: 0; background: transparent; padding: 4px; }
.sv2-tool { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; font: inherit; font-size: 14px; padding: 6px 10px; border-radius: 10px; color: inherit; cursor: pointer; }
.sv2-tool svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sv2-tool:disabled { opacity: .4; cursor: default; }
.sv2-bar .seg .sv2-tool { padding: 5px 8px; }
.sv2-askslot { display: none; }
.sv2-more { display: none; }
.sv2-menu { position: absolute; right: 0; top: 100%; z-index: 30; display: flex; flex-direction: column; min-width: 220px; padding: 6px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.sv2-menu > * { text-align: left; border: 0; background: transparent; font: inherit; padding: 12px; border-radius: 10px; cursor: pointer; color: inherit; }
.sv2-menu > [aria-pressed="true"]::after { content: " ✓"; }
.sv2-main { flex: 1; display: flex; gap: 12px; min-height: 0; }
.sv2-stage { flex: 1; display: flex; justify-content: center; min-width: 0; min-height: 0; }
.sv2-stage iframe { width: 100%; height: 100%; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; }
.sv2-stage.phone iframe { width: 390px; max-width: 100%; }
.sv2-dock { width: 340px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.sv2-dock-head { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.sv2-handle { display: none; }
.sv2-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.sv2-log .msg { padding: 8px 12px; border-radius: 12px; background: var(--field, var(--line)); white-space: pre-wrap; }
.sv2-log .msg.me { align-self: flex-end; background: var(--accent-soft); }
.sv2-log .msg.err { color: #c62828; }
.sv2-log .msg.muted { color: var(--muted); font-size: .9em; }
.sv2-choices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sv2-choices .btn { min-height: 40px; }
.sv2-panel ol, .sv2-pins ol { padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; }
.sv2-panel ol li.muted { list-style: none; margin-left: -1.2em; }
.sv2-picker { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow-y: auto; }
.sv2-picker-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--bg); }
.sv2-shoot { display: flex; flex-direction: column; gap: 4px; }
.sv2-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; }
.sv2-thumb { position: relative; padding: 0; border: 0; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); cursor: pointer; }
.sv2-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sv2-thumb span { position: absolute; left: 4px; bottom: 4px; font-size: 10px; padding: 1px 5px; border-radius: 6px; background: rgba(0,0,0,.6); color: #fff; }
.sv2-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.sv2-form textarea { flex: 1 1 100%; }
.sv2-send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; display: none; }
.sv2-shot { display: flex; align-items: center; gap: 8px; }
.sv2-shot img { max-height: 70px; border-radius: 8px; }
.sv2-tools { display: none; }
.sv2.dock-folded .sv2-dock > :not(.sv2-dock-head) { display: none; }
.sv2.dock-folded .sv2-dock { width: auto; }
@media (max-width: 860px) and (min-width: 701px) {
  .sv2-dock { width: 280px; }
}
/* The phone: everything for the page. */
@media (max-width: 700px) {
  .sv2 { top: var(--vvt, 0px); bottom: auto; padding: 0; padding-top: env(safe-area-inset-top); }
  .sv2-wide { display: none !important; }
  .sv2-bar { flex-wrap: nowrap; gap: 4px; padding: 6px 8px; background: var(--bg); border-bottom: 1px solid var(--line); transition: margin-top .2s ease; z-index: 20; }
  .sv2-exit { min-width: 40px; min-height: 40px; padding: 0 8px; }
  .sv2-title, .sv2-market { max-width: 22vw; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
  .sv2-askslot { display: flex; flex: 1; min-width: 0; }
  .sv2-askslot .sv2-form { flex: 1; flex-wrap: nowrap; align-items: center; gap: 4px; }
  .sv2-askslot textarea { flex: 1; min-width: 0; height: 40px; min-height: 40px; resize: none; padding: 9px 12px; border-radius: 20px; font-size: 16px; line-height: 20px; white-space: nowrap; overflow: hidden; }
  .sv2-askslot .sv2-shot { position: absolute; left: 8px; right: 8px; top: 100%; background: var(--bg); padding: 6px; border-radius: 10px; }
  .sv2-send { min-width: 40px; min-height: 40px; border-radius: 20px; padding: 0; justify-content: center; }
  .sv2-send svg { display: block; }
  .sv2-more { display: inline-flex; min-width: 40px; min-height: 40px; justify-content: center; font-size: 20px; }
  .sv2-main { position: relative; display: block; overflow: hidden; }
  .sv2-stage { height: 100%; }
  .sv2-stage iframe, .sv2-stage.phone iframe { width: 100%; border: 0; border-radius: 0; }
  /* Arby's dock as a sheet over the page: down out of sight until there's something to show. */
  .sv2-dock { position: absolute; left: 0; right: 0; bottom: 0; width: auto; max-height: 62%; background: var(--bg); border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 30px rgba(0,0,0,.18); padding: 6px 14px 12px; transform: translateY(105%); transition: transform .25s ease; z-index: 25; }
  .sv2.sheet-open .sv2-dock { transform: none; }
  .sv2-dock-head { min-height: 36px; }
  .sv2-handle { display: block; position: absolute; left: 50%; top: 6px; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--line-strong); }
  .sv2-tools { display: flex; justify-content: space-around; align-items: stretch; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); transition: margin-bottom .2s ease; z-index: 20; }
  .sv2-tools .sv2-tool { flex-direction: column; gap: 2px; font-size: 11px; min-width: 48px; min-height: 48px; padding: 4px 6px; justify-content: center; }
  .sv2-tools .sv2-tool b { font-weight: 700; }
  .sv2-pub { background: var(--accent) !important; color: #fff !important; padding: 4px 12px !important; align-self: center; min-height: 40px !important; border-radius: 20px !important; font-size: 13px !important; font-weight: 600; }
  .sv2-pub:disabled { opacity: .35; }
  .sv2-menu { right: 6px; }
  /* Scrolling down the page: the bars slide away for more room, and come back on the way up. */
  .sv2.bars-hidden .sv2-bar { margin-top: -60px; }
  .sv2.bars-hidden .sv2-tools { margin-bottom: -72px; }
}

/* ---------- Booking, phone first (Paul, 2026-11-02; HQ · Brand & Design's spec) ----------
   The client booking screens wear the websites' look: Montserrat, white paper, ink #1C1C1C, yellow #FFF200
   buttons with ink text. Team screens keep the app's own look. */
@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
body.pub-book {
  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --bg: #ffffff; --ink: #1c1c1c; --ink-2: rgba(28, 28, 28, .8); --muted: rgba(28, 28, 28, .64);
  --line: rgba(28, 28, 28, .12); --line-strong: rgba(28, 28, 28, .22); --fill: rgba(28, 28, 28, .06); --fill-2: rgba(28, 28, 28, .04);
  --card: #ffffff; --field: #ffffff; --glass: #ffffff; --glass-strong: #ffffff; --glass-edge: rgba(28, 28, 28, .1);
  --accent: #fff200; --accent-2: #fff200; --accent-ink: #1c1c1c; --accent-text: #1c1c1c; --accent-soft: rgba(255, 242, 0, .35);
  color-scheme: light; background: var(--bg); color: var(--ink); font-family: var(--font);
}
body.pub-book .btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 700; }
body.pub-book a { color: var(--ink); }
/* The headline only on step 1. */
body.pub-book.book-later .hero { display: none; }
/* Step 2 of 4 · Services, with Back: on phones only (the numbered steps are for wider screens). */
.step-bar { display: none; }
.who-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin: 14px 0; border: 1px solid var(--line); border-radius: 12px; }
.who-change { min-height: 44px; padding: 0 6px; font-weight: 600; text-decoration: underline; }
.days-none { grid-column: 1 / -1; }
details.more-fields { margin: 10px 0; }
details.more-fields > summary, details.agree-card > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.terms-line { margin: 8px 0 0; text-align: center; color: rgba(28, 28, 28, .72); font-size: 13.5px; }
.terms-line a { text-decoration: underline; }
.pay-next { text-align: center; margin: 8px 0 0; }
@media (max-width: 640px) {
  body.pub-book .step-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; margin: -4px 0 10px; }
  body.pub-book .steps-row { display: none; }
  body.pub-book .step-back { min-height: 44px; min-width: 64px; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink); padding: 0 4px; text-align: left; }
  body.pub-book .step-of { font-size: 13px; color: var(--muted); }
  body.pub-book .step-of b { color: var(--ink); }
  body.pub-book .step-bar .restart { min-height: 44px; padding: 0 4px; white-space: nowrap; }
  body.pub-book .step-of { flex: 1; text-align: center; }
  /* One full-width 56 px yellow button per step; Back lives in the step bar. */
  body.pub-book .nav-btns { flex-wrap: wrap; }
  body.pub-book .nav-btns [data-back] { display: none; }
  body.pub-book .nav-btns .btn.primary { flex: 1 1 100%; min-height: 56px; font-size: 17px; border-radius: 14px; }
  /* Days: one swipeable row, today first, about 7 showing; times right under it as 44 px chips. */
  body.pub-book .days { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  body.pub-book .days .day { flex: 0 0 64px; min-height: 64px; scroll-snap-align: start; }
  /* A quick glance on the 64 px chips: the weather icon and the chance of rain (the high is on wider screens). */
  body.pub-book .days .day .wx { font-size: .9rem; line-height: 1.2; }
  body.pub-book .days .day .wx .hi { display: none; }
  body.pub-book .days .day .wx .rain { font-size: .7rem; }
  body.pub-book .slots .slot { min-height: 44px; }
}

/* The header on a phone: the whole name (two lines if it needs them) and 44 px taps. */
@media (max-width: 640px) {
  body.pub-book .pub-brand span { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  body.pub-book .text-size, body.pub-book .pub-contact, body.pub-book .pub-bar a.btn { min-height: 44px; display: inline-flex; align-items: center; }
}
/* Services on a phone: name, price and two lines each; the full description and what's included open once picked. */
@media (max-width: 640px) {
  body.pub-book .svc-card:not(.on) .desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  body.pub-book .svc-card:not(.on) .desc + .desc { display: none; }
}
@media (max-width: 640px) {
  body.pub-book .spread { flex-wrap: nowrap; gap: 6px; }
  body.pub-book .spread b { order: -1; margin-right: auto; font-size: 16px; }
  body.pub-book .spread .btn { min-height: 44px; }
}
/* Brand & Design's review: chips spend no yellow (that's the main button's); picked is solid ink.
   "full" stays readable; the step change is quick and still for people who turn motion off. */
body.pub-book .slot:not(.on), body.pub-book .day:not(.on):not(.none) { background: #fff; border: 1px solid #e4e2dc; color: #1c1c1c; box-shadow: none; }
body.pub-book .slot.on, body.pub-book .day.on { background: #1c1c1c; border-color: #1c1c1c; color: #fff; box-shadow: none; }
body.pub-book .day.on b, body.pub-book .day.on .muted, body.pub-book .slot.on .rain { color: #fff; }
body.pub-book .day.none { opacity: 1; background: #f6f5f2; border: 1px solid #ecebe6; color: #66645e; }
body.pub-book .day.none b, body.pub-book .day.none .muted { color: #66645e; }
body.pub-book .booker > .card { animation-duration: .18s; }
@media (prefers-reduced-motion: reduce) { body.pub-book .booker > .card { animation: none; } }
/* Header taps on a phone: 44 px tall (padding only; the look is the same). */
@media (max-width: 640px) {
  body.public .pub-brand, body.public .pub-contact a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* Invoice email preview: the plain-text email as it will arrive. */
.email-preview { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9rem; line-height: 1.5; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); margin-top: 10px; }
