
/* Game-performance intelligence: independent of the existing builder score. */
.builder-gaming {
    margin-top: 16px;
    padding: 18px;
    border: 1px solid var(--border-strong, rgba(130, 160, 200, .25));
    border-radius: 16px;
    background: var(--surface, rgba(20, 28, 48, .82));
}
.builder-gaming h3 { font-size: 1rem; margin: 0 0 7px; }
.builder-gaming .gaming-intro {
    display: block; font-size: .8rem; line-height: 1.85; color: var(--text-muted);
}




.gaming-status { margin-top: 13px; min-height: 20px; line-height: 1.8; font-size: .8rem; color: var(--text-muted); }
.gaming-metrics { display: grid; gap: 9px; grid-template-columns: 1fr 1fr; margin-top: 12px; }
.gaming-metric {
    border: 1px solid var(--border, rgba(130,160,200,.25)); border-radius: 11px;
    padding: 12px; background: var(--surface-2, rgba(20,30,50,.7));
}
.gaming-metric strong { display: block; font-size: 1.2rem; color: var(--text); direction: ltr; text-align: right; }
.gaming-metric small { display: block; margin-top: 5px; color: var(--text-muted); line-height: 1.6; }
.gaming-metric.wide { grid-column: 1 / -1; }
.gaming-footnote { display: block; margin-top: 10px; font-size: .74rem; line-height: 1.85; color: var(--text-muted); }
.gaming-source { display: inline-flex; margin-top: 9px; font-size: .8rem; color: var(--primary, #22d3ee); }
[hidden].gaming-metrics, [hidden].gaming-source, .gaming-report[hidden], .gaming-bottleneck[hidden], .gaming-upgrades[hidden], .gaming-status[hidden], .gaming-selected-stat[hidden], .gaming-selected-meta [hidden] { display: none !important; }
@media (max-width: 450px) {   }

.builder-smart-suggestions { margin-top: 15px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.builder-smart-suggestions h3 { font-size: .96rem; margin: 0 0 8px; }
.smart-group { border-top: 1px solid var(--border); padding-top: 11px; margin-top: 12px; }
.smart-group > strong { display: block; margin-bottom: 7px; font-size: .85rem; }
.smart-suggestion { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); }
.smart-suggestion > div { display: grid; gap: 4px; min-width: 0; }
.smart-suggestion a, .smart-preset { color: var(--text); font-size: .8rem; text-decoration: none; overflow-wrap: anywhere; }
.smart-suggestion small, .smart-preset small { color: var(--text-muted); font-size: .72rem; line-height: 1.65; }
.smart-suggestion span { font-size: .78rem; color: var(--primary); }
.smart-suggestion button { flex-shrink: 0; }
.smart-preset { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 10px 0; }
.smart-preset i { color: var(--primary); }

/* Work report: explicit build analysis and contextual RAM advice. */
.builder-smart-entry { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 18px 0 8px; }
.builder-purpose-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.builder-purpose-form label { font-weight: 650; font-size: .88rem; }
.builder-purpose-form .form-control { width: min(230px, 100%); }
.builder-memory-overview { margin-top: 16px; padding: 14px; border-radius: 14px; border: 1px solid var(--border, #cbd5e1); background: var(--surface-2, rgba(80,100,120,.06)); }
.builder-memory-overview > strong { display: block; font-size: .9rem; margin-bottom: 10px; }
.builder-analysis { padding-top: 26px; padding-bottom: 45px; }
.builder-analysis h1 { font-size: clamp(1.4rem, 3vw, 2rem); }
.builder-analysis h2 { font-size: 1.1rem; margin: 0 0 14px; }
.analysis-header { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 15px; margin-bottom: 20px; }
.analysis-header p { margin-top: 6px; color: var(--text-muted); line-height: 1.85; }
.analysis-summary, .analysis-components, .analysis-ram, .suggested-build-card {
    border: 1px solid var(--border, rgba(120,140,160,.3)); border-radius: 16px;
    background: var(--surface, transparent); padding: 18px;
}
.analysis-summary p, .analysis-ram p { line-height: 2; }
.analysis-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; margin: 18px 0; }
.analysis-part { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--border, rgba(120,140,160,.25)); }
.analysis-part span, .analysis-part small { color: var(--text-muted); font-size: .8rem; }
.analysis-part strong { line-height: 1.7; }
.analysis-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.suggestion-filter { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; margin: 15px 0 25px; }
.suggestion-filter label { display: grid; gap: 7px; min-width: min(100%, 220px); }
.suggestion-filter .form-control { width: 100%; }
.suggestion-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 15px; }
.suggested-build-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.suggested-build-head strong { color: var(--primary); }
.suggested-build-card > .btn { margin-top: 12px; }
@media (max-width: 720px) { .analysis-grid { grid-template-columns: 1fr; } .builder-purpose-form { width: 100%; } }


/* Shared FPS report primitives. */
.gaming-report { display: grid; gap: 13px; margin-top: 12px; }
.gaming-bottleneck,
.gaming-upgrades,
.gaming-selected-mode {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--border-strong, rgba(130, 160, 200, .28));
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018)), var(--surface-2, rgba(20,30,50,.66));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.gaming-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gaming-section-heading h4 { margin: 3px 0 0; font-size: .94rem; color: var(--text); }
.gaming-eyebrow { color: var(--text-muted); font-size: .68rem; line-height: 1.6; }
.gaming-bottleneck-value { font-size: .92rem; white-space: nowrap; color: var(--text); }
.gaming-bottleneck[data-severity="low"] { border-color: rgba(34,197,94,.35); }
.gaming-bottleneck[data-severity="medium"] { border-color: rgba(234,179,8,.42); }
.gaming-bottleneck[data-severity="high"] { border-color: rgba(239,68,68,.42); }
.gaming-bottleneck-meter { overflow: hidden; height: 8px; margin-top: 12px; border-radius: 99px; background: rgba(148,163,184,.18); }
.gaming-bottleneck-meter > span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--primary, #38bdf8); transition: width .25s ease; }
.gaming-bottleneck[data-severity="low"] .gaming-bottleneck-meter > span { background: #22c55e; }
.gaming-bottleneck[data-severity="medium"] .gaming-bottleneck-meter > span { background: #eab308; }
.gaming-bottleneck[data-severity="high"] .gaming-bottleneck-meter > span { background: #ef4444; }
.gaming-selected-mode { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.gaming-selected-stat { display: grid; gap: 3px; }
.gaming-selected-stat strong { font-size: 1.15rem; color: var(--text); direction: ltr; text-align: start; }
.gaming-selected-stat small, .gaming-selected-meta small { color: var(--text-muted); font-size: .72rem; line-height: 1.7; }
.gaming-selected-meta { grid-column: 1 / -1; display: grid; gap: 3px; padding-top: 8px; border-top: 1px solid var(--border); }
.gaming-upgrade-item { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.gaming-upgrade-item:last-child { border-bottom: 0; padding-bottom: 0; }
.gaming-upgrade-item strong { color: var(--text); font-size: .82rem; line-height: 1.7; }
.gaming-upgrade-item small { color: var(--text-muted); font-size: .72rem; line-height: 1.7; }
.gaming-footnote { overflow-wrap: anywhere; }
@media (max-width: 480px) {
    .gaming-report { gap: 10px; }
    .gaming-bottleneck, .gaming-upgrades, .gaming-selected-mode { padding: 11px; }
    .gaming-bottleneck-value { font-size: .8rem; }
}


/* Exact GPU-board / chassis fit result from GPU Ninja's attributed dimensions. */
.analysis-external-fit {
    display: grid;
    gap: 11px;
    margin: 16px 0;
    padding: 15px;
    border: 1px solid var(--border-strong, rgba(130,160,200,.28));
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018)), var(--surface-2, rgba(20,30,50,.66));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.analysis-external-fit[data-tone="success"] { border-color: rgba(34,197,94,.38); }
.analysis-external-fit[data-tone="warning"] { border-color: rgba(234,179,8,.48); }
.analysis-external-fit[data-tone="danger"] { border-color: rgba(239,68,68,.48); }
.analysis-external-fit__heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.analysis-external-fit__heading h2 { margin: 3px 0 4px; font-size: .98rem; }
.analysis-external-fit__heading p { margin: 0; color: var(--text-muted); font-size: .78rem; line-height: 1.7; }
.analysis-external-fit__heading > strong { font-size: .83rem; white-space: nowrap; }
.analysis-external-fit__reasons { display: grid; gap: 6px; margin: 0; padding-inline-start: 20px; color: var(--text); font-size: .78rem; line-height: 1.8; }
.analysis-external-fit__psu { margin: 0; padding: 9px 11px; border-radius: 9px; background: rgba(148,163,184,.08); font-size: .78rem; line-height: 1.8; }
.analysis-external-fit__psu[data-psu-status="below"] { color: #ef4444; background: rgba(239,68,68,.08); }
.analysis-external-fit__psu[data-psu-status="meets"] { color: #22c55e; background: rgba(34,197,94,.08); }
.analysis-external-fit > small { color: var(--text-muted); font-size: .7rem; }
.analysis-external-fit > a { width: fit-content; color: var(--primary, #38bdf8); font-size: .76rem; text-decoration: none; }
@media (max-width: 520px) {
    .analysis-external-fit { padding: 12px; }
    .analysis-external-fit__heading { display: grid; }
    .analysis-external-fit__heading > strong { white-space: normal; }
}


/* === Assembly Intelligence / professional report dashboard ===
   Scope the presentation to the post-assembly route. The core builder UI and
   product detail screens retain their existing presentation. */
.analysis-dashboard {
    --analysis-blue: #38bdf8;
    --analysis-teal: #2dd4bf;
    --analysis-violet: #818cf8;
    --analysis-amber: #fbbf24;
    --analysis-ink: var(--text, #e2e8f0);
    --analysis-muted: var(--text-muted, #94a3b8);
    --analysis-border: var(--border, rgba(148,163,184,.2));
    max-width: 1440px;
    padding-top: clamp(22px, 4vw, 52px);
    padding-bottom: 60px;
    color: var(--analysis-ink);
}
.analysis-dashboard *,
.analysis-dashboard *::before,
.analysis-dashboard *::after { box-sizing: border-box; }
.analysis-dashboard [hidden] { display: none !important; }
.analysis-dashboard h1, .analysis-dashboard h2, .analysis-dashboard h3, .analysis-dashboard h4 { letter-spacing: -.01em; }
.analysis-dashboard h2 { font-size: clamp(1rem, 1.6vw, 1.2rem); }
.analysis-dashboard .analysis-header {
    gap: 22px; align-items: flex-end; margin-bottom: 24px;
}
.analysis-dashboard .analysis-kicker {
    display: inline-flex; align-items: center; gap: 10px; direction: ltr;
    color: var(--analysis-muted); font-size: .7rem; letter-spacing: .16em;
    font-weight: 750; text-transform: uppercase; margin-bottom: 9px;
}
.analysis-dashboard .analysis-kicker i { color: var(--analysis-blue); font-size: .84rem; }
.analysis-dashboard .analysis-kicker span { opacity: .35; }
.analysis-dashboard .analysis-header h1 {
    font-size: clamp(1.75rem, 3.2vw, 2.65rem);
    font-weight: 900; line-height: 1.45; margin: 0;
}
.analysis-dashboard .analysis-header h1 span {
    color: #149fcb;
    background: linear-gradient(100deg, #0696d0, #48c9d8);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.analysis-dashboard .analysis-header p {
    max-width: 650px; margin: 8px 0 0; font-size: .87rem; line-height: 1.95;
}
.analysis-dashboard .analysis-back {
    text-decoration: none; display: inline-flex; align-items: center;
    gap: 10px; padding: 11px 16px; white-space: nowrap;
    font-size: .8rem; font-weight: 750; border-radius: 12px;
    background: var(--surface, rgba(15,23,42,.6));
    border: 1px solid var(--analysis-border); color: var(--analysis-ink);
    transition: border-color .18s ease, transform .18s ease;
}
.analysis-dashboard .analysis-back:hover { border-color: var(--analysis-blue); transform: translateY(-1px); }
.analysis-dashboard .analysis-hero {
    position: relative; isolation: isolate; overflow: hidden;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, 300px);
    align-items: center; gap: 22px; padding: clamp(24px, 3.4vw, 40px);
    min-height: 210px; border-radius: 24px;
    background: radial-gradient(ellipse at 9% 19%, rgba(6,182,212,.17), transparent 45%),
      radial-gradient(ellipse at 90% 120%, rgba(59,130,246,.16), transparent 48%),
      linear-gradient(124deg, #071326 0%, #0e1c33 54%, #101a30 100%);
    border: 1px solid rgba(126,197,255,.25);
    box-shadow: 0 15px 55px rgba(1,14,37,.13), inset 0 1px 0 rgba(255,255,255,.06);
}
.analysis-dashboard .analysis-hero::after {
    content: ""; position: absolute; pointer-events: none; z-index: -1;
    inset: -40% 42% 15% -20%; border: 1px solid rgba(70,192,226,.1);
    border-radius: 50%; transform: rotate(-18deg);
}
.analysis-dashboard .analysis-hero__copy { max-width: 700px; }
.analysis-dashboard .analysis-hero__eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    letter-spacing: .13em; color: #8edcf1; font-weight: 750; font-size: .7rem;
    direction: ltr;
}
.analysis-dashboard .analysis-live-dot {
    height: 7px; width: 7px; display: inline-block; border-radius: 50%;
    background: #2dd4bf; box-shadow: 0 0 0 4px rgba(45,212,191,.13);
}
.analysis-dashboard .analysis-hero h2 {
    color: #fff; font-size: clamp(1.3rem, 2.2vw, 1.9rem);
    line-height: 1.5; margin: 13px 0 10px; font-weight: 900;
}
.analysis-dashboard .analysis-hero h2 span { color: #67e8f9; }
.analysis-dashboard .analysis-hero p {
    margin: 0; max-width: 510px; color: #a8bcd3; font-size: .82rem; line-height: 2;
}
.analysis-dashboard .analysis-health {
    min-width: 0; display: grid; gap: 6px; position: relative; padding: 19px;
    border: 1px solid rgba(148,163,184,.23); border-radius: 20px;
    background: rgba(255,255,255,.045); color: #b8c9dd;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.analysis-dashboard .analysis-health__icon {
    width: 39px; height: 39px; display: grid; place-items: center;
    border-radius: 12px; font-size: 1rem; color: #7dd3fc; background: rgba(56,189,248,.12);
    margin-bottom: 2px;
}
.analysis-dashboard .analysis-health > span { font-size: .75rem; }
.analysis-dashboard .analysis-health strong {
    color: white; font-size: 1.03rem; line-height: 1.65; font-weight: 800;
}
.analysis-dashboard .analysis-health small { color: #91a4be; font-size: .68rem; line-height: 1.6; }
.analysis-dashboard .analysis-health--error .analysis-health__icon { color: #fca5a5; background: rgba(239,68,68,.13); }
.analysis-dashboard .analysis-health--warning .analysis-health__icon { color: #fde68a; background: rgba(245,158,11,.13); }
.analysis-dashboard .analysis-health--ok .analysis-health__icon { color: #5eead4; background: rgba(45,212,191,.13); }

.analysis-dashboard .analysis-kpis {
    display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px;
    margin: 18px 0 22px;
}
.analysis-dashboard .analysis-kpi,
.analysis-dashboard .analysis-panel,
.analysis-dashboard .analysis-feature {
    background: var(--surface, rgba(15,23,42,.65));
    border: 1px solid var(--analysis-border);
    box-shadow: 0 6px 26px rgba(5,20,44,.035);
}
.analysis-dashboard .analysis-kpi {
    border-radius: 18px; padding: 18px; min-width: 0;
    display: grid; align-content: start; justify-items: start; gap: 6px;
}
.analysis-dashboard .analysis-kpi__icon {
    display: grid; place-items: center; width: 36px; height: 36px;
    border-radius: 11px; background: rgba(56,189,248,.11);
    color: #0ea5d7; margin-bottom: 2px;
}
.analysis-dashboard .analysis-kpi:nth-child(2) .analysis-kpi__icon { background: rgba(129,140,248,.12); color: #818cf8; }
.analysis-dashboard .analysis-kpi:nth-child(3) .analysis-kpi__icon { background: rgba(45,212,191,.12); color: #0cae99; }
.analysis-dashboard .analysis-kpi:nth-child(4) .analysis-kpi__icon { background: rgba(251,191,36,.12); color: #d99b18; }
.analysis-dashboard .analysis-kpi__label { color: var(--analysis-muted); font-size: .73rem; }
.analysis-dashboard .analysis-kpi strong {
    font-size: clamp(1.05rem, 1.7vw, 1.47rem); font-weight: 900;
    line-height: 1.65; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.analysis-dashboard .analysis-kpi strong small { color: var(--analysis-muted); font-size: .66rem; font-weight: 600; white-space: nowrap; }
.analysis-dashboard .analysis-kpi__caption { font-size: .67rem; line-height: 1.7; color: var(--analysis-muted); }
.analysis-dashboard .analysis-overview-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 22px;
}
.analysis-dashboard .analysis-panel {
    padding: clamp(18px, 2.1vw, 25px); border-radius: 20px; min-width: 0;
}
.analysis-dashboard .analysis-panel__head {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    margin-bottom: 20px;
}
.analysis-dashboard .analysis-panel__eyebrow {
    display: block; font-size: .66rem; font-weight: 800; letter-spacing: .14em;
    color: #0aa0ca; direction: ltr; text-align: right; line-height: 1.5; margin-bottom: 5px;
}
.analysis-dashboard .analysis-panel__head h2 { margin: 0; font-weight: 850; line-height: 1.6; }
.analysis-dashboard .analysis-panel__icon {
    flex: none; width: 39px; height: 39px; display: grid; place-items: center;
    border-radius: 13px; color: #0ea5d7; background: rgba(56,189,248,.1);
}
.analysis-dashboard .analysis-counter {
    border: 1px solid var(--analysis-border); border-radius: 30px; flex: none;
    font-size: .72rem; padding: 6px 11px; color: var(--analysis-muted);
}
.analysis-dashboard .analysis-issues { display: grid; gap: 9px; max-height: 310px; overflow-y: auto; }
.analysis-dashboard .analysis-issue {
    display: flex; align-items: flex-start; gap: 12px; padding: 13px;
    border-radius: 13px; background: rgba(148,163,184,.075);
    border: 1px solid rgba(148,163,184,.11);
}
.analysis-dashboard .analysis-issue p { margin: 0; line-height: 1.8; font-size: .79rem; }
.analysis-dashboard .analysis-issue__icon { flex: none; margin-top: 2px; }
.analysis-dashboard .analysis-issue--error { background: rgba(239,68,68,.055); border-color: rgba(239,68,68,.17); }
.analysis-dashboard .analysis-issue--error .analysis-issue__icon { color: #ef4444; }
.analysis-dashboard .analysis-issue--warning { background: rgba(245,158,11,.055); border-color: rgba(245,158,11,.17); }
.analysis-dashboard .analysis-issue--warning .analysis-issue__icon { color: #d9990e; }
.analysis-dashboard .analysis-issue--ok .analysis-issue__icon { color: #10b981; }

.analysis-dashboard .analysis-power-chart__numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.analysis-dashboard .analysis-power-chart__numbers > div { min-width: 0; }
.analysis-dashboard .analysis-power-chart__numbers strong { font-size: 1.35rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.analysis-dashboard .analysis-power-chart__numbers strong small { font-size: .65rem; color: var(--analysis-muted); }
.analysis-dashboard .analysis-power-chart__numbers span { display: block; font-size: .69rem; color: var(--analysis-muted); margin-top: 3px; }
.analysis-dashboard .analysis-power-chart__track {
    display: flex; width: 100%; height: 15px; margin-top: 17px; overflow: hidden;
    background: rgba(148,163,184,.16); border-radius: 99px; direction: ltr;
}
.analysis-dashboard [data-power-components] { height: 100%; background: linear-gradient(90deg,#0284c7,#38bdf8); }
.analysis-dashboard [data-power-overhead] { height: 100%; background: #34d4bb; }
.analysis-dashboard .analysis-power-legend {
    display: flex; flex-wrap: wrap; gap: 8px 17px; margin-top: 11px;
}
.analysis-dashboard .analysis-power-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: .71rem; color: var(--analysis-muted); }
.analysis-dashboard .analysis-swatch { display: inline-block; width: 9px; height: 9px; border-radius: 3px; background: #38bdf8; }
.analysis-dashboard .analysis-swatch--overhead { background: #34d4bb; }
.analysis-dashboard .analysis-power-coverage { padding-top: 16px; margin-top: 18px; border-top: 1px solid var(--analysis-border); }
.analysis-dashboard .analysis-power-coverage__heading { display: flex; justify-content: space-between; gap: 8px; font-size: .75rem; }
.analysis-dashboard .analysis-power-coverage__heading strong { direction: ltr; font-variant-numeric: tabular-nums; }
.analysis-dashboard .analysis-power-coverage__track { margin-top: 9px; background: rgba(148,163,184,.15); height: 7px; overflow: hidden; border-radius: 99px; }
.analysis-dashboard .analysis-power-coverage__track span { display: block; height: 100%; width: 0; border-radius: inherit; background: #22c7ab; transition: width .24s ease; }
.analysis-dashboard [data-power-overload="true"] .analysis-power-coverage__track span { background: #f87171; }
.analysis-dashboard .analysis-power-coverage small, .analysis-dashboard .analysis-power-chart__hint {
    display: block; color: var(--analysis-muted); margin: 9px 0 0; line-height: 1.85; font-size: .68rem;
}
.analysis-dashboard .analysis-method { margin-top: 17px; border-top: 1px solid var(--analysis-border); padding-top: 11px; }
.analysis-dashboard .analysis-method summary {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    cursor: pointer; color: var(--analysis-muted); font-size: .74rem; list-style: none;
}
.analysis-dashboard .analysis-method summary::-webkit-details-marker { display: none; }
.analysis-dashboard .analysis-method[open] summary i { transform: rotate(180deg); }
.analysis-dashboard .analysis-method p { font-size: .72rem; color: var(--analysis-muted); line-height: 1.9; margin: 12px 0 0; }

.analysis-dashboard .analysis-feature {
    padding: clamp(18px, 2.5vw, 29px); border-radius: 22px; margin: 0 0 22px;
}
.analysis-dashboard .analysis-feature__head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px; margin-bottom: 15px;
}
.analysis-dashboard .analysis-feature__head h2 {
    font-size: clamp(1.12rem, 1.8vw, 1.4rem); font-weight: 900; margin: 0 0 4px;
}
.analysis-dashboard .analysis-feature__head p { margin: 0; line-height: 1.8; font-size: .78rem; color: var(--analysis-muted); }
.analysis-dashboard .analysis-feature__mark {
    flex: none; width: 46px; height: 46px; border-radius: 15px;
    color: #12a5ce; background: rgba(56,189,248,.1); display: grid; place-items: center;
    font-size: 1.2rem;
}
.analysis-dashboard .builder-gaming {
    margin: 0; background: transparent; padding: 0; border: 0; border-radius: 0;
}
.analysis-dashboard .gaming-topline {
    display: flex; justify-content: space-between; gap: 12px; align-items: center;
    padding: 12px 0; border-top: 1px solid var(--analysis-border);
    font-size: .7rem; font-weight: 800; letter-spacing: .06em; color: #009bc2;
}
.analysis-dashboard .gaming-topline span { display: inline-flex; align-items: center; gap: 8px; direction: ltr; }
.analysis-dashboard .gaming-topline small { font-size: .7rem; letter-spacing: 0; font-weight: 500; color: var(--analysis-muted); }





.analysis-dashboard .gaming-report {
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; margin-top: 20px;
}
.analysis-dashboard .gaming-selected-mode,
.analysis-dashboard .gaming-bottleneck,
.analysis-dashboard .gaming-upgrades,
.analysis-dashboard .analysis-dashboard .gaming-visual-section {
    padding: clamp(16px, 2vw, 23px);
    border-radius: 18px; background: var(--surface-2, rgba(26,35,56,.6));
    border: 1px solid var(--analysis-border);
    box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    min-width: 0;
}
.analysis-dashboard .gaming-selected-mode { grid-column: 1 / -1; }
.analysis-dashboard .gaming-report:has(.gaming-bottleneck:not([hidden])) .gaming-selected-mode { grid-column: span 1; }
.analysis-dashboard .gaming-bottleneck { grid-column: 1 / -1; }
.analysis-dashboard .gaming-report:has(.gaming-selected-mode:not([hidden])) .gaming-bottleneck { grid-column: span 1; }
.analysis-dashboard .gaming-visual-section,
.analysis-dashboard .analysis-dashboard .gaming-upgrades,
.analysis-dashboard .gaming-report > .gaming-footnote,
.analysis-dashboard .gaming-report > .gaming-source { grid-column: 1 / -1; }
.analysis-dashboard .gaming-selected-mode--spotlight {
    display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto;
    position: relative; align-items: start; gap: 5px 14px;
    border-color: rgba(56,189,248,.25); background:
      radial-gradient(ellipse at 0% 0%, rgba(56,189,248,.09), transparent 65%),
      var(--surface-2, rgba(26,35,56,.6));
}
.analysis-dashboard .gaming-selected-stat { min-width: 0; display: grid; align-content: center; gap: 6px; }
.analysis-dashboard .gaming-selected-stat--major { grid-row: 1 / 3; }
.analysis-dashboard .gaming-stat-caption, .analysis-dashboard .gaming-stat-subtitle { color: var(--analysis-muted); font-size: .7rem; }
.analysis-dashboard .gaming-selected-stat strong {
    font-size: clamp(1.55rem,2.2vw,2.4rem); display: flex; align-items: baseline; gap: 7px;
    font-weight: 900; font-variant-numeric: tabular-nums; color: var(--analysis-ink);
    direction: ltr; justify-content: flex-end; line-height: 1.5;
}
.analysis-dashboard .gaming-selected-stat strong small { font-size: .75rem; font-weight: 800; color: var(--analysis-muted); }
.analysis-dashboard .gaming-selected-stat--major strong { color: #079fc8; }
.analysis-dashboard .gaming-selected-meta {
    grid-column: 1 / -1; grid-row: auto; display: grid; gap: 6px; margin-top: 7px;
    padding-top: 10px; border-top: 1px solid var(--analysis-border);
}



.analysis-dashboard .gaming-bottleneck .gaming-section-heading { gap: 8px; flex-wrap: wrap; }
.analysis-dashboard .gaming-section-heading h4 { font-size: .96rem; font-weight: 800; }
.analysis-dashboard .gaming-bottleneck-meter { height: 11px; margin-top: 23px; }
.analysis-dashboard .gaming-bottleneck-value { color: var(--analysis-ink); font-size: .81rem; white-space: normal; }
.analysis-dashboard .gaming-eyebrow { font-size: .69rem; }
.analysis-dashboard .gaming-visual-section {
    background: radial-gradient(ellipse at 90% 1%,rgba(56,189,248,.065),transparent 60%),
      var(--surface-2, rgba(25,36,58,.7));
}
.analysis-dashboard .gaming-chart-caption {
    color: var(--analysis-muted); font-size: .7rem; letter-spacing: .08em; font-weight: 800;
    direction: ltr; white-space: nowrap;
}
.analysis-dashboard .gaming-chart-legend {
    display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 19px;
    font-size: .73rem; color: var(--analysis-muted); align-items: center;
}
.analysis-dashboard .gaming-chart-legend span { display: inline-flex; align-items: center; gap: 7px; direction: ltr; }
.analysis-dashboard .gaming-legend-dot { width: 9px; height: 9px; display: inline-block; border-radius: 50%; }
.analysis-dashboard .gaming-legend-dot--fhd { background: #38bdf8; }
.analysis-dashboard .gaming-legend-dot--qhd { background: #2dd4bf; }
.analysis-dashboard .gaming-legend-dot--uhd { background: #818cf8; }

.analysis-dashboard .gaming-chart-scroller {
    overflow-x: auto; overscroll-behavior-x: contain;
    scrollbar-width: thin; scrollbar-color: rgba(125,155,195,.4) transparent;
    margin-top: 11px; border-radius: 12px;
}
.analysis-dashboard .gaming-chart-scroller:focus-visible { outline: 2px solid var(--analysis-blue); outline-offset: 3px; }
.analysis-dashboard .gaming-chart-svg { width: 100%; min-width: 720px; height: auto; display: block; overflow: visible; }
.analysis-dashboard .gaming-chart-gridline { stroke: rgba(148,163,184,.2); stroke-width: 1; }
.analysis-dashboard .gaming-chart-separator { stroke: rgba(148,163,184,.22); stroke-dasharray: 3 7; }
.analysis-dashboard .gaming-chart-axis, .analysis-dashboard .gaming-chart-quality {
    fill: var(--analysis-muted); font-size: 12px; font-weight: 500;
}
.analysis-dashboard .gaming-chart-resolution { fill: var(--analysis-ink); font-size: 15px; font-weight: 750; }
.analysis-dashboard .gaming-chart-value {
    fill: var(--analysis-muted); font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums;
}
.analysis-dashboard .gaming-chart-value.is-selected { fill: #0891b2; }
.analysis-dashboard .gaming-chart-bar { cursor: pointer; stroke: transparent; stroke-width: 2; opacity: .81; transition: opacity .2s ease; }
.analysis-dashboard .gaming-chart-bar:hover { opacity: 1; }
.analysis-dashboard .gaming-chart-bar:focus-visible { stroke: #f59e0b; stroke-width: 4; outline: none; }
.analysis-dashboard .gaming-chart-bar--0 { fill: #38bdf8; }
.analysis-dashboard .gaming-chart-bar--1 { fill: #2dd4bf; }
.analysis-dashboard .gaming-chart-bar--2 { fill: #818cf8; }
.analysis-dashboard .gaming-chart-bar.is-selected { stroke: #0f7895; stroke-width: 3; opacity: 1; }


.analysis-dashboard .gaming-chart-footnote { color: var(--analysis-muted); font-size: .69rem; line-height: 1.8; margin: 8px 0 0; }
.analysis-dashboard .gaming-footnote { font-size: .72rem; }
.analysis-dashboard .gaming-source { text-decoration: none; }
.analysis-dashboard .gaming-upgrade-item { padding: 14px 0; }
.analysis-dashboard .gaming-status { margin-top: 10px; padding: 12px; border-radius: 12px; background: rgba(148,163,184,.08); min-height: 0; }

.analysis-dashboard .analysis-grid {
    grid-template-columns: minmax(0,1.35fr) minmax(0,1fr);
    gap: 16px; margin: 0 0 20px;
}
.analysis-dashboard .analysis-part {
    display: grid; grid-template-columns: 41px minmax(0,1fr) auto; gap: 13px;
    align-items: center; padding: 15px 0; border-bottom: 1px solid var(--analysis-border);
}
.analysis-dashboard .analysis-part:first-child { padding-top: 0; }
.analysis-dashboard .analysis-part:last-child { border-bottom: 0; padding-bottom: 0; }
.analysis-dashboard .analysis-part__icon { display: grid; place-items: center; width: 41px; height: 41px; border-radius: 12px; color: #0ea5d7; background: rgba(56,189,248,.1); }
.analysis-dashboard .analysis-part__info { min-width: 0; display: grid; gap: 4px; }
.analysis-dashboard .analysis-part__info small { color: var(--analysis-muted); font-size: .7rem; }
.analysis-dashboard .analysis-part__info strong { line-height: 1.6; font-size: .83rem; overflow-wrap: anywhere; }
.analysis-dashboard .analysis-part__price { display: inline-flex; gap: 4px; white-space: nowrap; color: var(--analysis-ink); font-size: .76rem; font-weight: 800; }
.analysis-dashboard .analysis-part__price small { font-size: .67rem; font-weight: 500; color: var(--analysis-muted); }
.analysis-dashboard .analysis-memory-stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(88px,1fr)); gap: 10px; }
.analysis-dashboard .analysis-memory-stats > div { padding: 13px; border-radius: 12px; background: rgba(148,163,184,.075); display: grid; gap: 4px; }
.analysis-dashboard .analysis-memory-stats span { color: var(--analysis-muted); font-size: .68rem; }
.analysis-dashboard .analysis-memory-stats strong { font-size: 1.1rem; font-weight: 850; }
.analysis-dashboard .analysis-memory-stats strong small { font-size: .68rem; color: var(--analysis-muted); }
.analysis-dashboard .analysis-memory-usage { display: flex; gap: 10px; align-items: center; margin: 17px 0; font-size: .77rem; }
.analysis-dashboard .analysis-memory-usage i { color: #0ca5ca; }
.analysis-dashboard .analysis-memory-advice { display: grid; gap: 9px; }
.analysis-dashboard .analysis-memory-advice p { display: flex; gap: 9px; margin: 0; padding: 12px; border-radius: 11px; line-height: 1.85; font-size: .75rem; background: rgba(148,163,184,.065); }
.analysis-dashboard .analysis-memory-advice i { margin-top: 4px; color: #ca9221; }
.analysis-dashboard .analysis-external-fit { border-radius: 20px; padding: clamp(18px,2.3vw,26px); margin: 0 0 22px; }
.analysis-dashboard .analysis-external-fit__heading h2 { font-size: 1.1rem; font-weight: 800; }
.analysis-dashboard .builder-analysis-insights { margin-top: 14px; }
.analysis-dashboard .analysis-data-note { margin: 20px 0 0; display: flex; gap: 8px; color: var(--analysis-muted); line-height: 1.95; font-size: .73rem; }
.analysis-dashboard .analysis-data-note i { margin-top: 5px; }
.analysis-dashboard .analysis-actions { margin-top: 19px; gap: 10px; }
.analysis-dashboard .analysis-actions a { display: inline-flex; align-items: center; gap: 9px; border-radius: 11px; padding: 11px 15px; font-size: .79rem; text-decoration: none; }
.analysis-dashboard .analysis-empty { margin: 30px auto; padding: 56px 20px; border: 1px solid var(--analysis-border); border-radius: 22px; background: var(--surface); text-align: center; }
.analysis-dashboard .analysis-empty__icon { width: 65px; height: 65px; display: grid; place-items: center; border-radius: 22px; font-size: 1.5rem; background: rgba(56,189,248,.1); color: #0894bd; margin: 0 auto 16px; }
.analysis-dashboard .analysis-empty h2 { font-size: 1.1rem; margin-bottom: 10px; }
.analysis-dashboard .analysis-empty p { color: var(--analysis-muted); line-height: 1.9; font-size: .83rem; margin: 0 auto 18px; }
.analysis-dashboard .analysis-empty .btn { display: inline-flex; gap: 8px; align-items: center; }

@media (max-width: 1050px) {
    .analysis-dashboard .analysis-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
    
}
@media (max-width: 760px) {
    .analysis-dashboard .analysis-hero { grid-template-columns: 1fr; }
    .analysis-dashboard .analysis-health { max-width: 400px; }
    .analysis-dashboard .analysis-overview-grid,
    .analysis-dashboard .analysis-details-grid { grid-template-columns: 1fr; }
    .analysis-dashboard .gaming-report { grid-template-columns: 1fr; }
    .analysis-dashboard .gaming-report:has(.gaming-bottleneck:not([hidden])) .gaming-selected-mode,
    .analysis-dashboard .gaming-report:has(.gaming-selected-mode:not([hidden])) .gaming-bottleneck { grid-column: 1 / -1; }
    .analysis-dashboard .analysis-header { align-items: flex-start; }
}
@media (max-width: 520px) {
    .analysis-dashboard { padding-top: 18px; }
    .analysis-dashboard .analysis-hero { padding: 23px 18px; border-radius: 20px; }
    .analysis-dashboard .analysis-kpis { gap: 9px; }
    .analysis-dashboard .analysis-kpi { padding: 14px; border-radius: 14px; }
    .analysis-dashboard .analysis-kpi__caption { font-size: .64rem; }
    .analysis-dashboard .analysis-feature { padding: 16px 12px; }
    
    
    
    
    .analysis-dashboard .gaming-selected-mode--spotlight { gap: 9px; }
    .analysis-dashboard .gaming-selected-stat strong { font-size: 1.42rem; }
    .analysis-dashboard .gaming-chart-svg { min-width: 680px; }
    .analysis-dashboard .gaming-chart-legend { gap: 7px 12px; }
    .analysis-dashboard .analysis-part { grid-template-columns: 35px minmax(0,1fr); gap: 10px; }
    .analysis-dashboard .analysis-part__icon { width: 35px; height: 35px; }
    .analysis-dashboard .analysis-part__price { grid-column: 2; }
    .analysis-dashboard .analysis-actions a { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .analysis-dashboard *, .analysis-dashboard *::before, .analysis-dashboard *::after { transition: none !important; animation: none !important; }
}


/* Score panels visualize only server-provided 0–100 assessment data. */
.analysis-dashboard .analysis-score-panel {
    background: var(--surface, rgba(15,23,42,.65));
    border: 1px solid var(--analysis-border); border-radius: 22px;
    padding: clamp(19px,2.4vw,28px); margin: 0 0 22px;
}
.analysis-dashboard .analysis-score-head h2 { margin: 2px 0 4px; font-size: 1.15rem; font-weight: 850; }
.analysis-dashboard .analysis-score-head p { margin: 0; font-size: .76rem; line-height: 1.8; color: var(--analysis-muted); }
.analysis-dashboard .analysis-score-layout {
    display: grid; grid-template-columns: 255px minmax(0,1fr);
    align-items: stretch; gap: 18px; margin-top: 19px;
}
.analysis-dashboard .analysis-score-gauge {
    --analysis-score-angle: 0deg;
    width: auto; min-height: 232px; margin: 0;
    border: 1px solid var(--analysis-border); border-radius: 18px;
    background: var(--surface-2, rgba(27,40,62,.6));
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.analysis-dashboard .analysis-score-gauge__inner {
    position: relative; width: 142px; height: 142px; flex: none;
    border-radius: 50%; background: rgba(148,163,184,.14);
    display: flex; align-items: center; justify-content: center; flex-direction: column; isolation: isolate;
}
.analysis-dashboard .analysis-score-gauge.is-visualized .analysis-score-gauge__inner {
    background: conic-gradient(from 0deg, #16b2d4 0deg var(--analysis-score-angle), rgba(148,163,184,.17) var(--analysis-score-angle) 360deg);
}
.analysis-dashboard .analysis-score-gauge__inner::before {
    content: ""; position: absolute; z-index: -1; inset: 10px;
    border-radius: 50%; background: var(--surface-2, #142036);
    border: 1px solid var(--analysis-border);
}
.analysis-dashboard .analysis-score-gauge .score-big { margin: 0; color: var(--analysis-ink); font-size: 2.05rem; font-weight: 900; line-height: 1.4; }
.analysis-dashboard .analysis-score-gauge .score-out-of { color: var(--analysis-muted); font-size: .72rem; }
.analysis-dashboard .analysis-score-gauge .score-badge { color: #0d9bbb; font-size: .8rem; font-weight: 800; }
.analysis-dashboard .analysis-score-grid {
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 11px; align-content: stretch; margin: 0;
}
.analysis-dashboard .analysis-rating {
    display: flex; flex-direction: column; min-height: 107px; gap: 10px;
    border: 1px solid var(--analysis-border); border-radius: 14px;
    padding: 14px; background: var(--surface-2, rgba(27,40,62,.6));
}
.analysis-dashboard .analysis-rating .score-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; width: 100%; }
.analysis-dashboard .analysis-rating .score-name { font-size: .76rem; line-height: 1.6; }
.analysis-dashboard .analysis-rating .score-name i { color: #16b2d4; }
.analysis-dashboard .analysis-rating .score-tag { color: var(--analysis-muted); font-size: .67rem; }
.analysis-dashboard .analysis-rating .score-num {
    display: block; font-size: 1.25rem; font-weight: 850; color: var(--analysis-ink);
    line-height: 1.2; margin: 0;
}
.analysis-dashboard .analysis-rating__track { width: 100%; height: 7px; border-radius: 99px; overflow: hidden; background: rgba(148,163,184,.16); margin-top: auto; }
.analysis-dashboard .analysis-rating__track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg,#0284c7,#2dd4bf); border-radius: inherit; transition: width .25s ease; }
.analysis-dashboard .analysis-overkill { margin-top: 18px; display: grid; gap: 7px; }
.analysis-dashboard .analysis-overkill > strong { display: block; font-size: .8rem; margin: 0 0 5px; }
.analysis-dashboard .analysis-overkill > strong i { color: #f59e0b; }
.analysis-dashboard .builder-smart-suggestions {
    background: var(--surface, rgba(15,23,42,.65)); border-radius: 20px;
    padding: clamp(18px,2.3vw,25px); margin-top: 18px;
}
@media (max-width: 760px) {
    .analysis-dashboard .analysis-score-layout { grid-template-columns: 1fr; }
    .analysis-dashboard .analysis-score-gauge { min-height: 205px; }
}
@media (max-width: 480px) {
    .analysis-dashboard .analysis-score-grid { grid-template-columns: 1fr; }
    .analysis-dashboard .analysis-score-gauge__inner { width: 126px; height: 126px; }
}
