.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;
}

.header-smart-command {
    position: relative;
    color: var(--brand-periwinkle);
}

.header-smart-command::after {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid color-mix(in srgb, var(--brand-periwinkle) 28%, transparent);
    border-radius: 50%;
    opacity: .55;
}

.header-smart-command > span {
    position: relative;
    z-index: 1;
    font-size: 17px;
    line-height: 1;
}

.smart-analysis-module {
    --advisor-radius: 16px;
    --advisor-border: color-mix(in srgb, var(--line-strong) 58%, transparent);
    --advisor-glow: color-mix(in srgb, var(--brand-periwinkle) 18%, transparent);
    height: 100%;
    min-height: 100%;
    padding: 18px;
    overflow: auto;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 17% -12%, color-mix(in srgb, var(--brand-periwinkle) 8%, transparent), transparent 34%),
        radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--brand-mint) 5%, transparent), transparent 27%),
        var(--bg);
    font-size: 14px;
}

.smart-analysis-heading {
    align-items: center;
}

.smart-analysis-heading > div { gap: 7px; }
.smart-analysis-heading span { font-size: 12px; letter-spacing: .09em; }
.smart-analysis-heading strong { font-size: clamp(22px, 2.1vw, 30px); letter-spacing: -.035em; }
.smart-analysis-heading em { max-width: 720px; font-size: 14px; line-height: 1.45; }

.advisor-refresh {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-inline: 14px;
    font-size: 13px;
}

.advisor-refresh > span { font-size: 18px; }

.smart-analysis-grid {
    max-width: 1220px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 350px);
    align-items: start;
    gap: 14px;
    margin: 0 auto;
    padding-bottom: 30px;
}

.smart-panel {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--advisor-border);
    border-radius: var(--advisor-radius);
    background: color-mix(in srgb, var(--panel) 96%, transparent);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .13);
}

.smart-panel > header {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--line);
}

.smart-panel > header > div:first-child {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.smart-panel > header span,
.smart-panel > header small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
}

.smart-panel > header strong {
    overflow: hidden;
    font-size: 15px;
    font-weight: 720;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.smart-panel .quiet-command,
.smart-service-error button {
    min-height: 44px;
    padding: 0 13px;
    font-size: 13px;
}

.advisor-hero {
    position: relative;
    isolation: isolate;
    max-width: 1220px;
    min-height: 148px;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    margin: 0 auto 14px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid var(--advisor-border);
    border-radius: var(--advisor-radius);
    background:
        linear-gradient(125deg, color-mix(in srgb, var(--brand-periwinkle) 9%, var(--panel)) 0%, var(--panel) 46%, color-mix(in srgb, var(--brand-mint) 5%, var(--panel)) 100%);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .18), inset 0 1px rgba(255, 255, 255, .025);
}

.advisor-hero::before {
    content: '';
    position: absolute;
    z-index: -1;
    width: 320px;
    height: 320px;
    top: -190px;
    left: 15%;
    border: 1px solid color-mix(in srgb, var(--brand-periwinkle) 20%, transparent);
    border-radius: 50%;
}

.advisor-hero.is-unavailable,
.advisor-hero.is-locked {
    background: linear-gradient(125deg, color-mix(in srgb, var(--amber) 6%, var(--panel)), var(--panel) 60%);
}

.advisor-orbit {
    position: relative;
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--brand-periwinkle) 45%, var(--line));
    border-radius: 50%;
    background: color-mix(in srgb, var(--panel-2) 82%, transparent);
    box-shadow: 0 0 38px var(--advisor-glow);
}

.advisor-orbit::before,
.advisor-orbit::after {
    content: '';
    position: absolute;
    border: 1px solid color-mix(in srgb, var(--brand-periwinkle) 35%, transparent);
    border-radius: 50%;
}

.advisor-orbit::before { inset: 11px; }
.advisor-orbit::after { inset: 23px; background: var(--brand-periwinkle); box-shadow: 0 0 16px var(--brand-periwinkle); }
.advisor-orbit > span { position: absolute; width: 6px; height: 6px; top: 5px; left: 31px; border-radius: 50%; background: var(--brand-mint); transform-origin: 3px 29px; animation: advisor-orbit 7s linear infinite; }
.advisor-orbit > i { position: absolute; inset: 18px; border-top: 1px solid var(--brand-mint); border-radius: 50%; opacity: .7; animation: advisor-orbit 4.5s linear infinite reverse; }
.advisor-orbit > b { position: absolute; right: 2px; bottom: 8px; width: 12px; height: 12px; border: 3px solid var(--panel); border-radius: 50%; background: var(--muted); }
.advisor-hero.is-ready .advisor-orbit > b { background: var(--brand-periwinkle); }
.advisor-hero.is-loading .advisor-orbit > b { background: var(--amber); }

@keyframes advisor-orbit { to { transform: rotate(360deg); } }

.advisor-hero-copy { min-width: 0; display: grid; gap: 7px; }
.advisor-eyebrow { color: var(--brand-periwinkle); font-size: 12px; font-weight: 800; letter-spacing: .11em; }
.advisor-hero-copy > strong { font-size: clamp(20px, 2.1vw, 27px); letter-spacing: -.025em; }
.advisor-hero-copy p { max-width: 670px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.advisor-hero-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(118px, 1fr));
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: color-mix(in srgb, var(--bg) 54%, transparent);
}

.advisor-hero-facts > div { min-width: 0; display: grid; gap: 6px; padding: 12px 14px; border-right: 1px solid var(--line); }
.advisor-hero-facts > div:last-child { border-right: 0; }
.advisor-hero-facts dt { color: var(--muted); font-size: 12px; }
.advisor-hero-facts dd { max-width: 160px; margin: 0; overflow: hidden; font: 700 13px/1.25 var(--font-data); white-space: nowrap; text-overflow: ellipsis; }

.smart-service-error {
    max-width: 1220px;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 auto 14px;
    padding: 8px 9px 8px 16px;
    border: 1px solid color-mix(in srgb, var(--red) 40%, var(--line));
    border-radius: 12px;
    color: var(--text);
    background: var(--red-soft);
}

.smart-service-error > div { display: grid; gap: 3px; }
.smart-service-error strong { font-size: 14px; }
.smart-service-error span { color: var(--muted); font-size: 13px; line-height: 1.4; }

.advisor-learning-panel {
    max-width: 1220px;
    margin: 0 auto 14px;
}

.advisor-learning-panel > header { min-height: 68px; }
.advisor-learning-panel > header h2 { margin: 0; font-size: 15px; font-weight: 720; line-height: 1.35; }
.advisor-learning-state {
    flex: 0 0 auto;
    padding: 6px 9px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--muted) !important;
    font-size: 12px !important;
    letter-spacing: 0 !important;
}
.advisor-learning-panel.is-error .advisor-learning-state,
.advisor-learning-panel.is-stale .advisor-learning-state { color: var(--amber) !important; border-color: color-mix(in srgb, var(--amber) 48%, var(--line)); }

.advisor-learning-body { display: grid; gap: 12px; padding: 14px; }
.advisor-learning-summary {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--brand-periwinkle) 28%, var(--line));
    border-radius: 12px;
    background: color-mix(in srgb, var(--brand-periwinkle) 5%, var(--panel-2));
}
.advisor-learning-summary > span,
.advisor-learning-lane > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--brand-periwinkle);
    font: 750 17px/1 var(--font-data);
}
.advisor-learning-panel.is-error .advisor-learning-summary > span,
.advisor-learning-panel.is-stale .advisor-learning-summary > span { color: var(--amber); }
.advisor-learning-summary > div { display: grid; gap: 4px; }
.advisor-learning-summary strong { font-size: 15px; }
.advisor-learning-summary p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

.advisor-learning-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.advisor-learning-facts > div { min-width: 0; display: grid; align-content: center; gap: 5px; min-height: 96px; padding: 13px; border-right: 1px solid var(--line); }
.advisor-learning-facts > div:last-child { border-right: 0; }
.advisor-learning-facts dt { color: var(--muted); font-size: 12px; }
.advisor-learning-facts dd { margin: 0; overflow-wrap: anywhere; font: 720 15px/1.35 var(--font-data); }
.advisor-learning-facts small { color: var(--muted); font-size: 12px; line-height: 1.4; }

.advisor-history-quality { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.advisor-history-quality > div { min-width: 0; display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 9px; min-height: 64px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel-2); }
.advisor-history-quality > div > span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted); font-weight: 800; }
.advisor-history-quality > div.is-verified > span { color: var(--brand-periwinkle); }
.advisor-history-quality > div.is-limited > span,
.advisor-history-quality > div.is-failed > span { color: var(--amber); }
.advisor-history-quality p { display: grid; gap: 3px; margin: 0; }
.advisor-history-quality strong { font-size: 13px; }
.advisor-history-quality small { color: var(--muted); font-size: 12px; line-height: 1.4; }

.advisor-learning-boundary { margin: 0; padding: 11px 13px; border: 1px solid color-mix(in srgb, var(--amber) 34%, var(--line)); border-radius: 10px; color: var(--muted); background: color-mix(in srgb, var(--amber) 5%, var(--panel)); font-size: 13px; line-height: 1.5; }
.advisor-learning-boundary strong { color: var(--text); }
.advisor-learning-lane { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 11px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; }
.advisor-learning-lane p { display: grid; gap: 3px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.advisor-learning-lane strong { color: var(--text); }

.advisor-horizons { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.advisor-horizons > summary { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 13px; cursor: pointer; list-style: none; }
.advisor-horizons > summary::-webkit-details-marker { display: none; }
.advisor-horizons > summary:focus-visible { outline: 2px solid var(--brand-periwinkle); outline-offset: -3px; }
.advisor-horizons > summary > span { display: grid; gap: 3px; }
.advisor-horizons > summary small { color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .06em; }
.advisor-horizons > summary strong { font-size: 14px; }
.advisor-horizons > summary i { color: var(--muted); font-size: 18px; transition: transform 160ms ease; }
.advisor-horizons[open] > summary i { transform: rotate(180deg); }
.advisor-horizons > ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.advisor-horizons li { min-width: 0; display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 72px; padding: 10px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.advisor-horizons li:nth-child(3n) { border-right: 0; }
.advisor-horizons li > span { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted); font-weight: 800; }
.advisor-horizons li.is-trained > span { color: var(--brand-periwinkle); }
.advisor-horizons li.is-failed > span { color: var(--amber); }
.advisor-horizons li > div { min-width: 0; display: grid; gap: 3px; }
.advisor-horizons li strong { font-size: 13px; }
.advisor-horizons li small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.advisor-horizons li em { grid-column: 1 / -1; color: var(--muted); font-size: 12px; font-style: normal; }
.advisor-learning-empty { margin: 0; padding: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.5; }

.advisor-learning-availability { display: grid; gap: 4px; padding: 11px 13px; border-left: 3px solid var(--line-strong); background: var(--panel-2); }
.advisor-learning-availability.is-available { border-left-color: var(--brand-periwinkle); }
.advisor-learning-availability.is-error,
.advisor-learning-availability.is-unavailable { border-left-color: var(--amber); }
.advisor-learning-availability strong { font-size: 14px; }
.advisor-learning-availability p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.advisor-learning-availability small { color: var(--muted); font-size: 12px; }

.advisor-side-rail { min-width: 0; display: grid; gap: 14px; }

.advisor-mode-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0;
    padding: 12px;
    border: 0;
}

.advisor-mode-choice { position: relative; min-width: 0; cursor: pointer; }
.advisor-mode-choice > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.advisor-mode-choice > span { min-height: 116px; display: grid; grid-template-columns: 18px minmax(0, 1fr); align-content: start; gap: 8px 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: var(--bg); }
.advisor-mode-choice > span > i { width: 17px; height: 17px; margin-top: 1px; border: 1px solid var(--line-strong); border-radius: 50%; }
.advisor-mode-choice strong { color: var(--text); font-size: 15px; }
.advisor-mode-choice small { grid-column: 1 / -1; font-size: 12px; line-height: 1.45; }
.advisor-mode-choice > input:checked + span { border-color: color-mix(in srgb, var(--brand-periwinkle) 70%, var(--line)); background: var(--blue-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-periwinkle) 12%, transparent); }
.advisor-mode-choice > input:checked + span > i { border: 5px solid var(--brand-periwinkle); }
.advisor-mode-choice > input:focus-visible + span { outline: 2px solid var(--brand-periwinkle); outline-offset: 3px; }
.advisor-mode-choice:hover > span { border-color: var(--line-strong); color: var(--text); }
.advisor-mode-choices:disabled { opacity: .66; }
.advisor-mode-choices:disabled .advisor-mode-choice { cursor: wait; }

.advisor-boundary-copy {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 8px;
    margin: 0;
    padding: 12px 14px 14px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}
.advisor-boundary-copy > span { color: var(--brand-periwinkle); font-size: 17px; }

.smart-request-state { font-size: 12px !important; font-weight: 650 !important; letter-spacing: 0 !important; }
.smart-request-state.is-ready { color: var(--muted) !important; }
.smart-request-state.is-saving { color: var(--brand-periwinkle) !important; }
.smart-request-state.is-error { color: var(--red) !important; }

.advisor-evidence-room { min-height: 620px; }
.advisor-room-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.advisor-evidence-stage { position: relative; min-height: 552px; }
.advisor-evidence-stage.has-overlay { overflow: hidden; }
.advisor-evidence-underlay { min-height: inherit; }
.advisor-evidence-content { display: grid; gap: 16px; padding: 18px; }
.advisor-evidence-content.is-placeholder { opacity: .35; filter: saturate(.3); }

.advisor-range-card {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--brand-periwinkle) 32%, var(--line));
    border-radius: 14px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand-periwinkle) 9%, var(--panel-2)), var(--panel-2));
}

.advisor-range-card::after { content: ''; position: absolute; width: 180px; height: 180px; right: -95px; top: -105px; border: 1px solid color-mix(in srgb, var(--brand-periwinkle) 22%, transparent); border-radius: 50%; }
.advisor-range-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.advisor-range-label > span { color: var(--brand-periwinkle); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.advisor-range-label > em { padding: 5px 8px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font-size: 12px; }
.advisor-range-label > em.is-limited { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 45%, var(--line)); }
.advisor-range-card > strong { font: 760 clamp(28px, 4vw, 43px)/1.05 var(--font-data); letter-spacing: -.06em; }
.advisor-range-card > p { margin: 0; color: var(--text); font-size: 14px; }
.advisor-range-card > small { max-width: 620px; color: var(--muted); font-size: 12px; line-height: 1.45; }

.advisor-evidence-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.advisor-evidence-metrics > div { min-width: 0; display: grid; align-content: center; gap: 6px; min-height: 100px; padding: 14px; border-right: 1px solid var(--line); }
.advisor-evidence-metrics > div:last-child { border-right: 0; }
.advisor-evidence-metrics dt { color: var(--muted); font-size: 12px; }
.advisor-evidence-metrics dd { margin: 0; font: 700 15px/1.3 var(--font-data); }
.advisor-evidence-metrics small { overflow: hidden; color: var(--muted); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }

.advisor-applicability-note { display: grid; gap: 5px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--amber) 40%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--amber) 7%, var(--panel)); }
.advisor-applicability-note strong { font-size: 14px; }
.advisor-applicability-note span { color: var(--muted); font-size: 12px; line-height: 1.5; }

.advisor-evidence-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.advisor-evidence-columns > section { min-width: 0; }
.advisor-evidence-columns h3 { margin: 0 0 10px; font-size: 14px; }
.advisor-reason-list,
.advisor-limit-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.advisor-reason-list li,
.advisor-limit-list li { min-width: 0; display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.advisor-reason-list li > span,
.advisor-limit-list li > span { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--brand-periwinkle); font: 800 13px/1 var(--font-data); }
.advisor-reason-list li.is-limits > span,
.advisor-limit-list li > span { color: var(--amber); }
.advisor-reason-list li > div { display: grid; gap: 3px; }
.advisor-reason-list small { color: var(--muted); font-size: 12px; }
.advisor-reason-list strong,
.advisor-limit-list strong { font-size: 12px; font-weight: 590; line-height: 1.5; }
.advisor-empty-copy { margin: 0; padding: 14px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }

.advisor-receipt { border: 1px solid color-mix(in srgb, var(--brand-mint) 24%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--brand-mint) 3%, var(--panel-2)); }
.advisor-receipt > summary { min-height: 62px; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 20px; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; list-style: none; }
.advisor-receipt > summary::-webkit-details-marker { display: none; }
.advisor-receipt-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--brand-mint); font-size: 20px; }
.advisor-receipt > summary > span:nth-child(2) { display: grid; gap: 3px; }
.advisor-receipt > summary small { color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .06em; }
.advisor-receipt > summary strong { font: 700 13px/1.2 var(--font-data); }
.advisor-receipt > summary em { color: var(--muted); font-size: 12px; }
.advisor-receipt > summary > i { color: var(--muted); font-size: 18px; transition: transform 160ms ease; }
.advisor-receipt[open] > summary > i { transform: rotate(180deg); }
.advisor-receipt > dl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.advisor-receipt > dl > div { min-width: 0; display: grid; gap: 6px; padding: 12px; border-right: 1px solid var(--line); }
.advisor-receipt > dl > div:last-child { border-right: 0; }
.advisor-receipt dt { color: var(--muted); font-size: 12px; }
.advisor-receipt dd { display: grid; gap: 4px; margin: 0; overflow: hidden; font: 650 12px/1.3 var(--font-data); white-space: nowrap; text-overflow: ellipsis; }
.advisor-receipt dd small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; }
.advisor-receipt > p { margin: 0; padding: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.5; }
.advisor-receipt.is-empty { display: grid; gap: 5px; padding: 14px; color: var(--muted); }
.advisor-receipt.is-empty strong { color: var(--text); font-size: 13px; }
.advisor-receipt.is-empty span { font-size: 12px; }

.advisor-room-overlay { position: absolute; z-index: 2; inset: 18px; display: grid; align-content: center; justify-items: center; gap: 10px; padding: 30px; border: 1px solid color-mix(in srgb, var(--line-strong) 72%, transparent); border-radius: 14px; text-align: center; background: color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter: blur(13px); box-shadow: 0 24px 60px rgba(0, 0, 0, .24); }
.advisor-room-overlay.is-error,
.advisor-room-overlay.is-stale,
.advisor-room-overlay.is-unavailable,
.advisor-room-overlay.is-limited { border-color: color-mix(in srgb, var(--amber) 38%, var(--line)); }
.advisor-overlay-mark { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--brand-periwinkle); font: 700 20px/1 var(--font-data); background: var(--panel-2); }
.advisor-room-overlay > strong { font-size: 20px; }
.advisor-room-overlay > p { max-width: 470px; margin: 0; color: var(--text); font-size: 14px; line-height: 1.55; }
.advisor-room-overlay > small { max-width: 470px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.advisor-room-overlay > button { margin-top: 6px; }

.advisor-skeleton { display: block; width: 100%; height: 14px; border-radius: 999px; background: linear-gradient(90deg, var(--line), color-mix(in srgb, var(--line-strong) 70%, var(--line)), var(--line)); background-size: 180% 100%; animation: advisor-shimmer 1.6s ease infinite; }
.advisor-skeleton.is-short { width: 42%; }
.advisor-skeleton.is-range { width: 64%; height: 38px; }
@keyframes advisor-shimmer { to { background-position: -180% 0; } }

.advisor-readiness-panel > p { margin: 0; padding: 14px 16px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.advisor-state-token { padding: 5px 8px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted) !important; font-size: 12px !important; letter-spacing: 0 !important; }
.advisor-state-token.is-ready { color: var(--brand-periwinkle) !important; border-color: color-mix(in srgb, var(--brand-periwinkle) 45%, var(--line)); }
.advisor-state-token.is-degraded,
.advisor-state-token.is-maintenance { color: var(--amber) !important; border-color: color-mix(in srgb, var(--amber) 45%, var(--line)); }
.advisor-check-list { display: grid; gap: 0; margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.advisor-check-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 60px; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.advisor-check-list li:last-child { border-bottom: 0; }
.advisor-check-list li > span { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted); font: 800 13px/1 var(--font-data); }
.advisor-check-list li.is-pass > span { color: var(--brand-periwinkle); border-color: color-mix(in srgb, var(--brand-periwinkle) 48%, var(--line)); }
.advisor-check-list li.is-fail > span { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 55%, var(--line)); }
.advisor-check-list li > div { display: grid; gap: 3px; }
.advisor-check-list strong { font-size: 13px; }
.advisor-check-list small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.advisor-empty-checks { margin: 0 14px 14px; padding: 12px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }

.advisor-data-panel > summary { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; cursor: pointer; list-style: none; }
.advisor-data-panel > summary::-webkit-details-marker { display: none; }
.advisor-data-panel > summary > span { display: grid; gap: 5px; }
.advisor-data-panel > summary small { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.advisor-data-panel > summary strong { font-size: 15px; }
.advisor-data-panel > summary i { color: var(--muted); font-size: 20px; transition: transform 160ms ease; }
.advisor-data-panel[open] > summary i { transform: rotate(180deg); }
.advisor-data-content { display: grid; gap: 12px; padding: 0 14px 14px; border-top: 1px solid var(--line); }
.advisor-data-content > p { margin: 0; padding-top: 14px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.advisor-consent-toggle { min-height: 68px; display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.advisor-consent-toggle input { width: 20px; height: 20px; accent-color: var(--brand-periwinkle); }
.advisor-consent-toggle > span { display: grid; gap: 3px; }
.advisor-consent-toggle strong { font-size: 13px; }
.advisor-consent-toggle small,
.advisor-retention-note { color: var(--muted); font-size: 12px; line-height: 1.45; }

.advisor-history-panel { grid-column: 1 / -1; }
.advisor-receipt-list { display: grid; }
.advisor-receipt-list article { min-width: 0; display: grid; grid-template-columns: minmax(130px, .7fr) minmax(240px, 1.6fr) minmax(145px, .8fr) minmax(130px, .7fr); align-items: center; gap: 14px; min-height: 74px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.advisor-receipt-list article:last-child { border-bottom: 0; }
.advisor-receipt-list article > div { min-width: 0; display: grid; gap: 4px; }
.advisor-receipt-list strong { overflow: hidden; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.advisor-receipt-list small,
.advisor-receipt-list time { overflow: hidden; color: var(--muted); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.advisor-history-time > span { color: var(--muted); font-size: 12px; }
.advisor-history-range > strong { font-family: var(--font-data); }
.advisor-receipt-list code { overflow: hidden; color: var(--brand-mint); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.advisor-history-empty { min-height: 122px; display: grid; align-content: center; justify-items: center; gap: 7px; padding: 24px; color: var(--muted); text-align: center; font-size: 13px; }
.advisor-history-empty strong { color: var(--text); font-size: 15px; }
.advisor-history-empty span { max-width: 560px; font-size: 12px; line-height: 1.5; }
.advisor-load-more { width: 100%; min-height: 48px; border: 0; border-top: 1px solid var(--line); color: var(--brand-periwinkle); background: transparent; font-size: 13px; }
.advisor-load-more:hover { background: var(--hover); }

/* Advisor is deliberately informational inside the automation panel. */
.automation-smart-filter {
    grid-column: 1 / -1;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(170px, .8fr) minmax(250px, 1fr) minmax(0, 1.8fr);
    align-items: center;
    gap: 10px 14px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}
.automation-smart-filter > header { display: grid; gap: 4px; }
.automation-smart-filter > header span { color: var(--brand-periwinkle); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.automation-smart-filter > header strong { font-size: 13px; }
.automation-advisor-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; border: 0; margin: 0; padding: 0; }
.automation-advisor-toggle label { position: relative; cursor: pointer; }
.automation-advisor-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.automation-advisor-toggle span { min-height: 44px; display: grid; place-items: center; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--panel); font-size: 12px; }
.automation-advisor-toggle input:checked + span { color: var(--text); border-color: var(--brand-periwinkle); background: var(--blue-soft); }
.automation-advisor-toggle input:focus-visible + span { outline: 2px solid var(--brand-periwinkle); outline-offset: 2px; }
.automation-advisor-execution { display: grid; grid-template-columns: auto auto auto 1fr; align-items: center; gap: 6px; min-width: 0; margin: 0; padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px; }
.automation-advisor-execution legend { grid-column: 1 / -1; padding: 0; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.automation-advisor-execution label { position: relative; cursor: pointer; }
.automation-advisor-execution input { position: absolute; opacity: 0; }
.automation-advisor-execution label > span { min-height: 44px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 11px; font-weight: 750; }
.automation-advisor-execution input:checked + span { border-color: var(--brand-periwinkle); color: var(--text); background: color-mix(in srgb, var(--brand-periwinkle) 12%, transparent); }
.automation-advisor-execution input:focus-visible + span { outline: 2px solid var(--brand-periwinkle); outline-offset: 2px; }
.automation-advisor-execution > small { min-width: 0; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.automation-smart-status { min-width: 0; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.automation-smart-status > i { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--brand-periwinkle); font-style: normal; }
.automation-smart-status.is-unavailable > i { color: var(--amber); }
.automation-smart-status button { min-height: 44px; padding: 0 8px; border: 0; color: var(--brand-periwinkle); background: transparent; font-size: 12px; }

.advisor-live-execution { margin: 0 18px 18px; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; background: color-mix(in srgb, var(--surface) 92%, var(--brand-periwinkle) 8%); }
.advisor-live-execution > header { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.advisor-live-execution > header div { display: grid; gap: 3px; }
.advisor-live-execution > header div > span { color: var(--brand-periwinkle); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.advisor-live-execution > header strong { font-size: 15px; }
.advisor-live-execution > header > span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 700; }
.advisor-execution-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 12px 14px; border: 0; }
.advisor-execution-choices label { position: relative; cursor: pointer; }
.advisor-execution-choices input { position: absolute; opacity: 0; pointer-events: none; }
.advisor-execution-choices label > span { min-height: 72px; display: grid; align-content: center; gap: 5px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.advisor-execution-choices strong { font-size: 13px; }
.advisor-execution-choices small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.advisor-execution-choices input:checked + span { border-color: color-mix(in srgb, var(--brand-periwinkle) 65%, var(--line)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-periwinkle) 35%, transparent), 0 8px 22px rgba(65, 102, 245, .10); }
.advisor-execution-choices input:focus-visible + span { outline: 2px solid var(--brand-periwinkle); outline-offset: 2px; }
.advisor-live-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--line); }
.advisor-live-summary > div { min-height: 86px; display: grid; align-content: center; gap: 3px; padding: 12px; background: var(--surface); }
.advisor-live-summary span, .advisor-live-summary small { color: var(--muted); font-size: 11px; }
.advisor-live-summary strong { font-size: 18px; }
.advisor-live-summary > p { grid-column: 1 / -1; margin: 0; padding: 9px 12px; background: color-mix(in srgb, var(--surface) 96%, var(--brand-periwinkle) 4%); color: var(--muted); font-size: 11px; line-height: 1.45; }
.advisor-live-boundary { margin: 10px 14px 14px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.advisor-live-execution.is-waiting .advisor-live-summary strong { color: var(--muted); }

@container route-inspector (max-width: 720px) {
    .automation-smart-filter { grid-template-columns: 1fr; }
}

@media (max-width: 1040px) {
    .advisor-hero { grid-template-columns: 68px minmax(0, 1fr); }
    .advisor-hero-facts { grid-column: 1 / -1; width: 100%; }
    .smart-analysis-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, 320px); }
    .advisor-evidence-metrics { grid-template-columns: 1fr 1fr; }
    .advisor-evidence-metrics > div:nth-child(2) { border-right: 0; }
    .advisor-evidence-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .advisor-learning-facts { grid-template-columns: 1fr 1fr; }
    .advisor-learning-facts > div:nth-child(2) { border-right: 0; }
    .advisor-learning-facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 820px) {
    .smart-analysis-grid { grid-template-columns: 1fr; }
    .advisor-side-rail { grid-row: auto; }
    .advisor-evidence-room { min-height: 0; }
    .advisor-history-panel { grid-column: 1; }
}

@media (max-width: 760px) {
    .smart-analysis-module { padding: 10px; padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
    .smart-analysis-heading { align-items: flex-end; }
    .smart-analysis-heading > div { padding-right: 4px; }
    .smart-analysis-heading span { font-size: 12px; }
    .smart-analysis-heading strong { font-size: 22px; }
    .smart-analysis-heading em { display: block; font-size: 12px; }
    .advisor-refresh { flex: 0 0 44px; width: 44px; padding: 0; justify-content: center; gap: 0; overflow: hidden; color: transparent; font-size: 0; }
    .advisor-refresh > span { color: var(--muted); }
    .advisor-hero { min-height: 0; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 14px; }
    .advisor-orbit { width: 50px; height: 50px; }
    .advisor-orbit::before { inset: 8px; }
    .advisor-orbit::after { inset: 17px; }
    .advisor-orbit > span { top: 2px; left: 22px; transform-origin: 3px 23px; }
    .advisor-hero-copy > strong { font-size: 19px; }
    .advisor-hero-copy p { font-size: 12px; }
    .advisor-learning-body { padding: 12px; }
    .advisor-horizons > ul { grid-template-columns: 1fr 1fr; }
    .advisor-horizons li:nth-child(3n) { border-right: 1px solid var(--line); }
    .advisor-horizons li:nth-child(2n) { border-right: 0; }
    .advisor-hero-facts { grid-template-columns: 1fr; }
    .advisor-hero-facts > div { min-height: 48px; grid-template-columns: 1fr auto; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
    .advisor-hero-facts > div:last-child { border-bottom: 0; }
    .advisor-hero-facts dd { text-align: right; }
    .smart-panel > header { min-height: 60px; padding-inline: 12px; }
    .smart-panel > header strong { font-size: 14px; }
    .advisor-room-actions .quiet-command:first-child { display: none; }
    .advisor-evidence-content { padding: 12px; }
    .advisor-range-card { padding: 16px; }
    .advisor-range-card > strong { font-size: clamp(26px, 9vw, 38px); }
    .advisor-evidence-columns { grid-template-columns: 1fr; }
    .advisor-receipt > summary { grid-template-columns: 36px minmax(0, 1fr) 20px; }
    .advisor-receipt > summary em { display: none; }
    .advisor-receipt > dl { grid-template-columns: 1fr; }
    .advisor-receipt > dl > div { grid-template-columns: 95px minmax(0, 1fr); align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
    .advisor-receipt > dl > div:last-child { border-bottom: 0; }
    .advisor-room-overlay { inset: 12px; padding: 22px 16px; }
    .advisor-live-execution { margin: 0 12px 12px; }
    .advisor-receipt-list article { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
    .advisor-history-time { grid-row: 2; }
    .advisor-history-range { text-align: right; }
    .advisor-receipt-list code { grid-column: 2; grid-row: 2; text-align: right; }
}

@media (max-width: 430px) {
    .smart-analysis-module { padding-inline: 8px; }
    .advisor-hero { border-radius: 13px; }
    .advisor-hero-facts { grid-column: 1 / -1; }
    .advisor-learning-panel > header { align-items: flex-start; }
    .advisor-learning-state { max-width: 132px; text-align: center; }
    .advisor-learning-summary { grid-template-columns: 34px minmax(0, 1fr); padding-inline: 11px; }
    .advisor-learning-summary > span,
    .advisor-learning-lane > span { width: 32px; height: 32px; }
    .advisor-learning-facts,
    .advisor-history-quality,
    .advisor-horizons > ul { grid-template-columns: 1fr; }
    .advisor-learning-facts > div { min-height: 78px; border-right: 0; border-bottom: 1px solid var(--line); }
    .advisor-learning-facts > div:last-child { border-bottom: 0; }
    .advisor-horizons li,
    .advisor-horizons li:nth-child(2n),
    .advisor-horizons li:nth-child(3n) { border-right: 0; }
    .advisor-learning-lane { grid-template-columns: 32px minmax(0, 1fr); }
    .advisor-mode-choices { grid-template-columns: 1fr; }
    .advisor-mode-choice > span { min-height: 82px; }
    .advisor-evidence-metrics { grid-template-columns: 1fr; }
    .advisor-evidence-metrics > div { min-height: 78px; grid-template-columns: 1fr auto; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
    .advisor-evidence-metrics > div:last-child { border-bottom: 0; }
    .advisor-evidence-metrics dd { text-align: right; }
    .advisor-evidence-metrics small { grid-column: 1 / -1; }
    .advisor-range-label { align-items: flex-start; }
    .advisor-range-label > em { flex: 0 0 auto; }
    .advisor-range-card > strong { font-size: 27px; }
    .smart-service-error { align-items: stretch; flex-direction: column; padding: 12px; }
    .advisor-room-overlay { position: relative; inset: auto; min-height: 420px; margin: 12px; }
    .advisor-execution-choices, .advisor-live-summary { grid-template-columns: 1fr; }
    .advisor-live-summary > p { grid-column: 1; }
    .advisor-execution-choices label > span { min-height: 76px; }
    .advisor-evidence-stage.has-overlay > .advisor-evidence-underlay { display: none; }
    .advisor-receipt-list article { padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .advisor-orbit > span,
    .advisor-orbit > i,
    .advisor-skeleton { animation: none; }
}
