:root {
  --bg: #f5f8fc;
  --text: #142033;
  --muted: #5f6f85;
  --card: #ffffff;
  --accent: #3390ec;
  --accent-dark: #1d74d8;
  --line: #dce6f2;
  --soft: #e8f3ff;
  --warning: #fff5d8;
  --danger: #ffe8dd;
  --shadow: 0 20px 60px rgba(20, 32, 51, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); line-height: 1.55; }
.auth-body { min-height: 100vh; background: radial-gradient(circle at top left, #e8f3ff 0, transparent 34%), var(--bg); }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(51, 144, 236, .28); outline-offset: 3px; }
button, input, select, textarea { font: inherit; }
.portal-shell { min-height: 100vh; display: grid; grid-template-columns: 280px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 26px; border-right: 1px solid var(--line); background: rgba(255,255,255,.5); display: flex; flex-direction: column; gap: 26px; }
.brand { display: flex; gap: 12px; align-items: center; }
.brand-mark { width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; background: var(--accent); color: white; font-weight: 950; letter-spacing: -.06em; }
.brand strong { display: block; font-size: 1.25rem; letter-spacing: -.05em; }
.brand small, .muted, .fine-print { color: var(--muted); }
.side-nav { display: grid; gap: 8px; }
.side-nav a, .nav-button { padding: 11px 13px; border-radius: 14px; color: var(--muted); font-weight: 800; text-align: left; }
.nav-button { border: 0; background: transparent; cursor: pointer; }
.side-nav a:hover, .nav-button:hover { color: var(--accent); background: var(--soft); }
.side-nav a.disabled-link { opacity: .35; pointer-events: none; }
.sidebar-card, .sidebar-account, .section-card, .login-card, .metric-card, .status-tile, .value-card, .plan-card, .consent-box { background: var(--card); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.sidebar-card { margin-top: auto; padding: 18px; font-size: .93rem; }
body:not(.is-authenticated) .sidebar-account { display: none; }
.sidebar-account { padding: 16px; display: grid; gap: 8px; }
.sidebar-account strong { display: block; line-height: 1.15; }
.sidebar-account small { color: var(--muted); overflow-wrap: anywhere; }
.sidebar-account .account-menu { width: 100%; }
.sidebar-account .account-menu summary { width: 100%; margin-left: 0; }
.sidebar-account .account-menu { position: relative; }
.sidebar-account .account-menu::after { content: ''; display: none; position: absolute; left: calc(100% - 8px); top: -90px; width: 54px; height: calc(100% + 180px); z-index: 19; }
.sidebar-account .account-menu-card { display: none; position: absolute; left: calc(100% + 2px); bottom: -22px; width: 210px; padding: 8px; z-index: 20; }
.sidebar-account .account-menu:hover::after,
.sidebar-account .account-menu.is-open::after { display: block; }
.sidebar-account .account-menu:hover .account-menu-card,
.sidebar-account .account-menu:focus-within .account-menu-card,
.sidebar-account .account-menu.is-open .account-menu-card { display: grid; }
.sidebar-account .account-menu-card .nav-button { width: 100%; }
.main-content { padding: 32px; display: grid; gap: 22px; align-content: start; }
.auth-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 44px; }
.auth-shell.narrow { width: min(820px, calc(100% - 40px)); }
.auth-brand { margin-bottom: 24px; }
.signup-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: 22px; align-items: start; }
.signup-hero { padding: 34px; background: linear-gradient(135deg, #ffffff 0%, #e8f3ff 100%); }
.signup-card { padding: 28px; }
.plan-summary { border: 1px solid var(--line); border-radius: 22px; padding: 18px; margin-bottom: 18px; background: #fbfdff; }
.process-list, .status-steps { display: grid; gap: 12px; margin-top: 22px; }
.process-list div, .status-steps div { border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 16px; display: grid; gap: 4px; }
.process-list span, .status-steps span { color: var(--muted); }
.status-steps .done { border-color: #cfe4ff; background: var(--soft); }
.status-steps .active { border-color: #edd58a; background: var(--warning); }
.return-card { padding: 34px; }
.checkbox-label { grid-template-columns: auto 1fr; align-items: start; font-weight: 700; }
.checkbox-label input { width: auto; margin-top: 5px; }
.login-card, .hero-panel { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: center; }
.login-card, .section-card { padding: 30px; }
.account-menu { width: 100%; }
.account-menu summary { list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu-card { margin-top: 12px; display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: none; }
.account-menu-card p { margin: 0; }
.compact-form { gap: 10px; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 950; margin: 0 0 10px; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.045em; margin: 0; }
h1 { font-size: clamp(2.25rem, 5vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.8rem); }
h3 { font-size: 1.25rem; }
.login-form, .support-form { display: grid; gap: 12px; }
.onboarding-grid { grid-template-columns: repeat(2, 1fr); }
.onboarding-grid label:nth-of-type(n+5), .onboarding-grid button, .onboarding-grid .fine-print, .onboarding-grid .form-section-heading { grid-column: 1 / -1; }
.form-section-heading { margin-top: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: #fbfdff; }
.form-section-heading h3 { margin-bottom: 8px; }
.form-section-heading p:last-child { margin-bottom: 0; }
.guided-onboarding { margin-bottom: 22px; padding: 20px; border: 1px solid #cfe4ff; border-radius: 24px; background: linear-gradient(135deg, #fbfdff 0%, #e8f3ff 100%); }
.guided-chat-header { display: flex; justify-content: space-between; gap: 18px; align-items: start; margin-bottom: 16px; }
.guided-chat-header h3, .guided-summary h3 { margin-bottom: 8px; }
.guided-progress { display: grid; gap: 8px; margin-bottom: 16px; }
.guided-progress-top { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-weight: 900; }
.guided-progress-track { height: 12px; border-radius: 999px; background: #dcecff; overflow: hidden; }
.guided-progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .2s ease; }
.guided-chat-body { display: grid; gap: 12px; }
.guided-bubble { max-width: 760px; padding: 15px 16px; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.guided-answer-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.guided-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.guided-option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.guided-option-grid .button { border-color: #cfe4ff; white-space: normal; min-height: 48px; }
.guided-yes-no { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.guided-multi { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.guided-multi .checkbox-line { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 12px; border: 1px solid #cfe4ff; border-radius: 14px; background: #fff; font-weight: 850; line-height: 1.25; }
.guided-multi .checkbox-line input { width: 18px; min-width: 18px; height: 18px; margin: 1px 0 0; padding: 0; }
.guided-multi .button, .guided-multi input[name="guidedOther"] { grid-column: 1 / -1; }
.guided-service-scope { display: grid; gap: 10px; }
.guided-selected-services { display: flex; flex-wrap: wrap; gap: 8px; min-height: 42px; align-items: center; padding: 10px; border: 1px solid #cfe4ff; border-radius: 16px; background: #fff; }
.guided-selected-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 7px 10px; background: var(--soft); color: var(--accent-dark); font-weight: 900; font-size: .9rem; }
.guided-selected-empty { color: var(--muted); font-weight: 800; }
.guided-multi-dropdown { position: relative; }
.guided-multi-dropdown summary { list-style: none; cursor: pointer; padding: 13px 14px; border: 1px solid #cfe4ff; border-radius: 16px; background: #fff; font-weight: 950; }
.guided-multi-dropdown summary::-webkit-details-marker { display: none; }
.guided-multi-dropdown summary::after { content: '▾'; float: right; color: var(--accent); }
.guided-multi-dropdown[open] summary::after { content: '▴'; }
.guided-multi-menu { margin-top: 8px; max-height: 310px; overflow: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; padding: 10px; border: 1px solid #cfe4ff; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.guided-multi-menu .checkbox-line { display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 13px; background: #fbfdff; font-weight: 850; line-height: 1.25; }
.guided-multi-menu .checkbox-line input { width: 18px; min-width: 18px; height: 18px; margin: 1px 0 0; padding: 0; }
.guided-hours-builder { grid-template-columns: 1fr; }
.guided-days-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 8px; }
.guided-hours-builder .guided-answer-row label { display: grid; gap: 5px; font-weight: 900; color: var(--muted); }
.guided-hours-builder select { min-height: 44px; }
.guided-review-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.guided-review-grid textarea { min-height: 112px; resize: vertical; line-height: 1.35; }
.guided-review-static { display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 15px; padding: 12px 13px; background: #fff; }
.guided-review-static span { color: var(--muted); font-weight: 700; }
.guided-edit-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; border: 0 !important; padding: 0 !important; background: transparent !important; }
.guided-notice { margin: 0; padding: 12px 14px; border-radius: 16px; background: var(--warning); color: #775b00; font-weight: 800; }
.guided-summary { display: grid; gap: 12px; }
.guided-summary ul { margin: 8px 0 0; padding-left: 20px; color: var(--muted); }
.guided-summary > div { border: 1px solid var(--line); border-radius: 18px; padding: 14px; background: #fff; }
label { display: grid; gap: 6px; font-weight: 800; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 15px; padding: 12px 13px; background: #fff; color: var(--text); font-size: 1rem; font-weight: 400; }
.button { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 12px 18px; font-weight: 900; border: 1px solid transparent; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(20, 32, 51, 0.10); }
.primary { background: var(--accent); color: #fff; }
.primary:hover { background: var(--accent-dark); }
.secondary { border-color: var(--line); background: #fff; color: var(--text); }
.ghost { border-color: #cfe4ff; background: var(--soft); color: var(--accent-dark); }
.hidden { display: none !important; }
.hero-panel { padding: 34px; background: linear-gradient(135deg, #ffffff 0%, #e8f3ff 100%); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.status-tile { padding: 26px; display: grid; gap: 8px; justify-items: start; }
.status-tile strong { font-size: 4rem; line-height: 1; letter-spacing: -.08em; }
.pill { display: inline-flex; align-items: center; width: max-content; border-radius: 999px; padding: 7px 11px; background: var(--soft); color: var(--accent-dark); font-weight: 900; font-size: .84rem; }
.warning { background: var(--warning); color: #775b00; }
.danger { background: var(--danger); color: #8a310d; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.metric-card { padding: 22px; }
.metric-card span, .value-card span { color: var(--muted); font-weight: 800; }
.metric-card strong { display: block; font-size: 2rem; letter-spacing: -.05em; }
.section-heading { max-width: 780px; margin-bottom: 22px; }
.split { max-width: none; display: flex; justify-content: space-between; gap: 18px; align-items: start; }
.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.check-item { border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.check-icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 950; background: var(--soft); color: var(--accent); }
.pending .check-icon { background: var(--warning); color: #775b00; }
.blocked .check-icon { background: var(--danger); color: #8a310d; }
.check-item p { margin: 4px 0 0; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 22px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; background: white; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: .84rem; text-transform: uppercase; letter-spacing: .08em; }
tr:last-child td { border-bottom: 0; }
.value-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; }
.value-card { padding: 26px; background: #0f1d2f; color: white; }
.value-card span, .value-card small { color: #bed0e6; }
.value-card strong { display: block; font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -.08em; margin: 10px 0; }
.breakdown { display: grid; gap: 10px; }
.breakdown-row { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan-card { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.plan-card.current { border: 2px solid var(--accent); }
.price { font-size: 2rem; font-weight: 950; letter-spacing: -.05em; }
.plan-card ul { margin: 0; padding-left: 20px; color: var(--muted); }
.consent-box { margin-top: 18px; padding: 20px; background: var(--warning); border-color: #edd58a; }
.cancellation-box summary { cursor: pointer; font-weight: 900; }
.cancellation-box[open] summary { margin-bottom: 10px; }
@media (max-width: 980px) { .portal-shell { grid-template-columns: 1fr; } .sidebar { position: static; height: auto; } .metric-grid, .checklist, .plan-grid, .login-card, .hero-panel, .value-layout, .signup-layout, .onboarding-grid, .guided-answer-row { grid-template-columns: 1fr; } .account-menu { width: 100%; } .sidebar-account .account-menu-card { position: static; width: 100%; margin-top: 8px; } .main-content { padding: 20px; } .split, .guided-chat-header { display: grid; } }
.guided-review-card { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px; background: #fff; }
.guided-review-card-top { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.guided-review-card-top strong { line-height: 1.2; }
.guided-review-value { color: var(--muted); font-weight: 500; font-size: .94rem; line-height: 1.42; overflow-wrap: anywhere; }
.guided-pencil { border: 1px solid #cfe4ff; background: var(--soft); color: var(--accent-dark); border-radius: 999px; padding: 5px 9px; font-size: .78rem; font-weight: 950; cursor: pointer; white-space: nowrap; }
.guided-pencil:hover { background: #dcecff; }
.guided-review-value input, .guided-review-value select, .guided-review-value textarea { margin-top: 2px; font-size: 1rem; font-weight: 400; }
.guided-review-value textarea { min-height: 120px; }
.integration-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.integration-meta .ghost { background: #f7faf7; color: var(--muted); border: 1px solid var(--line); }
.fulfillment-token-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: end; margin-top: 18px; }
.fulfillment-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 22px; align-items: start; }
.fulfillment-account-list { display: grid; gap: 10px; }
.fulfillment-account { width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 18px; padding: 14px; background: #fff; cursor: pointer; display: grid; gap: 3px; color: var(--text); }
.fulfillment-account:hover, .fulfillment-account.is-selected { border-color: #cfe4ff; background: var(--soft); }
.fulfillment-account span, .fulfillment-account small { color: var(--muted); }
.fulfillment-detail { display: grid; gap: 18px; }
.fulfillment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.fulfillment-form { margin-bottom: 22px; }
.fulfillment-checks { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 14px 0; }
.fulfillment-json { max-height: 420px; overflow: auto; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: #0f1d2f; color: #e8f3ff; font-size: .84rem; white-space: pre-wrap; }
.danger-text { color: #8a310d !important; font-weight: 900; }
@media (max-width: 980px) { .fulfillment-token-row, .fulfillment-layout, .fulfillment-grid { grid-template-columns: 1fr; } }
.operator-panel { display: grid; grid-template-columns: 1.15fr .9fr .9fr; gap: 16px; }
.operator-card { border: 1px solid var(--line); border-radius: 24px; padding: 22px; background: #fff; display: grid; gap: 10px; align-content: start; }
.operator-card.primary-card { background: linear-gradient(135deg, #ffffff 0%, #e8f3ff 100%); border-color: #cfe4ff; }
.operator-label { color: var(--accent); text-transform: uppercase; letter-spacing: .11em; font-size: .72rem; font-weight: 950; }
.operator-card h3 { font-size: 1.45rem; }
.operator-card p { margin: 0; color: var(--muted); }
.plain-list { margin: 0; padding-left: 19px; color: var(--muted); display: grid; gap: 8px; }
.status-tile { background: linear-gradient(180deg, #0f1d2f 0%, #123a66 100%); color: #fff; border-color: #24476f; }
.status-tile small { color: #bed0e6; }
.status-tile .pill { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.18); }
.metric-card strong { font-size: clamp(1.35rem, 2.2vw, 2rem); overflow-wrap: anywhere; }
.check-item.pending { border-color: #edd58a; background: #fffdf5; }
.check-item.blocked { border-color: #f0c5b4; background: #fff8f4; }
@media (max-width: 980px) { .operator-panel { grid-template-columns: 1fr; } }

/* Lead inbox polish: explicit columns + phone-sized cards */
.lead-subdetail { display: block; margin-top: 4px; color: var(--muted); font-size: .92rem; }
.lead-status-select { margin-top: 8px; min-width: 150px; }
@media (max-width: 820px) {
  #leads .table-wrap { border: 0; overflow: visible; }
  #leads table { min-width: 0; width: 100%; background: transparent; }
  #leads thead { display: none; }
  #leads tbody { display: grid; gap: 14px; }
  #leads tr { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
  #leads td { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 0; border: 0; min-width: 0; overflow-wrap: anywhere; }
  #leads td::before { content: attr(data-label); color: var(--muted); font-weight: 950; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
  #leads .lead-status-select { width: 100%; min-width: 0; }
}
@media (max-width: 460px) {
  #leads td { grid-template-columns: 1fr; gap: 3px; }
}

/* Dashboard polish: outcome-focused, less setup-heavy */
.dashboard-hero { grid-template-columns: 1fr; background: linear-gradient(135deg, #ffffff 0%, #f4f9ff 52%, #e8f3ff 100%); border-color: #d5e6d9; }
.dashboard-hero h2 { max-width: 820px; }
.dashboard-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.dashboard-meta span { display: inline-flex; align-items: center; border: 1px solid #cfe4ff; border-radius: 999px; padding: 7px 11px; background: rgba(255,255,255,.72); color: var(--accent-dark); font-weight: 900; font-size: .9rem; }
.metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-card { padding: 22px; display: grid; gap: 7px; border-radius: 24px; box-shadow: 0 14px 38px rgba(20, 32, 51, .06); }
.metric-card strong { font-size: clamp(2rem, 4vw, 3.2rem); color: var(--text); }
.metric-card small { color: var(--muted); line-height: 1.35; }
@media (max-width: 1180px) { .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .metric-grid { grid-template-columns: 1fr; } .dashboard-meta span { width: 100%; justify-content: center; } }

/* Dashboard polish v2: no horizontal lead table, no internal-looking pills */
.portal-shell { max-width: 100vw; overflow-x: hidden; }
.main-content, .section-card, .hero-panel { min-width: 0; }
.dashboard-hero { display: block; }
.dashboard-meta { display: none !important; }
.metric-grid { align-items: stretch; }
.metric-card { border-radius: 26px; background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%); }
.metric-card span { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 950; }
.metric-card strong { line-height: .95; }
.lead-card-list { display: grid; gap: 14px; width: 100%; }
.lead-card { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 12px 34px rgba(20, 32, 51, .06); min-width: 0; }
.lead-card-top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.lead-card-top h3 { margin-top: 3px; }
.lead-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lead-card-grid > div { display: grid; align-content: start; gap: 4px; min-width: 0; overflow-wrap: anywhere; padding: 12px; border-radius: 16px; background: #fbfdff; border: 1px solid #e5edf7; }
.lead-card-grid p { margin: 4px 0 0; color: var(--muted); }
.lead-next-step { grid-column: span 2; }
.lead-label { color: var(--muted); font-weight: 950; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }
.lead-empty { padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
@media (max-width: 920px) { .lead-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lead-next-step { grid-column: span 1; } }
@media (max-width: 620px) { .lead-card-top { display: grid; } .lead-card-grid { grid-template-columns: 1fr; } .lead-card { padding: 14px; } }

/* Setup wizard mobile fixes */
.setup-mobile-note { display: none; }
@media (max-width: 700px) {
  body { overflow-x: hidden; }
  .portal-shell { display: block; }
  .sidebar { padding: 16px; gap: 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand-mark { width: 38px; height: 38px; border-radius: 13px; }
  .brand strong { font-size: 1.08rem; }
  .side-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .side-nav a, .nav-button { text-align: center; padding: 10px 9px; font-size: .92rem; }
  .sidebar-card { display: none; }
  .main-content { padding: 14px; gap: 14px; }
  .login-card, .section-card, .hero-panel { padding: 18px; border-radius: 22px; }
  .section-heading { margin-bottom: 16px; }
  h1 { font-size: clamp(2rem, 11vw, 3rem); }
  h2 { font-size: clamp(1.45rem, 8vw, 2.15rem); }
  .guided-onboarding { padding: 14px; border-radius: 20px; margin-bottom: 14px; }
  .guided-bubble { max-width: 100%; padding: 13px; }
  .guided-progress-top { display: grid; gap: 2px; }
  .guided-option-grid, .guided-yes-no, .guided-multi, .guided-multi-menu, .guided-days-grid { grid-template-columns: 1fr; }
  .guided-actions .button, .guided-option-grid .button, .guided-answer-row .button, .actions .button { width: 100%; }
  .guided-multi-dropdown summary, input, select, textarea { font-size: 16px; }
  .guided-review-card-top { display: grid; }
  .guided-pencil { width: max-content; }
  .onboarding-grid { grid-template-columns: 1fr; }
  .checkbox-line { display: flex; align-items: flex-start; gap: 10px; }
  .checkbox-line input { width: auto; min-width: 18px; margin-top: 4px; }
}
@media (max-width: 380px) {
  .side-nav { grid-template-columns: 1fr; }
  .main-content { padding: 10px; }
  .login-card, .section-card, .hero-panel { padding: 15px; }
}

/* ProspectPull blue brand refresh */
.brand-mark {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #3390ec 0%, #1d74d8 100%);
  box-shadow: 0 12px 28px rgba(51, 144, 236, .28);
}
.brand-mark::before {
  content: '';
  position: absolute;
  inset: 9px;
  border: 2px solid rgba(255,255,255,.42);
  border-right-color: transparent;
  border-radius: 999px;
}
.brand-mark::after {
  content: '';
  position: absolute;
  right: 9px;
  top: 15px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
}
.primary { box-shadow: 0 12px 28px rgba(51, 144, 236, .22); }
.plan-card.current, .price-card.featured { box-shadow: 0 24px 70px rgba(51, 144, 236, .16); }

/* Guided setup polish */
.guided-selected-option {
  border-color: rgba(51, 144, 236, .55);
  background: #eef6ff;
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(51, 144, 236, .18);
}
.guided-contact-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
.guided-contact-pair label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
}
.guided-contact-pair .button {
  grid-column: 1 / -1;
  justify-self: start;
}
.guided-review-note {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}
@media (max-width: 640px) {
  .guided-contact-pair { grid-template-columns: 1fr; }
}
