:root {
  color-scheme: light;
  --bg: #f3f4f1;
  --surface: #ffffff;
  --surface-soft: #f8f8f6;
  --ink: #121316;
  --muted: #70757d;
  --line: #e5e7e1;
  --accent: #635bff;
  --accent-soft: #eeecff;
  --success: #1c9b62;
  --warning: #d78a13;
  --danger: #d94747;
  --sidebar: #121316;
  --sidebar-muted: #91959d;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(20, 22, 27, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.hidden { display: none !important; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  text-decoration: none;
  letter-spacing: -0.03em;
}
.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}
.brand-word { font-size: 20px; }

.auth-page {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
}
.auth-visual {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 15%, rgba(124, 92, 255, 0.72), transparent 34%),
    radial-gradient(circle at 85% 70%, rgba(43, 211, 166, 0.42), transparent 32%),
    #14151a;
  color: #fff;
  padding: 42px;
}
.auth-visual::after {
  content: "";
  position: absolute;
  inset: 22% -18% -34% 24%;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  transform: rotate(-12deg);
  box-shadow:
    0 0 0 80px rgba(255,255,255,.025),
    0 0 0 160px rgba(255,255,255,.018);
}
.auth-visual .brand { position: relative; z-index: 2; }
.auth-visual .brand-mark { background: #fff; color: #15161a; }
.auth-copy { position: relative; z-index: 2; max-width: 640px; }
.auth-copy .eyebrow { color: rgba(255,255,255,.64); }
.auth-copy h1 {
  max-width: 660px;
  margin: 0 0 18px;
  font-size: clamp(46px, 6vw, 82px);
  line-height: .95;
  letter-spacing: -0.055em;
}
.auth-copy p {
  max-width: 560px;
  color: rgba(255,255,255,.72);
  font-size: 17px;
  line-height: 1.55;
}
.auth-badge-row { position: relative; z-index: 2; display: flex; gap: 9px; flex-wrap: wrap; }
.auth-badge {
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  padding: 9px 12px;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  font-weight: 700;
}
.auth-form-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 46px;
  background: var(--surface);
}
.auth-form-card { width: min(450px, 100%); }
.auth-form-card h2 {
  margin: 22px 0 8px;
  font-size: 34px;
  letter-spacing: -0.04em;
}
.auth-form-card > p { margin: 0 0 30px; color: var(--muted); line-height: 1.55; }

.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label, .field-label { color: #4e535a; font-size: 13px; font-weight: 760; }
.input, input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(99,91,255,.65);
  box-shadow: 0 0 0 4px rgba(99,91,255,.09);
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 780;
  text-decoration: none;
  transition: transform .16s ease, opacity .16s ease, background .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.btn-primary { background: var(--accent); }
.btn-soft { background: var(--surface-soft); color: var(--ink); border: 1px solid var(--line); }
.btn-danger { background: #fff1f1; color: var(--danger); border: 1px solid #ffd7d7; }
.btn-wide { width: 100%; }
.auth-footer { margin-top: 22px; color: var(--muted); font-size: 13px; text-align: center; }
.auth-footer a { color: var(--ink); font-weight: 760; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.setup-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -15%, rgba(99,91,255,.14), transparent 34%),
    var(--bg);
}
.setup-topbar {
  display: flex;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}
.setup-progress-wrap { width: 180px; }
.setup-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #dedfd9;
}
.setup-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}
.setup-progress-label { margin-top: 7px; color: var(--muted); font-size: 11px; text-align: right; }
.setup-main {
  display: grid;
  width: min(840px, calc(100% - 40px));
  min-height: calc(100vh - 102px);
  margin: 0 auto;
  align-items: center;
  padding: 40px 0 90px;
}
.setup-card { width: 100%; }
.setup-card h1 {
  max-width: 790px;
  margin: 0 0 14px;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}
.setup-card .setup-lead {
  max-width: 650px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}
.setup-form { max-width: 680px; }
.setup-form input, .setup-form textarea {
  border-radius: 18px;
  padding: 17px 18px;
  font-size: 17px;
}
.setup-form textarea { min-height: 180px; }
.setup-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 26px; }
.setup-back { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 740; }

.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.option-card {
  position: relative;
  display: grid;
  min-height: 118px;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.86);
  padding: 18px;
  text-align: left;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.option-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.option-card.selected { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(99,91,255,.08); }
.option-card strong { font-size: 16px; }
.option-card span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.option-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
}
.voice-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; max-height: 420px; overflow: auto; padding: 2px; }
.voice-card { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 13px; }
.voice-card.selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,91,255,.08); }
.voice-play {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--ink);
}
.voice-copy { min-width: 0; flex: 1; }
.voice-copy strong { display: block; font-size: 14px; }
.voice-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.app-layout { display: grid; min-height: 100vh; grid-template-columns: 250px minmax(0,1fr); }
.app-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  background: var(--sidebar);
  color: #fff;
  padding: 22px 16px;
}
.app-sidebar .brand { padding: 4px 8px 22px; }
.app-sidebar .brand-mark { background: #fff; color: #141519; }
.workspace-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 22px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  padding: 11px;
}
.workspace-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, #6a5cff, #2dd4a8);
  font-size: 12px;
  font-weight: 900;
}
.workspace-copy { min-width: 0; }
.workspace-copy strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workspace-copy span { color: var(--sidebar-muted); font-size: 11px; }
.nav-label { margin: 8px 10px 8px; color: #656a74; font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.app-nav { display: grid; gap: 4px; }
.app-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  color: var(--sidebar-muted);
  padding: 10px 11px;
  font-size: 13px;
  font-weight: 730;
  text-decoration: none;
}
.app-nav a:hover, .app-nav a.active { background: rgba(255,255,255,.075); color: #fff; }
.nav-icon { width: 20px; text-align: center; }
.sidebar-bottom { margin-top: auto; }
.sidebar-user { display: flex; align-items: center; gap: 10px; border-top: 1px solid rgba(255,255,255,.08); padding: 16px 8px 4px; }
.user-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.1); font-size: 12px; font-weight: 900; }
.user-copy { min-width: 0; flex: 1; }
.user-copy strong { display: block; font-size: 12px; }
.user-copy span { display: block; color: var(--sidebar-muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.app-main { min-width: 0; padding: 28px 34px 60px; }
.app-topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.app-title h1 { margin: 0; font-size: 32px; letter-spacing: -0.045em; }
.app-title p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 8px 11px;
  color: #4f545b;
  font-size: 11px;
  font-weight: 780;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(28,155,98,.12); }

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(circle at 90% 15%, rgba(255,255,255,.18), transparent 22%),
    linear-gradient(135deg, #17181d 0%, #262334 54%, #5a4ff0 145%);
  color: #fff;
  padding: 28px;
  box-shadow: var(--shadow);
}
.hero-card::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  right: -110px;
  bottom: -220px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(255,255,255,.03), 0 0 0 108px rgba(255,255,255,.02);
}
.hero-card > * { position: relative; z-index: 1; }
.hero-kicker { color: rgba(255,255,255,.58); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.hero-card h2 { max-width: 650px; margin: 10px 0 12px; font-size: 32px; letter-spacing: -0.04em; }
.hero-card p { max-width: 650px; margin: 0; color: rgba(255,255,255,.7); line-height: 1.5; }
.hero-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.hero-card .btn-soft { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.1); color: #fff; }

.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin: 18px 0; }
.metric {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(20,22,27,.035);
}
.metric-label { color: var(--muted); font-size: 11px; font-weight: 780; }
.metric-value { margin-top: 9px; font-size: 28px; font-weight: 850; letter-spacing: -0.045em; }
.metric-foot { margin-top: 7px; color: var(--muted); font-size: 11px; }

.content-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(300px,.8fr); gap: 16px; }
.panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(20,22,27,.03);
}
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.panel-head h2, .panel-head h3 { margin: 0; letter-spacing: -0.03em; }
.panel-head h2 { font-size: 22px; }
.panel-head h3 { font-size: 16px; }
.panel-head p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }

.list { display: grid; }
.list-row { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding: 14px 0; }
.list-row:first-child { border-top: 0; padding-top: 0; }
.list-row:last-child { padding-bottom: 0; }
.list-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 12px; background: var(--surface-soft); }
.list-main { min-width: 0; flex: 1; }
.list-main strong { display: block; font-size: 13px; }
.list-main span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.list-side { color: var(--muted); font-size: 11px; text-align: right; }

.page-grid { display: grid; gap: 16px; }
.page-grid.two { grid-template-columns: minmax(0,1fr) minmax(320px,.7fr); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.inline-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.empty {
  border: 1px dashed #d9dbd5;
  border-radius: 16px;
  background: var(--surface-soft);
  padding: 28px;
  color: var(--muted);
  text-align: center;
}
.call-pill { display: inline-flex; border-radius: 999px; background: #eef7f2; color: var(--success); padding: 5px 8px; font-size: 10px; font-weight: 850; }
.call-pill.failed { background: #fff0f0; color: var(--danger); }
.call-pill.pending { background: #fff7e8; color: #9a6500; }
.call-pill.syncing { background: var(--accent-soft); color: var(--accent); }
.number-card { display: flex; align-items: flex-start; gap: 14px; border: 1px solid var(--line); border-radius: 17px; padding: 16px; }
.number-card + .number-card { margin-top: 10px; }
.number-main { min-width: 0; flex: 1; }
.number-main strong { font-size: 16px; }
.number-main p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99;
  max-width: 390px;
  border-radius: 14px;
  background: #15161a;
  color: #fff;
  padding: 13px 15px;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  font-size: 13px;
  font-weight: 730;
}
.toast.error { background: #9f2929; }

@media (max-width: 1020px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { min-height: 440px; }
  .app-layout { grid-template-columns: 84px minmax(0,1fr); }
  .app-sidebar { padding-inline: 10px; }
  .app-sidebar .brand-word, .workspace-copy, .nav-label, .app-nav a span:not(.nav-icon), .user-copy { display: none; }
  .app-sidebar .brand { justify-content: center; }
  .workspace-chip { justify-content: center; }
  .app-nav a { justify-content: center; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .content-grid, .page-grid.two { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .auth-visual { min-height: 360px; padding: 28px 22px; }
  .auth-form-shell { padding: 30px 22px 44px; }
  .auth-copy h1 { font-size: 46px; }
  .app-layout { display: block; }
  .app-sidebar {
    position: fixed;
    z-index: 50;
    top: auto;
    bottom: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    padding: 8px;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .app-sidebar .brand, .workspace-chip, .nav-label, .sidebar-bottom { display: none; }
  .app-nav { width: 100%; grid-template-columns: repeat(8,minmax(0,1fr)); }
  .app-nav a { padding: 10px 4px; }
  .app-main { padding: 22px 16px 92px; }
  .app-topbar { align-items: flex-start; flex-direction: column; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .form-grid, .option-grid, .voice-grid { grid-template-columns: 1fr; }
  .setup-card h1 { font-size: 42px; }
  .setup-topbar { width: min(100% - 28px, 1120px); }
  .setup-main { width: min(100% - 28px, 840px); }
}


/* AI tools */
.tools-layout {
  display: grid;
  grid-template-columns: minmax(260px, .42fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.tools-library {
  position: sticky;
  top: 20px;
}
.tool-list {
  display: grid;
  gap: 8px;
}
.tool-list-card {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
  text-align: left;
}
.tool-list-card:hover {
  border-color: #d7d9d2;
  background: var(--surface-soft);
}
.tool-list-card.active {
  border-color: rgba(99,91,255,.55);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(99,91,255,.06);
}
.tool-list-copy {
  min-width: 0;
}
.tool-list-copy strong {
  display: block;
  font-size: 13px;
}
.tool-list-copy small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}
.tool-state-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #c8cbc5;
}
.tool-state-dot.on {
  background: var(--success);
}
.tool-editor-shell {
  min-height: 520px;
}
.tool-editor-empty {
  display: grid;
  min-height: 440px;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: 36px;
}
.tool-editor-empty-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 17px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 23px;
  font-weight: 900;
}
.tool-editor-empty h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -.035em;
}
.tool-editor-empty p {
  max-width: 560px;
  margin: 10px 0 20px;
  color: var(--muted);
  line-height: 1.55;
}
.tool-editor-head {
  align-items: flex-start;
}
.tool-sync-error {
  margin: -6px 0 18px;
  border: 1px solid #ffd7d7;
  border-radius: 13px;
  background: #fff5f5;
  color: var(--danger);
  padding: 11px 13px;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.tool-section {
  margin-top: 26px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.tool-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.tool-section-head h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -.025em;
}
.tool-section-head p {
  max-width: 650px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.tool-fields {
  display: grid;
  gap: 12px;
}
.tool-field-card {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface-soft);
  padding: 16px;
}
.tool-field-card .field {
  margin-bottom: 0;
}
.tool-field-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.tool-field-top strong {
  font-size: 13px;
}
.icon-button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}
.icon-button:hover {
  color: var(--danger);
  border-color: #f0caca;
}
.muted-label {
  color: var(--muted);
  font-weight: 500;
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-soft);
  padding: 14px;
}
.check-row input {
  width: auto;
  margin-top: 3px;
}
.check-row span {
  display: block;
}
.check-row strong {
  display: block;
  font-size: 13px;
}
.check-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.tool-form-actions {
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.form-spacer {
  flex: 1;
}

@media (max-width: 1020px) {
  .tools-layout {
    grid-template-columns: 1fr;
  }
  .tools-library {
    position: static;
  }
}

@media (max-width: 720px) {
  .tool-section-head {
    flex-direction: column;
  }
  .tool-section-head .btn {
    width: 100%;
  }
  .tool-form-actions {
    flex-wrap: wrap;
  }
  .tool-form-actions .form-spacer {
    display: none;
  }
}


/* Bookings */
.bookings-toolbar {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.bookings-toolbar .field {
  min-width: 180px;
  margin-bottom: 0;
}
.booking-form-panel {
  margin-bottom: 16px;
}
.booking-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.booking-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
  background: #fff;
}
.booking-table th,
.booking-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle;
  font-size: 12px;
}
.booking-table th {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.booking-table tr:last-child td {
  border-bottom: 0;
}
.booking-table .booking-name {
  font-weight: 800;
  color: var(--ink);
}
.booking-table .booking-sub {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}
.booking-status-select {
  min-width: 122px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 11px;
}
.booking-source {
  display: inline-flex;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 800;
}
.booking-empty-row td {
  padding: 34px 16px;
  color: var(--muted);
  text-align: center;
}
.booking-summary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.booking-summary-card {
  min-width: 130px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
}
.booking-summary-card span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 780;
}
.booking-summary-card strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  letter-spacing: -.03em;
}

@media (max-width: 720px) {
  .bookings-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .bookings-toolbar .field,
  .bookings-toolbar .btn {
    width: 100%;
  }
}
