:root {
  color-scheme: light;
  --bg: #f6f4ff;
  --surface: #ffffff;
  --ink: #172033;
  --muted: #667085;
  --line: #ded7fb;
  --brand: #6956e5;
  --brand-dark: #4232a3;
  --brand-soft: #eeebff;
  --ok: #087443;
  --warn: #a15c07;
  --shadow: 0 16px 38px rgba(43, 38, 89, 0.10);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at top left, #e9e5ff, var(--bg) 36%); color: var(--ink); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.45; }
.app-shell { width: min(100%, 1180px); margin: 0 auto; padding: 16px; }
.dashboard-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; }
.dashboard-main { min-width: 0; }
.sidebar,.top-header,.hero,.panel,.kpi-card { background: rgba(255,255,255,0.95); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.sidebar { position: sticky; top: 16px; align-self: start; padding: 16px; }
.sidebar-brand,.brand-row,.top-header,.top-actions { display: flex; align-items: center; gap: 12px; }
.sidebar-brand { margin-bottom: 18px; }
.sidebar-nav { display: grid; gap: 7px; }
.sidebar-nav a { border-radius: 12px; padding: 10px 11px; color: var(--muted); font-weight: 800; text-decoration: none; }
.sidebar-nav a:first-child,.sidebar-nav a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.top-header { justify-content: space-between; margin-bottom: 14px; padding: 16px; }
.top-actions { flex-wrap: wrap; justify-content: flex-end; }
.icon-button,.profile-chip,.alpha-pill { display: inline-flex; align-items: center; min-height: 34px; border-radius: 999px; padding: 7px 10px; font-size: 0.82rem; font-weight: 850; }
.icon-button,.profile-chip { border: 1px solid var(--line); background: #fff; color: var(--muted); }
.alpha-pill { background: var(--brand); color: #fff; }
.hero { padding: 20px; margin-bottom: 14px; }
.brand-mark { display: inline-grid; width: 46px; height: 46px; place-items: center; border-radius: 14px; background: linear-gradient(135deg, var(--brand), #2f80ed); color: #fff; font-weight: 900; letter-spacing: 0; }
.eyebrow { margin: 0 0 4px; color: var(--brand-dark); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.05em; text-transform: uppercase; }
h1,h2,h3,p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.35rem); }
h2 { margin: 0; font-size: 1.2rem; }
h3 { margin: 0 0 8px; font-size: 1rem; }
.hero-copy { margin: 14px 0 0; color: var(--muted); }
.search-card { display: grid; gap: 8px; margin-top: 16px; color: var(--muted); font-weight: 800; }
.search-card input { min-height: 52px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font: inherit; color: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,0.5); }
.quick-answers,.kpi-grid { display: grid; gap: 10px; margin-top: 16px; }
.quick-answers span,.status-chip { display: inline-flex; width: fit-content; border-radius: 999px; padding: 7px 10px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; font-size: 0.88rem; }
.kpi-grid { grid-template-columns: repeat(2, minmax(0,1fr)); margin: 0 0 14px; }
.kpi-card { padding: 15px; border-left: 5px solid var(--brand); }
.kpi-card span { display: block; color: var(--muted); font-size: 0.82rem; font-weight: 900; text-transform: uppercase; }
.kpi-card strong { display: block; margin-top: 7px; font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1; }
.kpi-card small { color: var(--muted); font-weight: 700; }
.panel { padding: 16px; margin-bottom: 14px; }
.section-heading { margin-bottom: 12px; }
.service-list,.detail-card,.tracking-card { display: grid; gap: 10px; }
.service-card,.reference-card,.summary-row { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fbfcff; }
.service-card { display: grid; gap: 8px; }
.service-card.active { border-color: var(--brand); background: #f5f2ff; }
.service-meta,.summary-row { color: var(--muted); font-size: 0.95rem; }
.intake-form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; color: var(--muted); font-weight: 700; }
input,textarea { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; color: var(--ink); font: inherit; }
textarea { min-height: 86px; resize: vertical; }
button { min-height: 48px; width: 100%; border: 0; border-radius: 12px; padding: 12px 14px; font: inherit; font-weight: 850; cursor: pointer; }
.primary-button { margin-top: 12px; background: var(--brand); color: #fff; }
.secondary-button { background: #ebe8f7; color: var(--ink); }
.reference-card { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.reference-card strong { color: var(--ok); }
@media (min-width: 760px) { .quick-answers { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .dashboard-layout { display: block; } .sidebar { position: static; margin-bottom: 14px; } .sidebar-nav { grid-template-columns: repeat(2, minmax(0,1fr)); } .top-header { align-items: flex-start; flex-direction: column; } .top-actions { justify-content: flex-start; } }
@media (max-width: 560px) { .app-shell { padding: 12px; } .sidebar-nav,.kpi-grid { grid-template-columns: 1fr; } .panel,.hero,.top-header,.sidebar { border-radius: 14px; } }
