/* AIOS Service Booking design system.
   One stylesheet for public, customer, team and guru pages. Brand colour comes
   from the business (--brand, set inline on <html>). Light and dark. */

:root {
  --brand: #1f6feb;
  --brand-ink: #ffffff;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --ink: #14171c;
  --muted: #5d6673;
  --faint: #8a93a0;
  --line: #e2e6eb;
  --line-strong: #cfd5dc;
  --ok: #16794a;
  --ok-bg: #e5f5ec;
  --warn: #9a6200;
  --warn-bg: #fdf3e1;
  --bad: #b42318;
  --bad-bg: #fdecea;
  --info: #1d5fbf;
  --info-bg: #e8f0fc;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 4px 16px rgb(16 24 40 / 6%);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sidebar: 248px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1216; --surface: #171b21; --surface-2: #1e232a; --ink: #e8ecf1; --muted: #a3acb8; --faint: #7d8794;
    --line: #2a3038; --line-strong: #39414b; --ok: #4cc38a; --ok-bg: #12291e; --warn: #f0b44c; --warn-bg: #2d2412;
    --bad: #ff8a80; --bad-bg: #2f1715; --info: #7fb0ff; --info-bg: #142338;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 6px 20px rgb(0 0 0 / 30%); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1216; --surface: #171b21; --surface-2: #1e232a; --ink: #e8ecf1; --muted: #a3acb8; --faint: #7d8794;
  --line: #2a3038; --line-strong: #39414b; --ok: #4cc38a; --ok-bg: #12291e; --warn: #f0b44c; --warn-bg: #2d2412;
  --bad: #ff8a80; --bad-bg: #2f1715; --info: #7fb0ff; --info-bg: #142338;
  --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 6px 20px rgb(0 0 0 / 30%); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.02rem; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
.faint { color: var(--faint); }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.25rem 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 99; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-size: .92em; }
.nowrap { white-space: nowrap; }

/* ---------- layout ---------- */
.wrap { width: min(1120px, 100%); margin: 0 auto; padding: 0 16px; }
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 8px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.grow { flex: 1 1 auto; min-width: 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.split { display: grid; gap: 20px; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card.flush { padding: 0; overflow: hidden; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.card-head h2, .card-head h3 { margin: 0; }
.panel { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 14px; }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }
.divider-list > * + * { border-top: 1px solid var(--line); }
.list-row { display: flex; gap: 12px; align-items: center; padding: 12px 16px; }
.list-row:hover { background: var(--surface-2); }
a.list-row { color: inherit; text-decoration: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 600 14px/1 var(--font);
  cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { text-decoration: none; background: var(--surface-2); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 88%, #000); }
.btn-danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.btn-danger:hover { background: var(--bad-bg); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { min-height: 48px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; cursor: pointer; }
form.inline { display: inline; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; align-content: start; }
.field > label, .label { font-weight: 600; font-size: 14px; }
.field .help { font-size: 13px; color: var(--muted); }
.req { color: var(--bad); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date],
input[type=time], input[type=datetime-local], input[type=search], input[type=url], input:not([type]), select, textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: 15px/1.4 var(--font); }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 3px solid color-mix(in srgb, var(--brand) 22%, transparent); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"], .has-error input, .has-error select, .has-error textarea { border-color: var(--bad); }
.field-errors, .errorlist { color: var(--bad); font-size: 13px; margin: 0; padding: 0; list-style: none; }
.form-errors { background: var(--bad-bg); color: var(--bad); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); }
.checks { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.form-grid { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form-grid .span-all { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.password-control { position: relative; }
.password-control input { padding-right: 64px; }
.password-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--brand); font-weight: 600; cursor: pointer; padding: 6px 8px; }
.choice-cards { display: grid; gap: 10px; }
.choice-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; background: var(--surface); }
.choice-card:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.choice-card:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.choice-card input { accent-color: var(--brand); width: 18px; height: 18px; margin-top: 2px; }

/* ---------- badges, status ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.info { background: var(--info-bg); color: var(--info); }
.badge.brand { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }

/* ---------- messages ---------- */
.messages { display: grid; gap: 8px; margin-bottom: 16px; }
.message { padding: 11px 14px; border-radius: var(--radius-sm); background: var(--info-bg); color: var(--info); font-weight: 500; }
.message.success { background: var(--ok-bg); color: var(--ok); }
.message.error { background: var(--bad-bg); color: var(--bad); }
.message.warning { background: var(--warn-bg); color: var(--warn); }
.notice { border-left: 3px solid var(--brand); background: var(--surface-2); padding: 10px 14px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.notice.warn { border-color: var(--warn); }
.notice.bad { border-color: var(--bad); }
.once { border: 1px dashed var(--brand); padding: 12px 14px; border-radius: var(--radius-sm); word-break: break-all; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num, .num { text-align: right; font-variant-numeric: tabular-nums; }
.table a.row-link { color: inherit; font-weight: 600; }
@media (max-width: 720px) {
  table.table.stackable thead { display: none; }
  table.table.stackable tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  table.table.stackable td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 14px; }
  table.table.stackable td::before { content: attr(data-label); color: var(--muted); font-size: 13px; }
  table.table.stackable td.num { text-align: right; }
}

/* ---------- stats ---------- */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat b { display: block; font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13px; }

/* ---------- tabs, chips ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-color: var(--brand); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--ink); font-size: 13px; font-weight: 600; background: var(--surface); }
.chip:hover { text-decoration: none; background: var(--surface-2); }
.chip[aria-current="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 16px; }
.filters .field { margin: 0; min-width: 160px; flex: 1 1 160px; }
.filters select, .filters input { min-height: 38px; }

/* ---------- public site ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.brand .mark { width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; }
.site-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.site-nav a { color: var(--muted); font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.menu-toggle { display: none; margin-left: auto; }
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .site-nav.open { display: flex; }
}
.hero { padding: 56px 0 40px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.03em; max-width: 14ch; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 52ch; }
.hero-media { border-radius: 20px; overflow: hidden; aspect-ratio: 16/9; background: var(--surface-2); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-grid { display: grid; gap: 32px; grid-template-columns: 1.1fr 1fr; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 28px; } }
.section { padding-top: 40px; padding-bottom: 40px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 18px; }
.section-head h2 { font-size: 1.4rem; margin: 0; }
.tile { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; height: 100%; }
a.tile:hover { text-decoration: none; box-shadow: var(--shadow); }
.tile-media { aspect-ratio: 4/3; background: color-mix(in srgb, var(--brand) 10%, var(--surface-2)); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile-media.placeholder { display: grid; place-items: center; color: var(--brand); font-size: 2rem; font-weight: 800; }
.tile-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tile-body h3 { margin: 0; }
.tile-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 8px; }
.price { font-weight: 800; font-variant-numeric: tabular-nums; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-weight: 700; overflow: hidden; flex: none; color: var(--muted); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 88px; height: 88px; font-size: 1.6rem; }
.avatar.sm { width: 28px; height: 28px; font-size: 12px; }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; margin-top: 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.prose { max-width: 68ch; }
.prose p { white-space: pre-line; }

/* ---------- timetable ---------- */
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 16px; }
.day-pill { display: grid; justify-items: center; padding: 8px 4px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.day-pill:hover { text-decoration: none; background: var(--surface-2); }
.day-pill small { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.day-pill b { font-size: 1.15rem; }
.day-pill[aria-current="date"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.day-pill[aria-current="date"] small { color: inherit; opacity: .8; }
.day-pill.today b::after { content: ""; display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); margin: 2px auto 0; }
.slot-list { display: grid; gap: 10px; }
.slot { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--svc, var(--brand)); border-radius: var(--radius); }
.slot-time b { display: block; font-size: 1.05rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.slot-time small { color: var(--muted); }
.slot-main h3 { margin: 0 0 2px; font-size: 1rem; }
.slot-meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 13px; align-items: center; }
.slot-side { display: grid; justify-items: end; gap: 6px; }
.slot.is-full { opacity: .9; }
@media (max-width: 640px) {
  .slot { grid-template-columns: 78px minmax(0, 1fr); padding: 12px 14px; }
  .slot-time b { font-size: .95rem; }
  .slot-side { grid-column: 1 / -1; grid-template-columns: 1fr auto; justify-items: stretch; align-items: center; }
}
.seats { font-size: 13px; font-weight: 600; }
.seats.low { color: var(--warn); }
.seats.none { color: var(--bad); }
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.time-grid .chip { justify-content: center; }

/* ---------- operator calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 8px; overflow-x: auto; }
.cal-day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-height: 160px; display: flex; flex-direction: column; }
.cal-day header { padding: 8px 10px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; font-weight: 700; font-size: 13px; }
.cal-day.today header { color: var(--brand); }
.cal-day .cal-items { padding: 6px; display: grid; gap: 6px; }
.cal-item { display: block; border-left: 3px solid var(--svc, var(--brand)); background: var(--surface-2); border-radius: 6px; padding: 6px 8px; color: var(--ink); font-size: 12px; }
.cal-item:hover { text-decoration: none; filter: brightness(.97); }
.cal-item b { display: block; font-size: 12.5px; }
.cal-item.cancelled { opacity: .5; text-decoration: line-through; }
.cal-wrap { overflow-x: auto; padding-bottom: 4px; }

/* ---------- app shell ---------- */
.app { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 1px solid var(--line); background: var(--surface); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.sidebar .brand { padding: 4px 8px 14px; }
.nav-group { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); padding: 14px 10px 4px; font-weight: 700; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 14px; }
.nav-link svg { width: 18px; height: 18px; flex: none; }
.nav-link:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav-link[aria-current="page"] { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.sidebar-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; }
.who { display: flex; gap: 10px; align-items: center; padding: 4px 8px; }
.who div { min-width: 0; }
.who b, .who small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main { padding: 24px 28px 48px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }
.topbar { display: none; }
.bottom-nav { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 20; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px;
    background: var(--surface); border-bottom: 1px solid var(--line); }
  .main { padding: 18px 16px calc(84px + env(safe-area-inset-bottom)); }
  .bottom-nav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
    background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav a, .bottom-nav summary { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; color: var(--muted); font-size: 11px; font-weight: 600; list-style: none; cursor: pointer; }
  .bottom-nav summary::-webkit-details-marker { display: none; }
  .bottom-nav svg { width: 22px; height: 22px; }
  .bottom-nav a[aria-current="page"] { color: var(--brand); }
  .bottom-nav a:hover { text-decoration: none; }
  .more-menu { position: relative; }
  .more-panel { position: absolute; bottom: calc(100% + 10px); right: 6px; width: min(280px, calc(100vw - 24px)); background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; max-height: 70vh; overflow-y: auto; }
  .more-panel a { display: flex; justify-items: start; grid-auto-flow: column; justify-content: start; gap: 10px; padding: 10px; font-size: 14px; color: var(--ink); }
}

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(440px, 100%); }
.auth-card .brand { justify-content: center; margin-bottom: 18px; }
.auth-card h1 { text-align: center; font-size: 1.4rem; }
.auth-card .sub { text-align: center; color: var(--muted); margin-bottom: 18px; }

/* ---------- misc ---------- */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.timeline li { display: grid; grid-template-columns: 10px 1fr; gap: 10px; font-size: 14px; }
.timeline li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); margin-top: 7px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.summary-line.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-weight: 800; font-size: 1.05rem; }
.cart-count { background: var(--brand); color: var(--brand-ink); border-radius: 999px; font-size: 11px; padding: 1px 6px; margin-left: 4px; }
dialog.confirm { border: 0; border-radius: var(--radius); padding: 22px; width: min(420px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
dialog.confirm::backdrop { background: rgb(0 0 0 / 40%); }
.progress { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brand); }
.steps { display: flex; gap: 8px; counter-reset: step; flex-wrap: wrap; }
.steps li { list-style: none; display: flex; gap: 8px; align-items: center; color: var(--muted); font-weight: 600; font-size: 14px; }
.steps li::before { counter-increment: step; content: counter(step); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 12px; }
.steps li.done::before { content: "✓"; background: var(--ok-bg); color: var(--ok); }
.print-only { display: none; }
@media print {
  .sidebar, .topbar, .bottom-nav, .site-header, .site-footer, .no-print { display: none !important; }
  .app { display: block; } .main { padding: 0; } .print-only { display: block; }
  body { background: #fff; } .card { border: 0; }
}

/* fixes after visual review */
.site-nav a.btn-primary, .site-nav a.btn-primary:hover { color: var(--brand-ink); background: var(--brand); }
.price { white-space: nowrap; }
.grid-4 > a.card.row { flex-wrap: nowrap; }
.cal { grid-template-columns: repeat(7, minmax(128px, 1fr)); }
.nav-link { padding: 7px 10px; }
.sidebar { gap: 2px; }
.app > div { min-width: 0; }
@media (max-width: 900px) { .app { grid-template-columns: minmax(0, 1fr); } }
input[type=file] { max-width: 100%; }

/* date bookings: guides, date calendar, delivery */
.guide { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; }
.guide summary { cursor: pointer; font-weight: 700; }
.guide ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.guide-example { margin: 10px 0 0; font-size: 14px; background: var(--surface-2); padding: 8px 12px; border-radius: var(--radius-sm); }
.tr-block { border-top: 1px dashed var(--line-strong); padding-top: 14px; }
.tr-block > summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.dates { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.dates .dow { font-size: 12px; color: var(--faint); text-align: center; font-weight: 600; }
.date-cell { display: grid; gap: 2px; padding: 8px 6px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); text-align: center; font-size: 13px; color: var(--ink); min-height: 54px; }
a.date-cell:hover { border-color: var(--brand); text-decoration: none; }
.date-cell b { font-size: 15px; }
.date-cell small { font-size: 11px; }
.date-cell.available { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.date-cell.last { border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); background: var(--warn-bg); }
.date-cell.full, .date-cell.closed { background: var(--surface-2); color: var(--faint); }
.date-cell.past, .date-cell.too_soon, .date-cell.too_far, .date-cell.blank { opacity: .45; }
.date-cell.blank { border: 0; background: transparent; }
.date-cell.selected { outline: 2px solid var(--brand); }
.milestones { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.milestones li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: start; }
.milestones .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); margin-top: 3px; }
.milestones li.done .dot { background: var(--ok); border-color: var(--ok); }
.film-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.film { position: relative; display: block; border: 0; padding: 0; background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; cursor: pointer; width: 100%; }
.film img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .3s, transform .6s; }
.film:hover img { opacity: 1; transform: scale(1.03); }
.film .play { position: absolute; inset: auto auto 12px 12px; width: 44px; height: 44px; border-radius: 50%; background: rgb(255 255 255 / 92%); display: grid; place-items: center; }
.film-caption { margin-top: 8px; font-size: 14px; }
dialog.film-player { border: 0; padding: 0; background: #000; width: min(1100px, 96vw); aspect-ratio: 16 / 9; border-radius: var(--radius); }
dialog.film-player::backdrop { background: rgb(0 0 0 / 82%); }
dialog.film-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.lang-switch { display: inline-flex; gap: 2px; }
.lang-switch button { background: none; border: 0; padding: 4px 6px; font: inherit; color: var(--muted); cursor: pointer; border-radius: 6px; }
.lang-switch button[aria-current="true"] { color: var(--ink); font-weight: 700; }
.wedding-hero { text-align: center; padding: 36px 18px; }
.wedding-hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 500; letter-spacing: -.02em; margin: 6px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--muted); margin: 0; }
.price-lg { font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; }
.price-lg small { font-size: 13px; font-weight: 500; color: var(--muted); }
.date-result .btn { margin-top: 4px; }
.date-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); padding-top: 6px; }
.date-legend span { display: inline-flex; align-items: center; gap: 6px; }
.date-legend i { width: 12px; height: 12px; border: 1px solid var(--line-strong); display: inline-block; }
.date-legend i.available { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); }
.date-legend i.last { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); }
.date-legend i.full { background: var(--surface-2); }
.date-cell.available b { color: var(--ink); }
[data-date-aside].is-loading { opacity: .5; transition: opacity .2s; }
/* named crew on the booking form */
.crew-group { border: 0; padding: 0; margin: 10px 0 0; }
.crew-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-top: 8px; }
.crew-card { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; background: var(--surface); }
.crew-card input { position: absolute; opacity: 0; pointer-events: none; }
.crew-card:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }
.crew-card:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.crew-card.is-busy { opacity: .5; cursor: not-allowed; }
.crew-card__face { width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; background: var(--surface-2); font-weight: 600; color: var(--muted); }
.crew-card__face img { width: 100%; height: 100%; object-fit: cover; }
.crew-card__face--any { font-size: 18px; }
.crew-card__body { display: grid; gap: 2px; min-width: 0; }
.crew-card__body small { color: var(--muted); font-size: 12.5px; }
.crew-card__meta { color: var(--ink) !important; }
