:root {
  --canvas: #f4f4f8;
  --surface: #ffffff;
  --surface-soft: #fbfbfd;
  --ink: #1c1933;
  --ink-soft: #3c3856;
  --muted: #78758f;
  --faint: #a6a2b8;
  --line: #e8e6ef;
  --line-strong: #d9d5e6;
  --purple: #5d22bc;
  --purple-dark: #25104d;
  --purple-deep: #32136f;
  --purple-soft: #f1ecff;
  --purple-wash: #f8f5ff;
  --lime: #8dcc3d;
  --lime-deep: #4b8117;
  --lime-soft: #eef8df;
  --blue: #2378ba;
  --blue-soft: #eaf5ff;
  --coral: #d94e67;
  --coral-soft: #fff0f3;
  --orange: #d57b1d;
  --orange-soft: #fff3e6;
  --gold: #9b6b12;
  --gold-soft: #fff7de;
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 15px;
  --shadow-shell: 0 34px 80px rgba(35, 18, 71, .18);
  --shadow-panel: 0 10px 28px rgba(36, 28, 72, .06), 0 1px 2px rgba(36, 28, 72, .04);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; background: #292050; color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(93, 34, 188, .28); outline-offset: 2px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.025em; }
h1 { margin-bottom: 0; font-size: clamp(28px, 3vw, 38px); line-height: 1.05; }
h2 { margin-bottom: 0; font-size: 18px; line-height: 1.2; }
h3 { margin-bottom: 0; }
.hidden { display: none !important; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.err { min-height: 21px; margin: 8px 0 2px; color: #b32645; font-size: 12.5px; }
.eyebrow { display: block; color: var(--purple); font-size: 10.5px; font-weight: 800; letter-spacing: .13em; line-height: 1.2; text-transform: uppercase; }
.eyebrow-light { color: #cfc4ed; }
.status-dot { display: inline-block; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(141, 204, 61, .13); }

/* Buttons, inputs and shared controls */
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 13px; background: var(--surface); color: var(--purple); font-weight: 750; line-height: 1.15; transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease; }
.btn:hover { border-color: #b9a9dc; box-shadow: 0 6px 16px rgba(67, 25, 130, .09); }
.btn:active { transform: translateY(1px); }
.btn.primary { border-color: var(--purple); background: var(--purple); color: #fff; box-shadow: 0 9px 18px rgba(93, 34, 188, .22); }
.btn.primary:hover { background: #6b2bd2; border-color: #6b2bd2; }
.btn.quiet { background: var(--surface-soft); color: var(--ink-soft); }
.btn svg { width: 17px; height: 17px; }
.btn-small { min-height: 40px; padding: 8px 14px; }
.btn-wide { width: 100%; }
.linkbtn { border: 0; background: none; color: var(--purple); font-size: 12.5px; font-weight: 750; text-decoration: none; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn.light { color: #ded6f1; }
label { display: block; color: var(--ink-soft); font-size: 13px; font-weight: 700; }
input, select, textarea { width: 100%; margin-top: 6px; padding: 12px 13px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink); }
input::placeholder, textarea::placeholder { color: #b1adbd; }
input:focus, select:focus, textarea:focus { border-color: var(--purple); outline: 3px solid rgba(93, 34, 188, .12); }
textarea { resize: vertical; line-height: 1.5; }

/* App shell */
.app-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); width: min(1440px, calc(100% - 48px)); min-height: calc(100vh - 48px); margin: 24px auto; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-xl); background: var(--canvas); box-shadow: var(--shadow-shell); }
.sidebar { display: flex; flex-direction: column; padding: 28px 18px 20px; background: linear-gradient(180deg, #241048 0%, #2e155f 52%, #241048 100%); color: #fff; }
.brand-lockup { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-symbol { width: 36px; height: 36px; display: grid; flex: none; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 12px; background: linear-gradient(145deg, #9bd74c, #5c22b9 68%); color: #fff; font-size: 12px; font-weight: 850; letter-spacing: -.04em; box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.brand-lockup strong { display: block; overflow: hidden; color: #fff; font-size: 17px; letter-spacing: -.03em; line-height: 1.05; text-overflow: ellipsis; white-space: nowrap; }
.brand-lockup em { color: #a3e34f; font-style: normal; }
.brand-lockup small { display: block; margin-top: 5px; color: #bdb1d9; font-size: 10.5px; line-height: 1; }
.sidebar-brand { margin-bottom: 26px; }
.sidebar-pack { display: flex; align-items: center; gap: 10px; margin: 0 4px 28px; padding: 12px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.06); }
.sidebar-pack b, .sidebar-pack small { display: block; }
.sidebar-pack b { font-size: 11.5px; }
.sidebar-pack small { margin-top: 2px; color: #c8bce0; font-size: 10.5px; }
.sidebar-label, .drawer-label { margin: 0 10px 9px; color: #a99bc9; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.sidebar-nav { display: grid; gap: 6px; }
.nav-item { display: grid; grid-template-columns: 24px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px 10px; border: 1px solid transparent; border-radius: 14px; background: transparent; color: #d9d2ea; text-align: left; }
.nav-item svg { width: 20px; height: 20px; grid-row: span 2; color: #b8abda; }
.nav-item span { font-size: 13px; font-weight: 750; line-height: 1.2; }
.nav-item small { margin-top: 3px; color: #998cb8; font-size: 10.5px; }
.nav-item:hover { border-color: rgba(255,255,255,.11); background: rgba(255,255,255,.07); }
.nav-item.active { border-color: rgba(163,227,79,.25); background: linear-gradient(100deg, rgba(141,204,61,.18), rgba(255,255,255,.07)); color: #fff; }
.nav-item.active svg { color: #a3e34f; }
.nav-item.active small { color: #c7dba9; }
.sidebar-links-wrap { margin-top: 24px; }
.sidebar-label-links { display: block; margin-bottom: 7px; }
.sidebar-links { display: grid; gap: 3px; }
.sidebar-link { display: flex; justify-content: space-between; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid transparent; border-radius: 9px; color: #d9d2ea; font-size: 10.5px; font-weight: 700; text-decoration: none; }
.sidebar-link:hover, .sidebar-link:focus-visible { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.07); color: #fff; }
.sidebar-link > span:last-child { color: #a3e34f; font-size: 13px; }
.sidebar-link-empty { padding: 7px 10px; color: #998cb8; font-size: 10px; }
.sidebar-foot { margin-top: auto; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); }
.tech-chip { display: flex; align-items: center; gap: 9px; }
.tech-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--purple); font-size: 11px; font-weight: 850; }
.tech-chip small, .tech-chip b { display: block; }
.tech-chip small { color: #a99cc4; font-size: 10px; }
.tech-chip b { margin-top: 1px; color: #fff; font-size: 12px; }
.sidebar-signout { display: flex; justify-content: space-between; width: 100%; margin-top: 18px; padding: 9px 0; border: 0; background: none; color: #c9bfe0; font-size: 12px; text-align: left; }
.sidebar-signout:hover { color: #fff; }

.app-stage { min-width: 0; position: relative; background: var(--canvas); }
.apphead { padding: 19px 38px 20px; background: radial-gradient(circle at 90% 10%, rgba(120, 62, 205, .7), transparent 38%), linear-gradient(118deg, #241048 0%, #33136d 58%, #432080 100%); color: #fff; }
.topbar { display: flex; align-items: center; min-height: 42px; gap: 15px; }
.menu-btn { display: none !important; }
.iconbtn { width: 42px; height: 42px; display: inline-grid; place-items: center; border: 0; border-radius: 12px; background: rgba(255,255,255,.09); color: #fff; }
.iconbtn:hover { background: rgba(255,255,255,.16); }
.iconbtn svg { width: 22px; height: 22px; }
.iconbtn-dark { background: var(--purple-soft); color: var(--purple); }
.mobile-wordmark { display: none; font-size: 19px; font-weight: 850; letter-spacing: -.04em; }
.mobile-wordmark em { color: #a3e34f; font-style: normal; }
.mobile-wordmark sup { margin-left: 2px; color: #a3e34f; font-size: 10px; }
.topbar-context { display: grid; gap: 3px; }
.topbar-context span { color: #a99ac8; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.topbar-context b { color: #fff; font-size: 14px; }
.topbar-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.head-pack { display: flex; align-items: center; gap: 9px; }
.head-pack small, .head-pack b { display: block; }
.head-pack small { color: #afa2cb; font-size: 10px; }
.head-pack b { color: #fff; font-size: 12px; font-weight: 700; }
.ai-pill { min-height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; background: rgba(255,255,255,.11); color: #fff; font-size: 12.5px; font-weight: 750; }
.ai-pill:hover { background: rgba(255,255,255,.18); }
.ai-pill svg { width: 19px; height: 19px; color: #a3e34f; }
.ai-pill i { width: 6px; height: 6px; margin-left: 2px; border-radius: 50%; background: #a3e34f; }
.header-context { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: 31px; }
.header-context h1 { margin-top: 8px; }
.header-context h1 em { color: #a3e34f; font-style: normal; }
.header-context p { margin: 9px 0 0; color: #d5cbea; font-size: 14px; }
.header-meta { display: flex; align-items: center; gap: 22px; }
.offer-update { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; background: rgba(255,255,255,.08); }
.offer-update svg { width: 18px; height: 18px; color: #a3e34f; }
.offer-update small, .offer-update b { display: block; }
.offer-update small { color: #b8abce; font-size: 10px; }
.offer-update b { margin-top: 1px; color: #fff; font-size: 12px; }
.header-signout { display: none; }

/* Workspace and stage cards */
.workspace { padding: 28px 38px 116px; }
.view { display: grid; gap: 18px; }
.workspace-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.workspace-heading > div:first-child { min-width: 0; }
.workspace-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.shs-heading-actions { max-width: 430px; flex-wrap: wrap; }
.offer-strip { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink-soft); }
.offer-strip svg { width: 16px; height: 16px; color: var(--lime-deep); }
.offer-strip small, .offer-strip b { display: block; line-height: 1; }
.offer-strip small { color: var(--muted); font-size: 9px; }
.offer-strip b { margin-top: 3px; color: var(--ink-soft); font-size: 10.5px; font-weight: 800; white-space: nowrap; }
.workspace-heading h2 { margin-top: 7px; font-size: clamp(24px, 2.4vw, 31px); }
.workspace-heading p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.resetbtn { min-height: 42px; display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--purple); font-size: 12.5px; font-weight: 750; white-space: nowrap; }
.resetbtn svg { width: 17px; height: 17px; }
.resetbtn:hover { border-color: #bba8dc; background: var(--purple-wash); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 880px; margin: 2px 0 3px; padding: 0; list-style: none; }
.steps li { position: relative; display: grid; grid-template-columns: 31px auto; grid-template-rows: auto auto; column-gap: 9px; align-items: center; color: var(--muted); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 15px; left: 45px; right: 18px; border-top: 1px dashed #cec9dc; }
.steps li span { width: 31px; height: 31px; display: grid; grid-row: span 2; place-items: center; border: 1px solid #d6d2e1; border-radius: 50%; background: #efedf4; color: #8c879e; font-size: 12px; font-weight: 800; }
.steps li b { position: relative; z-index: 1; padding-right: 9px; background: var(--canvas); color: var(--ink-soft); font-size: 12px; line-height: 1.1; }
.steps li small { position: relative; z-index: 1; padding-right: 9px; background: var(--canvas); color: #a09baa; font-size: 10.5px; line-height: 1.1; }
.steps li.current span { border-color: var(--lime); background: var(--lime); color: #fff; box-shadow: 0 0 0 4px rgba(141,204,61,.13); }
.steps li.current b { color: var(--lime-deep); }
.builder-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); align-items: start; gap: 22px; }
.builder-main, .quote-rail, .content-grid { display: grid; gap: 16px; min-width: 0; }
.panel, .reco-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-panel); }
.panel { padding: 20px; }
.stage-panel { padding: 21px 20px 20px; }
.panel-heading { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 11px; margin-bottom: 18px; }
.section-index { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; background: var(--purple); color: #fff; font-size: 11px; font-weight: 850; }
.section-index-soft { background: var(--purple-soft); color: var(--purple); }
.panel-eyebrow { display: block; color: var(--purple); font-size: 9.5px; font-weight: 850; letter-spacing: .13em; line-height: 1.2; }
.panel-heading h2 { margin-top: 4px; font-size: 17px; }
.panel-hint { color: var(--muted); font-size: 11px; font-weight: 650; white-space: nowrap; }

/* Services, customer and customization */
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.service-tile { position: relative; min-height: 122px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 9px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); text-align: left; transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease; }
.service-tile > span:nth-child(2) { min-width: 0; }
.service-tile b, .service-tile small { display: block; }
.service-tile b { font-size: 13.5px; line-height: 1.2; }
.service-tile small { overflow: hidden; margin-top: 4px; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.service-tile:hover { transform: translateY(-1px); border-color: #c3b4e2; box-shadow: 0 8px 18px rgba(74, 36, 134, .08); }
.service-tile.active { border-color: var(--purple); background: var(--purple-wash); box-shadow: inset 0 0 0 1px var(--purple); }
.service-icon, .quick-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; }
.service-icon svg, .quick-icon svg { width: 20px; height: 20px; }
.service-icon-purple, .quick-icon-purple { background: var(--purple-soft); color: var(--purple); }
.service-icon-blue, .quick-icon-blue { background: var(--blue-soft); color: var(--blue); }
.service-icon-coral { background: var(--coral-soft); color: var(--coral); }
.service-icon-orange { background: var(--orange-soft); color: var(--orange); }
.service-icon-green { background: var(--lime-soft); color: var(--lime-deep); }
.tile-check { position: absolute; top: 10px; right: 10px; width: 21px; height: 21px; display: none; place-items: center; border-radius: 50%; background: var(--lime); color: #fff; }
.tile-check svg { width: 13px; height: 13px; stroke-width: 2.5; }
.service-tile.active .tile-check { display: grid; }
.tile-arrow { align-self: flex-end; color: var(--faint); font-size: 17px; line-height: 1; }
.selection-note { display: flex; align-items: center; gap: 10px; margin-top: 13px; padding: 10px 12px; border: 1px solid var(--lime-line, #d9ebc0); border-radius: 13px; background: var(--lime-soft); }
.selection-icon { width: 24px; height: 24px; display: grid; flex: none; place-items: center; border-radius: 8px; background: var(--lime); color: #fff; }
.selection-icon svg { width: 15px; height: 15px; stroke-width: 2.4; }
.selection-note b, .selection-note small { display: block; }
.selection-note b { color: #416d15; font-size: 12px; }
.selection-note small { color: #709143; font-size: 10.5px; }
.selection-note strong { margin-left: auto; color: var(--lime-deep); font-size: 11px; white-space: nowrap; }
.customer-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(190px, .85fr); gap: 12px; }
.field-block { min-width: 0; }
.field-label, .control-label > span { display: block; color: var(--ink-soft); font-size: 11px; font-weight: 800; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; min-height: 44px; margin-top: 7px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.segment { min-width: 0; min-height: 36px; padding: 7px 8px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 11.5px; font-weight: 750; }
.segment:hover { color: var(--ink); }
.segment.active { background: var(--surface); color: var(--purple); box-shadow: 0 2px 7px rgba(36, 24, 73, .09); }
.home-benefit { display: flex; align-items: center; gap: 11px; margin-top: 13px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); cursor: pointer; }
.home-benefit input { display: none; }
.home-benefit-icon { width: 32px; height: 32px; display: grid; flex: none; place-items: center; border-radius: 10px; background: var(--lime-soft); color: var(--lime-deep); }
.home-benefit-icon svg { width: 18px; height: 18px; }
.home-benefit > span:nth-child(3) { min-width: 0; }
.home-benefit b, .home-benefit small { display: block; }
.home-benefit b { font-size: 12px; }
.home-benefit small { margin-top: 2px; color: var(--muted); font-size: 10.5px; font-weight: 500; line-height: 1.35; }
.home-benefit em { margin-left: auto; padding: 5px 8px; border-radius: 10px; background: #f2f0f6; color: var(--muted); font-size: 10px; font-style: normal; font-weight: 800; white-space: nowrap; }
.home-benefit:has(input:checked) { border-color: #bddd91; background: #f8fced; }
.home-benefit:has(input:checked) em { background: var(--lime-soft); color: var(--lime-deep); }
.field-note { display: flex; align-items: flex-start; gap: 7px; margin: 11px 2px 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.field-note svg { width: 15px; height: 15px; flex: none; color: var(--faint); }
.customize-grid { display: grid; grid-template-columns: minmax(170px, .65fr) minmax(0, 1.35fr); gap: 12px; }
.control-card { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-soft); }
.control-label { display: flex; justify-content: space-between; gap: 8px; }
.control-label small { color: var(--muted); font-size: 10px; }
.stepper { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; min-height: 48px; margin-top: 10px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); }
.stepper button { height: 46px; border: 0; background: none; color: var(--purple); font-size: 23px; line-height: 1; }
.stepper button:hover { background: var(--purple-soft); }
.stepper button:first-child { border-radius: 11px 0 0 11px; }
.stepper button:last-child { border-radius: 0 11px 11px 0; }
.stepper b { text-align: center; color: var(--purple); font-size: 22px; font-variant-numeric: tabular-nums; }
.coverage-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.coverage-pill { min-height: 48px; display: grid; place-items: center; gap: 2px; padding: 6px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--muted); font-size: 10px; line-height: 1.1; }
.coverage-pill span { font-size: 13px; letter-spacing: -3px; }
.coverage-pill b { font-size: 10.5px; font-weight: 750; }
.coverage-pill:hover { border-color: #c2b2e1; color: var(--purple); }
.coverage-pill.active { border-color: var(--purple); background: var(--purple-soft); color: var(--purple); box-shadow: inset 0 0 0 1px var(--purple); }
.option-heading { display: flex; justify-content: space-between; align-items: center; margin: 19px 0 8px; }
.option-heading span { color: var(--ink-soft); font-size: 12px; font-weight: 850; }
.option-heading small { color: var(--muted); font-size: 10.5px; }
.option-list { display: grid; gap: 7px; }
.option-row { min-height: 54px; display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.option-row:hover { border-color: #c6b6e2; background: var(--purple-wash); }
.option-row input { display: none; }
.option-check { width: 25px; height: 25px; display: grid; flex: none; place-items: center; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: transparent; }
.option-check svg { width: 15px; height: 15px; stroke-width: 2.7; }
.option-row input:checked + .option-check { border-color: var(--lime); background: var(--lime); color: #fff; }
.option-copy { min-width: 0; }
.option-copy b, .option-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.option-copy b { color: var(--ink-soft); font-size: 11.5px; }
.option-copy small { margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 500; }
.option-row em { margin-left: auto; padding: 5px 8px; border-radius: 9px; background: var(--lime-soft); color: var(--lime-deep); font-size: 10.5px; font-style: normal; font-weight: 800; white-space: nowrap; }
.option-row-muted { background: var(--surface-soft); }
.option-row-muted em { display: none; }
.option-info { width: 17px; height: 17px; display: grid; flex: none; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--faint); font-size: 10px; font-weight: 800; }
.source-note { display: flex; align-items: flex-start; gap: 8px; margin: 13px 0 0; padding: 10px 11px; border: 1px solid #ded8ee; border-radius: 12px; background: var(--purple-wash); color: var(--muted); font-size: 10.5px; line-height: 1.45; }
.source-note-mark { display: grid; flex: none; place-items: center; width: 20px; height: 20px; border-radius: 7px; background: var(--purple-soft); color: var(--purple); }
.source-note-mark svg { width: 13px; height: 13px; }

/* Matching plans */
.plan-panel { padding-bottom: 16px; }
.match-count { padding: 5px 9px; border-radius: 9px; background: var(--purple-soft); color: var(--purple); font-size: 10.5px; font-weight: 800; white-space: nowrap; }
.plan-list { display: grid; gap: 8px; }
.plan-row { position: relative; display: grid; grid-template-columns: 23px minmax(0,1fr) auto; align-items: start; gap: 10px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-align: left; }
.plan-row:hover { border-color: #c3b4e0; background: var(--purple-wash); }
.plan-row.selected { border-color: var(--purple); background: var(--purple-wash); box-shadow: inset 0 0 0 1px rgba(93,34,188,.18); }
.plan-row.recommended::before { content: "RECOMMENDED"; position: absolute; top: -8px; left: 42px; padding: 2px 6px; border-radius: 5px; background: var(--lime); color: #fff; font-size: 8px; font-weight: 850; letter-spacing: .07em; }
.plan-radio { width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: transparent; }
.plan-radio svg { width: 13px; height: 13px; stroke-width: 2.7; }
.plan-row.selected .plan-radio { border-color: var(--purple); background: var(--purple); color: #fff; }
.plan-main { min-width: 0; }
.plan-title, .plan-sub { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-title { color: var(--ink); font-size: 12.5px; font-weight: 800; }
.plan-title .bestmark { color: var(--lime-deep); }
.plan-sub { margin-top: 3px; color: var(--muted); font-size: 10.5px; }
.plan-flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.chip { padding: 3px 6px; border-radius: 6px; background: #f0edf6; color: var(--muted); font-size: 9px; font-weight: 800; line-height: 1.15; }
.chip.ok { background: var(--lime-soft); color: var(--lime-deep); }
.chip.no { background: #f4f3f6; color: #a4a0ae; }
.chip.fin { background: var(--gold-soft); color: var(--gold); }
.chip.btl { background: var(--purple); color: #fff; }
.plan-price { align-self: center; color: var(--purple); text-align: right; white-space: nowrap; }
.plan-price b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.plan-price small { display: block; margin-top: 2px; color: var(--muted); font-size: 9.5px; }
.plan-list-foot { display: flex; align-items: flex-start; gap: 7px; margin-top: 12px; padding: 9px 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.4; }
.plan-list-foot svg { width: 15px; height: 15px; flex: none; color: var(--faint); }

/* Live quote rail */
.quote-rail { position: sticky; top: 22px; }
.rail-heading { display: flex; justify-content: space-between; align-items: center; padding: 0 3px 8px; color: var(--purple); font-size: 9.5px; font-weight: 850; letter-spacing: .12em; }
.rail-pulse { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9.5px; font-weight: 650; letter-spacing: 0; text-transform: none; }
.rail-pulse i, .quote-live i, .grounded-pill i { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: var(--lime); }
.reco-card { padding: 18px; border-color: #d8cbee; background: radial-gradient(circle at 95% 0%, rgba(147, 101, 220, .11), transparent 42%), linear-gradient(145deg, #fff 0%, #fbf9ff 100%); }
.reco-label-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.reco-label, .best-label { display: inline-flex; align-items: center; gap: 5px; border-radius: 8px; font-size: 10px; font-weight: 850; }
.reco-label { padding: 5px 8px; background: var(--purple); color: #fff; }
.reco-label svg { width: 13px; height: 13px; }
.best-label { padding: 5px 8px; background: var(--lime-soft); color: var(--lime-deep); }
.reco-body-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-top: 16px; }
.reco-body-head h3 { max-width: 60%; color: var(--ink); font-size: 17px; line-height: 1.16; }
.reco-body-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.35; }
.reco-total-price { color: var(--purple); text-align: right; white-space: nowrap; }
.reco-total-price b { display: block; font-size: 29px; line-height: .98; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.reco-total-price small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.reco-audit { margin-top: 15px; padding-top: 10px; border-top: 1px solid #e3ddf0; }
.reco-audit-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; color: var(--muted); font-size: 10.5px; }
.reco-audit-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reco-audit-row span:last-child { color: var(--ink-soft); font-weight: 750; white-space: nowrap; }
.reco-audit-row .neg { color: var(--lime-deep) !important; }
.reco-total-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 5px; padding-top: 8px; border-top: 1px solid #e3ddf0; color: var(--ink); font-size: 11px; font-weight: 850; }
.reco-total-row span:last-child { color: var(--purple); font-size: 13px; white-space: nowrap; }
.save-banner { display: flex; align-items: center; gap: 7px; margin-top: 12px; padding: 10px 11px; border-radius: 10px; background: var(--lime-soft); color: var(--lime-deep); font-size: 11px; font-weight: 800; }
.save-banner svg { width: 15px; height: 15px; }
.reco-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; border: 1px solid #e4dfed; border-radius: 11px; background: rgba(255,255,255,.72); }
.reco-stat { min-width: 0; padding: 9px 5px; text-align: center; }
.reco-stat + .reco-stat { border-left: 1px solid #e4dfed; }
.reco-stat b, .reco-stat small { display: block; }
.reco-stat b { color: var(--purple); font-size: 15px; font-variant-numeric: tabular-nums; }
.reco-stat small { overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.reco-stat.save-stat b { color: var(--lime-deep); }
.plan-details { display: grid; gap: 11px; margin-top: 13px; padding-top: 13px; border-top: 1px solid #e3ddf0; }
.detail-kicker { display: block; color: var(--purple); font-size: 9px; font-weight: 850; letter-spacing: .1em; }
.plan-details ul { display: grid; gap: 5px; margin: 7px 0 0; padding: 0; list-style: none; }
.plan-details li { display: flex; align-items: flex-start; gap: 6px; color: var(--ink-soft); font-size: 10px; line-height: 1.35; }
.plan-details li svg { width: 13px; height: 13px; flex: none; color: var(--lime-deep); stroke-width: 2.4; }
.plan-details .detail-check li svg { color: var(--gold); }
.reco-action { width: 100%; margin-top: 13px; padding: 10px 0 0; border: 0; border-top: 1px solid #e3ddf0; background: none; color: var(--purple); font-size: 11px; font-weight: 800; text-align: left; }

/* Breakdown/share card */
.quote-panel { padding: 18px; }
.quote-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.quote-panel-head h2 { margin-top: 5px; }
.quote-live { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 8px; background: var(--lime-soft); color: var(--lime-deep); font-size: 10px; font-weight: 800; }
.quote-summary { margin-bottom: 12px; }
.quote-summary b, .quote-summary small { display: block; }
.quote-summary b { color: var(--ink); font-size: 12px; }
.quote-summary small { margin-top: 3px; color: var(--muted); font-size: 10.5px; }
.quote-audit { width: 100%; border-collapse: collapse; font-size: 10.5px; }
.quote-audit td { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.quote-audit td:last-child { color: var(--ink-soft); font-weight: 750; text-align: right; white-space: nowrap; }
.quote-audit .discount td:last-child { color: var(--lime-deep); }
.quote-audit .total-row td { padding-top: 9px; border-bottom: 0; color: var(--purple); font-size: 13px; font-weight: 850; }
.code-stack { display: grid; gap: 6px; margin-top: 10px; }
.tcode { padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); color: var(--ink-soft); font-size: 10.5px; line-height: 1.4; }
.tcode b { color: var(--purple); }
.quote-note { display: flex; align-items: flex-start; gap: 6px; margin: 9px 0 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.quote-note svg { width: 14px; height: 14px; flex: none; color: var(--faint); }
.quote-cta { width: 100%; display: grid; grid-template-columns: 32px minmax(0,1fr) auto; align-items: center; gap: 9px; margin-top: 13px; padding: 10px; border: 1px solid #d9cbee; border-radius: 13px; background: var(--purple-wash); color: var(--purple); text-align: left; }
.quote-cta > span:first-child { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: var(--purple-soft); }
.quote-cta svg { width: 16px; height: 16px; }
.quote-cta b, .quote-cta small { display: block; }
.quote-cta b { font-size: 11px; }
.quote-cta small { margin-top: 2px; color: var(--muted); font-size: 9.5px; line-height: 1.25; }
.quote-cta > span:last-child { font-size: 18px; }
.share-divider { display: flex; justify-content: space-between; align-items: center; margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--line); }
.share-divider span:first-child { color: var(--ink-soft); font-size: 11.5px; font-weight: 850; }
.share-divider span:last-child { color: var(--muted); font-size: 10px; }
.sms-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; margin-top: 7px; }
.sms-row select { margin-top: 0; min-height: 40px; padding: 8px 10px; font-size: 11px; }
.quote-panel textarea { min-height: 115px; margin-top: 8px; padding: 10px; background: var(--surface-soft); font-size: 11px; }
.share-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.share-actions .btn { flex: 1; min-width: 0; padding-inline: 9px; font-size: 11px; }

/* Shortcut panel */
.quick-panel { padding-bottom: 16px; }
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quick-action { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 11px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); color: var(--ink); text-align: left; }
.quick-action:hover { border-color: #c1b0e1; background: var(--purple-wash); }
.quick-action b { font-size: 11px; }
.quick-action small { overflow: hidden; width: 100%; color: var(--muted); font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }

/* Internet view */
.content-grid { grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); align-items: start; }
.service-tabs { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-bottom: 16px; }
.service-tabs .seg { min-height: 42px; padding: 8px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); color: var(--muted); font-size: 11.5px; font-weight: 800; }
.service-tabs .seg.active { border-color: var(--purple); background: var(--purple-soft); color: var(--purple); }
.select-field { margin-bottom: 13px; }
.net-options { margin-top: 3px; }
.net-options .option-row { min-width: 0; }
.net-options .option-row em { color: var(--muted); background: #f3f1f6; }
.net-options .option-row:nth-child(2) em, .net-options .option-row:nth-child(3) em { color: var(--lime-deep); background: var(--lime-soft); }
.bundle-mnh { margin-top: 10px; padding: 12px; border: 1px solid #cfe6ad; border-radius: 14px; background: #f8fced; }
.bundle-mnh-heading { display: flex; align-items: flex-start; gap: 9px; }
.bundle-mnh-icon { width: 29px; height: 29px; display: grid; flex: none; place-items: center; border-radius: 9px; background: var(--lime-soft); color: var(--lime-deep); }
.bundle-mnh-icon svg { width: 16px; height: 16px; }
.bundle-mnh-heading b, .bundle-mnh-heading small { display: block; }
.bundle-mnh-heading b { color: var(--ink-soft); font-size: 11.5px; }
.bundle-mnh-heading small { margin-top: 2px; color: var(--muted); font-size: 9.5px; line-height: 1.35; }
.bundle-mnh-options { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; margin-top: 10px; }
.mnh-choice { display: flex; align-items: flex-start; gap: 7px; min-width: 0; padding: 9px; border: 1px solid #dce9ca; border-radius: 10px; background: #fff; color: var(--ink-soft); cursor: pointer; }
.mnh-choice:has(input:checked) { border-color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime); }
.mnh-choice:has(input:disabled) { cursor: not-allowed; opacity: .58; }
.mnh-choice input { width: 15px; height: 15px; flex: none; margin: 1px 0 0; accent-color: var(--lime-deep); }
.mnh-choice b, .mnh-choice small { display: block; }
.mnh-choice b { font-size: 10.5px; }
.mnh-choice small { margin-top: 2px; color: var(--lime-deep); font-size: 9px; line-height: 1.25; }
.bundle-mnh > p { margin: 8px 0 0; color: var(--lime-deep); font-size: 9.5px; line-height: 1.35; }
.net-total { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 13px; padding: 13px; border-radius: 13px; background: var(--purple-soft); }
.net-total span { color: var(--muted); font-size: 10.5px; line-height: 1.35; }
.net-total b { color: var(--purple); font-size: 27px; line-height: 1; font-variant-numeric: tabular-nums; }
.audit { width: 100%; border-collapse: collapse; font-size: 11px; }
.audit td { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.audit td:last-child { color: var(--ink-soft); font-weight: 750; text-align: right; white-space: nowrap; }
.note-stack { display: grid; gap: 9px; }
.field-callout { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; }
.field-callout > span { width: 28px; height: 28px; display: grid; flex: none; place-items: center; border-radius: 9px; }
.field-callout > span svg { width: 16px; height: 16px; }
.field-callout p { margin: 0; }
.field-callout b, .field-callout small { display: block; }
.field-callout b { font-size: 11.5px; }
.field-callout small { margin-top: 3px; color: var(--muted); font-size: 10.5px; line-height: 1.4; }
.field-callout.purple { background: var(--purple-wash); }
.field-callout.purple > span { background: var(--purple-soft); color: var(--purple); }
.field-callout.green { background: #f8fced; }
.field-callout.green > span { background: var(--lime-soft); color: var(--lime-deep); }
.field-callout.gold { background: #fffdf4; }
.field-callout.gold > span { background: var(--gold-soft); color: var(--gold); }
.reference-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.reference-list .tcode { min-height: 74px; }
.reference-item { min-width: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; min-height: 76px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.reference-item > div:first-child { min-width: 0; }
.reference-item b, .reference-item small, .reference-kicker { display: block; }
.reference-item b { margin-top: 3px; color: var(--ink-soft); font-size: 11px; line-height: 1.25; }
.reference-item small { margin-top: 4px; color: var(--muted); font-size: 9.5px; line-height: 1.35; }
.reference-kicker { color: var(--purple); font-size: 8.5px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.reference-item > strong { flex: none; color: var(--purple); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.reference-item > strong small { display: inline; margin: 0; color: var(--muted); font-size: 9px; font-weight: 650; }
.tv-item { align-items: stretch; }
.reference-prices { display: grid; flex: none; align-content: center; gap: 3px; text-align: right; }
.reference-prices span { color: var(--muted); font-size: 8.5px; white-space: nowrap; }
.reference-prices strong { color: var(--lime-deep); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.panel-subtitle { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.reference-panel > .muted { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); line-height: 1.45; }

/* Smart Home Security */
.external-action { text-decoration: none; }
.shs-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); align-items: start; gap: 16px; }
.shs-builder { min-width: 0; }
.shs-side { position: sticky; top: 22px; min-width: 0; }
.shs-facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.shs-rule-block { display: flex; flex-direction: column; justify-content: center; padding: 0 2px; }
.shs-rule-block > strong { margin-top: 7px; color: var(--ink-soft); font-size: 13px; }
.control-help { display: block; margin: 6px 2px 0; color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.35; }
.shs-needs-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-top: 14px; }
.shs-counter-card { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; }
.shs-counter-card .control-label { min-width: 0; }
.shs-counter-card .control-label > span { font-size: 10px; line-height: 1.15; }
.shs-counter-card .control-label small { display: block; margin-top: 3px; color: var(--muted); font-size: 8.5px; line-height: 1.1; }
.shs-needs-grid .stepper { flex: none; min-height: 32px; margin-top: 0; grid-template-columns: 27px 24px 27px; }
.shs-needs-grid .stepper button { width: 27px; height: 30px; font-size: 16px; }
.shs-needs-grid .stepper b { font-size: 15px; }
.shs-eligibility { display: flex; align-items: flex-start; gap: 9px; margin-top: 13px; padding: 10px 11px; border: 1px solid #d7ebbd; border-radius: 12px; background: #f8fced; color: var(--lime-deep); }
.shs-eligibility-icon { width: 23px; height: 23px; display: grid; flex: none; place-items: center; border-radius: 8px; background: var(--lime); color: #fff; }
.shs-eligibility-icon svg { width: 14px; height: 14px; stroke-width: 2.5; }
.shs-eligibility b, .shs-eligibility span span { display: block; }
.shs-eligibility b { color: #416d15; font-size: 10.5px; }
.shs-eligibility span span { margin-top: 2px; color: #6f8d49; font-size: 9.5px; line-height: 1.35; }
.shs-results-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 19px; margin-bottom: 10px; }
.shs-results-heading h3 { margin-top: 4px; color: var(--ink-soft); font-size: 14px; }
.shs-plan-list { display: grid; gap: 8px; }
.shs-plan-card { position: relative; width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-align: left; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.shs-plan-card:hover { border-color: #c3b4e2; background: var(--purple-wash); }
.shs-plan-card.selected { border-color: var(--purple); background: var(--purple-wash); box-shadow: inset 0 0 0 1px rgba(93,34,188,.16); }
.shs-plan-card.recommended::before { content: "RECOMMENDED"; position: absolute; top: -8px; left: 13px; padding: 2px 6px; border-radius: 5px; background: var(--lime); color: #fff; font-size: 8px; font-weight: 850; letter-spacing: .07em; }
.shs-plan-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.shs-plan-type { color: var(--purple); font-size: 8.5px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.shs-plan-card-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-top: 9px; }
.shs-plan-card-main h3 { color: var(--ink); font-size: 15px; }
.shs-plan-card-main p { max-width: 450px; margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.3; }
.shs-plan-card-main > strong { flex: none; color: var(--purple); font-size: 21px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.shs-plan-card-main > strong small { margin-left: 2px; color: var(--muted); font-size: 9px; font-weight: 650; }
.shs-plan-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.shs-plan-meta span { padding: 4px 6px; border-radius: 7px; background: var(--lime-soft); color: var(--lime-deep); font-size: 9px; font-weight: 800; }
.shs-plan-meta span + span { background: var(--surface-soft); color: var(--muted); font-weight: 650; }
.shs-plan-included { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 7px; margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 9.5px; line-height: 1.35; }
.shs-plan-included .detail-kicker { margin-top: 1px; white-space: nowrap; }
.shs-summary-panel { padding: 18px; }
.shs-summary-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.shs-summary-head h3 { margin-top: 4px; color: var(--ink); font-size: 17px; }
.shs-summary-head p { margin: 3px 0 0; color: var(--muted); font-size: 10.5px; }
.shs-summary-head > strong { flex: none; color: var(--purple); font-size: 27px; line-height: 1; white-space: nowrap; }
.shs-summary-head > strong small { margin-left: 2px; color: var(--muted); font-size: 9px; font-weight: 650; }
.shs-audit { margin-top: 14px; }
.shs-included { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
.shs-included ul { display: grid; gap: 5px; margin: 7px 0 0; padding: 0; list-style: none; }
.shs-included li { display: flex; align-items: flex-start; gap: 6px; color: var(--ink-soft); font-size: 10px; line-height: 1.35; }
.shs-included li svg { width: 13px; height: 13px; flex: none; color: var(--lime-deep); stroke-width: 2.4; }
.shs-adjustments { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.shs-adjustments summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 0; color: var(--ink-soft); cursor: pointer; list-style: none; }
.shs-adjustments summary::-webkit-details-marker { display: none; }
.shs-adjustments summary > span { min-width: 0; }
.shs-adjustments summary b, .shs-adjustments summary small { display: block; }
.shs-adjustments summary b { font-size: 11px; }
.shs-adjustments summary small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.shs-adjustments summary > strong { width: 24px; height: 24px; display: grid; flex: none; place-items: center; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--purple); font-size: 17px; font-weight: 500; line-height: 1; }
.shs-adjustments[open] summary > strong { background: var(--purple-wash); }
.shs-adjustments .shs-needs-grid { margin-top: 10px; }
.portal-cta { margin-top: 13px; text-decoration: none; }
.shs-equipment-panel, .smartplus-panel { margin-top: 0; }
.shs-addon-list { display: grid; gap: 7px; }
.shs-addon-total { display: flex; justify-content: space-between; gap: 10px; padding: 10px 11px; border-radius: 10px; background: var(--purple-wash); color: var(--ink-soft); font-size: 11px; font-weight: 800; }
.shs-addon-total strong { color: var(--purple); white-space: nowrap; }
.shs-addon-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
.shs-addon-row b, .shs-addon-row small { display: block; }
.shs-addon-row b { color: var(--ink-soft); font-size: 11px; }
.shs-addon-row small { margin-top: 3px; color: var(--muted); font-size: 9.5px; line-height: 1.3; }
.shs-addon-row > strong { flex: none; color: var(--lime-deep); font-size: 12px; white-space: nowrap; }
.shs-addon-empty { display: flex; align-items: flex-start; gap: 8px; padding: 10px 11px; border: 1px solid #d7ebbd; border-radius: 11px; background: #f8fced; }
.shs-addon-empty svg { width: 16px; height: 16px; flex: none; color: var(--lime-deep); }
.shs-addon-empty b, .shs-addon-empty small { display: block; }
.shs-addon-empty b { color: #416d15; font-size: 11px; }
.shs-addon-empty small { margin-top: 2px; color: #6f8d49; font-size: 9.5px; }
.shs-reference { margin-top: 12px; border-top: 1px dashed var(--line); }
.shs-reference summary { display: flex; justify-content: space-between; padding-top: 12px; color: var(--purple); cursor: pointer; font-size: 10.5px; font-weight: 800; list-style: none; }
.shs-reference summary::-webkit-details-marker { display: none; }
.equipment-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 13px; }
.equipment-group { min-width: 0; }
.equipment-item { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 10px; line-height: 1.25; }
.equipment-item > span:first-child { min-width: 0; }
.equipment-item > span:last-child { flex: none; color: var(--purple); font-weight: 800; white-space: nowrap; }
.equipment-item small { margin-left: 2px; color: var(--muted); font-size: 8px; font-weight: 650; }
.smartplus-item { min-height: 92px; }
.smartplus-panel > .muted { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); line-height: 1.45; }

/* AI */
.grounded-pill, .admin-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 11px; background: var(--lime-soft); color: var(--lime-deep); font-size: 10.5px; font-weight: 800; white-space: nowrap; }
.admin-pill { background: var(--purple-soft); color: var(--purple); }
.chat-panel { padding: 22px; }
.chat-intro { display: flex; align-items: center; gap: 11px; }
.copilot-avatar { width: 39px; height: 39px; display: grid; flex: none; place-items: center; border-radius: 13px; background: var(--purple-soft); color: var(--purple); }
.copilot-avatar svg { width: 22px; height: 22px; }
.chat-intro h2 { margin-top: 4px; }
.chat { display: flex; flex-direction: column; gap: 9px; min-height: 300px; max-height: 54vh; margin-top: 21px; padding: 4px 2px; overflow-y: auto; }
.msg { max-width: 82%; padding: 11px 13px; border-radius: 15px; font-size: 12.5px; line-height: 1.45; }
.msg.u { align-self: flex-end; border-bottom-right-radius: 5px; background: var(--purple); color: #fff; }
.msg.a { align-self: flex-start; border-bottom-left-radius: 5px; background: var(--purple-soft); color: var(--ink-soft); }
.msg .who { display: block; margin-bottom: 3px; color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.msg.u .who { color: #d9c9fa; }
.msg.typing i { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.chips-row { display: flex; gap: 7px; max-width: 100%; padding: 8px 0; overflow-x: auto; scrollbar-width: thin; }
.qchip { flex: none; padding: 8px 11px; border: 1px solid #cdbce9; border-radius: 10px; background: var(--surface); color: var(--purple); font-size: 10.5px; font-weight: 750; }
.qchip:hover { background: var(--purple-soft); }
.chat-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; margin-top: 5px; }
.chat-row input { min-height: 45px; margin-top: 0; }
.chat-row .btn:disabled { cursor: wait; opacity: .72; }
.chat-status { min-height: 17px; margin: 8px 0 0; color: var(--muted); font-size: 10.5px; line-height: 1.35; }
.chat-status.loading { color: var(--purple); }
.chat-status.success { color: var(--lime-deep); }
.chat-status.error { color: #b32645; }
.msg.typing-message .typing { display: inline-flex; align-items: center; gap: 4px; }
.msg.typing-message .typing i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--purple); animation: blink 1s infinite; }
.msg.typing-message .typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing-message .typing i:nth-child(3) { animation-delay: .3s; }
.typing-label { margin-left: 4px; color: var(--muted); font-size: 10.5px; }
.ai-error { display: block; color: #b32645; }
.ai-error-help { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.35; }

/* Admin */
.admin-card h3 { color: var(--ink-soft); font-size: 12px; }
.admin-section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 21px 0 9px; padding-top: 15px; border-top: 1px solid var(--line); }
.admin-section-heading h3 { margin: 0; text-transform: uppercase; letter-spacing: .08em; }
.admin-section-heading span { color: var(--muted); font-size: 10px; }
.adm-plan { display: grid; grid-template-columns: minmax(0,1fr) minmax(120px, .35fr); gap: 7px 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 11.5px; }
.adm-plan > b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-plan > .muted { grid-column: 1 / -1; margin-top: -5px; font-size: 10px; }
.adm-plan > label { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 10px; }
.adm-plan input { min-height: 35px; margin-top: 4px; padding: 7px; font-size: 11px; }
.adm-flags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2px; }
.adm-flags label { display: flex; align-items: center; gap: 5px; font-size: 10.5px; }
.adm-flags input { width: auto; min-height: 0; margin: 0; padding: 0; }
.adm-plan.plan-editor { display: block; padding: 15px 0 17px; }
.adm-plan-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.adm-plan-head > div { min-width: 0; }
.adm-plan-head b, .adm-plan-head .muted { display: block; }
.adm-plan-head b { overflow: hidden; color: var(--ink-soft); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.adm-plan-head .muted { margin-top: 3px; font-size: 9.5px; }
.plan-edit-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin-top: 11px; }
.plan-edit-grid label, .plan-add-grid label, .plan-note-field { color: var(--muted); font-size: 9.5px; font-weight: 800; }
.plan-edit-grid input, .plan-edit-grid select, .plan-add-grid input, .plan-add-grid select, .plan-note-field textarea { min-height: 35px; margin-top: 4px; padding: 7px 8px; border-radius: 9px; font-size: 10.5px; font-weight: 600; }
.plan-note-field { display: block; margin-top: 9px; }
.plan-note-field textarea { min-height: 48px; resize: vertical; }
.plan-editor .adm-flags { margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line); }
.plan-editor .remove-plan { flex: none; color: #b32645; font-size: 10px; }
.plan-add-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; margin-bottom: 10px; }
.check-field { display: flex !important; align-items: center; gap: 6px; min-height: 35px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); color: var(--ink-soft) !important; }
.check-field input { width: auto; min-height: 0; margin: 0; padding: 0; accent-color: var(--purple); }
.plan-add-grid .plan-note-field { grid-column: span 2; }
#adm-add-plan { margin-top: 1px; }
.disc-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.disc-grid label { font-size: 10px; }
.disc-grid input { min-height: 35px; padding: 7px; font-size: 11px; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.admin-catalog-state { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.admin-catalog-state .panel-hint { white-space: normal; text-align: right; }
.catalog-good { color: var(--lime-deep); }
.catalog-warn { color: var(--gold); }
.catalog-error { color: #b32645; }
.tcode .linkbtn { float: right; padding: 0; font-size: 10px; }
.t-add { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.t-add + .btn { margin-top: 4px; }
.link-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 30; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(20, 10, 42, .58); }
.drawer-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(330px, 88vw); display: flex; flex-direction: column; gap: 7px; padding: 22px 18px; overflow-y: auto; background: var(--surface); box-shadow: 20px 0 40px rgba(14, 4, 30, .18); }
.drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.drawer-top .brand-lockup strong { color: var(--ink); }
.drawer-top .brand-lockup small { color: var(--muted); }
.drawer-top .brand-symbol { border: 0; }
.dtab { min-height: 49px; display: flex; align-items: center; gap: 11px; padding: 10px 11px; border: 0; border-radius: 12px; background: transparent; color: var(--ink-soft); font-size: 13px; font-weight: 750; text-align: left; }
.dtab svg { width: 20px; height: 20px; color: var(--purple); }
.dtab:hover, .dtab:focus-visible { background: var(--purple-soft); color: var(--purple); }
.drawer-label-links { margin-top: 17px; }
.drawer-links { display: grid; gap: 5px; }
.drawer-link { display: flex; justify-content: space-between; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); color: var(--purple); text-decoration: none; }
.drawer-link:hover, .drawer-link:focus-visible { border-color: #c1b0e1; background: var(--purple-wash); }
.drawer-link b, .drawer-link small { display: block; }
.drawer-link b { font-size: 10.5px; }
.drawer-link small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.drawer-link > span:last-child { flex: none; font-size: 15px; }
.drawer-link-empty { padding: 8px 10px; color: var(--muted); font-size: 10px; }
.field-link { color: var(--purple); font-size: 10px; word-break: break-word; }
.field-link:hover { text-decoration: underline; }
.drawer-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding: 15px 8px 0; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; font-weight: 750; }

/* Quote action bar and mobile navigation */
.stickybar { position: fixed; z-index: 20; left: 50%; bottom: 21px; display: grid; grid-template-columns: auto auto minmax(155px,1fr); align-items: center; gap: 18px; width: min(535px, calc(100% - 48px)); padding: 11px 12px 11px 16px; transform: translateX(-50%); border: 1px solid #ded8ec; border-radius: 17px; background: rgba(255,255,255,.93); box-shadow: 0 14px 35px rgba(36, 22, 74, .18); backdrop-filter: blur(14px); }
.stickybar small, .stickybar b { display: block; }
.stickybar small { color: var(--muted); font-size: 9px; }
.stickybar b { margin-top: 1px; color: var(--purple); font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sticky-save b { color: var(--lime-deep); }
.stickybar .btn { width: 100%; min-height: 42px; padding-inline: 10px; font-size: 11.5px; }
.tabbar { display: none; }

/* Gate */
.gate { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 12% 5%, rgba(115, 63, 206, .7), transparent 34%), linear-gradient(135deg, #16082f, #3c1a72 58%, #1f0c42); }
.gate-card { display: grid; grid-template-columns: .95fr 1.05fr; width: min(860px, 100%); overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 25px; background: var(--surface); box-shadow: 0 36px 85px rgba(8, 2, 22, .37); }
.gate-story { display: flex; flex-direction: column; justify-content: space-between; min-height: 500px; padding: 37px 34px; background: radial-gradient(circle at 15% 15%, rgba(164, 218, 83, .18), transparent 25%), linear-gradient(155deg, #241047, #422082); color: #fff; }
.brand-lockup-large { align-items: flex-start; }
.brand-lockup-large .brand-symbol { width: 45px; height: 45px; border-radius: 15px; }
.brand-lockup-large strong { font-size: 21px; }
.gate-story-copy { max-width: 310px; margin: 56px 0 auto; }
.gate-story-copy h1 { margin-top: 12px; font-size: clamp(32px, 4vw, 46px); }
.gate-story-copy p { margin: 15px 0 0; color: #d3c8ea; font-size: 14px; line-height: 1.55; }
.gate-proof { display: flex; align-items: center; gap: 11px; max-width: 330px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); }
.proof-mark { width: 32px; height: 32px; display: grid; flex: none; place-items: center; border-radius: 10px; background: rgba(163,227,79,.16); color: #a3e34f; }
.proof-mark svg { width: 18px; height: 18px; }
.gate-proof strong, .gate-proof small { display: block; }
.gate-proof strong { font-size: 11.5px; }
.gate-proof small { margin-top: 3px; color: #c1b6d9; font-size: 10.5px; }
.gate-form-wrap { align-self: center; padding: 42px 48px; }
.access-switcher { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 24px; padding: 4px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
.access-mode { min-height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 800; }
.access-mode:hover { color: var(--ink); }
.access-mode.active { background: var(--surface); color: var(--purple); box-shadow: 0 2px 7px rgba(36, 24, 73, .09); }
.access-panel.hidden { display: none; }
.gate-form-head h2 { margin-top: 8px; font-size: 25px; }
.gate-form-head p { margin: 7px 0 23px; color: var(--muted); font-size: 12.5px; }
.gate-form-wrap label + label { margin-top: 15px; }
.gate-form-wrap input { min-height: 46px; }
.gate-footnote { display: block; margin-top: 17px; color: var(--faint); font-size: 10px; text-align: center; }

/* Desktop frame details */
@media (min-width: 920px) {
  .drawer { display: none !important; }
}

/* Tablet / phone */
@media (max-width: 919px) {
  body { background: var(--canvas); }
  .app-shell { display: block; width: 100%; min-height: 100vh; margin: 0; overflow: visible; border: 0; border-radius: 0; box-shadow: none; }
  .sidebar { display: none; }
  .apphead { padding: 13px 16px 16px; border-radius: 0 0 18px 18px; }
  .topbar { min-height: 42px; gap: 9px; }
  .menu-btn { display: inline-grid !important; }
  .mobile-wordmark { display: block; }
  .topbar-context, .head-pack { display: none; }
  .topbar-actions { gap: 0; }
  .ai-pill { min-height: 40px; padding: 8px 10px; border-radius: 12px; }
  .ai-pill span { display: none; }
  .ai-pill i { display: none; }
  #head-ai.head-ai-new { min-width: 58px; justify-content: center; gap: 5px; }
  #head-ai.head-ai-new span { display: inline; }
  #head-ai.head-ai-new svg { width: 16px; height: 16px; }
  .header-context { align-items: flex-start; margin-top: 24px; }
  .header-context h1 { margin-top: 7px; font-size: 30px; }
  .header-context p { margin-top: 8px; font-size: 12px; }
  .header-meta { display: block; }
  .offer-update { padding: 7px 8px; }
  .offer-update svg { width: 15px; height: 15px; }
  .offer-update small { font-size: 9px; }
  .offer-update b { font-size: 10.5px; }
  .header-signout { display: none; }
  .workspace { padding: 18px 14px 136px; }
  .workspace-heading-actions { flex-direction: column; align-items: flex-end; gap: 6px; }
  .offer-strip { min-height: 36px; padding: 6px 8px; }
  .offer-strip svg { width: 14px; height: 14px; }
  .offer-strip small { font-size: 8px; }
  .offer-strip b { font-size: 9.5px; }
  .workspace-heading h2 { font-size: 24px; }
  .workspace-heading p { font-size: 12px; }
  .steps { max-width: none; }
  .steps li { grid-template-columns: 28px auto; column-gap: 6px; }
  .steps li:not(:last-child)::after { left: 39px; right: 7px; }
  .steps li span { width: 28px; height: 28px; font-size: 11px; }
  .steps li b { padding-right: 4px; font-size: 10.5px; }
  .steps li small { display: none; }
  .builder-layout, .content-grid, .admin-grid { display: block; }
  .builder-main { display: grid; gap: 13px; }
  .quote-rail { position: static; display: grid; gap: 13px; margin-top: 13px; }
  .rail-heading { padding-top: 2px; }
  .panel, .reco-card { border-radius: 18px; }
  .panel { padding: 17px 14px; }
  .stage-panel { padding: 17px 14px 15px; }
  .panel-heading { grid-template-columns: 30px minmax(0,1fr) auto; gap: 8px; margin-bottom: 14px; }
  .section-index { width: 28px; height: 28px; border-radius: 9px; font-size: 10px; }
  .panel-heading h2 { font-size: 15px; }
  .panel-hint { font-size: 9.5px; }
  .admin-catalog-state { grid-column: 2 / -1; justify-content: flex-start; margin-top: -8px; }
  .admin-catalog-state .panel-hint { text-align: left; }
  .service-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .service-tile { min-height: 78px; display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 10px; }
  .service-tile > span:nth-child(2) { align-self: center; }
  .service-icon { width: 30px; height: 30px; border-radius: 9px; }
  .service-icon svg { width: 17px; height: 17px; }
  .service-tile small { margin-top: 2px; font-size: 9px; }
  .tile-arrow { align-self: center; font-size: 15px; }
  .service-tile b { font-size: 12.5px; }
  .service-tile small { font-size: 10px; }
  .customer-grid, .customize-grid { grid-template-columns: 1fr; gap: 12px; }
  .segmented { min-height: 46px; }
  .segment { min-height: 38px; font-size: 11px; }
  .coverage-pills { gap: 5px; }
  .coverage-pill { min-height: 52px; }
  .option-row { min-height: 55px; padding: 8px; }
  .option-copy b { font-size: 11px; }
  .option-row em { padding: 4px 6px; font-size: 9.5px; }
  .option-info { display: none; }
  .plan-row { grid-template-columns: 22px minmax(0,1fr) auto; padding: 11px 9px; }
  .plan-title { font-size: 11.5px; }
  .plan-price b { font-size: 16px; }
  .plan-row.recommended::before { left: 38px; }
  .reco-card { padding: 16px 14px; }
  .reco-body-head h3 { max-width: 62%; font-size: 16px; }
  .reco-total-price b { font-size: 28px; }
  .quote-panel { padding: 16px 14px; }
  .plan-details { gap: 9px; margin-top: 11px; padding-top: 11px; }
  .plan-details li { font-size: 9.5px; }
  .quick-actions { gap: 6px; }
  .quick-action { padding: 9px 8px; }
  .quick-action b { font-size: 10px; }
  .quick-action small { font-size: 8.5px; }
  .reference-list, .link-list { grid-template-columns: 1fr; }
  .content-view { gap: 14px; }
  .shs-layout { display: block; }
  .shs-side { position: static; margin-top: 13px; }
  .shs-facts-grid { grid-template-columns: 1fr; gap: 11px; }
  .shs-rule-block { padding: 0; }
  .shs-needs-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; }
  .shs-counter-card { display: block; padding: 8px 6px; }
  .shs-counter-card .control-label > span { font-size: 9px; }
  .shs-counter-card .control-label small { font-size: 8px; }
  .shs-needs-grid .stepper { width: 100%; margin-top: 7px; grid-template-columns: 26px 1fr 26px; }
  .shs-needs-grid .stepper button { width: 26px; height: 28px; }
  .shs-plan-card { padding: 12px; }
  .shs-plan-card-main > strong { font-size: 18px; }
  .shs-plan-meta span { font-size: 8.5px; }
  .equipment-grid { grid-template-columns: 1fr; gap: 12px; }
  .external-action { align-self: flex-end; }
  body:has(#view-ai:not(.hidden)) { overflow: hidden; }
  .app-shell:has(#view-ai:not(.hidden)) { height: 100vh; min-height: 100vh; height: 100dvh; min-height: 100dvh; }
  .app-shell:has(#view-ai:not(.hidden)) .app-stage { position: relative; display: flex; height: 100vh; min-height: 0; height: 100dvh; flex-direction: column; overflow: hidden; }
  .app-shell:has(#view-ai:not(.hidden)) .apphead { position: absolute; top: 0; right: 0; left: 0; z-index: 22; transition: transform .24s ease, opacity .24s ease; }
  .app-shell:has(#view-ai:not(.hidden)) .workspace { display: flex; min-height: 0; flex: 1; flex-direction: column; padding: 83px 12px calc(75px + env(safe-area-inset-bottom)); overflow: hidden; transition: padding-top .24s ease; }
  .app-shell:has(#view-ai:not(.hidden)) .app-stage.ai-scrolled .apphead { transform: translateY(-100%); opacity: 0; pointer-events: none; }
  .app-shell:has(#view-ai:not(.hidden)) .app-stage.ai-scrolled .workspace { padding-top: 12px; }
  #view-ai:not(.hidden) { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: 10px; }
  #view-ai:not(.hidden) .workspace-heading { display: none; }
  #view-ai:not(.hidden) .workspace-heading > div:first-child { display: none; }
  #view-ai:not(.hidden) .workspace-heading h2 { margin-top: 2px; font-size: 20px; }
  #view-ai:not(.hidden) .workspace-heading p, #view-ai:not(.hidden) .grounded-pill { display: none; }
  #view-ai:not(.hidden) .workspace-heading-actions { flex-direction: row; align-items: center; }
  #view-ai:not(.hidden) .resetbtn { min-height: 35px; padding: 7px 9px; border-radius: 10px; font-size: 10px; }
  #view-ai:not(.hidden) .resetbtn svg { width: 14px; height: 14px; }
  #view-ai:not(.hidden) .chat-panel { display: flex; min-height: 0; flex: 1; flex-direction: column; padding: 10px 2px 0; border-color: transparent; border-radius: 0; background: transparent; box-shadow: none; overflow: hidden; }
  #view-ai:not(.hidden) .chat-intro { max-height: 48px; flex: none; gap: 8px; overflow: hidden; transition: max-height .2s ease, opacity .2s ease, margin .2s ease, transform .2s ease; }
  .app-stage.ai-scrolled #view-ai:not(.hidden) .chat-intro { max-height: 0; margin: 0; opacity: 0; transform: translateY(-6px); }
  #view-ai:not(.hidden) .chat-intro h2 { font-size: 13px; }
  #view-ai:not(.hidden) .copilot-avatar { width: 34px; height: 34px; border-radius: 10px; }
  #view-ai:not(.hidden) .copilot-avatar svg { width: 19px; height: 19px; }
  #view-ai:not(.hidden) .chat { min-height: 0; max-height: none; flex: 1; gap: 6px; margin-top: 8px; padding: 2px 1px 120px; scroll-padding-bottom: 120px; }
  #view-ai:not(.hidden) .msg { max-width: 80%; padding: 8px 10px; border-radius: 12px; font-size: 11px; line-height: 1.35; }
  #view-ai:not(.hidden) .msg .who { margin-bottom: 2px; font-size: 8px; letter-spacing: .08em; }
  #view-ai:not(.hidden) .chips-row { position: fixed; right: 12px; bottom: calc(136px + env(safe-area-inset-bottom)); left: 12px; z-index: 20; display: flex; max-height: 44px; gap: 5px; margin: 0; padding: 3px 0; background: linear-gradient(180deg, rgba(246,245,250,0), rgba(246,245,250,.96) 40%); }
  #view-ai:not(.hidden) .qchip { min-height: 40px; padding: 8px 10px; border-radius: 11px; font-size: 9.5px; line-height: 1.15; white-space: nowrap; }
  #view-ai:not(.hidden) .chat-status, #view-ai:not(.hidden) .source-note { display: none; }
  #view-ai:not(.hidden) .chat-row { position: fixed; right: 12px; bottom: calc(64px + env(safe-area-inset-bottom)); left: 12px; z-index: 21; display: grid; min-height: 59px; flex: none; margin: 0; padding: 7px; border: 1px solid #d8cfee; border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: 0 10px 28px rgba(41, 18, 88, .16); backdrop-filter: blur(14px); }
  #view-ai:not(.hidden) .chat-row input { min-height: 43px; }
  #view-ai:not(.hidden) .chat-row .btn { min-height: 43px; }
  #view-ai:not(.hidden) .chat-status { flex: none; margin-top: 6px; }
  #view-ai:not(.hidden) .source-note { flex: none; margin-top: 8px; padding: 7px 8px; font-size: 9px; }
  .content-grid > .panel + .panel { margin-top: 13px; }
  .admin-grid > .panel + .panel { margin-top: 13px; }
  .admin-card .panel-heading { margin-bottom: 14px; }
  .plan-edit-grid, .plan-add-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .plan-add-grid .plan-note-field { grid-column: 1 / -1; }
  .disc-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .stickybar { left: 10px; bottom: 75px; grid-template-columns: auto auto minmax(0,1fr); gap: 10px; width: calc(100% - 20px); padding: 9px 9px 9px 12px; transform: none; border-radius: 15px; }
  .stickybar small { font-size: 8.5px; }
  .stickybar b { font-size: 16px; }
  .stickybar .btn { min-height: 42px; font-size: 10.5px; }
  .tabbar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 19; display: flex; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.96); box-shadow: 0 -5px 20px rgba(36, 25, 72, .07); backdrop-filter: blur(14px); }
  .tabbar .tab { min-height: 51px; display: grid; flex: 1; place-items: center; gap: 2px; padding: 5px 2px; border: 0; border-radius: 11px; background: none; color: var(--faint); }
  .tabbar .tab svg { width: 20px; height: 20px; }
  .tabbar .tab small { font-size: 9.5px; font-weight: 800; }
  .tabbar .tab.active { color: var(--purple); background: var(--purple-soft); }
  .gate { padding: 14px; }
  .gate-card { display: block; max-height: calc(100vh - 28px); overflow: auto; border-radius: 21px; }
  .gate-story { min-height: auto; padding: 24px 21px; }
  .gate-story-copy { margin: 34px 0 0; }
  .gate-story-copy h1 { font-size: 31px; }
  .gate-story-copy p { margin-top: 11px; font-size: 12px; }
  .gate-proof { margin-top: 29px; padding-top: 15px; }
  .gate-form-wrap { padding: 25px 21px 24px; }
  .access-switcher { margin-bottom: 20px; }
  .gate-form-head h2 { font-size: 23px; }
  .gate-form-head p { margin-bottom: 18px; }
}

@media (max-width: 420px) {
  .offer-update { max-width: 111px; }
  .offer-update b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .panel-heading { grid-template-columns: 28px minmax(0,1fr); }
  .panel-hint, .match-count { grid-column: 2; justify-self: start; margin-top: -8px; }
  .reco-label-row { align-items: flex-start; }
  .reco-stats { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .reco-stat b { font-size: 13px; }
  .reco-stat small { font-size: 8px; }
  .stickybar { gap: 7px; }
  .stickybar .btn { padding-inline: 5px; font-size: 9.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Mobile viewport hardening */
@media (max-width: 919px) {
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
  .app-shell { position: relative; isolation: isolate; overflow: visible; }
  .stickybar { position: fixed !important; }
  .tabbar { position: fixed !important; transform: translateZ(0); }
  .gate { min-height: 100dvh; align-items: flex-start; overflow-y: auto; padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)); }
  .gate-card { width: 100%; max-height: calc(100dvh - max(20px, env(safe-area-inset-top) + env(safe-area-inset-bottom))); margin: auto 0; overflow-y: auto; }
  .gate-story { min-height: 0; padding: 20px 18px; }
  .gate-story-copy { margin: 22px 0 0; }
  .gate-proof { margin-top: 20px; padding-top: 13px; }
  .gate-form-wrap { padding: 20px 18px 22px; }
}

@media (max-width: 420px) {
  .gate-story-copy h1 { font-size: 27px; }
  .gate-story-copy p { font-size: 11px; }
  .gate-proof small { font-size: 9.5px; }
  .gate-form-wrap { padding-inline: 16px; }
}

/* Copilot mobile: one reliable scroll surface and zoom-safe form controls */
@media (max-width: 919px) {
  html { -webkit-text-size-adjust: 100%; }
  input, select, textarea { font-size: 16px; }

  body:has(#view-ai:not(.hidden)) { overflow: hidden; }
  .app-shell:has(#view-ai:not(.hidden)) .app-stage {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }
  .app-shell:has(#view-ai:not(.hidden)) .workspace {
    height: auto;
    min-height: 0;
    flex: 1 1 0;
    overflow: hidden;
  }
  #view-ai:not(.hidden) {
    height: auto;
    min-height: 0;
    flex: 1 1 0;
    overflow: hidden;
  }
  #view-ai:not(.hidden) .chat-panel {
    height: auto;
    min-height: 0;
    flex: 1 1 0;
    overflow: hidden;
  }
  #view-ai:not(.hidden) .chat {
    height: 0;
    min-height: 0;
    max-height: none;
    flex: 1 1 0;
    overflow-x: hidden;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    scroll-padding-bottom: 120px;
    touch-action: pan-y;
  }
  #view-ai:not(.hidden) .chat-row input { font-size: 16px; }
  #view-ai:not(.hidden) .chat-row,
  #view-ai:not(.hidden) .chips-row,
  .tabbar { transform: translateZ(0); }
  .tabbar { position: fixed !important; right: 0 !important; bottom: 0 !important; left: 0 !important; z-index: 40; }
}
