:root {
  --bg: #f5f4f0;
  --surface: #ffffff;
  --surface-2: #faf9f6;
  --ink: #1b1a17;
  --ink-2: #3d3b36;
  --muted: #6e6a62;
  --line: #e4e1da;
  --line-strong: #d1cdc4;
  --accent: #0f6b62;
  --accent-hover: #0b5a52;
  --accent-ink: #ffffff;
  --accent-soft: #e2f0ed;
  --accent-soft-ink: #0b544d;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --warn-soft: #fdf3e1;
  --warn-ink: #8a5300;
  --shadow: 0 1px 2px rgb(27 26 23 / 0.05), 0 4px 16px rgb(27 26 23 / 0.05);
  --shadow-lg: 0 10px 40px rgb(27 26 23 / 0.16);
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121211;
    --surface: #1b1b19;
    --surface-2: #222220;
    --ink: #ecebe7;
    --ink-2: #cfcdc7;
    --muted: #9c988f;
    --line: #2e2d2a;
    --line-strong: #3f3d39;
    --accent: #3cb7a7;
    --accent-hover: #55c8b9;
    --accent-ink: #0b1a18;
    --accent-soft: #17332f;
    --accent-soft-ink: #8fe0d3;
    --danger: #f2786c;
    --danger-soft: #3a1d1a;
    --warn-soft: #33270f;
    --warn-ink: #f2c46d;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 4px 16px rgb(0 0 0 / 0.25);
    --shadow-lg: 0 10px 40px rgb(0 0 0 / 0.5);
    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-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -0.015em; }
h1 { font-size: 26px; font-weight: 650; }
h2 { font-size: 17px; font-weight: 620; }
h3 { font-size: 15px; font-weight: 600; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.icon { flex: none; vertical-align: middle; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 0.92em; }
.hidden { display: none !important; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spacer { flex: 1; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------------------------------------------------------------- buttons & inputs */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 15px;
  border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 550; font-size: 14px;
  cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
}
.btn:hover { background: var(--surface-2); border-color: var(--muted); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger); filter: brightness(1.08); border-color: var(--danger); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line); }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13px; }
.btn-icon { width: 34px; height: 34px; padding: 0; }
.btn-icon.btn-sm { width: 30px; height: 30px; }
.btn-link { border: 0; background: none; padding: 0; height: auto; color: var(--accent); font-weight: 550; }
.btn-link:hover { background: none; text-decoration: underline; }
.btn-block { width: 100%; }

input, select, textarea {
  font: inherit; font-size: 14px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 8px 11px; min-height: 38px;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; min-height: 84px; }
input[type="checkbox"] { min-height: 0; width: 17px; height: 17px; accent-color: var(--accent); }
input[type="color"] { padding: 3px; width: 46px; }
input[readonly] { background: var(--surface-2); color: var(--ink-2); }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field-hint { font-size: 12.5px; color: var(--muted); }
.field > input, .field > select, .field > textarea { width: 100%; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.input-group { display: flex; }
.input-group > :first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; flex: 1; min-width: 0; }
.input-group > :last-child { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -1px; }
.input-prefix { display: flex; align-items: center; padding: 0 10px; border: 1px solid var(--line-strong); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); background: var(--surface-2); color: var(--muted); font-size: 13px; white-space: nowrap; }
.input-prefix + input { border-top-left-radius: 0; border-bottom-left-radius: 0; flex: 1; min-width: 0; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }

.error-box { background: var(--danger-soft); color: var(--danger); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; }
.notice { background: var(--warn-soft); color: var(--warn-ink); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13.5px; }

.segmented { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.segmented button { border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 550; color: var(--muted); padding: 6px 12px; border-radius: 7px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.count { font-size: 12px; background: var(--line); color: var(--ink-2); border-radius: 99px; padding: 0 7px; line-height: 18px; }

.switch { position: relative; display: inline-flex; width: 38px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--line-strong); border-radius: 99px; cursor: pointer; transition: background .15s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgb(0 0 0 / .25); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-head { padding: 18px 20px 0; display: flex; gap: 12px; align-items: flex-start; }
.panel-head p { margin-top: 3px; font-size: 13.5px; color: var(--muted); }
.panel-body { padding: 18px 20px 20px; }
.panel-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }

.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 48px; color: var(--muted); }
.spin { width: 18px; height: 18px; border: 2px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.empty { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty .icon { color: var(--line-strong); margin-bottom: 8px; }
.empty h3 { color: var(--ink); margin-bottom: 4px; }

.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; background: var(--c, var(--accent)); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-soft-ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 650; font-size: 15px; flex: none; }
.avatar-lg { width: 64px; height: 64px; font-size: 21px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.badge-accent { background: var(--accent-soft); color: var(--accent-soft-ink); border-color: transparent; }
.badge-danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }

/* ---------------------------------------------------------------- toasts & dialogs */

.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 100; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 99px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); animation: toast-in .2s ease-out; transition: opacity .3s, transform .3s; }
.toast-error .icon { color: #ff8a80; }
.toast.out { opacity: 0; transform: translateY(8px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.dialog { border: 0; padding: 0; border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 48px); }
.dialog-wide { width: min(600px, calc(100vw - 32px)); }
.dialog::backdrop { background: rgb(15 15 13 / .45); backdrop-filter: blur(2px); }
.dialog-form { display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.dialog-title { padding: 20px 22px 0; }
.dialog-body { padding: 14px 22px 4px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; color: var(--ink-2); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 22px 20px; }

/* ---------------------------------------------------------------- public booking */

.public-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 48px 16px 32px; }
.public-foot { margin-top: auto; padding-top: 32px; font-size: 12.5px; color: var(--muted); }
.public-foot a { color: var(--muted); }

.host-card { width: min(640px, 100%); }
.host-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 32px 24px 24px; border-bottom: 1px solid var(--line); }
.host-head p { color: var(--muted); max-width: 46ch; white-space: pre-line; }
.type-list { list-style: none; margin: 0; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.type-item a { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 10px; color: inherit; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.type-item a:hover { background: var(--surface-2); border-color: var(--line); text-decoration: none; }
.type-item .bar { width: 4px; align-self: stretch; border-radius: 4px; background: var(--c); flex: none; }
.type-item .info { flex: 1; min-width: 0; }
.type-item .info p { color: var(--muted); font-size: 13.5px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.type-item .meta { color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; }
.type-item .go { color: var(--muted); }

.booker { width: min(1060px, 100%); display: grid; grid-template-columns: 290px minmax(0, 1fr); overflow: hidden; }
.booker.has-times { grid-template-columns: 290px minmax(0, 1fr) 230px; }
.booker-info { padding: 26px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.booker-info .host-name { color: var(--muted); font-weight: 550; font-size: 14px; }
.booker-info h1 { font-size: 22px; }
.meta-list { display: flex; flex-direction: column; gap: 9px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.meta-list > div { display: flex; gap: 9px; align-items: flex-start; }
.meta-list .icon { margin-top: 2px; color: var(--muted); }
.booker-info .desc { color: var(--ink-2); font-size: 14px; white-space: pre-line; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.tz-select { width: 100%; font-size: 13px; min-height: 34px; padding: 5px 8px; }
.selected-slot { background: var(--accent-soft); color: var(--accent-soft-ink); border-radius: var(--radius-sm); padding: 10px 12px; font-weight: 600; font-size: 14px; display: flex; gap: 9px; }
.selected-slot .icon { margin-top: 2px; }

.cal { padding: 22px 26px 26px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head h2 { font-size: 17px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-dow { text-align: center; font-size: 11.5px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding-bottom: 6px; }
.cal-day { aspect-ratio: 1; max-height: 56px; border: 0; border-radius: 50%; background: none; font: inherit; font-weight: 500; color: var(--line-strong); cursor: default; position: relative; display: flex; align-items: center; justify-content: center; justify-self: center; width: 100%; max-width: 56px; }
.cal-day.available { background: var(--accent-soft); color: var(--accent-soft-ink); font-weight: 650; cursor: pointer; }
.cal-day.available:hover { background: var(--accent); color: var(--accent-ink); }
.cal-day.selected, .cal-day.selected:hover { background: var(--accent); color: var(--accent-ink); }
.cal-day.today::after { content: ""; position: absolute; bottom: 7px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.cal-day:not(.available) { color: var(--muted); opacity: .55; }
.cal-status { margin-top: 14px; min-height: 22px; font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 10px; justify-content: center; }

.times { border-left: 1px solid var(--line); padding: 22px 18px; display: flex; flex-direction: column; min-height: 0; }
.times h3 { font-size: 14.5px; margin-bottom: 14px; }
.times-list { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; max-height: 440px; padding: 2px; margin: -2px; }
.time-btn { height: 46px; border: 1px solid var(--accent); color: var(--accent); background: var(--surface); border-radius: var(--radius-sm); font: inherit; font-weight: 650; font-size: 14.5px; cursor: pointer; transition: background .12s, color .12s; flex: none; }
.time-btn:hover { background: var(--accent); color: var(--accent-ink); }

.book-form { padding: 26px; display: flex; flex-direction: column; gap: 16px; max-width: 520px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.confirm-card { width: min(560px, 100%); }
.confirm-head { padding: 30px 28px 6px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.confirm-head p { color: var(--muted); max-width: 42ch; }
.status-icon { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); }
.status-icon.cancelled { background: var(--danger-soft); color: var(--danger); }
.detail-list { margin: 20px 28px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.detail-list > div { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.detail-list .icon { margin-top: 3px; color: var(--muted); }
.detail-list .sub { color: var(--muted); font-size: 13px; }
.detail-list .notes { white-space: pre-line; }
.confirm-actions { padding: 0 28px 28px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

@media (max-width: 900px) {
  .booker, .booker.has-times { grid-template-columns: 1fr; }
  .booker-info { border-right: 0; border-bottom: 1px solid var(--line); }
  .times { border-left: 0; border-top: 1px solid var(--line); }
  .times-list { max-height: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}
@media (max-width: 520px) {
  .public-wrap { padding: 16px 12px; }
  .cal { padding: 18px 14px 20px; }
  .cal-grid { gap: 3px; }
  .booker-info, .book-form { padding: 20px 18px; }
  .detail-list { margin: 16px; }
  .confirm-actions { padding: 0 16px 22px; }
}

/* ---------------------------------------------------------------- admin shell */

.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 0 20px; height: 60px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; letter-spacing: -0.02em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; }
.link-pill { display: flex; align-items: center; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; padding: 3px 4px 3px 12px; min-width: 0; font-size: 13.5px; }
.link-pill .url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); font-family: var(--mono); font-size: 12.5px; }
.user-chip { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 550; }
.user-chip .avatar { width: 30px; height: 30px; font-size: 12px; }

.shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); max-width: 1320px; margin: 0 auto; }
.sidenav { position: sticky; top: 60px; align-self: start; padding: 22px 12px; display: flex; flex-direction: column; gap: 2px; height: calc(100vh - 60px); }
.sidenav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--ink-2); font-weight: 550; font-size: 14.5px; }
.sidenav a:hover { background: var(--surface); text-decoration: none; }
.sidenav a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.sidenav a[aria-current="page"] .icon { color: var(--accent); }
.main { padding: 28px 28px 120px; min-width: 0; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { color: var(--muted); margin-top: 4px; font-size: 14.5px; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidenav { position: sticky; top: 60px; z-index: 15; height: auto; flex-direction: row; overflow-x: auto; padding: 8px 12px; background: var(--bg); border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .sidenav a { white-space: nowrap; padding: 7px 11px; font-size: 14px; }
  .main { padding: 20px 16px 120px; }
  .topbar { padding: 0 14px; gap: 10px; }
  .topbar .link-pill, .user-chip .name { display: none; }
}

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login-card { width: min(380px, 100%); padding: 30px 28px; display: flex; flex-direction: column; gap: 16px; }
.login-card .brand { justify-content: center; margin-bottom: 6px; font-size: 18px; }

/* bookings */
.day-group { margin-top: 22px; }
.day-group > h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; font-weight: 650; }
.booking-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 16px; padding: 14px 18px; align-items: start; }
.booking-row + .booking-row { border-top: 1px solid var(--line); }
.booking-row .when { font-weight: 650; font-variant-numeric: tabular-nums; display: flex; gap: 8px; align-items: center; }
.booking-row .who { font-weight: 600; }
.booking-row .meta { color: var(--muted); font-size: 13.5px; display: flex; gap: 6px 12px; flex-wrap: wrap; margin-top: 2px; }
.booking-row .notes { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 10px; white-space: pre-line; }
.booking-row.cancelled .who, .booking-row.cancelled .when { text-decoration: line-through; color: var(--muted); }
@media (max-width: 640px) { .booking-row { grid-template-columns: 1fr auto; } .booking-row .when { grid-column: 1 / -1; } }

/* availability */
.av-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.av-preview { position: sticky; top: 84px; max-height: calc(100vh - 110px); display: flex; flex-direction: column; }
@media (max-width: 1180px) { .av-layout { grid-template-columns: 1fr; } .av-preview { position: static; max-height: none; } }
.section-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-soft-ink); display: flex; align-items: center; justify-content: center; flex: none; }
.section-icon.red { background: var(--danger-soft); color: var(--danger); }
.section-icon.amber { background: var(--warn-soft); color: var(--warn-ink); }
.rules { display: flex; flex-direction: column; gap: 12px; }
.rule { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--surface-2); display: flex; flex-direction: column; gap: 12px; }
.rule.past { opacity: .6; }
.rule-head { display: flex; gap: 8px; align-items: center; }
.rule-head .label-input { flex: 1; min-width: 0; background: transparent; border-color: transparent; font-weight: 600; padding-left: 6px; margin-left: -6px; }
.rule-head .label-input:hover { border-color: var(--line-strong); }
.rule-head .label-input:focus { background: var(--surface); }
.rule-line { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; align-items: start; }
.rule-line > .rule-key { font-size: 13px; font-weight: 600; color: var(--muted); padding-top: 9px; }
@media (max-width: 560px) { .rule-line { grid-template-columns: 1fr; gap: 4px; } .rule-line > .rule-key { padding-top: 0; } }
.day-toggles { display: flex; gap: 5px; flex-wrap: wrap; }
.day-toggle { width: 44px; height: 36px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.day-toggle[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ranges { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.range { display: flex; align-items: center; gap: 6px; }
.range input[type="time"] { width: 118px; }
.range .dash { color: var(--muted); }
.inline-fields { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inline-fields input[type="date"], .inline-fields input[type="datetime-local"] { width: auto; }
.inline-fields .sep { color: var(--muted); font-size: 13px; }
.rule-hint { font-size: 12.5px; color: var(--muted); }
.rule .segmented { display: flex; flex-wrap: nowrap; max-width: 420px; }
.rule .segmented button { flex: 1; justify-content: center; padding: 6px 8px; font-size: 13px; white-space: nowrap; }

.preview-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.preview-days { list-style: none; margin: 0; padding: 8px 12px 14px; overflow-y: auto; }
.pday { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; padding: 8px 6px; border-bottom: 1px solid var(--line); font-size: 13px; }
.pday:last-child { border-bottom: 0; }
.pday-date { font-weight: 600; line-height: 1.3; }
.pday-date .muted { font-weight: 500; display: block; font-size: 12px; }
.pday.weekend .pday-date { color: var(--muted); }
.pday-body { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chip-open { background: var(--accent-soft); color: var(--accent-soft-ink); }
.chip-blocked { background: var(--danger-soft); color: var(--danger); }
.chip-booked { background: var(--warn-soft); color: var(--warn-ink); }
.preview-error { margin: 12px 16px 0; }

.savebar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--bg); padding: 10px 10px 10px 18px; border-radius: 14px; box-shadow: var(--shadow-lg); font-weight: 550; font-size: 14px; animation: toast-in .2s ease-out; max-width: calc(100vw - 24px); }
.savebar .btn-ghost { color: var(--bg); }
.savebar .btn-ghost:hover { background: rgb(255 255 255 / .1); border-color: transparent; }

/* meeting types */
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.type-card { border-top: 4px solid var(--c); display: flex; flex-direction: column; }
.type-card .panel-body { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.type-card.inactive { opacity: .65; }
.type-card .url { font-family: var(--mono); font-size: 12.5px; color: var(--muted); word-break: break-all; }
.type-card .panel-foot { justify-content: space-between; padding: 10px 14px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; background: var(--c); cursor: pointer; padding: 0; outline-offset: 2px; }
.swatch[aria-pressed="true"] { outline: 2px solid var(--c); }
.chips-select { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chips-select button { height: 34px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); font: inherit; font-size: 13.5px; font-weight: 550; cursor: pointer; color: var(--ink-2); }
.chips-select button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-soft-ink); }
.chips-select input { width: 90px; }

/* tables */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .actions { text-align: right; white-space: nowrap; }

.credentials { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-family: var(--mono); font-size: 13px; white-space: pre-wrap; word-break: break-all; color: var(--ink); }

/* landing */
.landing { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 18px; }
.landing h1 { font-size: 34px; }
.landing p { color: var(--muted); max-width: 40ch; font-size: 16px; }
