.demo-shell { max-width: 1180px; margin: 0 auto; padding: 2.5rem 1rem 4rem; color: var(--text); }
.demo-shell * { box-sizing: border-box; }
.demo-intro { max-width: 850px; margin-bottom: 1.5rem; }
.demo-kicker { color: var(--blue); font-weight: 750; font-size: .76rem; letter-spacing: .07em; text-transform: uppercase; margin: 0 0 .6rem; }
.demo-intro h1 { font-size: clamp(1.9rem, 4.5vw, 3.25rem); line-height: 1.12; letter-spacing: -.035em; margin: 0 0 .8rem; }
.demo-intro > p:not(.demo-kicker) { font-size: 1.06rem; color: var(--muted-strong); line-height: 1.6; }
.demo-notice { display: flex; flex-direction: column; gap: .3rem; border-left: 3px solid var(--blue); padding: .65rem 1rem; background: var(--blue-soft); font-size: .85rem; line-height: 1.5; margin-top: 1rem; }
.demo-notice span { color: var(--muted-strong); }
.demo-workspace { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); overflow: hidden; box-shadow: var(--shadow); }
.demo-workspace-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1.25rem; background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: .82rem; }
.demo-workspace-bar strong span { color: var(--muted); font-weight: 500; }
.demo-workspace-bar a { color: var(--blue); min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 3px; }
.demo-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.demo-steps a { display: flex; gap: .65rem; align-items: center; justify-content: center; padding: 1rem .5rem; min-height: 52px; color: var(--muted-strong); font-size: .9rem; font-weight: 750; border-bottom: 3px solid transparent; }
.demo-steps a[aria-current] { color: var(--blue); background: var(--blue-soft); border-bottom-color: var(--blue); }
.demo-steps a span { border: 1px solid currentColor; border-radius: 50%; width: 1.4rem; height: 1.4rem; display: inline-grid; place-items: center; font-size: .7rem; }
.demo-content { padding: clamp(1rem, 3vw, 2rem); }
.demo-view-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.3rem; }
.demo-view-heading h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); line-height: 1.25; margin: 0; letter-spacing: -.025em; }
.demo-view-heading p:not(.demo-kicker) { color: var(--muted-strong); margin: .5rem 0 0; font-size: .9rem; }
.demo-tag { display: inline-block; border: 1px solid var(--line); border-radius: 6px; padding: .35rem .55rem; color: var(--muted-strong); font-size: .72rem; line-height: 1.4; flex-shrink: 0; }
.demo-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); margin: 0 0 1.5rem; }
.demo-metrics > div { padding: 1rem .8rem; }
.demo-metrics > div + div { border-left: 1px solid var(--line); }
.demo-metrics dt { color: var(--muted-strong); font-size: .82rem; }
.demo-metrics dd { margin: .4rem 0; font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.demo-metrics small { color: var(--muted); font-size: .73rem; }
.demo-overview, .demo-trade-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.demo-content h3 { font-size: 1.02rem; margin: 0 0 .55rem; }
.demo-chart > p, .demo-next > p:not(.demo-kicker), .demo-result p:not(.demo-kicker), .demo-note > p:not(.demo-kicker), .demo-explanation { color: var(--muted-strong); font-size: .87rem; line-height: 1.65; }
.demo-chart svg { display: block; width: 100%; height: auto; margin-top: .7rem; }
.demo-chart-grid { stroke: var(--line); stroke-width: 1; fill: none; }
.demo-chart-line { stroke: var(--blue); stroke-width: 3; fill: none; stroke-linejoin: round; }
.demo-chart-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: .72rem; }
.demo-next, .demo-result, .demo-note { padding: 1.2rem; border-radius: 12px; background: var(--bg-soft); }
.demo-button { display: inline-flex; justify-content: center; align-items: center; gap: .6rem; min-height: 48px; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 10px; font-size: .87rem; font-weight: 750; line-height: 1.4; text-align: center; background: var(--panel); }
.demo-button.primary { background: var(--blue); border-color: var(--blue); color: var(--panel); }
.demo-button.primary:hover { background: var(--blue-hover); }
.demo-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.demo-table-wrap { overflow-x: auto; margin-top: 1.5rem; border-top: 1px solid var(--line); }
.demo-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .83rem; font-variant-numeric: tabular-nums; }
.demo-table caption { text-align: left; padding: 1rem .5rem; color: var(--muted-strong); font-size: .78rem; }
.demo-table th, .demo-table td { padding: .85rem .6rem; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.demo-table th:first-child, .demo-table td:nth-child(2), .demo-table th:nth-child(2) { text-align: left; }
.demo-table thead { color: var(--muted-strong); font-size: .75rem; }
.demo-table tbody th { font-weight: 650; }
.demo-table a { color: var(--blue); display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.demo-focal-row { background: var(--blue-soft); }
.demo-table .positive { color: var(--success); font-weight: 750; }
.demo-table .negative { color: var(--danger); font-weight: 750; }
.demo-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0; }
.demo-details > div { padding-block: .5rem; border-bottom: 1px solid var(--line); }
.demo-details dt { color: var(--muted-strong); font-size: .8rem; margin-bottom: .35rem; }
.demo-details dd { font-size: .98rem; margin: 0; font-weight: 750; font-variant-numeric: tabular-nums; }
.demo-result-value { display: block; font-size: 2.5rem; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.demo-back { display: inline-flex; align-items: center; color: var(--blue); font-size: .85rem; min-height: 48px; margin-top: 1.25rem; text-decoration: underline; text-underline-offset: 3px; }
.demo-checklist { list-style: none; margin: 1rem 0; padding: 0; }
.demo-checklist li { padding: 1rem 0 1rem .8rem; border-left: 3px solid var(--success); margin-block: .7rem; }
.demo-checklist strong, .demo-checklist span { display: block; }
.demo-checklist strong { font-size: .92rem; }
.demo-checklist span { color: var(--muted-strong); font-size: .85rem; line-height: 1.6; margin-top: .3rem; }
.demo-checklist .demo-rule-missed { border-left-color: var(--amber); }
.demo-note blockquote { font-size: 1.05rem; line-height: 1.75; margin: .8rem 0; }
.demo-note small { display: block; color: var(--muted-strong); font-size: .75rem; margin-top: .7rem; }
.demo-plan-guide { margin-top: 2rem; }
.demo-plan-guide h2 { font-size: clamp(1.2rem, 3vw, 1.6rem); letter-spacing: -.025em; }
.demo-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; padding-block: .6rem; }
.demo-plan-grid h3 { font-size: .95rem; margin-bottom: .5rem; }
.demo-plan-grid p, .demo-footnote { color: var(--muted-strong); font-size: .84rem; line-height: 1.65; }
.demo-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1rem 0; }
.demo-footnote { font-size: .75rem; }
.demo-shell a:focus-visible, .demo-table-wrap:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
@media (max-width: 720px) {
    .demo-overview, .demo-trade-grid, .demo-plan-grid { grid-template-columns: 1fr; }
    .demo-view-heading { flex-direction: column; }
    .demo-workspace-bar strong span { display: block; margin-top: .2rem; }
    .demo-next .demo-button, .demo-result .demo-button, .demo-note .demo-button { width: 100%; }
    .demo-plan-grid { gap: .25rem; }
}
@media (max-width: 390px) {
    .demo-shell { padding-inline: .65rem; }
    .demo-metrics > div { padding-inline: .45rem; }
    .demo-metrics small { display: block; line-height: 1.5; }
    .demo-steps a { font-size: .8rem; gap: .35rem; }
    .demo-actions { flex-direction: column; }
}
