:root {
  --blue: #0052cc;
  --blue-dark: #003d99;
  --blue-soft: #e8f0fe;
  --orange: #f7931a;
  --dark: #1a1a1a;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f4f6f9;
  --card: #ffffff;
  --good: #059669;
  --warn: #d97706;
  --bad: #dc2626;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --sidebar-w: 280px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.tiny { font-size: 0.75rem; }
.grow { flex: 1; }
.right { text-align: right; }
.hide-sm { display: none; }
@media (min-width: 768px) { .hide-sm { display: inline; } }

.skip-link {
  position: absolute; left: 0.75rem; top: -100px; background: #fff;
  padding: 0.5rem 0.75rem; z-index: 1000; border-radius: 8px;
}
.skip-link:focus { top: 0.75rem; }

/* Auth */
.auth-body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(0,82,204,0.18), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(247,147,26,0.16), transparent 55%),
    linear-gradient(180deg, #f8fafc, #eef2f7);
  display: grid; place-items: center; padding: 1.25rem;
}
.auth-wrap { width: min(440px, 100%); }
.auth-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 24px;
  padding: 1.75rem; box-shadow: var(--shadow);
}
.auth-brand { text-align: center; margin-bottom: 1.25rem; }
.auth-brand h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; margin-top: 0.75rem; }
.auth-foot { margin-top: 1.25rem; text-align: center; }
.auth-tagline { text-align: center; margin-top: 1rem; color: var(--muted); font-weight: 600; }

.brand-mark {
  width: 42px; height: 42px; border-radius: 14px; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-weight: 800; letter-spacing: -0.04em;
}
.brand-mark.lg { width: 56px; height: 56px; border-radius: 18px; margin: 0 auto; font-size: 1.15rem; }

.stack { display: grid; gap: 0.9rem; }
.field { display: grid; gap: 0.35rem; }
.field > span { font-size: 0.875rem; font-weight: 600; color: #374151; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 12px;
  padding: 0.75rem 0.9rem; background: #fff; color: var(--dark);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid rgba(0,82,204,0.2); border-color: var(--blue);
}
.check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: 1px solid transparent; border-radius: 12px; padding: 0.7rem 1rem;
  font-weight: 600; cursor: pointer; text-decoration: none !important;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { background: #111827; color: #fff; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: #f3f4f6; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.flash-stack { display: grid; gap: 0.5rem; margin-bottom: 1rem; }
.flash { padding: 0.75rem 0.9rem; border-radius: 12px; font-size: 0.92rem; border: 1px solid; }
.flash-error, .flash-danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.flash-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.flash-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.flash-message, .flash-info { background: var(--blue-soft); border-color: #bfdbfe; color: #1e3a8a; }

/* App shell */
.app-body { display: block; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: min(var(--sidebar-w), 88vw);
  background: #0b1220; color: #e5e7eb; z-index: 40; padding: 1rem;
  display: flex; flex-direction: column; gap: 1rem;
  transform: translateX(-105%); transition: transform .2s ease;
}
.sidebar.open { transform: translateX(0); }
.sidebar-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,0.45); z-index: 30;
}
.sidebar-brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-name { font-weight: 700; font-size: 0.95rem; }
.brand-sub { font-size: 0.75rem; color: #94a3b8; }
.sidebar-close { margin-left: auto; color: #cbd5e1; border-color: #334155; }
.client-chip {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 0.85rem;
}
.client-chip-name { font-weight: 700; margin-bottom: 0.35rem; }
.client-chip-meta { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.side-nav { display: grid; gap: 0.25rem; }
.nav-link {
  display: flex; align-items: center; gap: 0.65rem; color: #cbd5e1;
  padding: 0.7rem 0.8rem; border-radius: 12px; text-decoration: none !important;
}
.nav-link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-link.active { background: var(--blue); color: #fff; }
.nav-ico { width: 1.1rem; text-align: center; opacity: 0.9; }
.sidebar-foot { margin-top: auto; display: grid; gap: 0.45rem; }
.sidebar-foot a { color: #94a3b8; }

.app-frame { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; background: rgba(244,246,249,0.9);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem;
}
.topbar-title { font-weight: 700; flex: 1; }
.topbar-user { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.9rem; }
.avatar {
  width: 34px; height: 34px; border-radius: 999px; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border);
  background: #fff; cursor: pointer; display: grid; place-items: center;
}
.main { flex: 1; padding: 1rem; width: min(1100px, 100%); margin: 0 auto; }
.app-footer {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1rem; color: var(--muted); font-size: 0.8rem; border-top: 1px solid var(--border);
}

@media (min-width: 960px) {
  .sidebar { transform: none; }
  .sidebar-close { display: none; }
  .sidebar-backdrop { display: none !important; }
  .app-frame { margin-left: var(--sidebar-w); }
  .topbar .icon-btn[data-nav-open] { display: none; }
  .main { padding: 1.5rem 1.75rem 2rem; }
}

.hero-panel {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  align-items: flex-end; margin-bottom: 1.25rem;
}
.hero-panel.compact { align-items: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem;
  font-weight: 700; color: var(--blue); margin-bottom: 0.35rem;
}
.page-title { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.03em; }
.lede { color: var(--muted); max-width: 52ch; margin-top: 0.35rem; }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem 1.15rem; box-shadow: 0 1px 2px rgba(15,23,42,0.03);
}
.card-head {
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.card-head h2 { font-size: 1.05rem; font-weight: 700; }

.kpi-grid, .metric-grid, .grid-2 {
  display: grid; gap: 0.9rem; margin-bottom: 1rem;
}
.kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1.1fr 1fr; }
}
.kpi-label { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.kpi-value { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.04em; margin: 0.15rem 0; }
.kpi-value.kpi-sm { font-size: 1.55rem; }
.kpi-sub { color: var(--muted); font-size: 0.8rem; }
.text-good { color: var(--good); }

.pill {
  display: inline-flex; align-items: center; border-radius: 999px;
  padding: 0.15rem 0.55rem; font-size: 0.72rem; font-weight: 700; text-transform: capitalize;
  background: #f3f4f6; color: #374151;
}
.pill-plan { background: var(--blue-soft); color: var(--blue-dark); }
.pill-pass, .pill-good, .pill-paid, .pill-ok, .pill-active, .pill-sent { background: #d1fae5; color: #065f46; }
.pill-warn, .pill-open, .pill-pending, .pill-stubbed { background: #fef3c7; color: #92400e; }
.pill-fail, .pill-bad, .pill-failed { background: #fee2e2; color: #991b1b; }
.pill-closed, .pill-done { background: #e5e7eb; color: #374151; }

.check-list { list-style: none; display: grid; gap: 0.7rem; }
.check-list.dense { gap: 0.85rem; }
.check-item { display: flex; gap: 0.7rem; align-items: flex-start; }
.check-label { font-weight: 600; }
.status-dot {
  width: 10px; height: 10px; border-radius: 999px; margin-top: 0.4rem;
  background: #9ca3af; flex: 0 0 auto;
}
.status-pass .status-dot, .status-good .status-dot, .status-ok .status-dot { background: var(--good); }
.status-warn .status-dot { background: var(--warn); }
.status-fail .status-dot, .status-bad .status-dot { background: var(--bad); }

.ticket-list { list-style: none; display: grid; gap: 0.75rem; }
.ticket-list li, .ticket-card {
  display: flex; justify-content: space-between; gap: 0.75rem; align-items: flex-start;
  padding-bottom: 0.75rem; border-bottom: 1px solid var(--border);
}
.ticket-list.tall .ticket-card { display: grid; gap: 0.35rem; }
.ticket-top { display: flex; justify-content: space-between; gap: 0.5rem; }
.ticket-title { font-weight: 600; }
.ticket-desc { font-size: 0.92rem; color: #374151; white-space: pre-wrap; }

.score-ring {
  width: 88px; height: 88px; border-radius: 999px; border: 6px solid #d1fae5;
  display: grid; place-items: center; text-align: center; background: #fff;
  box-shadow: var(--shadow);
}
.score-ring span { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.score-ring small { color: var(--muted); font-size: 0.7rem; }
.score-warn { border-color: #fde68a; }
.score-bad { border-color: #fecaca; }

.callout {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center;
  background: linear-gradient(135deg, #0b1220, #123066); color: #fff; border: none;
}
.callout .muted { color: #cbd5e1; }
.callout .btn-secondary { background: var(--orange); border-color: var(--orange); color: #111; }
.callout .btn-ghost { border-color: rgba(255,255,255,0.25); color: #fff; }

.dl { display: grid; gap: 0.75rem; }
.dl > div { display: grid; gap: 0.15rem; }
.dl dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; }
.dl dd { font-weight: 600; }

.metric .pill { margin-top: 0.55rem; }

/* ——— AI Employee (Part 2) ——— */
.kpi-value.kpi-accent { color: var(--orange); }
.ai-hero { align-items: stretch; }
.ai-status-card {
  display: flex; align-items: center; gap: 0.75rem;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 0.9rem 1.1rem; min-width: min(260px, 100%);
  box-shadow: var(--shadow);
}
.ai-status-label { font-weight: 800; letter-spacing: -0.02em; text-transform: capitalize; }
.ai-status-detail { color: var(--muted); font-size: 0.82rem; max-width: 28ch; }
.ai-status-pulse {
  width: 12px; height: 12px; border-radius: 999px; flex: 0 0 auto;
  background: #9ca3af; box-shadow: 0 0 0 0 rgba(156,163,175,0.5);
}
.status-online .ai-status-pulse,
.ai-teaser-status.status-online .ai-status-pulse {
  background: var(--good);
  animation: ai-pulse 1.8s ease-out infinite;
  box-shadow: 0 0 0 0 rgba(5,150,105,0.55);
}
.status-offline .ai-status-pulse { background: var(--muted); animation: none; }
.status-degraded .ai-status-pulse {
  background: var(--warn);
  animation: ai-pulse 1.8s ease-out infinite;
  box-shadow: 0 0 0 0 rgba(217,119,6,0.45);
}
.status-online .ai-status-label { color: var(--good); }
.status-degraded .ai-status-label { color: var(--warn); }
@keyframes ai-pulse {
  0% { box-shadow: 0 0 0 0 rgba(5,150,105,0.45); }
  70% { box-shadow: 0 0 0 10px rgba(5,150,105,0); }
  100% { box-shadow: 0 0 0 0 rgba(5,150,105,0); }
}

.ai-demo-banner {
  background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412;
  border-radius: 12px; padding: 0.65rem 0.9rem; font-size: 0.88rem;
  margin-bottom: 1rem;
}
.ai-kpi .kpi { border-top: 3px solid transparent; }
.ai-kpi .kpi:nth-child(1),
.ai-kpi .kpi:nth-child(2) { border-top-color: var(--orange); }

.ai-main-grid { align-items: start; }
.ai-side-stack { display: grid; gap: 0.9rem; }
.ai-activity { list-style: none; display: grid; gap: 0; }
.ai-activity-item {
  display: flex; gap: 0.75rem; padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.ai-activity-item:last-child { border-bottom: none; padding-bottom: 0.2rem; }
.ai-activity-rail {
  width: 4px; border-radius: 999px; background: #e5e7eb; flex: 0 0 auto; align-self: stretch;
}
.outcome-lead .ai-activity-rail,
.outcome-booked .ai-activity-rail { background: var(--orange); }
.outcome-handoff .ai-activity-rail,
.outcome-callback .ai-activity-rail { background: var(--warn); }
.outcome-answered .ai-activity-rail { background: var(--good); }
.ai-activity-top {
  display: flex; justify-content: space-between; gap: 0.5rem; align-items: flex-start;
  margin-bottom: 0.2rem;
}
.ai-activity-meta { margin-top: 0.35rem; }

.pill-lead, .pill-booked { background: #ffedd5; color: #9a3412; }
.pill-handoff, .pill-callback { background: #fef3c7; color: #92400e; }
.pill-answered { background: #d1fae5; color: #065f46; }

.ai-links { margin-bottom: 1rem; }
.ai-identity { margin-top: 0.25rem; }
.ai-settings { display: grid; gap: 0.85rem; margin-bottom: 0.75rem; }
.ai-setting label {
  display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.25rem;
}
.ai-setting p { font-size: 0.95rem; color: #374151; }

.ai-help-grid {
  display: grid; gap: 0.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .ai-help-grid { grid-template-columns: 1fr 1fr; }
}
.ai-help-card {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 0.75rem; border-radius: 14px; background: #fffaf5;
  border: 1px solid #ffedd5;
}
.ai-help-num {
  width: 28px; height: 28px; border-radius: 10px; flex: 0 0 auto;
  display: grid; place-items: center; font-weight: 800; font-size: 0.85rem;
  background: var(--orange); color: #111;
}
.ai-help-list { list-style: none; display: grid; gap: 0.75rem; margin: 1rem 0 0; }
.ai-help-list li { display: grid; gap: 0.15rem; }

.ai-upgrade {
  display: grid; gap: 1.25rem;
}
@media (min-width: 800px) {
  .ai-upgrade { grid-template-columns: 1.4fr 0.8fr; align-items: start; }
}
.ai-upgrade-cta { display: grid; gap: 0.55rem; }

.ai-teaser {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  align-items: center; margin-bottom: 1rem;
}
.ai-teaser-on {
  background: linear-gradient(135deg, #fffaf5, #ffffff);
  border-color: #fed7aa;
}
.ai-teaser-status {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.8rem; font-weight: 700; color: var(--good);
  text-transform: capitalize; margin-bottom: 0.25rem;
}
.ai-teaser h2 { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; }

/* Prefer orange accent on active AI nav */
.nav-link.active[href*="ai-employee"] { background: #c2410c; }
.mt-sm { margin-top: 0.75rem; }
.center { text-align: center; }
.field-row { display: grid; gap: 0.9rem; grid-template-columns: 1fr; }
@media (min-width: 520px) { .field-row { grid-template-columns: 1fr 1fr; } }
.empty-state {
  border: 1px dashed var(--border); border-radius: 14px; padding: 1.25rem;
  text-align: center; background: #fafafa; display: grid; gap: 0.25rem;
}
.staff-switch { display: grid; gap: 0.35rem; }
.staff-switch-row { display: flex; gap: 0.4rem; }
.staff-switch select {
  flex: 1; min-width: 0; border-radius: 10px; padding: 0.45rem 0.5rem;
  background: #111827; color: #e5e7eb; border: 1px solid #334155;
}
.btn-sm { padding: 0.4rem 0.7rem; font-size: 0.85rem; }
.sidebar .btn-ghost { color: #e5e7eb; border-color: #334155; }
.sidebar .btn-ghost:hover { background: rgba(255,255,255,0.08); }
.notice-card { border-color: #fed7aa; background: #fffaf5; margin-bottom: 1rem; }
.inline-form { margin-top: 0.35rem; }
.nav-section {
  margin: 0.75rem 0 0.15rem; padding: 0 0.8rem; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: #64748b;
}
.app-footer a { color: var(--muted); }

/* ——— Polish pass ——— */
.sample-banner {
  background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412;
  border-radius: 12px; padding: 0.65rem 0.9rem; font-size: 0.88rem; margin-bottom: 1rem;
}
.kpi-unit { font-size: 0.9rem; color: var(--muted); font-weight: 600; margin-left: 0.15rem; letter-spacing: 0; }
/* Score meters: orange/green — never blue. */
progress.meter {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px;
  border: none; border-radius: 999px; background: #f3f4f6; overflow: hidden; margin: 0.35rem 0 0.4rem;
}
progress.meter::-webkit-progress-bar { background: #f3f4f6; border-radius: 999px; }
progress.meter::-webkit-progress-value { background: linear-gradient(90deg, #f7931a, #ea580c); border-radius: 999px; }
progress.meter::-moz-progress-bar { background: linear-gradient(90deg, #f7931a, #ea580c); border-radius: 999px; }
.score-ring { border-color: #fdba74; }
.score-good { border-color: #f7931a; }
.score-ok, .score-warn { border-color: #fcd34d; }
.plain-list { list-style: none; display: grid; gap: 0.4rem; }
.center-self { justify-self: center; margin-top: 0.4rem; }
.brand-mark { background: var(--orange); color: #111; }
.avatar { background: #111827; }
.eyebrow { color: #c2410c; }
.nav-link.active { background: rgba(247,147,26,0.18); color: #fff; box-shadow: inset 3px 0 0 var(--orange); }
.nav-link.active[href*="ai-employee"] { background: rgba(247,147,26,0.18); }
.pill-plan { background: #ffedd5; color: #9a3412; }
.auth-body {
  background:
    radial-gradient(1000px 520px at 0% -10%, rgba(247,147,26,0.18), transparent 60%),
    linear-gradient(180deg, #f8fafc, #eef2f7);
}
@media (max-width: 480px) {
  .kpi-value { font-size: 1.8rem; }
  .hero-panel .btn { width: 100%; }
  .score-ring { width: 72px; height: 72px; }
}
.grid-3 { display: grid; gap: 0.9rem; margin-bottom: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.staff-switch select { width: 100%; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill-in_progress { background: #ffedd5; color: #9a3412; }
.pill-done { background: #d1fae5; color: #065f46; }
.status-form { display: grid; gap: 0.4rem; grid-template-columns: 1fr; margin-top: 0.4rem; }
@media (min-width: 720px) { .status-form { grid-template-columns: 150px 1fr auto; } }
.status-form select, .status-form input {
  border: 1px solid var(--border); border-radius: 10px; padding: 0.45rem 0.6rem; background: #fff; min-width: 0;
}
.staff-note { background: #f0fdf4; border: 1px solid #bbf7d0; color: #14532d; border-radius: 10px; padding: 0.5rem 0.7rem; font-size: 0.88rem; }

/* ——— Renewals (orange/neutral only — no blue) ——— */
.renewal-card { margin-bottom: 1rem; border-left: 4px solid var(--orange); }
.renewal-sentence { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 0.25rem; }
.renewal-meta { display: flex; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.renewal-dl { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.pill-demo { background: #fef3c7; color: #92400e; border: 1px dashed #f59e0b; }
.pill-soon { background: #ffedd5; color: #9a3412; }
.pill-later { background: #f3f4f6; color: #374151; }
progress.meter.meter-thin { height: 5px; margin: 0.3rem 0; }
.tab-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.tab {
  border: 1px solid var(--border); border-radius: 999px; padding: 0.4rem 0.85rem;
  background: #fff; color: var(--text); font-weight: 600; font-size: 0.9rem;
}
.tab:hover { border-color: #fdba74; }
.tab.active { background: #fff7ed; border-color: var(--orange); color: #9a3412; }
.tab-count { display: inline-block; min-width: 1.4em; text-align: center; margin-left: 0.25rem; border-radius: 999px; background: #f3f4f6; font-size: 0.78rem; padding: 0 0.35rem; }
.tab.active .tab-count { background: #ffedd5; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.check-row { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.renewal-list .btn-sm { justify-self: start; margin-top: 0.35rem; }
.field .check-row input[type="checkbox"] { width: auto; flex: none; padding: 0; margin: 0; accent-color: var(--orange); }
.check-row { justify-content: flex-start; }

/* Example Client dashboard */
.dash-panel { margin-bottom: 1rem; }
.topbar-title { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.tap { min-height: 44px; display: inline-flex; align-items: center; }
.tab { min-height: 44px; display: inline-flex; align-items: center; }
.plan-note { color: var(--muted); margin: 0 0 0.85rem; }
.health-at-a-glance { list-style: none; display: grid; gap: 0.75rem; }
.health-row { display: flex; gap: 0.75rem; align-items: flex-start; }
.check-ico {
  width: 1.75rem; height: 1.75rem; border-radius: 999px; background: #d1fae5; color: #065f46;
  display: grid; place-items: center; font-weight: 800; flex: none;
}
.stat-grid { display: grid; gap: 0.75rem; grid-template-columns: 1fr; margin-bottom: 0.85rem; }
.stat { min-width: 0; }
.delta { font-weight: 700; font-size: 0.9rem; }
.delta-up { color: var(--good); }
.delta-down { color: var(--bad); }
.delta-flat { color: var(--muted); }
.bar-chart { width: 100%; height: auto; display: block; margin: 0.25rem 0 0.5rem; }
.chart-bar { fill: #fdba74; }
.chart-bar-now { fill: #f7931a; }
.chart-label { font-size: 11px; fill: #6b7280; font-family: var(--font); }
.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;
}
.addon-kicker { font-weight: 700; color: #9a3412; margin-bottom: 0.55rem; }
.ai-live-line { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; }
.subhead { font-size: 1rem; margin: 0.85rem 0 0.4rem; }
.lead-list, .need-list, .report-list, .growth-list { display: grid; gap: 0.55rem; }
.lead-list, .need-list, .report-list { list-style: none; }
.growth-list { margin: 0.75rem 0 1rem; padding-left: 1.15rem; }
.need-list li, .lead-list li { display: grid; gap: 0.15rem; }
.req-steps {
  display: flex; gap: 0.35rem; list-style: none; margin: 0.55rem 0; padding: 0; flex-wrap: wrap;
}
.req-step {
  flex: 1 1 5.5rem; text-align: center; font-size: 0.75rem; font-weight: 700;
  color: var(--muted); border-top: 3px solid var(--border); padding-top: 0.35rem;
}
.req-step.is-complete { color: var(--good); border-top-color: var(--good); }
.req-step.is-current { color: #9a3412; border-top-color: var(--orange); }
.setup-day { font-weight: 800; font-size: 1.15rem; margin-bottom: 0.25rem; }
.setup-split { display: grid; gap: 0.9rem; }
.setup-history { margin-top: 0.85rem; }
.setup-history summary {
  cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center;
}
.timeline { list-style: none; display: grid; gap: 0.75rem; }
.phase { border-top: 4px solid var(--border); padding-top: 0.75rem; }
.phase h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.phase-here { border-top-color: var(--orange); background: #fffaf5; border-radius: 12px; padding: 0.75rem; }
.you-are-here { font-weight: 800; color: #9a3412; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.35rem; }
.growth-card { border: 1px dashed #f7931a; background: #fffaf5; }
.growth-price { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
@media (min-width: 720px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .setup-split { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
  .growth-card .btn, .dash-panel .btn { width: 100%; }
}

/* Strategy session presenter */
.present-body { background: var(--bg); }
.present { min-height: 100vh; display: flex; flex-direction: column; }
.present-top, .present-foot {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1.25rem; background: #fff; border-bottom: 1px solid var(--border);
}
.present-foot { border-bottom: 0; border-top: 1px solid var(--border); justify-content: center; margin-top: auto; }
.present-main { width: min(960px, 100%); margin: 0 auto; padding: 1.25rem 1rem 2rem; }
.present-slide h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -0.03em; margin: 0.5rem 0 1rem; }
.step-dots { display: flex; gap: 0.4rem; list-style: none; flex-wrap: wrap; margin-bottom: 0.5rem; }
.step-dots a {
  min-width: 44px; min-height: 44px; display: flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.7rem; border-radius: 999px; border: 1px solid var(--border);
  background: #fff; color: var(--text); text-decoration: none; font-weight: 700;
}
.step-dots a[aria-current="step"] { background: var(--orange); border-color: var(--orange); color: #fff; }
.step-label { font-size: 0.8rem; font-weight: 600; }
.present-nav { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.present-nav .btn { flex: 1; min-height: 48px; }
.btn.is-disabled { opacity: 0.4; pointer-events: none; }
.finding-list { list-style: none; display: grid; gap: 0.75rem; }
.finding-card { border-top: 4px solid var(--border); padding: 0.9rem 1rem; display: grid; gap: 0.35rem; }
.finding-card h2 { font-size: 1.15rem; }
.finding-good { border-top-color: var(--good); }
.finding-needs_work { border-top-color: var(--warn); }
.finding-missing { border-top-color: var(--bad); }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 800; padding: 0.2rem 0.55rem; border-radius: 999px; }
.tag-good { background: #ecfdf5; color: var(--good); }
.tag-needs_work { background: #fffbeb; color: var(--warn); }
.tag-missing { background: #fef2f2; color: var(--bad); }
.cycle-switch { display: flex; gap: 0.5rem; margin-bottom: 0.9rem; }
.cycle-switch .tab { min-height: 44px; display: inline-flex; align-items: center; padding: 0.4rem 0.9rem; border-radius: 999px; border: 1px solid var(--border); background: #fff; font-weight: 700; color: var(--text); text-decoration: none; }
.cycle-switch .tab.active { background: var(--dark); color: #fff; border-color: var(--dark); }
.price-grid { display: grid; gap: 0.75rem; }
.price-card { padding: 1rem; }
.price-popular { border: 2px solid var(--orange); }
.save-line { font-weight: 800; color: var(--good); }
.start-steps { margin: 0 0 1rem 1.2rem; display: grid; gap: 0.45rem; font-size: 1.05rem; }
.build-line { font-weight: 800; margin-bottom: 1rem; }
.staff-box { margin-top: 1.75rem; border-top: 1px dashed var(--border); padding-top: 0.75rem; }
.staff-box summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; color: var(--muted); }
.finding-fields { border: 1px solid var(--border); border-radius: 12px; padding: 0.75rem; display: grid; gap: 0.6rem; }
.finding-fields legend { padding: 0 0.25rem; }
@media (min-width: 720px) {
  .price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .price-addon { grid-column: 1 / -1; }
}
@media (max-width: 719px) {
  .step-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .present-nav .btn, .present-slide .btn { width: 100%; }
}

.perf-page { max-width: 100%; }
.perf-page .metric-grid { margin-bottom: 0; }
.perf-scores, .perf-load { grid-template-columns: 1fr; }
.before-after-cols {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.75rem;
}
.before-now { background: #ecfdf5; border-radius: 12px; padding: 0.75rem; }
.before-after h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.perf-summary { margin-top: 0.85rem; font-weight: 700; }
.perf-row { padding: 0.75rem 0; border-top: 1px solid var(--border); }
.perf-row:first-of-type { border-top: 0; padding-top: 0; }
.perf-row-head { display: flex; flex-wrap: wrap; gap: 0.35rem 0.6rem; align-items: center; }
.perf-value { font-weight: 800; font-size: 1.15rem; }
.perf-explain { margin-top: 0.25rem; color: var(--muted); }
.perf-mark { font-weight: 800; margin-right: 0.2rem; }
.perf-mark-good { color: var(--good); }
.perf-mark-needs { color: var(--warn); }
.perf-mark-poor { color: var(--bad); }
.perf-mark-none { color: var(--muted); }
.sparkline { width: 100%; height: auto; display: block; }
.sparkline-line { fill: none; stroke: var(--good); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.sparkline-ends { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.8rem; color: var(--muted); font-weight: 700; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip {
  display: inline-flex; align-items: center; max-width: 100%;
  border-radius: 999px; padding: 0.35rem 0.7rem; font-size: 0.85rem; font-weight: 700;
  background: #f3f4f6; color: #374151;
}
.chip-good { background: #d1fae5; color: #065f46; }
.chip-warn { background: #fef3c7; color: #92400e; }
.chip-bad { background: #fee2e2; color: #991b1b; }
.chip-muted { background: #f3f4f6; color: #6b7280; }
@media (min-width: 640px) {
  .perf-scores { grid-template-columns: 1fr 1fr; }
  .perf-load { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
