/* ══════════════════════════════════════════════════════════════════════
   DEMO NAV
   ══════════════════════════════════════════════════════════════════════ */
.demo-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2rem;
}

.demo-nav-brand {
    color: rgba(212, 184, 92, 0.8);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: color 0.15s;
}

.demo-nav-brand:hover { color: #d4b85c; }

.demo-nav-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.15s;
}

.demo-nav-links a:hover { color: rgba(255,255,255,0.8); }

/* ══════════════════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════════════════ */
.hero {
    background: linear-gradient(165deg, #1e2d47 0%, #2a3a5c 40%, #354a6e 100%);
    padding: 5rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 600px 300px at 20% 50%, rgba(184,153,62,0.08) 0%, transparent 100%),
        radial-gradient(ellipse 400px 400px at 80% 30%, rgba(184,153,62,0.05) 0%, transparent 100%);
    pointer-events: none;
}

.hero-inner {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #b8993e;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.hero-headline {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.15;
    color: #e8e4dc;
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
}

.hero-headline em {
    font-style: italic;
    color: #d4b85c;
}

.hero-sub {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #94a3b8;
    max-width: 640px;
    margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════════════
   PIPELINE SECTION
   ══════════════════════════════════════════════════════════════════════ */
.pipeline-section {
    background: var(--bg);
    padding: 3.5rem 2rem 2.5rem;
}

.pipeline-inner {
    max-width: 960px;
    margin: 0 auto;
}

/* Pipeline flow: Filing → AI → App */
.pipeline-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 3rem;
}

.pipeline-node {
    text-align: center;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    flex: 0 1 220px;
    position: relative;
}

.pipeline-node-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.pipeline-node-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.3rem;
}

.pipeline-node-sub {
    font-size: 0.72rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.pipeline-input {
    background: var(--bg-card);
    border: 1px solid var(--border);
}
.pipeline-input .pipeline-node-label { color: var(--text); }

.pipeline-ai {
    background: linear-gradient(135deg, #2a3a5c 0%, #354a6e 100%);
    border: 1px solid rgba(184,153,62,0.3);
    box-shadow: 0 4px 24px rgba(42,58,92,0.15);
}
.pipeline-ai .pipeline-node-icon { filter: grayscale(0); }
.pipeline-ai .pipeline-node-label { color: #d4b85c; }
.pipeline-ai .pipeline-node-sub { color: #94a3b8; }

.pipeline-output {
    background: var(--bg-card);
    border: 1px solid rgba(184,153,62,0.3);
}
.pipeline-output .pipeline-node-label { color: var(--accent); }

.pipeline-arrow {
    font-size: 1.5rem;
    color: var(--border);
    flex-shrink: 0;
    padding: 0 0.75rem;
    font-weight: 300;
}

/* ── Upload Zone ──────────────────────────────────────────────────── */
.upload-zone {
    margin-bottom: 2.5rem;
    border: 2px dashed rgba(184,153,62,0.3);
    border-radius: var(--radius-lg);
    background: rgba(184,153,62,0.02);
    transition: border-color 0.2s, background 0.2s;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: rgba(184,153,62,0.6);
    background: rgba(184,153,62,0.06);
}

.upload-zone.drag-over {
    border-style: solid;
    box-shadow: inset 0 0 20px rgba(184,153,62,0.08);
}

.upload-zone-inner {
    padding: 1.75rem 2rem;
}

.upload-zone-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.upload-icon {
    font-size: 2rem;
    line-height: 1;
    opacity: 0.5;
}

.upload-text {
    flex: 1;
}

.upload-text strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.upload-text span {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.upload-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 0.6rem 1.25rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: background 0.15s;
}

.upload-btn:hover {
    background: var(--accent-dim);
}

.upload-divider {
    text-align: center;
    margin: 1.25rem 0;
    position: relative;
}

.upload-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--border);
}

.upload-divider span {
    position: relative;
    z-index: 1;
    background: var(--bg);
    padding: 0 1rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.upload-examples {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
}

.upload-example {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: all 0.15s;
}

.upload-example:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 12px rgba(184,153,62,0.1);
}

.upload-example .ue-state {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.upload-example .ue-detail {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* ── Build Progress ──────────────────────────────────────────────── */
.build-progress {
    margin-bottom: 2.5rem;
    border: 1px solid rgba(184,153,62,0.25);
    border-radius: var(--radius-lg);
    background: rgba(184,153,62,0.03);
    overflow: hidden;
    animation: fadeSlideDown 0.3s ease;
}

.build-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.25rem;
    background: linear-gradient(135deg, #2a3a5c 0%, #354a6e 100%);
}

.build-product-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #d4b85c;
}

.build-status {
    font-size: 0.72rem;
    color: #94a3b8;
    font-style: italic;
}

.build-status.complete {
    color: #2e8b57;
    font-style: normal;
    font-weight: 600;
}

.build-status.warning {
    color: var(--accent);
    font-style: normal;
    font-weight: 600;
}

.build-status.fail {
    color: #c0392b;
    font-style: normal;
    font-weight: 600;
}

.build-steps {
    padding: 0.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.build-step {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0;
    opacity: 0.35;
    transition: opacity 0.3s;
}

.build-step.active {
    opacity: 1;
}

.build-step.done {
    opacity: 0.7;
}

.bs-num {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.58rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.3s;
}

.build-step.active .bs-num {
    background: var(--accent);
    color: #fff;
    animation: pulse 1s ease infinite;
}

.build-step.done .bs-num {
    background: var(--success);
    color: #fff;
}

.build-step.fail {
    opacity: 0.7;
}

.build-step.fail .bs-num {
    background: #c0392b;
    color: #fff;
}

.build-step.fail .bs-status {
    color: #c0392b;
}

.bs-label {
    font-size: 0.78rem;
    color: var(--text);
    flex: 1;
}

.bs-status {
    font-size: 0.65rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: var(--text-muted);
}

.build-step.done .bs-status {
    color: var(--success);
}

.build-result {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.25rem;
    background: var(--success-bg);
    border-top: 1px solid rgba(46,139,87,0.2);
    animation: fadeSlideDown 0.3s ease;
}

.build-result-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--success);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.build-result-text strong {
    display: block;
    font-size: 0.82rem;
    color: var(--success);
    margin-bottom: 0.1rem;
}

.build-result-text span {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Filing analysis results */
.filing-results {
    padding: 0.75rem 1.25rem;
    animation: fadeSlideDown 0.3s ease;
}

/* ── Builder-first: product identity ── */
.filing-product-identity {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

/* ── Extraction stats — big numbers ── */
.filing-build-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}

.filing-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.filing-stat-num {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.1;
}

.filing-stat-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 600;
}

/* ── Plan tags ── */
.filing-plan-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.3rem;
}

.filing-product-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.filing-plan-tag {
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    background: rgba(42,58,92,0.06);
    border: 1px solid rgba(42,58,92,0.12);
    border-radius: 3px;
    color: var(--navy);
    font-weight: 600;
}

.filing-rider-tag {
    background: rgba(184,153,62,0.08);
    border-color: rgba(184,153,62,0.2);
    color: var(--accent);
}

.filing-duration {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 0.6rem;
    font-style: italic;
}

.btn-see-demo {
    display: block;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, #2a3a5c 0%, #354a6e 100%);
    color: #d4b85c;
    border: none;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.btn-see-demo:hover {
    background: linear-gradient(135deg, #354a6e 0%, #2a3a5c 100%);
    color: #e8d87e;
}

/* ── Diagnostic panel ── */
.filing-diagnostic {
    margin-top: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 6px;
    border-left: 3px solid var(--border);
}

.filing-ready {
    background: var(--success-bg);
    border-left-color: var(--success);
}

.filing-partial {
    background: rgba(184,153,62,0.08);
    border-left-color: var(--accent);
}

.filing-insufficient {
    background: rgba(192,57,43,0.06);
    border-left-color: #c0392b;
}

.filing-error {
    background: rgba(192,57,43,0.06);
    border-left-color: #c0392b;
}

.filing-diag-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.3rem;
}

.filing-diag-status {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.filing-ready .filing-diag-status {
    color: var(--success);
}

.filing-partial .filing-diag-status {
    color: var(--accent);
}

.filing-insufficient .filing-diag-status {
    color: #c0392b;
}

.filing-diag-product {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.filing-diag-message {
    font-size: 0.78rem;
    color: var(--text);
    line-height: 1.4;
    margin: 0;
}

/* ── Caveats — quiet, at the bottom ── */
.filing-gaps {
    margin-top: 0.5rem;
}

.filing-caveats-title {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.filing-gaps ul {
    margin: 0;
    padding: 0 0 0 1.2rem;
}

.filing-gaps li {
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ── Document inventory — collapsible ── */
.filing-inv-details {
    margin-top: 0.5rem;
}

.filing-inv-title {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
}

.filing-inv-title:hover {
    color: var(--text);
}

.filing-doc {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.3rem 0.5rem;
    margin-bottom: 0.15rem;
    border-radius: 3px;
}

.filing-doc-usable {
    border-left: 2px solid var(--success);
}

.filing-doc-unusable {
    border-left: 2px solid var(--text-muted);
    opacity: 0.6;
}

.filing-doc-info {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.filing-doc-info strong {
    font-size: 0.7rem;
    color: var(--text);
}

.filing-doc-type {
    font-size: 0.6rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.filing-doc-detail {
    font-size: 0.62rem;
    color: var(--text-light);
    line-height: 1.3;
}

/* Pipeline outputs grid */
.pipeline-outputs {
    margin-top: 0.5rem;
}

.pipeline-outputs-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.pipeline-output-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.5rem;
}

.pipeline-output-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.15s;
}

.pipeline-output-item:hover {
    border-color: rgba(184,153,62,0.3);
}

.poi-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a3a5c, #354a6e);
    color: #d4b85c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.poi-body strong {
    display: block;
    font-size: 0.82rem;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.poi-body span {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Hero output item — spans full width, elevated */
.pipeline-output-hero {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(42,58,92,0.04) 0%, rgba(184,153,62,0.06) 100%);
    border-color: rgba(184,153,62,0.25);
    padding: 1rem 1.25rem;
}

.pipeline-output-hero strong {
    color: var(--accent) !important;
    font-size: 0.88rem !important;
}

.poi-num-gold {
    background: linear-gradient(135deg, #b8993e, #9a7d2e) !important;
    color: #fff !important;
    font-size: 0.8rem !important;
}

/* ══════════════════════════════════════════════════════════════════════
   ARGUMENT SECTION
   ══════════════════════════════════════════════════════════════════════ */
.argument-section {
    background: linear-gradient(180deg, var(--bg) 0%, #ebe6dc 100%);
    padding: 3rem 2rem 3.5rem;
}

.argument-inner {
    max-width: 900px;
    margin: 0 auto;
}

.argument-headline {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    margin-bottom: 2rem;
    letter-spacing: -0.015em;
}

.argument-block {
    margin-bottom: 2.5rem;
}

.argument-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.argument-col {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
}

.argument-col h4 {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.85rem;
    font-weight: 700;
}

.argument-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.argument-col li {
    font-size: 0.78rem;
    line-height: 1.55;
    padding-left: 1rem;
    position: relative;
}

.argument-col li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

/* "What you're doing now" — muted, feels heavy */
.argument-old {
    background: rgba(42,58,92,0.04);
    border: 1px solid rgba(42,58,92,0.1);
}
.argument-old h4 { color: var(--text-muted); }
.argument-old li { color: var(--text-muted); }
.argument-old li::before { background: var(--border); }

/* "What this replaces it with" — alive, gold accents */
.argument-new {
    background: rgba(184,153,62,0.04);
    border: 1px solid rgba(184,153,62,0.2);
}
.argument-new h4 { color: var(--accent); }
.argument-new li { color: var(--text); }
.argument-new li::before { background: var(--accent); }

/* Kicker */
.argument-kicker {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.argument-kicker p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.argument-kicker p:last-child { margin-bottom: 0; }

.argument-cta-text {
    color: var(--text) !important;
    font-weight: 500;
}

.argument-cta-text strong {
    color: var(--accent);
}

/* ══════════════════════════════════════════════════════════════════════
   DEMO TRANSITION
   ══════════════════════════════════════════════════════════════════════ */
.demo-transition {
    background: var(--bg);
    padding: 2.5rem 2rem;
}

.demo-transition-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.demo-transition-line {
    width: 1px;
    height: 32px;
    background: linear-gradient(180deg, transparent, var(--accent), transparent);
}

.demo-transition-badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    background: rgba(184,153,62,0.08);
    border: 1px solid rgba(184,153,62,0.25);
    padding: 0.5rem 1.5rem;
    border-radius: 24px;
}

.demo-transition-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 520px;
}

/* ══════════════════════════════════════════════════════════════════════
   DEMO HEADER (compact, replaces original full header)
   ══════════════════════════════════════════════════════════════════════ */
.demo-header {
    background: linear-gradient(135deg, #141e30 0%, #1e2d47 100%);
    border-bottom: 1px solid rgba(184,153,62,0.2);
    padding: 1.25rem 0;
}

.demo-header .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.demo-header h1 {
    font-size: 1.15rem;
    color: #e8e4dc;
}

.demo-header .subtitle {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 0.15rem;
}

/* ══════════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════════ */
.eapp-footer {
    background: linear-gradient(135deg, #1e2d47 0%, #2a3a5c 100%);
    padding: 2.5rem 2rem;
    text-align: center;
}

.eapp-footer-inner {
    max-width: 600px;
    margin: 0 auto;
}

.footer-tagline {
    font-size: 1rem;
    font-weight: 600;
    color: #d4b85c;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.footer-sub {
    font-size: 0.72rem;
    color: #6b7a96;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ══════════════════════════════════════════════════════════════════════
   HERO RESPONSIVE
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .hero { padding: 3rem 1.5rem 2.5rem; }
    .hero-headline { font-size: 1.75rem; }
    .hero-sub { font-size: 0.9rem; }
    .pipeline-flow { flex-direction: column; gap: 0.5rem; }
    .pipeline-arrow { transform: rotate(90deg); padding: 0.25rem 0; }
    .pipeline-node { flex: none; width: 100%; max-width: 280px; }
    .pipeline-output-grid { grid-template-columns: 1fr; }
    .argument-columns { grid-template-columns: 1fr; }
    .upload-zone-content { flex-direction: column; text-align: center; }
    .upload-examples { grid-template-columns: 1fr; }
}

/* ── eApp Layout ──────────────────────────────────────────────────── */
.eapp-layout {
    display: grid;
    grid-template-columns: minmax(480px, 640px) minmax(400px, 480px);
    justify-content: center;
    gap: 0;
    min-height: calc(100vh - 120px);
}

/* ── Form Panel ──────────────────────────────────────────────────── */
.eapp-form-panel {
    padding: 2rem 2.5rem;
    overflow-y: auto;
}

.form-section {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    background: var(--bg-card);
}

.form-section.section-dimmed {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.3s;
}

.form-section legend {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent);
    padding: 0 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.form-group label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 500;
}

.form-group input,
.form-group select {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.15s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(184,153,62,0.15);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text);
    cursor: pointer;
    white-space: nowrap;
}

/* Single checkbox in a form-row should span full width */
.form-row > .checkbox-group:only-child {
    grid-column: 1 / -1;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.section-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-style: italic;
}

/* ── OEP Banner ──────────────────────────────────────────────────── */
.oep-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    background: var(--success-bg);
    border: 1px solid rgba(46,139,87,0.25);
    margin-bottom: 1rem;
}

.oep-banner .oep-icon {
    color: var(--success);
    font-size: 0.6rem;
    margin-top: 0.3rem;
}

.oep-banner strong {
    font-size: 0.85rem;
    color: var(--success);
    display: block;
}

.oep-banner p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.15rem 0 0;
}

/* ── MACRA Warning ───────────────────────────────────────────────── */
.macra-warning {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    background: var(--danger-bg);
    border: 1px solid rgba(197,64,64,0.25);
    font-size: 0.8rem;
    color: var(--danger);
    margin-bottom: 0.75rem;
}

/* ── Tobacco Override ────────────────────────────────────────────── */
.tobacco-override {
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius);
    background: rgba(184,153,62,0.08);
    border: 1px solid rgba(184,153,62,0.2);
    font-size: 0.8rem;
    color: var(--accent);
    margin-top: 0.5rem;
}

/* ── Health Question Items ───────────────────────────────────────── */
.health-q {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.health-q:last-child { border-bottom: none; }

.health-q input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 16px;
    height: 16px;
    accent-color: var(--danger);
    flex-shrink: 0;
}

.health-q-text {
    font-size: 0.8rem;
    color: var(--text);
    line-height: 1.5;
}

.health-q-num {
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 0.25rem;
}

.health-q-lookback {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ── Biometric Inputs (height/weight) ────────────────────────────── */
.health-q-biometric {
    flex-direction: column;
    gap: 0.5rem;
}

.biometric-inputs {
    display: flex;
    gap: 1.5rem;
    padding-left: 1.25rem;
    margin-top: 0.25rem;
}

.biometric-group > label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.25rem;
    display: block;
}

.biometric-row {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.biometric-input {
    width: 52px;
    padding: 0.35rem 0.4rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.82rem;
    font-family: inherit;
    text-align: center;
}

.biometric-input:focus {
    outline: none;
    border-color: var(--gold);
}

.biometric-unit {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ── Health Question Follow-ups ─────────────────────────────────── */
.health-q-followup {
    margin-top: 0.4rem;
    margin-left: 1.5rem;
    padding: 0.4rem 0.75rem;
    background: rgba(184,153,62,0.04);
    border-left: 2px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.health-q-followup label {
    font-size: 0.78rem;
    color: var(--text);
}

.health-followup-date {
    margin-left: 0.5rem;
    padding: 0.25rem 0.4rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.78rem;
    font-family: inherit;
}

.health-followup-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ── Try Another Button ─────────────────────────────────────────── */
.btn-try-another {
    display: block;
    margin: 0.75rem 0 0 0;
    padding: 0.5rem 1.2rem;
    background: var(--navy);
    color: var(--cream, #f5f0e8);
    border: 1px solid var(--navy);
    border-radius: var(--radius);
    font-size: 0.78rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-try-another:hover {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

.build-result .btn-try-another {
    display: inline-block;
    margin: 0 0 0 auto;
}

/* ── Medications ─────────────────────────────────────────────────── */
.med-entry {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr auto;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: end;
}

.med-entry input {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    font-family: inherit;
}

.med-entry input:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-remove-med {
    background: none;
    border: 1px solid var(--border);
    color: var(--danger);
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius);
    font-size: 0.8rem;
}

.btn-remove-med:hover { background: var(--danger-bg); }

.btn-add {
    background: none;
    border: 1px dashed var(--border);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.8rem;
    font-family: inherit;
    width: 100%;
    margin-top: 0.5rem;
    transition: all 0.15s;
}

.btn-add:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ── Form Actions ────────────────────────────────────────────────── */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-bottom: 2rem;
}

.btn-submit {
    flex: 1;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}

.btn-submit:hover { background: var(--accent-dim); }
.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-reset {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: var(--radius);
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.15s;
}

.btn-reset:hover { border-color: var(--text-muted); color: var(--text); }

/* ── Live Premium Estimate ──────────────────────────────────────── */
.premium-estimate {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(184,153,62,0.04);
    border: 1px solid rgba(184,153,62,0.2);
    border-radius: var(--radius);
    animation: fadeSlideDown 0.25s ease;
}

.premium-estimate-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.premium-estimate-amounts {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.premium-estimate-monthly {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}

.premium-estimate-annual {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.premium-estimate-note {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.3rem;
    padding-top: 0.3rem;
    border-top: 1px solid rgba(184,153,62,0.15);
}

/* ── Glass Panel ─────────────────────────────────────────────────── */
.glass-panel {
    overflow-y: auto;
    background: linear-gradient(180deg, #f7f3eb 0%, #f0ebe1 100%);
    border-left: 1px solid var(--border);
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
}

.glass-header {
    margin-bottom: 1rem;
}

.glass-header h2 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 500;
}

.glass-status {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    font-style: italic;
}

.glass-status.processing { color: var(--accent); font-style: normal; }
.glass-status.complete { color: var(--success); font-style: normal; }
.glass-status.failed { color: var(--danger); font-style: normal; }

/* ── Glass Stats Summary (replaces exec stats banner) ────────────── */
.glass-stats {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    padding: 0.4rem 0.6rem;
    background: rgba(42,58,92,0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    animation: fadeSlideDown 0.3s ease;
}

.glass-stat {
    font-size: 0.63rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.glass-stat strong {
    color: var(--text);
    font-weight: 700;
}

.glass-stat-sep {
    color: var(--border);
    font-size: 0.45rem;
    margin: 0 0.05rem;
    line-height: 1;
    display: flex;
    align-items: center;
}

/* ── Glass Outcome Top (hero result banner) ──────────────────────── */
.glass-outcome-top {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    animation: fadeSlideDown 0.4s ease;
}

.glass-outcome-top .outcome-premium {
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 0.25rem;
    opacity: 0.85;
}

.glass-outcome-top.issue { background: var(--success-bg); color: var(--success); border: 1px solid rgba(46,139,87,0.25); }
.glass-outcome-top.declined { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(197,64,64,0.25); }
.glass-outcome-top.uw_queue { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(192,136,10,0.25); }
.glass-outcome-top.invalid_plan { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(197,64,64,0.25); }
.glass-outcome-top.ineligible { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(197,64,64,0.25); }

/* ── Glass Steps ─────────────────────────────────────────────────── */
.glass-chain {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.glass-step {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0.6rem;
    border-left: 2px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    flex-wrap: wrap;
}

.glass-step:last-child { border-bottom: none; }

.glass-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.glass-step-body { flex: 1; min-width: 0; }

.glass-step-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.3s;
}

.glass-step-decision {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 0.1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.glass-step-details {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
    line-height: 1.4;
    opacity: 0;
    transition: opacity 0.3s;
}

/* ── Step Detail (inline expanded content) ───────────────────────── */
.glass-step-detail {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
    padding-left: 2.25rem;
}

.glass-step.show-detail .glass-step-detail {
    max-height: 800px;
    opacity: 1;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

/* Agent type badge (inline in detail) */
.step-type-badge {
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.12rem 0.35rem;
    border-radius: 4px;
    white-space: nowrap;
    display: inline-block;
    margin-bottom: 0.3rem;
}

.step-type-badge.llm {
    background: rgba(106,60,180,0.1);
    color: #7c4dbc;
    border: 1px solid rgba(106,60,180,0.2);
}
.step-type-badge.hybrid {
    background: rgba(184,153,62,0.1);
    color: var(--accent);
    border: 1px solid rgba(184,153,62,0.2);
}
.step-type-badge.deterministic {
    background: rgba(42,58,92,0.08);
    color: var(--text-muted);
    border: 1px solid rgba(42,58,92,0.15);
}

/* Agent description */
.step-desc {
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.45;
    font-style: italic;
    margin-bottom: 0.35rem;
}

/* Rule documents loaded */
.step-rules-loaded {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.step-rules-label {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    white-space: nowrap;
}

.step-rule-tag {
    font-size: 0.6rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    background: var(--bg-card);
    color: var(--accent);
    padding: 0.08rem 0.35rem;
    border-radius: 4px;
    border: 1px solid rgba(184,153,62,0.2);
}

/* Reasoning section */
.step-reasoning {
    margin-bottom: 0.35rem;
}

.step-reasoning-label {
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 0.15rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.step-reasoning-text {
    font-size: 0.72rem;
    color: var(--text);
    line-height: 1.55;
}

/* Technical details grid */
.step-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.1rem 0.4rem;
    margin-bottom: 0.3rem;
}

.step-detail-item {
    font-size: 0.63rem;
    color: var(--text-muted);
    line-height: 1.45;
    display: flex;
    gap: 0.25rem;
}

.step-detail-key {
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

/* Duration tag */
.step-duration {
    font-size: 0.58rem;
    color: var(--text-muted);
    font-family: 'SF Mono', 'Fira Code', monospace;
    margin-top: 0.2rem;
}

/* Clarity diagnostic (inline) */
.step-clarity {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.3rem 0.5rem;
    border-radius: var(--radius);
    font-size: 0.65rem;
    margin-top: 0.3rem;
}

.step-clarity.incomplete_data {
    background: var(--danger-bg);
    border: 1px solid rgba(197,64,64,0.15);
}
.step-clarity.ambiguous_rule {
    background: var(--warning-bg);
    border: 1px solid rgba(192,136,10,0.15);
}
.step-clarity.edge_case {
    background: rgba(184,153,62,0.06);
    border: 1px solid rgba(184,153,62,0.15);
}

.step-clarity-badge {
    font-weight: 700;
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.step-clarity.incomplete_data .step-clarity-badge { background: rgba(197,64,64,0.15); color: var(--danger); }
.step-clarity.ambiguous_rule .step-clarity-badge { background: rgba(192,136,10,0.15); color: var(--warning); }
.step-clarity.edge_case .step-clarity-badge { background: rgba(184,153,62,0.15); color: var(--accent); }

.step-clarity-gaps {
    color: var(--text-muted);
    font-size: 0.63rem;
    line-height: 1.4;
}

/* Retry indicator (inline) */
.step-retry {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.5rem;
    background: rgba(192,136,10,0.06);
    border: 1px solid rgba(192,136,10,0.15);
    border-radius: var(--radius);
    font-size: 0.63rem;
    color: var(--warning);
    margin-top: 0.25rem;
}

.step-retry-text {
    color: var(--text-muted);
}

.step-retry-text strong {
    color: var(--warning);
}

/* Escalation notice (inline) */
.step-escalated {
    padding: 0.25rem 0.5rem;
    background: var(--danger-bg);
    border: 1px solid rgba(197,64,64,0.15);
    border-radius: var(--radius);
    font-size: 0.63rem;
    color: var(--danger);
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Rules applied tags */
.step-rules-applied {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    margin-top: 0.25rem;
}

.step-rule-applied-tag {
    font-size: 0.55rem;
    background: var(--bg-elevated);
    color: var(--text-muted);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    text-transform: capitalize;
    border: 1px solid var(--border);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

/* Step States */
.glass-step.success {
    border-left-color: var(--success);
}
.glass-step.success .glass-step-num {
    background: var(--success);
    color: #fff;
}
.glass-step.success .glass-step-label { color: var(--text); }
.glass-step.success .glass-step-decision { color: var(--success); opacity: 1; }
.glass-step.success .glass-step-details { opacity: 1; }

.glass-step.danger {
    border-left-color: var(--danger);
}
.glass-step.danger .glass-step-num {
    background: var(--danger);
    color: #fff;
}
.glass-step.danger .glass-step-label { color: var(--text); }
.glass-step.danger .glass-step-decision { color: var(--danger); opacity: 1; }
.glass-step.danger .glass-step-details { opacity: 1; }

.glass-step.warning {
    border-left-color: var(--warning);
}
.glass-step.warning .glass-step-num {
    background: var(--warning);
    color: #000;
}
.glass-step.warning .glass-step-label { color: var(--text); }
.glass-step.warning .glass-step-decision { color: var(--warning); opacity: 1; }
.glass-step.warning .glass-step-details { opacity: 1; }

.glass-step.muted {
    border-left-color: var(--border);
}
.glass-step.muted .glass-step-num {
    background: var(--border);
    color: var(--text-muted);
}
.glass-step.muted .glass-step-label { color: var(--text-muted); }
.glass-step.muted .glass-step-decision { color: var(--text-muted); opacity: 1; }

.glass-step.info {
    border-left-color: var(--accent);
}
.glass-step.info .glass-step-num {
    background: var(--accent);
    color: #fff;
}
.glass-step.info .glass-step-label { color: var(--text); }
.glass-step.info .glass-step-decision { color: var(--accent); opacity: 1; }
.glass-step.info .glass-step-details { opacity: 1; }

.glass-step.active {
    border-left-color: var(--accent);
}
.glass-step.active .glass-step-num {
    background: var(--accent);
    color: #fff;
    animation: pulse 1s ease infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(184,153,62,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(184,153,62,0); }
}

@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Glass Premium ───────────────────────────────────────────────── */
.glass-premium {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.glass-premium h3 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.glass-premium .premium-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
}

.glass-premium .premium-annual {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.glass-premium .premium-method {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    padding-top: 0.4rem;
    border-top: 1px solid var(--border);
}

/* ── Glass Outcome (bottom) ─────────────────────────────────────── */
.glass-outcome {
    margin-top: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius);
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.glass-outcome.issue { background: var(--success-bg); color: var(--success); border: 1px solid rgba(46,139,87,0.25); }
.glass-outcome.declined { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(197,64,64,0.25); }
.glass-outcome.uw_queue { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(192,136,10,0.25); }
.glass-outcome.invalid_plan { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(197,64,64,0.25); }
.glass-outcome.ineligible { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(197,64,64,0.25); }

/* ── Under-65 conditional ────────────────────────────────────────── */
.under65-options {
    margin-top: 0.25rem;
    padding: 0.5rem 0.75rem 0.25rem;
    border-left: 2px solid var(--accent);
    margin-left: 0.5rem;
}
.under65-options .section-note {
    margin-bottom: 0.5rem;
    font-size: 0.82rem;
}

/* ── Tobacco section ─────────────────────────────────────────────── */
.tobacco-prompt {
    margin-bottom: 0.5rem;
}
.tobacco-check label {
    white-space: nowrap;
}

/* ── Health sub-questions ────────────────────────────────────────── */
.health-sub-list {
    list-style: none;
    padding: 0.25rem 0 0.5rem 2.25rem;
    margin: 0;
}
.health-sub-list li {
    padding: 0.2rem 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
}
.health-sub-letter {
    font-weight: 600;
    color: var(--text);
    margin-right: 0.15rem;
}

/* ── GI Documentation Notice ────────────────────────────────────── */
.gi-doc-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    background: rgba(184,153,62,0.06);
    border: 1px solid rgba(184,153,62,0.25);
    margin-top: 0.75rem;
}

.gi-doc-notice .gi-doc-icon {
    color: var(--accent);
    font-size: 1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.gi-doc-notice strong {
    font-size: 0.82rem;
    color: var(--accent);
    display: block;
    margin-bottom: 0.25rem;
}

.gi-doc-notice p {
    font-size: 0.78rem;
    color: var(--text);
    margin: 0;
    line-height: 1.5;
}

.gi-doc-window {
    font-size: 0.75rem !important;
    color: var(--text-muted) !important;
    margin-top: 0.35rem !important;
    font-style: italic;
}

/* ── Health Gateway Questions ──────────────────────────────────── */
.health-gateway {
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.25rem;
}

.health-gateway:last-child { border-bottom: none; }

.health-gateway-parent {
    padding: 0.6rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-left: 3px solid var(--accent);
    padding-left: 0.75rem;
    margin-left: -0.25rem;
    background: rgba(184,153,62,0.03);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.health-gateway-parent input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.health-gateway-children {
    margin-left: 1.5rem;
    border-left: 2px solid var(--accent);
    padding-left: 0.75rem;
    display: none;
    margin-bottom: 0.5rem;
}

.health-gateway-children.visible {
    display: block;
    animation: fadeSlideDown 0.2s ease;
}

/* ── Confidence Retry Summary ────────────────────────────────────── */
.glass-retries {
    margin-top: 0.5rem;
    padding: 0.5rem 0.6rem;
    background: rgba(192,136,10,0.06);
    border: 1px solid rgba(192,136,10,0.2);
    border-radius: var(--radius);
}
.glass-retries h4 {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--warning);
    margin-bottom: 0.2rem;
    font-weight: 600;
}
.glass-retries p {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ── Carrier Badge (legacy) ─────────────────────────────────────── */
.carrier-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 600;
}

.carrier-badge.or { background: rgba(23,138,122,0.08); color: var(--or-color); border: 1px solid rgba(23,138,122,0.2); }
.carrier-badge.ga { background: rgba(200,106,26,0.08); color: var(--ga-color); border: 1px solid rgba(200,106,26,0.2); }
.carrier-badge.mn { background: rgba(74,80,168,0.08); color: var(--mn-color); border: 1px solid rgba(74,80,168,0.2); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1000px) {
    .eapp-layout {
        grid-template-columns: 1fr;
    }
    .glass-panel {
        border-left: none;
        border-top: 1px solid var(--border);
    }
    .med-entry {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
    .eapp-form-panel { padding: 1rem; }
    .med-entry { grid-template-columns: 1fr; }
}
