:root {
  --ink: #142033;
  --ink-soft: #3c4b5f;
  --muted: #5e6d80;
  --line: #e4dccb;
  --line-strong: #d3dae4;
  --paper: #f6f1e8;
  --white: #ffffff;
  --teal: #0e7c72;
  --teal-dark: #0b655d;
  --teal-soft: #e6f4f2;
  --navy: #101c2e;
  --navy-2: #173049;
  --amber: #8a5a00;
  --amber-soft: #fbf4e4;
  --red: #b42318;
  --red-soft: #fdeceb;
  --green: #067647;
  --green-soft: #e8f6ee;
  --blue-soft: #e8f1fb;
  --shadow: 0 1px 2px rgba(16, 28, 46, 0.04), 0 10px 28px rgba(16, 28, 46, 0.05);
  --radius: 14px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.45;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
::selection { background: #cdeae6; }

.app {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--navy);
  color: #d5deea;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 18px 14px 14px;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 4px 8px 16px;
}
.brand-mark {
  width: 32px;
  height: 32px;
  flex: none;
}
.brand-name {
  font-weight: 700;
  letter-spacing: -0.03em;
  color: white;
  font-size: 16px;
}
.brand-name span { color: #7dcec4; }
.brand-sub {
  color: #93a3b8;
  font-size: 12px;
  margin-top: 1px;
}
.nav-label {
  margin: 14px 10px 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8090a6;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d5deea;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 2px;
  font-weight: 600;
}
.nav-link:hover { background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.nav-link.active {
  background: rgba(125, 206, 196, 0.14);
  color: white;
  box-shadow: inset 2px 0 0 #3dbea6;
}
.side-spacer { flex: 1; }
.side-user {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 8px 4px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.side-user strong { display: block; color: white; font-size: 13px; }
.side-user span { color: #93a3b8; font-size: 12px; }
.side-user button {
  margin-left: auto;
  background: transparent;
  color: #c5d0dc;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 12px;
}
.side-user button:hover { background: rgba(255, 255, 255, 0.06); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  background: rgba(246, 241, 232, 0.94);
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid transparent;
}
.topbar h1 { font-size: 18px; letter-spacing: -0.02em; }
.search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  min-width: 240px;
}
.search input {
  border: 0;
  outline: 0;
  width: 100%;
  background: transparent;
}
.icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: white;
  display: grid;
  place-items: center;
}
.icon-btn:hover { border-color: var(--line-strong); }
.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--red);
  color: white;
  border-radius: 99px;
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  padding: 0 4px;
}
.bell-wrap { position: relative; }
.bell-panel {
  display: none;
  position: absolute;
  right: 0;
  top: 46px;
  width: 340px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 20;
}
.bell-panel.open { display: block; }
.bell-panel a, .alert-list a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}
.bell-panel a:hover, .alert-list a:hover { background: var(--paper); }
.bell-panel strong, .alert-list strong { display: block; font-size: 13px; }
.bell-panel span, .alert-list span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.content { padding: 8px 28px 40px; }
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 16px;
}
.page-head h1, .client-title {
  font-size: 26px;
  letter-spacing: -0.03em;
}
.sub { color: var(--muted); margin-top: 4px; font-size: 14px; }
.head-actions, .row-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.stat, .card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat { padding: 14px 16px; }
.stat em { display: block; font-style: normal; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; }
.stat b { display: block; font-size: 28px; letter-spacing: -0.04em; margin: 4px 0 2px; }
.stat span { color: var(--ink-soft); font-size: 13px; }
.grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.85fr);
  gap: 14px;
}
.stack { display: flex; flex-direction: column; gap: 14px; }
.card-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 0;
}
.card-h h2 { font-size: 15px; letter-spacing: -0.01em; }
.card-b { padding: 12px 16px 16px; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: #f8fafb; }
.who { display: flex; gap: 10px; align-items: center; }
.who-mark, .avatar {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  color: white;
  flex: none;
}
a.avatar.me {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--teal);
  text-decoration: none;
  color: white;
}
.who small, .muted { color: var(--muted); }
.who a { font-weight: 700; color: var(--ink); text-decoration: none; }
.who a:hover { color: var(--teal-dark); }

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 99px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  background: #eef2f6;
  color: var(--ink-soft);
  white-space: nowrap;
}
.pill.connected, .pill.live { background: var(--green-soft); color: var(--green); }
.pill.pending, .pill.setup, .pill.waiting, .pill.draft { background: var(--amber-soft); color: var(--amber); }
.pill.action, .pill.attention { background: var(--red-soft); color: var(--red); }
.pill.pilot { background: var(--teal-soft); color: var(--teal-dark); }
.pill.neutral { background: #eef2f6; color: var(--ink-soft); }

/* Feature status: a colored dot on each item, and one legend for the words. */
.pill.feat { gap: 6px; }
.pill.feat .feat-dot,
.feat-mini i,
.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: currentColor;
  flex: none;
  display: inline-block;
}
.pill.feat.real { background: var(--green-soft); color: var(--ink); }
.pill.feat.in_progress { background: #fbf6d4; color: var(--ink); }
.pill.feat.mockup { background: #ffedd5; color: var(--ink); }
.pill.feat.real .feat-dot,
.feat-mini.real i,
.legend-dot.real { background: var(--green); }
.pill.feat.in_progress .feat-dot,
.feat-mini.in_progress i,
.legend-dot.in_progress { background: #e6b000; }
.pill.feat.mockup .feat-dot,
.feat-mini.mockup i,
.legend-dot.mockup { background: #ef7d14; }
.feat-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 12px; }
.feat-block .status-legend { margin: 0 0 8px; }
.feat-row { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.feat-mini {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  vertical-align: middle;
}
.tab-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  margin: 12px 0;
}
.tab-row .tabs { margin: 0; }
.status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 2px 8px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  align-items: center;
}
.tab-row .status-legend { margin: 0; }
.status-legend span { display: inline-flex; align-items: center; gap: 5px; }
.head-actions .pill { align-self: center; }
.check-label { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.progress {
  height: 6px;
  background: #e7edf2;
  border-radius: 99px;
  overflow: hidden;
  width: 88px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--teal);
  border-radius: inherit;
}
.progress.hot i { background: #d97706; }
.progress.over i { background: var(--red); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: white;
  padding: 8px 12px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
}
.btn:hover { border-color: #b7c2d0; text-decoration: none; }
.btn-primary { background: var(--teal); border-color: var(--teal); color: white; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-danger { background: white; color: var(--red); border-color: #f0c4c0; }
.btn-sm { padding: 5px 9px; font-size: 13px; }
.btn[disabled] { opacity: 0.55; cursor: default; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line);
  background: white;
  border-radius: 99px;
  padding: 6px 10px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.chip:hover { text-decoration: none; border-color: var(--line-strong); }
.chip.on { background: var(--navy); color: white; border-color: var(--navy); }
select.ctrl, input.ctrl, textarea.ctrl {
  border: 1px solid var(--line-strong);
  background: white;
  border-radius: 9px;
  padding: 8px 10px;
  outline: none;
  width: 100%;
}
select.ctrl:focus, input.ctrl:focus, textarea.ctrl:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 124, 114, 0.15); }
td.lead-status { width: 9.5rem; }
td.lead-note { max-width: 240px; white-space: pre-wrap; word-break: break-word; }
textarea.ctrl { min-height: 88px; resize: vertical; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 13px; font-weight: 700; }
.help { color: var(--muted); font-size: 12.5px; }
.error { color: var(--red); font-size: 13px; margin: 0 0 8px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inline { display: flex; gap: 8px; align-items: center; }
.inline .ctrl { flex: 1; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.choice {
  text-align: left;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 10px 12px;
}
.choice:hover { border-color: #b7c9c6; }
.choice.on { border-color: var(--teal); background: var(--teal-soft); box-shadow: inset 0 0 0 1px var(--teal); }
.choice b { display: block; font-size: 14px; }
.choice span { display: block; color: var(--ink-soft); font-size: 12.5px; margin-top: 2px; }

.wizard {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.step-list, .wizard-panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.step-list { padding: 10px; position: sticky; top: 76px; }
.step-btn {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 8px 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--ink-soft);
}
.step-btn > i {
  width: 22px;
  height: 22px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 12px;
  background: #eef2f6;
  flex: none;
}
.step-btn span { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; }
.step-btn.on { background: var(--teal-soft); color: var(--ink); }
.step-btn.on > i { background: var(--teal); color: white; }
.wizard-panel { padding: 18px 18px 16px; }
.wizard-panel h2 { font-size: 18px; letter-spacing: -0.02em; margin-bottom: 4px; }
.wizard-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; }

.code-card {
  background: #f7faf9;
  border: 1px solid #d5e6e2;
  border-radius: 12px;
  padding: 12px;
  margin: 8px 0 12px;
}
.code-line { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 6px 0; }
.code-line span { font-size: 13px; }
.code {
  font-family: var(--mono);
  background: var(--navy);
  color: #d8fff6;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 13px;
}
.note {
  background: var(--amber-soft);
  color: #6b4a09;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  margin: 8px 0;
}
.note.calm { background: var(--teal-soft); color: #0d4f49; }
.banner {
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 14px;
}
.banner.warn { background: var(--amber-soft); color: #6b4a09; }
.banner.bad { background: var(--red-soft); color: var(--red); }
.banner.ok { background: var(--green-soft); color: #085c38; }

.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 12px 0; }
.tab {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-weight: 700;
  text-decoration: none;
}
a.tab:hover { background: white; text-decoration: none; }
.tab.on { background: white; color: var(--ink); box-shadow: inset 0 -2px 0 var(--teal); }

.client-head { padding: 16px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.client-ident { display: flex; gap: 12px; align-items: flex-start; }
.client-ident .avatar { width: 44px; height: 44px; border-radius: 12px; font-size: 16px; }
.subdomain-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.subdomain-row input { width: 12rem; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }

.checklist { display: flex; flex-direction: column; }
.check { border-top: 1px solid var(--line); }
.check:first-child { border-top: 0; }
.check-top {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 10px 2px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.check-top b { font-weight: 700; }
.check-top:hover b { color: var(--teal-dark); }
.check-body { padding: 0 2px 12px; color: var(--ink-soft); font-size: 14px; }
.kvs { display: grid; grid-template-columns: 160px 1fr; gap: 6px 10px; font-size: 14px; }
.kvs dt { color: var(--muted); }
.kvs dd { margin: 0; }

.bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar-col i {
  display: block;
  width: 100%;
  max-width: 28px;
  background: #c9e4e0;
  border-radius: 6px 6px 3px 3px;
}
.bar-col.today i { background: var(--teal); }
.bar-col em { font-style: normal; font-size: 11px; color: var(--muted); }

.call { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: white; }
.call-top {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.transcript { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.line { font-size: 14px; }
.line b { font-size: 12px; color: var(--muted); display: block; }
.scrub {
  height: 8px;
  background: #e6eeec;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 8px;
}
.scrub i { display: block; height: 100%; width: 0; background: var(--teal); }
.scrub.play i { animation: play 3s linear forwards; }
@keyframes play { to { width: 100%; } }

.switch {
  width: 40px;
  height: 24px;
  border-radius: 99px;
  border: 0;
  background: #d5dde6;
  position: relative;
  flex: none;
}
.switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  transition: left 0.15s ease;
}
.switch.on { background: var(--teal); }
.switch.on i { left: 19px; }
.setting-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.plan { padding: 16px; position: relative; }
.plan.rec { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal), var(--shadow); }
.plan .price { font-size: 32px; letter-spacing: -0.04em; margin: 8px 0; }
.plan .price span { font-size: 14px; color: var(--muted); letter-spacing: 0; }
.plan ul { margin: 0; padding-left: 18px; color: var(--ink-soft); }
.plan li { margin: 6px 0; }
.ribbon {
  position: absolute;
  top: 12px;
  right: 12px;
}

.usage { height: 8px; background: #e7edf2; border-radius: 99px; overflow: hidden; width: 120px; display: inline-block; vertical-align: middle; }
.usage i { display: block; height: 100%; background: var(--teal); }
.usage.hot i { background: #d97706; }
.usage.over i { background: var(--red); }

.browser {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: white;
  min-width: 0;
}
.browser-bar {
  background: #f4f6f8;
  padding: 8px 10px;
  display: flex;
  gap: 6px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d5dde6; display: block; }
.url {
  margin-left: 6px;
  background: white;
  border-radius: 99px;
  padding: 3px 8px;
  font-size: 12px;
  color: var(--muted);
}
.mini-site { padding: 18px 16px 16px; }
.mini-site strong { font-size: 20px; letter-spacing: -0.03em; }
.mini-actions { display: flex; gap: 8px; margin-top: 12px; }
.site-frame { width: 100%; height: 760px; border: 0; background: #fff; display: block; }
.browser-bar .url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qr {
  width: 84px;
  height: 84px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, #142033 2px, transparent 2px) 0 0 / 8px 8px,
    linear-gradient(#142033 2px, transparent 2px) 0 0 / 8px 8px,
    #fff;
  border: 1px solid var(--line);
}

.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(16, 28, 46, 0.46);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 30;
}
.modal-back.open { display: flex; }
.modal {
  width: min(520px, 100%);
  background: white;
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.modal h3 { font-size: 18px; letter-spacing: -0.02em; margin-bottom: 8px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

.toasts {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 40;
}
.toast {
  background: var(--navy);
  color: white;
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-width: 320px;
  font-size: 14px;
}

.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}
.login-brand {
  background: var(--navy);
  color: #d5deea;
  padding: 48px;
  display: flex;
  flex-direction: column;
}
.login-brand h1 { color: white; font-size: 40px; letter-spacing: -0.04em; line-height: 1.05; margin: 18px 0 12px; }
.login-brand ul { margin: 12px 0 0; padding: 0; list-style: none; }
.login-brand li { padding: 8px 0 8px 18px; position: relative; }
.login-brand li:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3dbea6;
  position: absolute;
  left: 0;
  top: 14px;
}
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}
.login-card { width: min(400px, 100%); }
.login-card h2 { font-size: 24px; letter-spacing: -0.03em; margin-bottom: 6px; }
.legal {
  margin-top: auto;
  color: #93a3b8;
  font-size: 12px;
  padding-top: 24px;
}
.page-legal { color: var(--muted); font-size: 12px; margin-top: 18px; }
.empty { padding: 28px 8px; text-align: center; color: var(--muted); }
.stars { color: #a16207; letter-spacing: 1px; }
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 14px; }
.number-opt { display: flex; justify-content: space-between; align-items: center; }

.days { display: flex; flex-wrap: wrap; gap: 8px; }
.day {
  display: flex;
  gap: 6px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  background: white;
  font-size: 13px;
}
.faq-row { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; align-items: start; margin-bottom: 8px; }
.phone-num { font-size: 28px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.int-card { margin-bottom: 12px; }
.int-card h2 { font-size: 16px; }
.guide { margin-bottom: 12px; }
.guide summary { padding: 14px 16px; cursor: pointer; font-weight: 650; }
.guide ol { margin: 0; padding-left: 1.2rem; }
.guide li { margin: 8px 0; }
.guide .code { display: block; white-space: normal; word-break: break-all; margin: 8px 0; }
.checks { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 12px; }
.pill.saved { background: var(--amber-soft); color: var(--amber); }
.pill.verified { background: var(--green-soft); color: var(--green); }
.pill.pending_test { background: var(--amber-soft); color: var(--amber); }
.pill.not_set_up { background: var(--line); color: var(--ink-soft); }
.fwd-check { margin: 8px 0 0; font-size: 12px; font-weight: 700; color: var(--amber); }
.fwd-ring, .fwd-day { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.fwd-day { grid-template-columns: 42px auto 1fr 1fr; }
.fwd-hours { margin: 8px 0 14px; }
.call-focus td { background: var(--teal-soft); }

.cal-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-toolbar .left, .cal-toolbar .right { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 9px; overflow: hidden; background: white; }
.seg button { border: 0; border-right: 1px solid var(--line); background: white; padding: 7px 12px; font-weight: 650; color: var(--ink-soft); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--navy); color: white; }
.cal-board { background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: auto; }
.cal-week { display: grid; grid-template-columns: 58px repeat(7, minmax(108px, 1fr)); min-width: 820px; }
.cal-dow, .cal-head { padding: 8px 8px 7px; font-size: 12px; font-weight: 650; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.cal-head { border-left: 1px solid var(--line); }
.cal-head button { border: 0; background: transparent; padding: 0; font-weight: 650; color: inherit; text-align: left; }
.cal-head.today, .cal-cell.today { background: var(--teal-soft); }
.cal-gutter, .cal-col { position: relative; }
.cal-col {
  border-left: 1px solid var(--line);
  background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 100% 48px;
}
.cal-hour { position: absolute; left: 0; right: 6px; text-align: right; font-size: 11px; color: var(--muted); line-height: 1; }
.cal-event, .cal-chip {
  display: block; width: 100%; text-align: left; border: 0; cursor: pointer;
  background: var(--teal-soft); color: var(--ink); border-left: 3px solid var(--teal);
}
.cal-event {
  position: absolute; overflow: hidden; border-radius: 8px; padding: 3px 6px; font-size: 12px; line-height: 1.25; z-index: 1;
}
.cal-event strong, .cal-chip strong { display: block; font-size: 12px; }
.cal-event span, .cal-chip span { display: block; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-event.cancelled, .cal-chip.cancelled { opacity: 0.6; background: #eef2f6; border-left-color: #94a3b8; text-decoration: line-through; }
.cal-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 720px; }
.cal-cell { min-height: 112px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); padding: 6px; vertical-align: top; }
.cal-cell.out { background: #f7f5f0; }
.cal-cell .daynum { border: 0; background: transparent; font-weight: 700; color: var(--ink-soft); padding: 0 0 4px; }
.cal-cell.out .daynum { color: #98a2b3; }
.cal-chip { border-radius: 6px; padding: 2px 5px; margin-top: 3px; font-size: 11px; }
.cal-more { border: 0; background: transparent; color: var(--teal-dark); font-size: 11px; font-weight: 700; padding: 3px 2px; }
.agenda-day { margin: 16px 0 6px; font-size: 13px; color: var(--ink-soft); }

@media (max-width: 1100px) {
  .stats, .plan-grid { grid-template-columns: 1fr 1fr; }
  .grid-main, .split, .wizard, .login { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; }
  .app { grid-template-columns: 1fr; }
  .step-list { position: static; }
  .login-brand { padding: 28px; }
}

@media (max-width: 720px) {
  .stats, .plan-grid, .grid-2, .grid-3, .choice-grid, .faq-row { grid-template-columns: 1fr; }
  .content { padding: 8px 14px 28px; }
  .topbar { height: auto; flex-wrap: wrap; padding: 12px 14px; }
  .search { width: 100%; min-width: 0; margin-left: 0; }
  .page-head { flex-direction: column; align-items: stretch; }
  .sidebar { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px; }
  .nav-label, .side-spacer { display: none; }
  .brand { padding: 4px 8px; }
  .side-user { border-top: 0; margin-left: auto; padding: 4px; }
  .nav-link { padding: 6px 8px; }
  .phone-num { font-size: 22px; }
  .cal-toolbar { align-items: stretch; }
  .cal-toolbar .left, .cal-toolbar .right { width: 100%; }
  .fwd-ring, .fwd-day { grid-template-columns: 1fr; }
}

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