:root {
    --bg: #07090d;
    --panel: rgba(16,20,27,.82);
    --line: #242b36;
    --text: #f3f6fb;
    --muted: #8b96a6;
    --accent: #79e6ff;
    --green: #54e39b;
    --red: #ff6f7d;
    --yellow: #ffd76b;
}

* {
    box-sizing: border-box
}

html,body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif
}

body {
    min-height: 100vh
}

.bg-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .22;
    background-image: linear-gradient(#18202b 1px,transparent 1px),linear-gradient(90deg,#18202b 1px,transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom,#000,transparent 80%)
}

.topbar {
    height: 72px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    position: relative;
    background: rgba(7,9,13,.75);
    backdrop-filter: blur(20px)
}

.brand {
    font-weight: 800;
    letter-spacing: .08em
}

.brand b {
    color: var(--accent)
}

.brand-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 18px var(--accent);
    margin-right: 9px
}

.badge {
    font-size: 11px;
    color: var(--accent);
    border: 1px solid #25424b;
    border-radius: 99px;
    padding: 7px 11px
}

.wrap {
    max-width: 1180px;
    margin: auto;
    padding: 70px 22px
}

.hero {
    max-width: 820px;
    margin-bottom: 36px
}

.eyebrow {
    font-size: 11px;
    letter-spacing: .2em;
    color: var(--accent);
    font-weight: 800;
    margin-bottom: 10px
}

.hero h1 {
    font-size: clamp(42px,7vw,82px);
    line-height: .96;
    letter-spacing: -.055em;
    margin: 0 0 20px
}

.hero h1 span {
    color: var(--accent)
}

.hero p {
    font-size: 18px;
    color: var(--muted);
    line-height: 1.65;
    max-width: 700px
}

.control-card {
    display: grid;
    grid-template-columns: 1.1fr .8fr .9fr auto;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 22px;
    backdrop-filter: blur(18px);
    box-shadow: 0 25px 80px #0008
}

.field label {
    display: block;
    color: #7f8997;
    font-size: 10px;
    letter-spacing: .16em;
    font-weight: 800;
    margin: 4px 0 7px
}

.field input,.field select {
    width: 100%;
    height: 50px;
    background: #0b0f15;
    border: 1px solid #29313d;
    color: var(--text);
    border-radius: 12px;
    padding: 0 14px;
    font-size: 15px;
    outline: none
}

.field input:focus,.field select:focus {
    border-color: #416b77
}

.field small {
    color: #626d7b;
    font-size: 10px;
    display: block;
    margin: 5px 2px
}

.run {
    height: 50px;
    align-self: end;
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    color: #041016;
    font-weight: 900;
    padding: 0 22px;
    cursor: pointer
}

.run span {
    font-size: 18px;
    margin-left: 8px
}

.run:disabled {
    opacity: .5;
    cursor: wait
}

.status {
    margin: 18px 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #0b0f15
}

.status-title {
    font-size: 10px;
    letter-spacing: .18em;
    color: var(--accent);
    margin-bottom: 12px
}

.steps {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 8px
}

.steps div {
    padding: 11px;
    border: 1px solid #1e2630;
    border-radius: 9px;
    color: #697484;
    font-size: 10px
}

.steps .active {
    color: var(--accent);
    border-color: #345864
}

.steps .done {
    color: var(--green)
}

.hidden {
    display: none!important
}

.error {
    padding: 16px;
    border: 1px solid #59303a;
    background: #210e13;
    border-radius: 14px;
    color: #ff9ba5;
    margin: 18px 0
}

.result-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin: 60px 0 18px
}

.result-head h2 {
    font-size: 34px;
    margin: 0;
    letter-spacing: -.03em
}

.meta {
    font-size: 11px;
    color: var(--muted)
}

.prob-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px
}

.prob {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel)
}

.prob span {
    font-size: 10px;
    letter-spacing: .16em;
    color: var(--muted)
}

.prob strong {
    display: block;
    font-size: 48px;
    margin-top: 8px;
    letter-spacing: -.05em
}

.prob.up strong {
    color: var(--green)
}

.prob.down strong {
    color: var(--red)
}

.prob.flat strong {
    color: var(--yellow)
}

.explain {
    margin: 12px 0;
    padding: 18px 20px;
    border-left: 2px solid var(--accent);
    background: #0b1016;
    color: #c6ced9;
    line-height: 1.6;
    border-radius: 0 14px 14px 0
}

.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 12px 0
}

.panel {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    padding: 20px;
    margin-top: 12px
}

.panel-title {
    font-size: 10px;
    color: var(--muted);
    letter-spacing: .16em;
    font-weight: 800;
    margin-bottom: 17px
}

.metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
}

.metrics span,.feature-grid span {
    display: block;
    color: #697484;
    font-size: 9px;
    letter-spacing: .13em
}

.metrics b {
    font-size: 23px;
    margin-top: 4px;
    display: block
}

.chart-panel {
    height: 350px
}

.chart-panel svg {
    width: 100%;
    height: 280px;
    display: block
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 10px
}

.feature-grid>div {
    padding: 13px;
    background: #0b0f15;
    border: 1px solid #1d2530;
    border-radius: 11px
}

.feature-grid b {
    display: block;
    font-size: 15px;
    margin-top: 5px
}

.match-row {
    display: grid;
    grid-template-columns: 110px 1fr 100px 100px;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #1d232c;
    font-size: 12px
}

.match-row:last-child {
    border-bottom: 0
}

.match-row .date {
    color: #aeb8c6
}

.match-row .sim {
    color: var(--accent)
}

.match-row .ret.up {
    color: var(--green)
}

.match-row .ret.down {
    color: var(--red)
}

.notice {
    margin-top: 16px;
    color: #737f8e;
    font-size: 11px;
    line-height: 1.6;
    padding: 14px 2px
}

footer {
    text-align: center;
    padding: 30px;
    color: #4d5765;
    font-size: 10px;
    letter-spacing: .12em
}

@media(max-width: 850px) {
    .control-card {
        grid-template-columns:1fr 1fr
    }

    .run {
        grid-column: 1/-1
    }

    .steps {
        grid-template-columns: 1fr 1fr
    }

    .feature-grid {
        grid-template-columns: 1fr 1fr
    }

    .result-head {
        display: block
    }

    .meta {
        margin-top: 8px
    }

    .grid2 {
        grid-template-columns: 1fr
    }
}

@media(max-width: 520px) {
    .control-card {
        grid-template-columns:1fr
    }

    .hero h1 {
        font-size: 48px
    }

    .prob strong {
        font-size: 34px
    }

    .prob-grid {
        gap: 7px
    }

    .prob {
        padding: 15px 10px
    }

    .feature-grid {
        grid-template-columns: 1fr 1fr
    }

    .match-row {
        grid-template-columns: 1fr 1fr
    }

    .chart-panel {
        height: 320px
    }
}

/* Decision Generator additions */
.form-section-title {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 22px 0 13px;
    padding-top: 16px;
    border-top: 1px solid #242b36
}

.form-section-title>span {
    font-size: 11px;
    color: #79e6ff;
    border: 1px solid #2b5865;
    border-radius: 9px;
    padding: 8px 10px
}

.form-section-title b {
    display: block;
    font-size: 14px
}

.form-section-title small {
    display: block;
    color: #7e8998;
    font-size: 11px;
    margin-top: 4px
}

.row.three {
    grid-template-columns: 1fr 1fr 1fr
}

.market-field {
    position: relative
}

.asset-search-wrap {
    position: relative
}

.asset-search-wrap input {
    padding-left: 42px!important;
    padding-right: 42px!important
}

.search-icon {
    position: absolute;
    z-index: 2;
    left: 14px;
    top: 8px;
    font-size: 25px;
    color: #79e6ff;
    transform: rotate(-20deg)
}

.clear-asset {
    position: absolute;
    right: 8px;
    top: 7px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #8d98a7;
    font-size: 22px;
    cursor: pointer
}

.asset-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 20;
    max-height: 300px;
    overflow: auto;
    background: #0b1017;
    border: 1px solid #2a3541;
    border-radius: 14px;
    box-shadow: 0 18px 45px #000b;
    padding: 6px
}

.asset-option {
    width: 100%;
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: center;
    gap: 10px;
    text-align: left;
    padding: 11px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #e8edf4;
    cursor: pointer
}

.asset-option:hover,.asset-option[aria-selected="true"] {
    background: #14232b
}

.asset-option .opt-symbol {
    font-weight: 850;
    color: #79e6ff;
    font-size: 12px
}

.asset-option .opt-name {
    font-size: 12px
}

.asset-option .opt-kind {
    font-size: 9px;
    color: #7e8998;
    text-transform: uppercase
}

.asset-empty {
    padding: 15px;
    color: #8490a0;
    font-size: 12px
}

.selected-asset {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 10px;
    font-size: 12px;
    color: #aeb8c6
}

.ticker-pill {
    background: #142b33;
    color: #79e6ff;
    border: 1px solid #2a535e;
    padding: 5px 9px;
    border-radius: 7px;
    font-weight: 850
}

.selected-check {
    margin-left: auto;
    color: #58dca0;
    font-size: 10px
}

.micro-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 16px 0;
    color: #8793a2;
    font-size: 11px;
    line-height: 1.6
}

.info-dot {
    flex: none;
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    border: 1px solid #42616b;
    color: #79e6ff;
    border-radius: 50%;
    font-weight: 800;
    font-size: 10px
}

.free-note {
    margin-top: 12px;
    text-align: center;
    color: #667384;
    font-size: 10px
}

.free-note span {
    color: #58dca0;
    margin-right: 5px
}

.decision-banner {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid #2c4650;
    background: linear-gradient(110deg,#10212a,#0b1118);
    border-radius: 17px;
    margin-bottom: 12px
}

.decision-symbol {
    width: 42px;
    height: 42px;
    flex: none;
    display: grid;
    place-items: center;
    background: #17313a;
    border-radius: 13px;
    color: #79e6ff;
    font-size: 23px
}

.decision-label {
    font-size: 9px;
    letter-spacing: .16em;
    color: #79e6ff;
    font-weight: 850
}

.decision-banner h3 {
    font-size: 19px;
    margin: 7px 0
}

.decision-banner p {
    font-size: 12px;
    line-height: 1.6;
    color: #aeb8c6;
    margin: 0
}

.decision-cards {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 10px;
    margin-bottom: 12px
}

.decision-card {
    background: #0c1117;
    border: 1px solid #27313c;
    border-radius: 14px;
    padding: 15px
}

.decision-card span {
    font-size: 9px;
    letter-spacing: .1em;
    color: #788595;
    display: block
}

.decision-card strong {
    display: block;
    font-size: 22px;
    margin-top: 8px
}

.decision-card small {
    display: block;
    color: #7f8b99;
    font-size: 10px;
    margin-top: 5px
}

.replay-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 10px
}

.replay-item {
    padding: 14px;
    border: 1px solid #27313c;
    border-radius: 12px;
    background: #0b1016
}

.replay-item span {
    display: block;
    font-size: 9px;
    color: #7b8796;
    letter-spacing: .1em
}

.replay-item b {
    display: block;
    font-size: 18px;
    margin-top: 7px
}

.replay-item small {
    display: block;
    color: #7b8796;
    font-size: 10px;
    margin-top: 4px
}

@media(max-width: 900px) {
    .decision-cards {
        grid-template-columns:1fr 1fr
    }

    .replay-grid {
        grid-template-columns: 1fr 1fr
    }

    .row.three {
        grid-template-columns: 1fr 1fr
    }

    .selected-check {
        display: none
    }
}

@media(max-width: 600px) {
    .row.three {
        grid-template-columns:1fr
    }

    .asset-option {
        grid-template-columns: 58px 1fr
    }

    .asset-option .opt-kind {
        display: none
    }

    .decision-cards {
        grid-template-columns: 1fr 1fr
    }

    .decision-card {
        padding: 12px
    }

    .decision-card strong {
        font-size: 18px
    }

    .replay-grid {
        grid-template-columns: 1fr 1fr
    }

    .form-section-title {
        margin-top: 17px
    }
}

/* Walk-forward backtest */
.row {
    display: grid;
    gap: 12px;
    margin: 10px 0 22px
}

.row.four {
    grid-template-columns: repeat(4,minmax(0,1fr))
}

.row.three {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr))
}

.backtest-intro {
    color: #aeb8c6;
    font-size: 13px;
    line-height: 1.65;
    margin: -4px 0 16px;
    max-width: 850px
}

.backtest-panel>.run {
    margin-bottom: 12px
}

.backtest-status {
    padding: 12px;
    color: var(--accent);
    font-size: 12px
}

.backtest-cards {
    margin: 16px 0
}

.backtest-metrics {
    padding: 18px 0
}

.recent-title {
    margin-top: 24px
}

.table-wrap {
    width: 100%;
    overflow-x: auto
}

.match-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    min-width: 570px
}

.match-table th,.match-table td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid #222a34;
    white-space: nowrap
}

.match-table th {
    color: #7d8998;
    font-size: 9px;
    letter-spacing: .1em
}

.match-table td {
    color: #c9d1dc
}

.match-table .up {
    color: var(--green)
}

.match-table .down {
    color: var(--red)
}

@media(max-width: 900px) {
    .row.four,.row.three {
        grid-template-columns:1fr 1fr
    }
}

@media(max-width: 600px) {
    .row.four,.row.three {
        grid-template-columns:1fr
    }

    .backtest-cards {
        grid-template-columns: 1fr 1fr
    }

    .backtest-metrics {
        grid-template-columns: 1fr 1fr
    }
}

/* PREMIUM RESPONSIVE UI â€” visual layer, existing IDs and logic stay intact */
:root {
    --bg: #080b12;
    --panel: rgba(17,23,35,.88);
    --line: rgba(150,170,205,.16);
    --text: #f4f7fc;
    --muted: #a0aec2;
    --accent: #8de6ff;
    --green: #65e5b0;
    --red: #ff8796;
    --yellow: #f5ce78;
    --panel-solid: #111827;
    --soft: #171f2e;
    --focus: rgba(141,230,255,.24)
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px
}

body {
    background: radial-gradient(ellipse at 12% -5%,rgba(48,91,146,.25),transparent 34%),radial-gradient(ellipse at 90% 12%,rgba(70,54,130,.18),transparent 32%),var(--bg);
    font-size: 14px;
    line-height: 1.55;
    letter-spacing: -.01em
}

.bg-grid {
    opacity: .15;
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom,#000 0%,transparent 75%)
}

.topbar {
    height: 76px;
    padding: 0 max(24px,calc((100vw - 1240px)/2));
    border-bottom-color: rgba(180,199,230,.12);
    background: rgba(8,11,18,.78);
    box-shadow: 0 10px 35px rgba(0,0,0,.12)
}

.brand {
    font-size: 13px;
    letter-spacing: .12em
}

.brand b {
    color: #a2eaff
}

.brand-dot {
    background: #8de6ff;
    box-shadow: 0 0 0 5px rgba(141,230,255,.09),0 0 22px rgba(141,230,255,.8)
}

.badge {
    font-size: 10px;
    letter-spacing: .09em;
    color: #b8f2ff;
    border-color: rgba(141,230,255,.24);
    background: rgba(141,230,255,.06);
    padding: 7px 12px
}

.wrap {
    max-width: 1240px;
    padding: 66px 28px 76px
}

.hero {
    max-width: 900px;
    margin-bottom: 34px
}

.eyebrow {
    font-size: 10px;
    letter-spacing: .19em;
    color: #9beaff
}

.hero h1 {
    max-width: 850px;
    font-size: clamp(42px,6.3vw,76px);
    line-height: 1.02;
    letter-spacing: -.065em;
    font-weight: 760
}

.hero h1 span {
    background: linear-gradient(100deg,#9deaff 0%,#b8c7ff 75%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.hero p {
    max-width: 760px;
    color: #aab6c9;
    font-size: 16px;
    line-height: 1.75
}

.control-card,.panel,.status,.decision-card,.prob,.replay-item {
    border-color: var(--line);
    background: linear-gradient(145deg,rgba(19,27,41,.94),rgba(13,18,29,.92));
    box-shadow: 0 14px 44px rgba(0,0,0,.12)
}

.control-card {
    display: block;
    padding: clamp(18px,2.6vw,30px);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0,0,0,.23),inset 0 1px 0 rgba(255,255,255,.025)
}

.form-section-title {
    margin: 26px 0 14px;
    padding-top: 22px;
    border-top-color: rgba(160,181,216,.13);
    gap: 13px
}

.form-section-title:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0
}

.form-section-title>span {
    display: grid;
    place-items: center;
    min-width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 12px;
    background: rgba(141,230,255,.08);
    border-color: rgba(141,230,255,.19);
    color: #a2eaff;
    font-size: 11px;
    font-weight: 800
}

.form-section-title b {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.02em
}

.form-section-title small {
    font-size: 12px;
    line-height: 1.5;
    color: #92a0b5
}

.field label {
    font-size: 10px;
    letter-spacing: .095em;
    color: #9baac0;
    margin: 4px 0 8px
}

.field input,.field select {
    height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(160,181,216,.17);
    background: #0b111c;
    color: #f4f7fc;
    padding: 0 13px;
    font-size: 14px;
    transition: border-color .18s,box-shadow .18s,background .18s
}

.field input:hover,.field select:hover {
    border-color: rgba(160,200,228,.3)
}

.field input:focus,.field select:focus {
    border-color: #80dff8;
    box-shadow: 0 0 0 4px var(--focus);
    background: #0d1522
}

.field small,.free-note {
    font-size: 11px;
    line-height: 1.55;
    color: #8998ad
}

.row {
    gap: 16px;
    margin: 12px 0 24px
}

.row.four {
    grid-template-columns: repeat(4,minmax(0,1fr))
}

.input-prefix {
    position: relative
}

.input-prefix>span {
    left: 13px;
    color: #8c9bb1
}

.input-prefix input {
    padding-left: 32px!important
}

.asset-search-wrap input {
    padding-left: 42px!important
}

.search-icon {
    top: 7px;
    color: #9deaff
}

.asset-options {
    border-color: rgba(141,230,255,.22);
    background: #101827;
    border-radius: 16px;
    box-shadow: 0 22px 55px rgba(0,0,0,.45);
    padding: 7px
}

.asset-option {
    padding: 12px;
    border-radius: 11px;
    min-height: 48px
}

.asset-option:hover,.asset-option[aria-selected="true"] {
    background: rgba(141,230,255,.09)
}

.asset-option .opt-symbol {
    color: #9deaff
}

.selected-asset {
    font-size: 12px;
    flex-wrap: wrap
}

.ticker-pill {
    background: rgba(141,230,255,.08);
    border-color: rgba(141,230,255,.2);
    color: #a5edff;
    border-radius: 8px
}

.selected-check {
    color: #7ee7b5
}

.micro-note {
    padding: 13px 15px;
    border: 1px solid rgba(141,230,255,.13);
    border-radius: 13px;
    background: rgba(141,230,255,.035);
    color: #a6b5c9;
    font-size: 12px
}

.info-dot {
    width: 19px;
    height: 19px;
    align-items: center;
    justify-content: center
}

.run {
    min-height: 50px;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 22px;
    border-radius: 13px;
    background: linear-gradient(110deg,#a2edff,#b7caff);
    color: #08111d;
    font-size: 11px;
    letter-spacing: .075em;
    font-weight: 850;
    box-shadow: 0 8px 25px rgba(106,196,230,.13);
    transition: transform .18s,filter .18s,box-shadow .18s
}

.run:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(106,196,230,.2)
}

.run:active {
    transform: translateY(0)
}

.run:focus-visible,.clear-asset:focus-visible,.asset-option:focus-visible {
    outline: 2px solid #9deaff;
    outline-offset: 3px
}

.run span {
    font-size: 17px;
    margin: 0
}

.control-card>.run {
    width: 100%;
    margin-top: 3px
}

.free-note {
    margin-top: 14px;
    color: #95a4b8
}

.free-note span {
    color: #7ee7b5
}

.status {
    padding: 20px;
    border-radius: 18px
}

.status-title {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em
}

.steps div {
    background: rgba(255,255,255,.02);
    border-radius: 11px;
    padding: 12px;
    color: #8e9db2;
    font-size: 11px
}

.steps .active {
    background: rgba(141,230,255,.07);
    border-color: rgba(141,230,255,.35);
    color: #a2edff
}

.steps .done {
    color: #7ee7b5;
    border-color: rgba(126,231,181,.22)
}

.result-head {
    margin: 56px 0 18px;
    gap: 20px
}

.result-head h2 {
    font-size: clamp(26px,3vw,36px);
    letter-spacing: -.045em;
    font-weight: 730
}

.meta {
    font-size: 11px;
    line-height: 1.6;
    color: #91a0b5
}

.decision-banner {
    position: relative;
    overflow: hidden;
    gap: 16px;
    padding: 23px;
    border: 1px solid rgba(141,230,255,.19);
    background: radial-gradient(ellipse at 0% 0%,rgba(81,157,190,.12),transparent 60%),linear-gradient(125deg,rgba(20,34,49,.96),rgba(13,19,30,.96));
    border-radius: 20px;
    box-shadow: 0 14px 36px rgba(0,0,0,.15)
}

.decision-symbol {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(141,230,255,.09);
    color: #a2edff
}

.decision-label {
    font-size: 10px;
    letter-spacing: .13em
}

.decision-banner h3 {
    font-size: 20px;
    letter-spacing: -.025em
}

.decision-banner p {
    font-size: 13px;
    line-height: 1.7;
    color: #b3c0d2
}

.decision-cards {
    gap: 12px
}

.decision-card {
    min-width: 0;
    padding: 17px;
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025)
}

.decision-card span {
    font-size: 9px;
    line-height: 1.5;
    letter-spacing: .08em;
    color: #a0aec1
}

.decision-card strong {
    font-size: clamp(19px,2vw,25px);
    letter-spacing: -.04em;
    overflow-wrap: anywhere
}

.decision-card small {
    font-size: 11px;
    line-height: 1.5;
    color: #94a3b8
}

.prob-grid {
    gap: 12px;
    margin-top: 12px
}

.prob {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border-radius: 17px
}

.prob:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(245,206,120,.65)
}

.prob.up:before {
    background: var(--green)
}

.prob.down:before {
    background: var(--red)
}

.prob span {
    font-size: 9px;
    letter-spacing: .1em;
    font-weight: 750;
    color: #a5b2c5
}

.prob strong {
    font-size: clamp(32px,4vw,45px);
    letter-spacing: -.06em;
    margin-top: 5px
}

.prob small {
    display: block;
    margin-top: 7px;
    font-size: 11px;
    line-height: 1.55;
    color: #8e9db2;
    max-width: 340px
}

.explain {
    padding: 17px 19px;
    border: 1px solid rgba(141,230,255,.13);
    border-left: 3px solid #8de6ff;
    background: rgba(141,230,255,.045);
    border-radius: 0 14px 14px 0;
    color: #c1cddd;
    font-size: 13px;
    line-height: 1.75
}

.grid2 {
    gap: 14px;
    margin: 14px 0
}

.panel {
    padding: clamp(17px,2.1vw,24px);
    margin-top: 14px;
    border-radius: 19px;
    min-width: 0
}

.panel-title {
    font-size: 10px;
    letter-spacing: .12em;
    font-weight: 850;
    color: #a5b4c8;
    margin-bottom: 13px;
    line-height: 1.55
}

.panel-help {
    margin: -5px 0 17px;
    color: #8f9eb2;
    font-size: 11px;
    line-height: 1.65;
    max-width: 850px
}

.metrics {
    gap: 18px 22px
}

.metrics>div {
    background: #f8fbf8 !important;
    border-color: #e1eae2 !important;
    min-width: 0;
    padding: 13px;
    border: 1px solid rgba(160, 181, 216, .12);
    border-radius: 12px;
}

.metrics span,.feature-grid span {
    font-size: 9px;
    letter-spacing: .075em;
    line-height: 1.5;
    color: #a1afc2
}

.metrics b {
    font-size: clamp(18px,2vw,23px);
    font-weight: 720;
    letter-spacing: -.035em;
    overflow-wrap: anywhere
}

.metric-help {
    display: block;
    color: #8494aa;
    font-size: 10px;
    line-height: 1.5;
    margin-top: 4px;
    max-width: 340px;
    font-weight: 400
}

.chart-panel {
    height: auto;
    min-height: 330px
}

.chart-panel svg {
    height: 265px;
    overflow: visible
}

.feature-grid {
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 10px
}

.feature-grid>div {
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(160,181,216,.12);
    border-radius: 13px;
    background: rgba(7,12,20,.46)
}

.feature-grid b {
    font-size: 16px;
    letter-spacing: -.025em;
    overflow-wrap: anywhere
}

.feature-help {
    display: block;
    color: #8595aa;
    font-size: 10px;
    line-height: 1.55;
    margin-top: 5px
}

.replay-grid {
    gap: 10px
}

.replay-item {
    padding: 15px;
    border-radius: 13px;
    min-width: 0
}

.replay-item span {
    font-size: 9px;
    letter-spacing: .06em;
    line-height: 1.5;
    color: #a0aec1
}

.replay-item b {
    font-size: 17px;
    overflow-wrap: anywhere
}

.replay-item small {
    display: block;
    color: #8595aa;
    font-size: 10px;
    line-height: 1.5;
    margin-top: 5px
}

.backtest-intro {
    font-size: 12px;
    line-height: 1.75;
    color: #aab7ca;
    margin: 0 0 18px
}

.backtest-panel>.run {
    margin: 0 0 12px
}

.backtest-status {
    padding: 14px;
    border: 1px solid rgba(141,230,255,.14);
    border-radius: 12px;
    background: rgba(141,230,255,.04);
    color: #a2edff;
    font-size: 12px
}

.backtest-cards {
    margin: 17px 0
}

.backtest-metrics {
    padding: 18px 0;
    gap: 22px 26px
}

.recent-title {
    margin-top: 26px;
    padding-top: 19px;
    border-top: 1px solid rgba(160,181,216,.12)
}

.table-wrap {
    border: 1px solid rgba(160,181,216,.12);
    border-radius: 13px;
    overflow-x: auto;
    background: rgba(6,10,17,.3)
}

.match-table {
    min-width: 620px;
    font-size: 11px
}

.match-table th,.match-table td {
    padding: 13px 14px;
    border-bottom: 1px solid rgba(160,181,216,.1)
}

.match-table th {
    position: sticky;
    top: 0;
    background: #111a29;
    color: #9eacc0;
    font-size: 9px;
    letter-spacing: .06em
}

.match-table td {
    color: #d0d9e6
}

.match-table .up {
    color: #75e5b4
}

.match-table .down {
    color: #ff8a99
}

.notice {
    font-size: 11px;
    line-height: 1.75;
    color: #8998ad;
    padding: 13px 2px
}

.notice b {
    color: #bdc9d9
}

footer {
    padding: 30px 20px 36px;
    color: #77879d;
    font-size: 10px;
    letter-spacing: .09em;
    border-top: 1px solid rgba(160,181,216,.08)
}

@media(min-width: 1500px) {
    .wrap {
        max-width:1320px
    }

    .hero {
        max-width: 940px
    }

    .control-card {
        padding: 32px
    }
}

@media(max-width: 1024px) {
    .wrap {
        padding:52px 24px 64px
    }

    .row.four {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }

    .feature-grid {
        grid-template-columns: repeat(3,minmax(0,1fr))
    }

    .decision-cards {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }

    .metrics {
        gap: 17px
    }

    .panel {
        padding: 19px
    }
}

@media(max-width: 760px) {
    .topbar {
        height:66px;
        padding: 0 20px
    }

    .wrap {
        padding: 42px 18px 52px
    }

    .hero {
        margin-bottom: 26px
    }

    .hero h1 {
        font-size: clamp(39px,8vw,60px)
    }

    .hero p {
        font-size: 14px
    }

    .control-card {
        padding: 18px;
        border-radius: 20px
    }

    .row.four,.row.three {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 12px
    }

    .prob-grid {
        grid-template-columns: repeat(3,minmax(0,1fr));
        gap: 8px
    }

    .prob {
        padding: 16px 12px
    }

    .prob span {
        font-size: 8px;
        letter-spacing: .04em
    }

    .prob strong {
        font-size: clamp(27px,5vw,36px)
    }

    .prob small {
        font-size: 10px
    }

    .grid2 {
        grid-template-columns: 1fr
    }

    .feature-grid {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }

    .result-head {
        display: block;
        margin-top: 42px
    }

    .meta {
        margin-top: 8px
    }

    .chart-panel svg {
        height: 230px
    }

    .match-row {
        grid-template-columns: 1fr 1fr
    }

    .backtest-cards {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }

    .backtest-metrics {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }
}

@media(max-width: 480px) {
    .topbar {
        padding:0 16px
    }

    .brand {
        font-size: 11px
    }

    .badge {
        font-size: 9px;
        padding: 6px 9px
    }

    .wrap {
        padding: 34px 13px 42px
    }

    .hero h1 {
        font-size: 39px;
        letter-spacing: -.06em
    }

    .hero p {
        font-size: 13px;
        line-height: 1.7
    }

    .control-card {
        padding: 15px;
        border-radius: 17px
    }

    .form-section-title {
        gap: 10px;
        margin: 21px 0 12px;
        padding-top: 18px
    }

    .form-section-title>span {
        min-width: 31px;
        height: 31px;
        border-radius: 10px
    }

    .form-section-title b {
        font-size: 13px
    }

    .form-section-title small {
        font-size: 11px
    }

    .row.four,.row.three {
        grid-template-columns: minmax(0,1fr);
        gap: 10px;
        margin-bottom: 19px
    }

    .field input,.field select {
        height: 46px;
        font-size: 14px
    }

    .field small {
        font-size: 10px
    }

    .run {
        width: 100%;
        font-size: 10px;
        padding: 13px 12px
    }

    .selected-asset {
        gap: 7px
    }

    .selected-check {
        display: none
    }

    .steps {
        grid-template-columns: 1fr 1fr
    }

    .steps div {
        font-size: 9px;
        padding: 10px
    }

    .result-head h2 {
        font-size: 27px
    }

    .decision-banner {
        padding: 16px;
        gap: 11px
    }

    .decision-symbol {
        width: 38px;
        height: 38px
    }

    .decision-banner h3 {
        font-size: 17px
    }

    .decision-banner p {
        font-size: 12px
    }

    .decision-cards {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 8px
    }

    .decision-card {
        padding: 12px;
        border-radius: 13px
    }

    .decision-card span {
        font-size: 8px
    }

    .decision-card strong {
        font-size: 18px
    }

    .decision-card small {
        font-size: 10px
    }

    .prob-grid {
        grid-template-columns: 1fr;
        gap: 8px
    }

    .prob {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 5px 10px;
        padding: 13px 15px
    }

    .prob span {
        grid-column: 1;
        grid-row: 1
    }

    .prob strong {
        grid-column: 2;
        grid-row: 1/3;
        font-size: 30px;
        margin: 0
    }

    .prob small {
        grid-column: 1;
        grid-row: 2;
        margin: 0;
        max-width: none
    }

    .explain {
        padding: 14px;
        font-size: 12px
    }

    .panel {
        padding: 15px;
        border-radius: 15px;
        margin-top: 10px
    }

    .panel-title {
        font-size: 9px
    }

    .metrics {
        gap: 16px 12px
    }

    .metrics span {
        font-size: 8px
    }

    .metrics b {
        font-size: 18px
    }

    .metric-help {
        font-size: 10px
    }

    .feature-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 7px
    }

    .feature-grid>div {
        padding: 11px
    }

    .feature-grid span {
        font-size: 8px
    }

    .feature-grid b {
        font-size: 14px
    }

    .feature-help {
        font-size: 9px
    }

    .replay-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 7px
    }

    .replay-item {
        padding: 11px
    }

    .replay-item b {
        font-size: 15px
    }

    .backtest-intro {
        font-size: 11px
    }

    .backtest-cards {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 7px
    }

    .backtest-metrics {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 16px 12px
    }

    .recent-title {
        margin-top: 21px;
        padding-top: 16px
    }

    .match-table {
        min-width: 560px
    }

    .notice {
        font-size: 10px
    }

    .chart-panel svg {
        height: 200px
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    *,*::before,*::after {
        transition: none!important;
        animation: none!important
    }
}

/* Only the historical comparison table is restyled; all other premium UI remains unchanged. */
.historical-matches-panel {
    padding: clamp(17px,2.3vw,26px);
    overflow: hidden;
    background: linear-gradient(145deg,rgba(17,23,31,.96),rgba(10,14,20,.96));
    border-color: #293440;
    box-shadow: 0 18px 55px rgba(0,0,0,.16)
}

.historical-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px
}

.historical-heading .panel-title {
    margin: 2px 0 8px;
    color: #d9e2ed;
    font-size: 11px;
    letter-spacing: .14em
}

.historical-subtitle {
    margin: 0;
    max-width: 690px;
    color: #8794a4;
    font-size: 12px;
    line-height: 1.7
}

.history-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    flex: none;
    padding: 7px 10px;
    border: 1px solid #2b3d48;
    border-radius: 999px;
    background: rgba(19,36,44,.62);
    color: #8ca6b3;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em
}

.history-chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #79e6ff;
    box-shadow: 0 0 10px #79e6ff66
}

.historical-table-wrap {
    border: 1px solid #26313d;
    border-radius: 13px;
    overflow: auto;
    background: rgba(6,10,15,.46);
    scrollbar-width: thin;
    scrollbar-color: #344452 #10151d
}

.historical-match-table {
    width: 100%;
    min-width: 610px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px
}

.historical-match-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    text-align: left;
    white-space: nowrap;
    padding: 13px 16px;
    background: #111923;
    color: #78899b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    border-bottom: 1px solid #2a3542
}

.historical-match-table tbody tr {
    background: rgba(15,21,29,.55);
    transition: background .16s ease
}

.historical-match-table tbody tr:nth-child(even) {
    background: rgba(21,28,38,.55)
}

.historical-match-table tbody tr:hover {
    background: rgba(34,51,64,.56)
}

.historical-match-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(45,57,71,.58);
    color: #c5cfdb;
    white-space: nowrap;
    font-variant-numeric: tabular-nums
}

.historical-match-table tbody tr:last-child td {
    border-bottom: 0
}

.historical-match-table tbody td:first-child {
    font-weight: 750;
    color: #e5edf6
}

.historical-match-table tbody td:nth-child(2) {
    color: #a7dff0;
    font-weight: 750
}

.historical-match-table tbody td:nth-child(2) .similarity-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 70px;
    padding: 5px 8px;
    border: 1px solid #294b58;
    border-radius: 8px;
    background: rgba(25,57,68,.48);
    color: #9be7fa;
    font-size: 11px
}

.historical-match-table .similarity-track {
    display: inline-block;
    width: 24px;
    height: 4px;
    overflow: hidden;
    border-radius: 99px;
    background: #293541
}

.historical-match-table .similarity-track i {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: #79e6ff
}

.historical-match-table tbody td:nth-child(3) {
    color: #9eacbd
}

.historical-match-table tbody td:last-child {
    font-weight: 800
}

.historical-match-table .up {
    color: #65e6a7!important
}

.historical-match-table .down {
    color: #ff8490!important
}

.historical-footnote {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 13px;
    color: #758292;
    font-size: 10px;
    line-height: 1.65
}

.footnote-icon {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 15px;
    height: 15px;
    border: 1px solid #3b515e;
    border-radius: 50%;
    color: #9bdcf0;
    font-size: 9px;
    font-weight: 800
}

@media(max-width: 700px) {
    .historical-heading {
        display:block
    }

    .history-chip {
        margin-top: 12px
    }

    .historical-table-wrap {
        margin-right: -2px
    }

    .historical-match-table thead th,.historical-match-table tbody td {
        padding: 12px 13px
    }

    .historical-subtitle {
        font-size: 11px
    }
}

@media(prefers-reduced-motion:reduce) {
    .historical-match-table tbody tr {
        transition: none
    }
}

/* Analysis upgrade: compact score and historical net-risk panel; existing premium layout retained. */
.signal-score-head {
    display: grid;
    grid-template-columns: minmax(150px,.65fr) minmax(0,1.35fr);
    gap: 16px;
    align-items: center;
    padding: 17px;
    border: 1px solid rgba(141,230,255,.15);
    background: rgba(141,230,255,.035);
    border-radius: 15px;
    margin-bottom: 16px
}

.signal-score-head>div:first-child span {
    display: block;
    color: #a1afc2;
    font-size: 9px;
    letter-spacing: .1em
}

.signal-score-head strong {
    display: block;
    font-size: clamp(29px,4vw,42px);
    letter-spacing: -.06em;
    margin: 4px 0
}

.signal-score-head small {
    font-size: 11px;
    color: #9fb0c6
}

.signal-score-note {
    font-size: 12px;
    line-height: 1.65;
    color: #a8b6c9
}

.score-bars {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
    margin: 16px 0 22px
}

.score-row {
    min-width: 0;
    padding: 13px;
    border: 1px solid rgba(160,181,216,.12);
    border-radius: 12px;
    background: rgba(7,12,20,.35)
}

.score-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px
}

.score-row-head span {
    font-size: 11px;
    color: #cbd5e1
}

.score-row-head b {
    font-size: 12px;
    color: #e2e8f0
}

.score-track {
    height: 5px;
    background: #202a38;
    border-radius: 99px;
    overflow: hidden;
    margin: 9px 0 7px
}

.score-track i {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg,#58b7d5,#8de6ff)
}

.score-row small {
    display: block;
    font-size: 10px;
    line-height: 1.55;
    color: #8494aa
}

.signal-metrics {
    padding-top: 4px
}

@media(max-width: 600px) {
    .signal-score-head {
        grid-template-columns:1fr;
        gap: 8px;
        padding: 14px
    }

    .score-bars {
        grid-template-columns: 1fr;
        gap: 8px
    }

    .signal-metrics {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }
}

.risk-plan-note {
    margin: 15px 0 0;
    padding: 12px 14px;
    border: 1px solid rgba(245,190,95,.15);
    border-radius: 12px;
    background: rgba(245,190,95,.035);
    color: #aab6c7;
    font-size: 10px;
    line-height: 1.65
}

/* Simplified consumer-facing flow: calculations and result IDs remain unchanged. */
.row.two {
    grid-template-columns: repeat(2,minmax(0,1fr))
}

.settings-details,.analysis-details {
    border: 1px solid rgba(160,181,216,.15);
    border-radius: 16px;
    background: rgba(8,13,21,.42);
    margin: 14px 0 20px;
    overflow: hidden
}

.settings-details>summary,.analysis-details>summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    list-style: none;
    cursor: pointer;
    padding: 17px 19px;
    user-select: none
}

.settings-details>summary::-webkit-details-marker,.analysis-details>summary::-webkit-details-marker {
    display: none
}

.settings-details>summary b,.analysis-details>summary b {
    display: block;
    font-size: 13px;
    color: #e7eef8;
    font-weight: 750
}

.settings-details>summary small,.analysis-details>summary small {
    display: block;
    font-size: 11px;
    color: #8797ad;
    line-height: 1.55;
    margin-top: 4px
}

.details-chevron {
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(160,181,216,.16);
    border-radius: 10px;
    color: #9deaff;
    font-size: 17px;
    transition: transform .18s
}

.settings-details[open] .details-chevron,.analysis-details[open] .details-chevron {
    transform: rotate(45deg)
}

.settings-content {
    padding: 0 19px 17px;
    border-top: 1px solid rgba(160,181,216,.1)
}

.settings-content .form-section-title {
    margin-top: 18px
}

.analysis-details {
    margin-top: 22px
}

.analysis-details>summary {
    padding: 19px 21px;
    background: linear-gradient(115deg,rgba(141,230,255,.055),rgba(141,230,255,.015))
}

.analysis-details-content {
    padding: 0 12px 12px;
    border-top: 1px solid rgba(160,181,216,.1)
}

.analysis-details-content>.panel:first-child {
    margin-top: 12px
}

.analysis-details-content .panel {
    scroll-margin-top: 20px
}

#run {
    width: 100%;
    font-size: 12px;
    letter-spacing: .04em
}

@media(max-width: 900px) {
    .row.two {
        grid-template-columns:repeat(2,minmax(0,1fr))
    }
}

@media(max-width: 600px) {
    .row.two {
        grid-template-columns:1fr
    }

    .settings-details>summary,.analysis-details>summary {
        padding: 15px
    }

    .settings-content {
        padding: 0 13px 14px
    }

    .analysis-details-content {
        padding: 0 5px 7px
    }
}

/* Professional information hierarchy and replaceable ad inventory. */
.hero {
    max-width: 900px;
    margin-bottom: 25px
}

.hero p {
    max-width: 760px;
    margin-bottom: 22px
}

.how-it-works {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 10px;
    margin: 24px 0 30px
}

.how-it-works>div {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px;
    border: 1px solid rgba(160,181,216,.13);
    border-radius: 13px;
    background: rgba(12,17,25,.66)
}

.how-number {
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border: 1px solid #315361;
    border-radius: 9px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 850
}

.how-it-works b {
    display: block;
    color: #eaf1f9;
    font-size: 12px;
    margin: 2px 0 5px
}

.how-it-works small {
    display: block;
    color: #8997a9;
    font-size: 11px;
    line-height: 1.5
}

.control-card {
    display: block;
    padding: clamp(18px,3vw,30px);
    max-width: 1000px;
    margin: 0 auto 20px
}

.control-card>.form-section-title:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0
}

.control-card .market-field {
    max-width: -webkit-fill-available;
}

.control-card .row.two {
    max-width: 760px
}

.control-card .settings-details {
    max-width: 900px
}

.control-card #run {
    max-width: 760px;
    margin-top: 8px
}

.form-section-title {
    margin-top: 25px
}

.field label {
    font-size: 10px;
    color: #a2afc0;
    letter-spacing: .09em
}

.field small {
    font-size: 11px;
    line-height: 1.5;
    color: #8592a4
}

.free-note {
    font-size: 11px
}

.result-head {
    align-items: flex-start;
    margin-top: 44px
}

.result-subtitle {
    max-width: 700px;
    color: #8e9bad;
    font-size: 12px;
    line-height: 1.6;
    margin: 9px 0 0
}

.result-section-heading {
    margin: 25px 0 13px
}

.result-section-heading h3 {
    font-size: 19px;
    letter-spacing: -.025em;
    margin: 0 0 6px
}

.result-section-heading p {
    font-size: 12px;
    line-height: 1.6;
    color: #8997a9;
    margin: 0
}

.decision-card span,.prob span,.metrics span {
    letter-spacing: .06em;
    line-height: 1.5
}

.decision-card small,.metric-help {
    line-height: 1.55
}

.ad-slot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 118px;
    margin: 26px auto;
    padding: 18px 24px;
    max-width: 1000px;
    overflow: hidden;
    border: 1px dashed #3b4655;
    border-radius: 14px;
    background: linear-gradient(115deg,rgba(16,22,31,.88),rgba(10,14,20,.88));
    color: #8793a3
}

.ad-label {
    position: absolute;
    left: 12px;
    top: 9px;
    font-size: 8px;
    letter-spacing: .13em;
    font-weight: 800;
    color: #687789
}

.ad-placeholder-copy {
    text-align: center
}

.ad-placeholder-copy b {
    display: block;
    color: #b9c5d4;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 5px
}

.ad-placeholder-copy small {
    display: block;
    color: #778598;
    font-size: 10px;
    line-height: 1.5
}

.ad-size {
    position: absolute;
    right: 12px;
    bottom: 9px;
    font-size: 8px;
    letter-spacing: .08em;
    color: #5e6b7c
}

.ad-slot-inline {
    min-height: 108px;
    max-width: 900px;
    margin: 24px auto
}

.ad-slot-footer {
    margin-top: 34px
}

.analysis-details>summary:hover,.settings-details>summary:hover {
    background-color: rgba(141,230,255,.035)
}

@media(max-width: 700px) {
    .how-it-works {
        grid-template-columns:1fr;
        gap: 8px;
        margin: 18px 0 23px
    }

    .how-it-works>div {
        padding: 12px
    }

    .control-card {
        padding: 16px
    }

    .ad-slot {
        min-height: 100px;
        margin: 20px 0;
        padding: 24px 12px
    }

    .ad-size {
        display: none
    }

    .ad-placeholder-copy b {
        font-size: 12px
    }

    .ad-placeholder-copy small {
        font-size: 9px
    }

    .result-section-heading h3 {
        font-size: 17px
    }
}

/* Plain-language score summary: visible before the detailed analysis. */
.overview-score-card {
    margin: 14px 0 24px;
    padding: 20px;
    border: 1px solid #263440;
    border-radius: 20px;
    background: linear-gradient(135deg,rgba(17,29,38,.96),rgba(10,14,20,.96));
    box-shadow: 0 16px 45px #0003
}

.overview-score-main {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(150px,.35fr);
    gap: 24px;
    align-items: center
}

.overview-score-copy .panel-title {
    margin-bottom: 8px;
    color: #8ea4b7
}

.overview-score-copy h3 {
    font-size: 20px;
    letter-spacing: -.025em;
    margin: 0 0 8px
}

.overview-score-copy p {
    font-size: 12px;
    line-height: 1.65;
    color: #aab7c6;
    margin: 0;
    max-width: 680px
}

.overview-score-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 13px
}

.score-status,.quality-status {
    display: inline-flex;
    align-items: center;
    border-radius: 99px;
    padding: 6px 10px;
    font-size: 10px;
    font-weight: 750;
    border: 1px solid #35404e;
    background: #151c25;
    color: #c3cfdd
}

.score-status-positive {
    border-color: #235a46;
    background: #10251e;
    color: #7ce4b0
}

.score-status-caution {
    border-color: #67454a;
    background: #29191d;
    color: #ffadb5
}

.score-status-mixed {
    border-color: #65542e;
    background: #251f12;
    color: #f4d78a
}

.quality-status {
    border-color: #35404e;
    color: #aab7c6
}

.overview-score-number {
    text-align: right
}

.overview-score-number strong {
    font-size: 48px;
    line-height: 1;
    letter-spacing: -.06em;
    display: block
}

.overview-score-number>span {
    font-size: 10px;
    color: #8494a7;
    display: block;
    margin-top: 5px
}

.overview-score-track {
    height: 6px;
    background: #202a35;
    border-radius: 99px;
    overflow: hidden;
    margin-top: 13px
}

.overview-score-track i {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg,#4f9db4,#8de6ff);
    border-radius: 99px;
    transition: width .35s ease
}

.overview-score-factors {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 8px;
    margin-top: 19px
}

.overview-score-factors>div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    padding: 11px 12px;
    border: 1px solid #b8b8b8;
    border-radius: 11px;
    background: #f3fff7;
    /* background: #f8fbf8 !important; */
    border-color: #e1eae2 !important;
}

.overview-score-factors span {
    font-size: 10px;
    color: #5e5e5e;
}

.overview-score-factors b {
    font-size: 11px;
    color: #7c7c7c;
    white-space: nowrap
}

.overview-score-footnote {
    font-size: 10px;
    line-height: 1.6;
    color: #748397;
    margin: 13px 0 0
}

@media(max-width: 620px) {
    .overview-score-card {
        padding:15px;
        border-radius: 16px
    }

    .overview-score-main {
        grid-template-columns: minmax(0,1fr) 100px;
        gap: 12px
    }

    .overview-score-copy h3 {
        font-size: 17px
    }

    .overview-score-number strong {
        font-size: 37px
    }

    .overview-score-factors {
        grid-template-columns: 1fr 1fr;
        gap: 7px
    }

    .overview-score-factors>div {
        padding: 10px
    }

    .overview-score-factors span {
        font-size: 9px
    }
}

/* Aktien Helfer â€” guided analysis wizard */
.wizard-card {
    padding: clamp(20px,3vw,34px);
    max-width: 1000px;
    margin-inline:auto}

.wizard-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px
}

.wizard-top h2 {
    font-size: clamp(1.45rem,2.8vw,2rem);
    line-height: 1.15;
    letter-spacing: -.035em;
    margin: 8px 0
}

.wizard-top p {
    color: var(--muted,#7b8495);
    max-width: 620px;
    margin: 0;
    line-height: 1.6
}

.wizard-counter {
    display: flex;
    align-items: baseline;
    gap: 5px;
    padding: 9px 12px;
    border: 1px solid var(--line,#e4e7ed);
    border-radius: 14px;
    white-space: nowrap;
    font-weight: 750
}

.wizard-counter #wizardCurrent {
    font-size: 1.2rem
}

.wizard-counter-divider,.wizard-counter span:last-child {
    color: var(--muted,#7b8495)
}

.wizard-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 30px
}

.wizard-progress-step {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted,#7b8495);
    font-size: .82rem;
    white-space: nowrap
}

.wizard-progress-step i {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--line,#dfe3eb);
    border-radius: 50%;
    font-style: normal;
    font-weight: 750;
    background: transparent
}

.wizard-progress-step.active {
    color: var(--text,#172033)
}

.wizard-progress-step.active i,.wizard-progress-step.done i {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff
}

.wizard-progress-step.done i {

}

.wizard-progress-step.done i:after {
    font-size: 13px
}

.wizard-progress-line {
    height: 1px;
    flex: 1;
    background: var(--line,#e1e5ec);
    min-width: 12px
}

.wizard-pane>.form-section-title:first-child {
    margin-top: 0
}

.wizard-pane .field>label {
    letter-spacing: .045em
}

.wizard-tip {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    margin: 22px 0 4px;
    border: 1px solid var(--line,#e5e8ee);
    background: var(--soft,#f8fafc);
    border-radius: 15px
}

.wizard-tip-icon {
    display: grid;
    place-items: center;
    flex: 0 0 27px;
    height: 27px;
    border-radius: 9px;
    background: #e8efff;
    color: #2457c5;
    font-weight: 800
}

.wizard-tip b,.wizard-tip small {
    display: block
}

.wizard-tip b {
    font-size: .9rem;
    margin: 1px 0 4px
}

.wizard-tip small {
    font-size: .82rem;
    color: var(--muted,#6b7280);
    line-height: 1.5
}

.wizard-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px
}

.wizard-actions-end {
    justify-content: flex-end
}

.wizard-next,.wizard-back {
    min-height: 46px;
    border-radius: 13px;
    padding: 0 20px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease,background .15s ease
}

.wizard-next {
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 5px 14px #2563eb20
}

.wizard-next span {
    margin-left: 12px
}

.wizard-back {
    border: 1px solid var(--line,#dfe3eb);
    background: transparent;
    color: inherit
}

.wizard-next:hover,.wizard-back:hover {
    transform: translateY(-1px)
}

.wizard-review {
    padding: 20px;
    border: 1px solid var(--line,#e3e7ee);
    border-radius: 18px;
    background: var(--soft,#f8fafc)
}

.wizard-review-heading {
    display: flex;
    gap: 12px;
    align-items: flex-start
}

.review-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 11px;
    background: #e6f6ed;
    color: #17804a;
    font-weight: 800
}

.wizard-review-heading h3 {
    margin: 2px 0 5px;
    font-size: 1.08rem
}

.wizard-review-heading p {
    margin: 0;
    color: var(--muted,#6b7280);
    font-size: .88rem;
    line-height: 1.5
}

.wizard-review-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
    margin-top: 22px
}

.wizard-review-grid>div {
    padding: 13px;
    background: var(--card,#fff);
    border: 1px solid var(--line,#e5e8ef);
    border-radius: 12px;
    min-width: 0
}

.wizard-review-grid span {
    display: block;
    font-size: .67rem;
    letter-spacing: .06em;
    color: var(--muted,#6b7280);
    margin-bottom: 7px
}

.wizard-review-grid b {
    display: block;
    overflow-wrap: anywhere;
    font-size: .92rem
}

.wizard-pane .settings-details {
    margin-top: 20px
}

.wizard-pane #run {
    flex: 1;
    max-width: 380px;
    margin: 0
}

.wizard-pane .free-note {
    margin-top: 15px
}

@media(max-width: 620px) {
    .wizard-card {
        padding:18px 15px
    }

    .wizard-top {
        gap: 10px
    }

    .wizard-progress {
        gap: 6px;
        margin-bottom: 22px
    }

    .wizard-progress-step {
        gap: 6px;
        font-size: .72rem
    }

    .wizard-progress-step i {
        width: 27px;
        height: 27px;
        flex-basis: 27px
    }

    .wizard-review-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 16px
    }

    .wizard-review-grid>div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px
    }

    .wizard-review-grid span {
        margin: 0
    }

    .wizard-actions {
        gap: 8px
    }

    .wizard-next,.wizard-back {
        padding: 0 14px
    }

    .wizard-pane #run {
        font-size: .82rem
    }
}

/* Five-step wizard refinements */
.wizard-progress-step {
    min-width: 0
}

.wizard-progress-step b {
    font-size: .78rem
}

.wizard-progress-line {
    flex: 1 1 14px
}

.wizard-review-extra {
    margin: 18px 0 0;
    line-height: 1.6
}

.wizard-pane .form-section-title {
    margin-bottom: 18px
}

.wizard-pane .row.two {
    margin-bottom: 4px
}

.wizard-pane .micro-note {
    margin-top: 16px
}

@media(max-width: 760px) {
    .wizard-progress {
        gap:5px
    }

    .wizard-progress-step {
        flex-direction: column;
        gap: 4px;
        text-align: center;
        flex: 0 1 auto
    }

    .wizard-progress-step b {
        font-size: .66rem;
        white-space: normal;
        line-height: 1.1
    }

    .wizard-progress-line {
        min-width: 5px;
        margin-top: -17px
    }
}

/* Results: compact accessible tabs below the always-visible summary */
.result-tabs-wrap {
    margin-top: 30px
}

.result-tabs {
    display: flex;
    gap: 8px;
    padding: 7px;
    border: 1px solid var(--line,#e3e7ee);
    border-radius: 17px;
    background: var(--soft,#f8fafc);
    margin: 0 0 20px;
    overflow-x: auto
}

.result-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex: 1 0 auto;
    min-height: 46px;
    padding: 0 17px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--muted,#697386);
    font: inherit;
    font-size: .88rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background .16s ease,color .16s ease,border-color .16s ease
}

.result-tab>span {
    font-size: .69rem;
    opacity: .7
}

.result-tab:hover {
    color: var(--text,#172033);
    background: #ffffff90
}

.result-tab.active {
    background: var(--card,#fff);
    border-color: var(--line,#e2e7ef);
    color: var(--text,#172033);
    box-shadow: 0 3px 12px #1118270a
}

.result-tab:focus-visible {
    outline: 3px solid #60a5fa;
    outline-offset: 2px
}

.result-tab-panel {
    min-width: 0;
    animation: resultPanelIn .18s ease
}

.result-tab-panel[hidden],.result-tab-panel.hidden {
    display: none!important
}

.result-tab-panel>.panel:first-child {
    margin-top: 0
}

.result-tab-panel .backtest-panel {
    margin-top: 0
}

@keyframes resultPanelIn {
    from {
        opacity: .65;
        transform: translateY(3px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@media(max-width: 620px) {
    .result-tabs {
        gap:4px;
        padding: 5px;
        border-radius: 14px
    }

    .result-tab {
        min-height: 43px;
        padding: 0 12px;
        font-size: .8rem
    }

    .result-tab>span {
        display: none
    }
}

/* SEO content: useful editorial depth without breaking the dark, minimal product UI. */
.seo-content {
    max-width: 1000px;
    margin: 74px auto 10px;
    color: var(--text);
}

.seo-intro {
    max-width: 790px;
    margin-bottom: 25px
}

.seo-content h2 {
    font-size: clamp(25px,3.5vw,36px);
    line-height: 1.15;
    letter-spacing: -.045em;
    margin: 8px 0 14px
}

.seo-content p {
    font-size: 13px;
    line-height: 1.8;
    color: #a0aec1
}

.seo-intro>p {
    font-size: 15px;
    max-width: 780px
}

.seo-feature-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
    margin: 25px 0 42px
}

.seo-card,.seo-glossary-grid article {
    padding: 22px;
    border: 1px solid rgba(160,181,216,.13);
    border-radius: 17px;
    background: linear-gradient(145deg,rgba(17,23,31,.86),rgba(9,13,19,.86))
}

.seo-number {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(121,230,255,.09);
    border: 1px solid rgba(121,230,255,.17);
    color: var(--accent);
    font-size: 10px;
    font-weight: 850
}

.seo-card h3,.seo-glossary-grid h3 {
    font-size: 16px;
    letter-spacing: -.02em;
    margin: 15px 0 7px
}

.seo-card p,.seo-glossary-grid p {
    margin: 0
}

.seo-method,.seo-glossary,.seo-faq {
    margin-top: 45px
}

.seo-steps {
    list-style: none;
    counter-reset: seo-step;
    padding: 0;
    margin: 22px 0 0;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px
}

.seo-steps li {
    counter-increment: seo-step;
    position: relative;
    padding: 18px 18px 18px 58px;
    border: 1px solid rgba(160,181,216,.12);
    border-radius: 14px;
    background: rgba(15,20,28,.66);
    min-height: 85px
}

.seo-steps li:before {
    content: counter(seo-step,decimal-leading-zero);
    position: absolute;
    left: 17px;
    top: 18px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 850
}

.seo-steps b,.seo-steps span {
    display: block
}

.seo-steps b {
    font-size: 13px;
    margin-bottom: 5px
}

.seo-steps span {
    font-size: 12px;
    line-height: 1.65;
    color: #8f9eb2
}

.seo-glossary-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
    margin-top: 20px
}

.seo-glossary-grid article {
    padding: 17px
}

.seo-glossary-grid h3 {
    margin: 0 0 7px
}

.seo-faq details {
    border-bottom: 1px solid rgba(160,181,216,.14);
    padding: 0 2px
}

.seo-faq details:first-of-type {
    border-top: 1px solid rgba(160,181,216,.14)
}

.seo-faq summary {
    position: relative;
    cursor: pointer;
    list-style: none;
    padding: 19px 36px 19px 0;
    font-size: 14px;
    font-weight: 700;
    color: #e6edf7
}

.seo-faq summary::-webkit-details-marker {
    display: none
}

.seo-faq summary:after {
    content: '+';
    position: absolute;
    right: 5px;
    top: 14px;
    color: var(--accent);
    font-size: 22px;
    font-weight: 400
}

.seo-faq details[open] summary:after {
    content: '-'
}

.seo-faq details p {
    margin: 0;
    padding: 0 35px 19px 0;
    max-width: 850px
}

.seo-disclaimer {
    margin-top: 30px;
    padding: 17px 18px;
    border: 1px solid rgba(255,215,107,.14);
    border-radius: 13px;
    background: rgba(255,215,107,.035);
    font-size: 11px!important
}

.seo-disclaimer b {
    color: #d9c88e
}

@media(max-width: 620px) {
    .seo-content {
        margin-top:52px
    }

    .seo-feature-grid,.seo-steps,.seo-glossary-grid {
        grid-template-columns: 1fr
    }

    .seo-card {
        padding: 18px
    }

    .seo-content p {
        font-size: 12px
    }

    .seo-intro>p {
        font-size: 13px
    }

    .seo-steps li {
        min-height: 0
    }

    .seo-faq summary {
        font-size: 13px
    }
}

/* Aktien Helfer SEO, Ratgeber und Navigation */
.brand {
    color: var(--text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0
}

.seo-topic-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 34px
}

.seo-topic-nav a,.footer-links a {
    color: #a9c7d4;
    text-decoration: none
}

.seo-topic-nav a {
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(16,20,27,.7);
    font-size: 12px
}

.seo-topic-nav a:hover,.footer-links a:hover {
    color: var(--accent);
    border-color: #416b77
}

.seo-topic-nav span {
    color: var(--accent);
    margin-left: 8px
}

footer {
    line-height: 1.8;
    letter-spacing: normal
}

footer p {
    color: var(--muted);
    font-size: 12px;
    margin: 4px 0 12px
}

.footer-brand {
    font-weight: 850;
    letter-spacing: .16em;
    color: var(--text)
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    font-size: 12px
}

.guide-cta {
    color: var(--accent);
    text-decoration: none;
    border: 1px solid #25424b;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 750
}

.guide-cta span {
    margin-left: 7px
}

.guide-wrap {
    padding-top: 30px
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #738196;
    font-size: 12px;
    margin-bottom: 34px
}

.breadcrumbs a {
    color: #9fcbd9;
    text-decoration: none
}

.guide-article {
    max-width: 900px;
    margin: 0 auto
}

.guide-article h1 {
    font-size: clamp(38px,6vw,64px);
    line-height: 1.04;
    letter-spacing: -.05em;
    margin: 0 0 18px
}

.guide-article h2 {
    font-size: clamp(24px,3.2vw,34px);
    letter-spacing: -.035em;
    margin: 38px 0 14px
}

.guide-article p {
    color: #a0aec1;
    line-height: 1.85;
    font-size: 15px
}

.guide-article .guide-lead {
    font-size: 18px;
    color: #c7d1df;
    max-width: 780px
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
    margin: 20px 0
}

.guide-card {
    border: 1px solid rgba(160,181,216,.13);
    border-radius: 16px;
    background: linear-gradient(145deg,rgba(17,23,31,.86),rgba(9,13,19,.86));
    padding: 20px
}

.guide-card h3 {
    font-size: 16px;
    margin: 0 0 8px
}

.guide-card p {
    font-size: 13px;
    margin: 0
}

.guide-related {
    margin-top: 28px;
    border: 1px solid #25424b;
    border-radius: 15px;
    padding: 18px;
    background: rgba(121,230,255,.035)
}

.guide-related p {
    margin-bottom: 0
}

.guide-related a {
    color: var(--accent)
}

.guide-disclaimer {
    margin-top: 28px;
    padding: 18px;
    border: 1px solid rgba(255,215,107,.18);
    border-radius: 14px;
    color: #b4ad94;
    font-size: 12px;
    line-height: 1.8
}

.guide-disclaimer b {
    color: #e0d09a
}

.guide-return {
    margin-top: 25px
}

.guide-return .run {
    display: inline-flex;
    align-items: center;
    text-decoration: none
}

.guide-return .run span {
    margin-left: 12px
}

@media(max-width: 620px) {
    .guide-grid {
        grid-template-columns:1fr
    }

    .guide-article h1 {
        font-size: 42px
    }

    .guide-article p {
        font-size: 14px
    }

    .seo-topic-nav {
        display: grid;
        grid-template-columns: 1fr
    }

    .topbar {
        padding: 0 18px
    }
}

/* AKTIEN HELFER â€” Premium Light / Botanical Green theme */
:root {
    color-scheme: light;
    --bg: #f5f8f5;
    --panel: #ffffff;
    --card: #ffffff;
    --soft: #eef5ef;
    --line: #dce7de;
    --text: #172b20;
    --muted: #687b6e;
    --accent: #168052;
    --green: #168052;
    --red: #c84e58;
    --yellow: #a87518;
    --brand-deep: #104b34;
    --brand-soft: #e6f3e9;
    --shadow: 0 18px 55px rgba(24,62,39,.08);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px
}

html,body {
    background: var(--bg);
    color: var(--text)
}

body {
    background: radial-gradient(ellipse at 50% -16%,rgba(202,232,207,.55),transparent 48%),#f5f8f5;
    font-feature-settings: "ss01" on
}

.bg-grid {
    opacity: .32;
    background-image: linear-gradient(rgba(31,92,56,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(31,92,56,.055) 1px,transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom,#000,transparent 74%)
}

.topbar {
    height: 76px;
    padding-inline:max(22px,calc((100vw - 1180px)/2));border-bottom: 1px solid rgba(211,226,214,.88);
    background: rgba(250,252,249,.84);
    backdrop-filter: blur(22px);
    box-shadow: 0 4px 22px rgba(25,61,39,.025);
    z-index: 50
}

.brand {
    color: #183c29;
    font-size: 14px;
    letter-spacing: .11em;
    font-weight: 850
}

.brand b {
    color: #168052
}

.brand-dot {
    width: 9px;
    height: 9px;
    background: #168052;
    box-shadow: 0 0 0 5px rgba(22,128,82,.1);
    margin-right: 11px
}

.badge {
    font-size: 10px;
    letter-spacing: .1em;
    color: #176542;
    border: 1px solid #c9e2cf;
    background: #edf7ef;
    padding: 8px 12px;
    font-weight: 800
}

.wrap {
    max-width: 1180px;
    padding: clamp(44px,6vw,78px) 22px
}

.hero {
    max-width: 850px;
    margin-bottom: 38px;
    position: relative
}

.eyebrow {
    color: #16784d;
    font-size: 10px;
    letter-spacing: .18em;
    font-weight: 850
}

.hero h1 {
    font-size: clamp(42px,6.6vw,76px);
    line-height: 1.01;
    letter-spacing: -.065em;
    color: #153b28;
    margin-bottom: 22px
}

.hero h1 span {
    color: #168052
}

.hero p {
    color: #5c7163;
    font-size: clamp(15px,1.6vw,18px);
    line-height: 1.8;
    max-width: 710px
}

.control-card,.panel,.prob,.wizard-card,.seo-card,.seo-glossary-grid article,.guide-card,.wizard-review,.decision-card,.replay-item {
    background: rgba(255,255,255,.94)!important;
    border: 1px solid #dce8de!important;
    box-shadow: var(--shadow)
}

.control-card {
    border-radius: 25px;
    box-shadow: 0 25px 70px rgba(24,62,39,.09);
    padding: clamp(17px,2.4vw,28px)
}

.field label {
    color: #66796b;
    font-size: 10px;
    letter-spacing: .12em
}

.field input,.field select {
    background: #fbfdfb;
    border: 1px solid #d6e3d8;
    color: #183626;
    border-radius: 12px;
    transition: border-color .16s,box-shadow .16s
}

.field input::placeholder {
    color: #9aaba0
}

.field input:focus,.field select:focus {
    border-color: #4caa78;
    box-shadow: 0 0 0 4px rgba(22,128,82,.1);
    outline: 0
}

.run,.wizard-next {
    background: linear-gradient(135deg,#198656,#116b43)!important;
    border: 1px solid #116b43!important;
    color: #fff!important;
    box-shadow: 0 7px 17px rgba(17,107,67,.18)!important;
    border-radius: 12px;
    font-weight: 800;
    transition: transform .18s,box-shadow .18s,filter .18s
}

.run:hover,.wizard-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 11px 24px rgba(17,107,67,.22)!important;
    filter: saturate(1.08)
}

.wizard-back {
    border: 1px solid #d4e1d6!important;
    background: #fff!important;
    color: #31523e!important
}

.wizard-back:hover {
    background: #f0f7f1!important
}

.status {
    background: #fff;
    border: 1px solid #dce7de;
    box-shadow: 0 10px 35px rgba(24,62,39,.04)
}

.status-title {
    color: #16784d
}

.steps div {
    border-color: #e0e9e2;
    color: #718276;
    background: #f8fbf8
}

.steps .active {
    color: #176e48;
    border-color: #91c9a6;
    background: #eef8f0
}

.steps .done {
    color: #168052
}

.result-head h2 {
    color: #173c29
}

.meta {
    color: #738578
}

.prob {
    border-radius: 20px
}

.prob span {
    color: #6d8072
}

.prob strong {
    color: #173c29
}

.prob.up strong {
    color: #168052
}

.prob.down strong {
    color: #c84e58
}

.prob.flat strong {
    color: #a87518
}

.explain {
    background: #edf6ef;
    color: #365541;
    border-left-color: #168052;
    border-radius: 0 14px 14px 0
}

.panel {
    border-radius: 19px
}

.panel-title {
    color: #718477
}

.metrics span,.feature-grid span {
    color: #748579
}

.metrics b {
    color: #173c29
}

.chart-panel {
    background: #fff
}

.feature-grid>div {
    background: #f5faf6;
    border: 1px solid #e0eae2;
    border-radius: 13px
}

.feature-grid b {
    color: #234832
}

.match-row {
    border-color: #e4ece5;
    color: #294534
}

.match-row .date {
    color: #657a6a
}

.match-row .sim {
    color: #168052
}

.match-row .ret.up {
    color: #168052
}

.match-row .ret.down {
    color: #c84e58
}

.form-section-title {
    border-color: #e2ebe3
}

.form-section-title>span {
    color: #16784d;
    border-color: #c8e1cf;
    background: #eef7f0
}

.asset-search-wrap input {
    padding-left: 42px!important
}

.search-icon {
    color: #168052
}

.clear-asset {
    color: #708475
}

.asset-options {
    background: #fff;
    border-color: #d7e5da;
    box-shadow: 0 18px 45px rgba(24,62,39,.16)
}

.asset-option {
    color: #244431
}

.asset-option:hover,.asset-option[aria-selected="true"] {
    background: #edf7ef
}

.asset-option .opt-symbol {
    color: #168052
}

.asset-option .opt-kind {
    color: #718477
}

.asset-empty {
    color: #718477
}

.selected-asset {
    color: #5d7464
}

.ticker-pill {
    background: #e8f5eb;
    color: #146a43;
    border-color: #cce5d2
}

.selected-check {
    color: #168052
}

.micro-note {
    color: #718477
}

.info-dot {
    border-color: #b7d9c0;
    color: #168052
}

.free-note {
    color: #718477
}

.free-note span {
    color: #168052
}

.decision-banner {
    border-color: #cde2d2;
    background: linear-gradient(115deg,#edf7ef,#f9fcf9);
    box-shadow: 0 10px 30px rgba(24,62,39,.04)
}

.decision-symbol {
    background: #dcefe1;
    color: #176e48
}

.decision-label {
    color: #16784d
}

.decision-banner h3 {
    color: #1b3e2a
}

.decision-banner p {
    color: #607566
}

.decision-card span,.replay-item span {
    color: #718477
}

.decision-card strong,.replay-item b {
    color: #183c29
}

.decision-card small,.replay-item small {
    color: #718477
}

.decision-card,.replay-item {
    border-radius: 14px
}

.wizard-progress-step {
    color: #687d6d
}

.wizard-progress-step i {
    background: #edf5ee;
    border-color: #d4e4d7;
    color: #64806c
}

.wizard-progress-step.active {
    color: #176e48
}

.wizard-progress-step.active i,.wizard-progress-step.done i {
    background: #168052;
    border-color: #168052;
    color: #fff
}

.wizard-progress-step.done {
    color: #168052
}

.wizard-progress-line {
    background: #dce7de
}

.wizard-counter {
    color: #176e48;
    background: #eef7f0;
    border: 1px solid #d4e8d8;
    border-radius: 12px;
    padding: 8px 11px
}

.wizard-counter-divider {
    color: #91a797
}

.wizard-tip {
    border-color: #dce9de;
    background: #f4f9f4
}

.wizard-tip-icon {
    background: #e1f1e5;
    color: #176e48
}

.wizard-tip small {
    color: #6a7e6e
}

.wizard-review-grid>div {
    background: #fff;
    border-color: #e0e9e2
}

.review-icon {
    background: #e4f4e8;
    color: #168052
}

.result-tabs {
    background: #edf4ee;
    border-color: #dce7de;
    border-radius: 16px
}

.result-tab {
    color: #65796a
}

.result-tab:hover {
    color: #173c29;
    background: #ffffffb8
}

.result-tab.active {
    background: #fff;
    border-color: #d9e6dc;
    color: #176e48;
    box-shadow: 0 4px 12px rgba(24,62,39,.07)
}

.result-tab:focus-visible {
    outline-color: #168052
}

.seo-content {
    color: #1a3b29
}

.seo-content h2 {
    color: #173c29
}

.seo-content p {
    color: #63786a
}

.seo-feature-grid {
    gap: 14px
}

.seo-card,.seo-glossary-grid article {
    background: linear-gradient(145deg,#fff,#f8fbf8)!important;
    border-color: #dfe9e1!important;
    border-radius: 18px;
    box-shadow: 0 9px 28px rgba(24,62,39,.045)
}

.seo-number {
    background: #e5f4e8;
    border-color: #cce6d2;
    color: #176e48
}

.seo-card h3,.seo-glossary-grid h3 {
    color: #234832
}

.seo-steps li {
    border-color: #dce8de;
    background: #fff;
    box-shadow: 0 7px 22px rgba(24,62,39,.035)
}

.seo-steps li:before {
    color: #168052
}

.seo-steps span {
    color: #687d6d
}

.seo-faq details {
    border-color: #dce7de
}

.seo-faq summary {
    color: #234832
}

.seo-faq summary:after {
    color: #168052
}

.seo-disclaimer {
    border-color: #e8dcb7;
    background: #fffaf0;
    color: #75643e
}

.seo-disclaimer b {
    color: #7e5d15
}

.seo-topic-nav a,.footer-links a {
    color: #4b6a55
}

.seo-topic-nav a {
    border-color: #dce7de;
    background: #fff;
    box-shadow: 0 3px 12px rgba(24,62,39,.025);
    border-radius: 12px
}

.seo-topic-nav a:hover,.footer-links a:hover {
    color: #12683f;
    border-color: #91c9a6
}

.seo-topic-nav span {
    color: #168052
}

footer {
    border-top: 1px solid #dce7de;
    color: #718477;
    background: rgba(255,255,255,.48)
}

footer p {
    color: #718477
}

.footer-brand {
    color: #173c29
}

.footer-links a {
    color: #55745e
}

.guide-cta {
    color: #176e48;
    border-color: #cde2d2;
    background: #f1f8f2
}

.guide-cta:hover {
    background: #e3f2e6
}

.guide-wrap {
    padding-top: 30px
}

.breadcrumbs {
    color: #778a7b
}

.breadcrumbs a {
    color: #176e48
}

.guide-article h1,.guide-article h2 {
    color: #173c29
}

.guide-article p {
    color: #5f7565
}

.guide-article .guide-lead {
    color: #3f5e49
}

.guide-card {
    background: linear-gradient(145deg,#fff,#f8fbf8)!important
}

.guide-card h3 {
    color: #234832
}

.guide-card p {
    color: #63786a
}

.guide-related {
    border-color: #d0e5d5;
    background: #eef7f0
}

.guide-related p {
    color: #5f7565
}

.guide-related a {
    color: #176e48
}

.guide-disclaimer {
    border-color: #e8dcb7;
    background: #fffaf0;
    color: #75643e
}

.guide-disclaimer b {
    color: #7e5d15
}

.backtest-intro {
    color: #617768
}

.backtest-status {
    border-color: #d5e8d9;
    background: #eff8f0;
    color: #176e48
}

.recent-title {
    border-color: #e0e9e2
}

.table-wrap {
    border-color: #dce7de;
    background: #fff
}

.match-table th {
    background: #edf5ee;
    color: #4d6b56
}

.match-table th,.match-table td {
    border-color: #e3ece4
}

.match-table td {
    color: #2c4a35
}

.match-table .up {
    color: #168052
}

.match-table .down {
    color: #c84e58
}

.notice {
    color: #708275
}

.notice b {
    color: #365541
}

.ad-slot {
    border-color: #d6e4d8;
    background: linear-gradient(115deg,#f1f7f1,#fff);
    color: #708275
}

.ad-slot:before {
    color: #7d9582
}

::selection {
    background: #cdebd4;
    color: #173c29
}

:focus-visible {
    outline-color: #168052
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    *,*:before,*:after {
        animation-duration: .01ms!important;
        transition-duration: .01ms!important
    }
}

/* AKTIEN HELFER â€” complete light premium green theme
   Visual-only overrides: preserve all existing IDs, data attributes and app logic. */
:root {
    color-scheme: light;
    --bg: #f5f8f5;
    --panel: #ffffff;
    --line: #dce7df;
    --text: #183126;
    --muted: #64776b;
    --accent: #168052;
    --green: #168052;
    --red: #c44752;
    --yellow: #a36b12;
    --panel-solid: #ffffff;
    --soft: #eef5ef;
    --focus: rgba(22,128,82,.16);
}

html,body {
    background: #f5f8f5!important;
    color: #20372b!important;
    font-family: Inter,"SF Pro Display",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important;
    font-size: 15px;
    line-height: 1.65;
    letter-spacing: -.012em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    background: radial-gradient(ellipse at 8% 0%,rgba(207,233,214,.45),transparent 35%), radial-gradient(ellipse at 96% 12%,rgba(224,239,224,.55),transparent 32%), #f5f8f5!important;
}

.bg-grid {
    opacity: .22!important;
    background-image: linear-gradient(#e4ece5 1px,transparent 1px),linear-gradient(90deg,#e4ece5 1px,transparent 1px)!important
}

.topbar {
    background: rgba(255,255,255,.9)!important;
    border-bottom: 1px solid #e2eae3!important;
    box-shadow: 0 5px 24px rgba(27,66,43,.045)!important;
    backdrop-filter: blur(18px)
}

.brand {
    color: #173e2b!important;
    letter-spacing: -.035em!important;
    font-size: 15px!important
}

.brand b,.brand-dot {
    color: #168052!important;
    /* background:#168052!important; */
    /* box-shadow: 0 0 0 5px rgba(22,128,82,.08)!important; */
}

.badge {
    color: #176b45!important;
    border-color: #cce2d1!important;
    background: #f0f8f1!important
}

.wrap {
    color: #20372b
}

.hero h1,.result-head h2,.result-section-heading h3,h1,h2,h3,h4 {
    color: #183b29
}

.hero h1 {
    font-weight: 760;
    letter-spacing: -.065em
}

.hero h1 span {
    background: linear-gradient(100deg,#147348,#2d9965)!important;
    -webkit-background-clip: text!important;
    background-clip: text!important;
    color: transparent!important
}

.eyebrow,.status-title,.decision-label {
    color: #168052!important
}

.hero p,.result-subtitle,.backtest-intro {
    color: #5e7265!important
}

.control-card,.panel,.status,.decision-card,.prob,.replay-item,.overview-score-card,.historical-matches-panel {
    background: #fff!important;
    border: 1px solid #e0e9e1!important;
    box-shadow: 0 12px 34px rgba(27,66,43,.055),0 1px 2px rgba(27,66,43,.035)!important;
}

.control-card {
    border-radius: 24px!important
}

.panel,.prob,.decision-card,.replay-item {
    border-radius: 18px!important
}

.form-section-title {
    border-top-color: #e4ece5!important
}

.form-section-title>span {
    background: #edf7ef!important;
    border-color: #d4e9d8!important;
    color: #176b45!important
}

.form-section-title b {
    color: #244432!important
}

.form-section-title small,.field small,.free-note,.micro-note,.result-subtitle,.result-section-heading p,.panel-help,.metric-help,.feature-help,.notice,.historical-subtitle,.historical-footnote,.overview-score-copy p {
    color: #687b6e!important
}

.field label {
    color: #536b5b!important;
    font-weight: 750!important
}

.field input,.field select,input,select,textarea {
    background: #fff!important;
    color: #20372b!important;
    border-color: #d7e3d9!important;
    border-radius: 12px;
}

.field input::placeholder,input::placeholder,textarea::placeholder {
    color: #96a69a!important
}

.field input:hover,.field select:hover,input:hover,select:hover,textarea:hover {
    border-color: #a9c9b1!important
}

.field input:focus,.field select:focus,input:focus,select:focus,textarea:focus {
    border-color: #168052!important;
    box-shadow: 0 0 0 4px rgba(22,128,82,.11)!important;
    background: #fff!important
}

select option {
    background: #fff!important;
    color: #20372b!important
}

.run {
    background: linear-gradient(110deg,#18794e,#12613e)!important;
    color: #fff!important;
    box-shadow: 0 7px 18px rgba(22,128,82,.17)!important
}

.run:hover {
    filter: brightness(1.05);
    box-shadow: 0 10px 24px rgba(22,128,82,.22)!important
}

.run:focus-visible,.clear-asset:focus-visible,.asset-option:focus-visible {
    outline-color: #168052!important
}

.status {
    background: #fff!important
}

.steps div {
    background: #f7faf7!important;
    border-color: #e0e9e1!important;
    color: #718276!important
}

.steps .active {
    background: #edf7ef!important;
    border-color: #9bc9a6!important;
    color: #176b45!important
}

.steps .done {
    color: #168052!important;
    border-color: #c5e1cc!important
}

.error {
    background: #fff1f1!important;
    border-color: #f0c9cc!important;
    color: #a52f3c!important
}

.prob span,.metrics span,.feature-grid span,.decision-card span,.replay-item span {
    color: #6a7d70!important
}

.prob strong,.metrics b,.feature-grid b,.decision-card strong,.replay-item b {
    color: #20372b
}

.prob.up strong,.match-row .ret.up,.match-table .up,.historical-match-table .up {
    color: #168052!important
}

.prob.down strong,.match-row .ret.down,.match-table .down,.historical-match-table .down {
    color: #c44752!important
}

.prob.flat strong {
    color: #a36b12!important
}

.prob:before {
    background: #d6b86b!important
}

.prob.up:before {
    background: #168052!important
}

.prob.down:before {
    background: #c44752!important
}

.explain {
    background: #f0f7f1!important;
    border: 1px solid #dceade!important;
    border-left: 3px solid #168052!important;
    color: #45614e!important
}

.panel-title {
    color: #5d7463!important
}

.feature-grid>div,.replay-item,.score-row {
    background: #f8fbf8!important;
    border-color: #e1eae2!important
}

.match-row {
    border-bottom-color: #e4ece5!important;
    color: #344d3b!important
}

.match-row .date {
    color: #667a6b!important
}

.match-row .sim {
    color: #176b45!important
}

.decision-banner {
    background: linear-gradient(120deg,#eff8f0,#f9fcf9)!important;
    border-color: #d5e8d8!important;
    box-shadow: 0 8px 24px rgba(27,66,43,.04)!important
}

.decision-symbol {
    background: #e0f1e3!important;
    color: #176b45!important
}

.decision-banner h3 {
    color: #1d402c!important
}

.decision-banner p {
    color: #5c7162!important
}

.decision-card span {
    color: #64796a!important
}

.decision-card small,.replay-item small {
    color: #6f8274!important
}

.ticker-pill {
    background: #edf7ef!important;
    border-color: #d2e8d7!important;
    color: #176b45!important
}

.selected-asset {
    color: #4d6756!important
}

.selected-check {
    color: #168052!important
}

.asset-options {
    background: #fff!important;
    border-color: #dce7df!important;
    box-shadow: 0 18px 40px rgba(27,66,43,.13)!important
}

.asset-option {
    color: #20372b!important
}

.asset-option:hover,.asset-option[aria-selected="true"] {
    background: #eff7f0!important
}

.asset-option .opt-symbol,.search-icon {
    color: #168052!important
}

.asset-option .opt-kind {
    color: #758679!important
}

.asset-empty {
    color: #687b6e!important
}

.micro-note {
    background: #f2f8f3!important;
    border-color: #dceade!important;
    color: #536b5b!important
}

.info-dot {
    border-color: #b8d8bf!important;
    color: #168052!important
}

.backtest-status {
    background: #eff7f0!important;
    border-color: #d5e8d8!important;
    color: #176b45!important
}

.recent-title {
    border-top-color: #e0e9e1!important
}

.table-wrap,.historical-table-wrap {
    background: #fff!important;
    border: 1px solid #dfe8e0!important;
    border-radius: 14px!important;
    scrollbar-color: #b7cdbb #f1f6f1!important;
}

.match-table,.historical-match-table {
    background: #fff!important;
    color: #304638!important;
    border-collapse: separate;
    border-spacing: 0
}

.match-table th,.historical-match-table thead th {
    background: #edf5ee!important;
    color: #4d6956!important;
    border-bottom: 1px solid #dce7de!important;
    font-size: 10px!important;
    font-weight: 800!important;
}

.match-table td,.historical-match-table tbody td {
    background: #fff!important;
    color: #3e5746!important;
    border-bottom: 1px solid #e7eee8!important;
}

.historical-match-table tbody tr,.historical-match-table tbody tr:nth-child(even) {
    background: #fff!important
}

.historical-match-table tbody tr:nth-child(even) td {
    background: #f8fbf8!important
}

.historical-match-table tbody tr:hover td {
    background: #eef7ef!important
}

.historical-match-table tbody td:first-child {
    color: #203b2a!important
}

.historical-match-table tbody td:nth-child(2) {
    color: #176b45!important
}

.historical-match-table tbody td:nth-child(2) .similarity-pill {
    background: #eff7f0!important;
    border-color: #cfe4d3!important;
    color: #176b45!important
}

.historical-match-table .similarity-track {
    background: #dfe9e0!important
}

.historical-match-table .similarity-track i {
    background: #168052!important
}

.history-chip {
    background: #eff7f0!important;
    border-color: #d4e7d8!important;
    color: #176b45!important
}

.history-chip-dot {
    background: #168052!important;
    box-shadow: 0 0 8px #16805255!important
}

.footnote-icon {
    border-color: #c8dfcd!important;
    color: #176b45!important
}

.signal-score-head {
    background: #f0f7f1!important;
    border-color: #d9e9dc!important
}

.signal-score-head>div:first-child span,.signal-score-note,.score-row-head span,.score-row small {
    color: #587060!important
}

.signal-score-head strong {
    color: #1b402b!important
}

.score-row-head b {
    color: #203b2a!important
}

.score-track {
    background: #dfe9e0!important
}

.score-track i {
    background: linear-gradient(90deg,#2b8a58,#70b77e)!important
}

.risk-plan-note {
    background: #fff9ed!important;
    border-color: #f0dfb8!important;
    color: #6e634a!important
}

.settings-details,.analysis-details {
    background: #fff!important;
    border-color: #dfe8e0!important
}

.settings-details>summary b,.analysis-details>summary b {
    color: #254432!important
}

.settings-details>summary small,.analysis-details>summary small {
    color: #6d8072!important
}

.details-chevron {
    border-color: #dce7df!important;
    color: #168052!important
}

.settings-content,.analysis-details-content {
    border-top-color: #e4ece5!important
}

.analysis-details>summary {
    background: linear-gradient(115deg,#f0f7f1,#fff)!important
}

.analysis-details>summary:hover,.settings-details>summary:hover {
    background-color: #f1f8f2!important
}

.how-it-works>div {
    background: #fff!important;
    border-color: #e0e9e1!important;
    box-shadow: 0 5px 16px rgba(27,66,43,.035)
}

.how-number {
    background: #edf7ef!important;
    border-color: #cde3d1!important;
    color: #176b45!important
}

.how-it-works b {
    color: #294634!important
}

.how-it-works small {
    color: #6b7f70!important
}

.ad-slot {
    background: linear-gradient(115deg,#fff,#f5f9f5)!important;
    border-color: #d5e3d7!important;
    color: #758679!important
}

.ad-label,.ad-size {
    color: #829487!important
}

.ad-placeholder-copy b {
    color: #536b5b!important
}

.ad-placeholder-copy small {
    color: #7c8c80!important
}

.overview-score-card {
    background: linear-gradient(135deg,#fff,#f3f8f3)!important;
    border-color: #dce8dd!important
}

.overview-score-copy .panel-title {
    color: #647b69!important
}

.overview-score-copy h3 {
    color: #203b2a!important
}

.score-status,.quality-status {
    border-color: #dce7df!important;
    background: #f3f7f3!important;
    color: #52685a!important
}

.score-status-positive {
    border-color: #c7e3ce!important;
    background: #edf7ef!important;
    color: #176b45!important
}

.score-status-caution {
    border-color: #f0cfd0!important;
    background: #fff1f1!important;
    color: #a53540!important
}

.score-status-mixed {
    border-color: #eadbb8!important;
    background: #fff8e9!important;
    color: #8a641b!important
}

footer {
    background: transparent!important;
    border-top-color: #e1eae2!important;
    color: #718276!important
}

a {
    color: #176b45
}

a:hover {
    color: #0d5636
}

:focus-visible {
    outline-color: #168052
}

hr {
    border-color: #e0e9e1
}

code,pre {
    background: #f0f5f0;
    color: #284a34;
    border-color: #dce7df
}

svg text {
    font-family: Inter,"SF Pro Display",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif
}

@media(prefers-reduced-motion:reduce) {
    *,*::before,*::after {
        scroll-behavior: auto!important
    }
}

/* Erweiterter Ratgeberbereich â€“ Aktien Helfer */
.guide-toc {
    margin: 26px 0;
    padding: 20px;
    border: 1px solid #d5e6d8;
    border-radius: 16px;
    background: #f3f9f4
}

.guide-toc>b {
    display: block;
    color: #214b30;
    margin-bottom: 12px
}

.guide-toc>div {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 9px 18px
}

.guide-toc a {
    color: #176e48;
    text-decoration: none;
    font-size: 13px
}

.guide-toc a:hover {
    text-decoration: underline
}

.guide-article section {
    scroll-margin-top: 24px
}

.guide-article section h2 {
    margin-top: 32px
}

.guide-faq {
    margin: 10px 0;
    border: 1px solid #dce8de;
    border-radius: 13px;
    background: #fff;
    padding: 15px 17px
}

.guide-faq summary {
    cursor: pointer;
    color: #234832;
    font-weight: 750
}

.guide-faq p {
    margin: 12px 0 0;
    font-size: 14px
}

.guide-link-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
    margin-top: 14px
}

.guide-link-card {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 14px;
    border: 1px solid #d6e7da;
    border-radius: 12px;
    background: #fff;
    text-decoration: none
}

.guide-link-card strong {
    color: #176e48
}

.guide-link-card span {
    color: #617668;
    font-size: 12px;
    line-height: 1.6
}

.guide-hub-hero {
    padding: 44px 0 32px;
    max-width: 850px;
    margin: 0 auto
}

.guide-hub-hero h1 {
    font-size: clamp(38px,6vw,64px);
    line-height: 1.04;
    letter-spacing: -.05em;
    color: #173c29;
    margin: 10px 0 18px
}

.guide-hub-hero p {
    font-size: 17px;
    line-height: 1.8;
    color: #5f7565;
    max-width: 700px
}

.guide-hub-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 14px;
    margin: 22px 0 38px
}

.guide-hub-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 220px;
    padding: 22px;
    border: 1px solid #dce8de;
    border-radius: 18px;
    background: linear-gradient(145deg,#fff,#f8fbf8);
    box-shadow: 0 8px 28px rgba(24,62,39,.04);
    text-decoration: none;
    transition: transform .18s,border-color .18s
}

.guide-hub-card:hover {
    transform: translateY(-3px);
    border-color: #91c9a6
}

.guide-hub-tag {
    font-size: 10px;
    letter-spacing: .14em;
    font-weight: 800;
    color: #25885b
}

.guide-hub-card h2 {
    font-size: 20px;
    color: #234832;
    margin: 16px 0 8px;
    letter-spacing: -.025em
}

.guide-hub-card p {
    font-size: 13px;
    line-height: 1.7;
    color: #63786a;
    margin: 0 0 18px
}

.guide-hub-arrow {
    margin-top: auto;
    color: #176e48;
    font-weight: 750;
    font-size: 12px
}

.guide-hub-hero .run {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-top: 8px
}

.guide-hub-hero .run span {
    margin-left: 10px
}

@media(max-width: 850px) {
    .guide-hub-grid {
        grid-template-columns:repeat(2,minmax(0,1fr))
    }
}

@media(max-width: 620px) {
    .guide-toc>div,.guide-link-grid,.guide-hub-grid {
        grid-template-columns:1fr
    }

    .guide-hub-hero {
        padding-top: 24px
    }

    .guide-hub-card {
        min-height: 0
    }
}

/* Aktien Helfer: premium Kennzahlen-Rechner, Checkliste und Datentransparenz */
.tools-section{margin:34px 0 42px;scroll-margin-top:24px}.tools-intro{max-width:760px;margin:0 0 18px}.tools-intro h2{margin:7px 0 10px;font-size:clamp(1.55rem,3vw,2.15rem);letter-spacing:-.035em}.tools-intro p{color:var(--muted,#647067);line-height:1.65;margin:0}.tool-card,.data-quality-card{background:#fff;border:1px solid #dce6de;border-radius:22px;padding:clamp(18px,3vw,28px);box-shadow:0 12px 34px rgba(24,70,43,.055)}.calculator-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.calculator-grid label{display:flex;flex-direction:column;gap:7px;font-size:.88rem;font-weight:650;color:#1b2920}.calculator-grid input{width:100%;min-width:0;border:1px solid #d8e2da;border-radius:12px;padding:12px 13px;background:#fbfdfb;color:#17251b;font:inherit;outline:none}.calculator-grid input:focus{border-color:#409765;box-shadow:0 0 0 3px rgba(64,151,101,.14)}.calculator-results{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:22px}.calculator-results>div{padding:16px;border:1px solid #e0e9e2;border-radius:16px;background:linear-gradient(150deg,#f8fcf8,#f0f7f1);min-width:0}.calculator-results span,.data-quality-grid span{display:block;font-size:.69rem;letter-spacing:.08em;font-weight:800;color:#607265}.calculator-results strong{display:block;font-size:clamp(1.05rem,2vw,1.5rem);letter-spacing:-.03em;margin:9px 0;color:#197345;overflow-wrap:anywhere}.calculator-results small,.data-quality-grid small{display:block;color:#6b786e;line-height:1.45;font-size:.76rem}.calculator-disclaimer{margin:18px 0 0;color:#68756c;font-size:.82rem;line-height:1.55}.checklist-progress-head{display:flex;justify-content:space-between;align-items:center;gap:12px;color:#1d3827}.checklist-progress-head span{color:#20834c;font-weight:800}.checklist-track{height:8px;border-radius:99px;background:#e7eee8;overflow:hidden;margin:12px 0 18px}.checklist-track i{display:block;height:100%;width:0;background:linear-gradient(90deg,#45a56a,#197345);border-radius:inherit;transition:width .2s ease}.checklist-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.checklist-items>label{display:flex;align-items:flex-start;gap:12px;padding:14px;border:1px solid #e1e9e2;border-radius:14px;background:#fcfdfc;cursor:pointer}.checklist-items input{width:18px;height:18px;margin:2px 0 0;accent-color:#25814b;flex:0 0 auto}.checklist-items b{display:block;font-size:.9rem;color:#24382a}.checklist-items small{display:block;margin-top:4px;font-size:.78rem;line-height:1.45;color:#6b786e}.checklist-items label:has(input:checked){background:#f0f8f2;border-color:#a9d5b5}.checklist-footer{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:18px}.checklist-footer p{margin:0;color:#607067;font-size:.86rem;line-height:1.5}.secondary-button{border:1px solid #d4e0d6;border-radius:11px;background:#fff;padding:10px 13px;color:#245336;font:inherit;font-size:.84rem;font-weight:700;cursor:pointer;white-space:nowrap}.data-quality-card{margin:0 0 22px}.data-quality-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:18px}.data-quality-head h3{font-size:1.2rem;margin:5px 0}.data-quality-head p{color:#6b786e;margin:0;font-size:.86rem}.data-quality-badge{display:inline-flex;align-items:center;border-radius:999px;padding:8px 11px;background:#fff5df;color:#805b12;font-size:.75rem;font-weight:800;white-space:nowrap}.data-quality-badge.is-good{background:#e8f6ec;color:#187340}.data-quality-badge.is-caution{background:#fff3df;color:#875b12}.data-quality-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.data-quality-grid>div{min-width:0;border:1px solid #e1e9e2;border-radius:14px;padding:13px;background:#fbfdfb}.data-quality-grid strong{display:block;margin:8px 0;font-size:.95rem;color:#203a29;overflow-wrap:anywhere}.data-quality-note{margin:14px 0 0;font-size:.8rem;line-height:1.55;color:#6a776d}
@media(max-width:850px){.calculator-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.calculator-results{grid-template-columns:repeat(2,minmax(0,1fr))}.data-quality-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){.calculator-grid,.checklist-items{grid-template-columns:1fr}.calculator-results{grid-template-columns:1fr 1fr}.data-quality-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.data-quality-head,.checklist-footer{flex-direction:column;align-items:flex-start}.data-quality-badge{white-space:normal}.secondary-button{white-space:normal}}
.quick-tools-nav{display:flex;flex-wrap:wrap;gap:9px;margin:-4px 0 24px}.quick-tools-nav a{display:inline-flex;align-items:center;gap:10px;border:1px solid #dce7de;border-radius:999px;padding:9px 13px;background:rgba(255,255,255,.86);color:#28583a;text-decoration:none;font-size:.82rem;font-weight:750;transition:background .15s,border-color .15s}.quick-tools-nav a:hover{background:#eff8f1;border-color:#9bc9a7}.quick-tools-nav a span{color:#25814b}@media(max-width:560px){.quick-tools-nav{gap:7px}.quick-tools-nav a{font-size:.76rem;padding:8px 10px}}


/* Aktienwelt: eigener umschaltbarer Marktticker */
.market-ticker{position:relative;z-index:2;width:100%;border-bottom:1px solid #242b36;background:rgba(10,13,18,.96);color:#f3f6fb;overflow:hidden}
.ticker-toolbar{min-height:54px;display:flex;align-items:center;gap:22px;padding:9px 5vw;border-bottom:1px solid rgba(255,255,255,.06)}
.ticker-brand{display:flex;align-items:center;gap:9px;white-space:nowrap}.ticker-brand strong{font-size:11px;letter-spacing:.12em}.ticker-live-dot{width:7px;height:7px;border-radius:50%;background:#54e39b;box-shadow:0 0 12px rgba(84,227,155,.65)}.ticker-caption{font-size:9px;letter-spacing:.13em;color:#8b96a6}
.ticker-modes{display:flex;align-items:center;gap:4px;padding:3px;border:1px solid #242b36;border-radius:10px;background:#0e1219}.ticker-mode{border:0;background:transparent;color:#8b96a6;padding:7px 12px;border-radius:7px;font-family:inherit;font-size:11px;font-weight:600;cursor:pointer}.ticker-mode.active{background:#1a3028;color:#76e3a7}.ticker-status{margin-left:auto;color:#8b96a6;font-size:10px;white-space:nowrap}
.ticker-window{overflow:hidden;position:relative;min-height:65px;display:flex;align-items:center}.ticker-track{display:flex;align-items:stretch;width:max-content;min-width:100%;animation:tickerScroll 65s linear infinite;will-change:transform}.ticker-track:hover{animation-play-state:paused}.ticker-track.is-static{animation:none;width:100%;flex-wrap:wrap;justify-content:flex-start}.ticker-message{padding:20px 5vw;color:#8b96a6;font-size:12px}
.ticker-item{display:flex;flex-direction:column;justify-content:center;gap:5px;min-width:150px;padding:13px 23px;border-right:1px solid #202631;text-decoration:none;color:inherit;white-space:nowrap}.ticker-item:hover{background:rgba(255,255,255,.035)}.ticker-item-top{display:flex;align-items:center;gap:9px;font-size:11px;font-weight:750}.ticker-symbol{color:#f3f6fb}.ticker-price{font-size:13px;font-weight:700;letter-spacing:-.02em}.ticker-change{font-size:10px;font-weight:700}.ticker-change.up{color:#54e39b}.ticker-change.down{color:#ff6f7d}.ticker-news{min-width:260px;max-width:360px;white-space:normal;gap:6px}.ticker-news .ticker-item-top{color:#8b96a6;font-weight:600}.ticker-news-title{font-size:12px;line-height:1.45;font-weight:650}.ticker-news-publisher{font-size:10px;color:#8b96a6}.ticker-foot{display:flex;justify-content:flex-end;align-items:center;gap:15px;padding:0 5vw 9px;color:#687382;font-size:10px}.ticker-foot button{border:0;padding:2px 0;background:transparent;color:#8b96a6;font:inherit;cursor:pointer}.ticker-foot button:hover{color:#76e3a7}
@keyframes tickerScroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media(prefers-reduced-motion:reduce){.ticker-track{animation:none}}
@media(max-width:700px){.ticker-toolbar{padding:10px 16px;gap:10px;flex-wrap:wrap}.ticker-brand{flex:1}.ticker-caption{display:none}.ticker-modes{order:3;width:100%;justify-content:space-between}.ticker-mode{flex:1}.ticker-status{font-size:9px}.ticker-item{min-width:132px;padding:12px 16px}.ticker-news{min-width:235px;max-width:270px}.ticker-foot{padding:0 16px 9px;gap:12px}.ticker-window{min-height:60px}}


/* Aktienwelt-Ticker: helles Aktien-Helfer-Design */
.market-ticker{position:relative;z-index:1;width:100%;margin:20px 0 22px;border:1px solid #dce7de;border-radius:18px;background:#fff;color:#203328;overflow:hidden;box-shadow:0 8px 28px rgba(24,62,39,.045)}
.ticker-toolbar{min-height:54px;display:flex;align-items:center;gap:18px;padding:10px 18px;border-bottom:1px solid #e8eee9;background:linear-gradient(180deg,#fff,#f9fcf9)}
.ticker-brand{display:flex;align-items:center;gap:8px;white-space:nowrap;color:#1e3928}.ticker-brand strong{font-size:11px;letter-spacing:.12em}.ticker-live-dot{width:7px;height:7px;border-radius:50%;background:#29975a;box-shadow:0 0 0 4px rgba(41,151,90,.11)}.ticker-caption{font-size:9px;letter-spacing:.11em;color:#7b8b7f}
.ticker-modes{display:flex;align-items:center;gap:3px;padding:3px;border:1px solid #e0e9e1;border-radius:10px;background:#f3f8f4}.ticker-mode{border:0;background:transparent;color:#65756a;padding:7px 12px;border-radius:7px;font-family:inherit;font-size:11px;font-weight:700;cursor:pointer;transition:background .15s,color .15s}.ticker-mode:hover{color:#176b3b}.ticker-mode.active{background:#e1f3e6;color:#176b3b;box-shadow:inset 0 0 0 1px #cce8d3}.ticker-status{margin-left:auto;color:#718075;font-size:10px;white-space:nowrap}
.ticker-window{overflow:hidden;position:relative;min-height:65px;display:flex;align-items:center;background:#fff}.ticker-track{display:flex;align-items:stretch;width:max-content;min-width:100%;animation:tickerScroll 65s linear infinite;will-change:transform}.ticker-track:hover{animation-play-state:paused}.ticker-track.is-static{animation:none;width:100%;flex-wrap:wrap;justify-content:flex-start}.ticker-message{padding:20px 22px;color:#718075;font-size:12px}
.ticker-item{display:flex;flex-direction:column;justify-content:center;gap:5px;min-width:150px;padding:13px 21px;border-right:1px solid #edf1ed;text-decoration:none;color:#26382b;white-space:nowrap}.ticker-item:hover{background:#f6faf6}.ticker-item-top{display:flex;align-items:center;gap:9px;font-size:11px;font-weight:750}.ticker-symbol{color:#26382b}.ticker-price{font-size:13px;font-weight:750;letter-spacing:-.02em;color:#1d3023}.ticker-change{font-size:10px;font-weight:750}.ticker-change.up{color:#18834a}.ticker-change.down{color:#cf4351}.ticker-news{min-width:260px;max-width:360px;white-space:normal;gap:6px}.ticker-news .ticker-item-top{color:#748278;font-weight:650}.ticker-news-title{font-size:12px;line-height:1.45;font-weight:700;color:#25372a}.ticker-news-publisher{font-size:10px;color:#7a897e}.ticker-foot{display:flex;justify-content:flex-end;align-items:center;gap:15px;padding:0 18px 10px;color:#819085;font-size:10px;background:#fff}.ticker-foot button{border:0;padding:2px 0;background:transparent;color:#536c5b;font:inherit;cursor:pointer}.ticker-foot button:hover{color:#168047}
@media(max-width:700px){.market-ticker{border-radius:14px}.ticker-toolbar{padding:10px 12px;gap:9px;flex-wrap:wrap}.ticker-brand{flex:1}.ticker-caption{display:none}.ticker-modes{order:3;width:100%;justify-content:space-between}.ticker-mode{flex:1;padding:8px 6px}.ticker-status{font-size:9px}.ticker-item{min-width:132px;padding:12px 15px}.ticker-news{min-width:235px;max-width:270px}.ticker-foot{padding:0 12px 9px;gap:12px}.ticker-window{min-height:60px}}
/* Trust-Leiste unter dem Hero */
.trust-section{width:100%;margin:0 auto 30px;padding:0;box-sizing:border-box}.trust-inner{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:20px;padding:17px 22px;background:#fff;border:1px solid #e0e9e1;border-radius:17px;box-shadow:0 8px 28px rgba(24,62,39,.04)}.trust-rating{display:flex;flex-direction:column;align-items:flex-start;gap:5px}.trust-stars{display:flex;gap:3px;color:#e4a32b;font-size:17px;line-height:1}.trust-rating-label{color:#6d7c71;font-size:11px;font-weight:550}.trust-divider{width:1px;height:34px;background:#e5ece6;flex:0 0 1px}.trust-item{display:flex;align-items:center;gap:9px}.trust-icon{width:34px;height:34px;display:grid;place-items:center;flex:0 0 34px;border-radius:10px;background:#edf7ef;color:#21804a;font-size:18px;font-weight:800}.trust-item strong{display:block;color:#203629;font-size:12px;font-weight:750;line-height:1.5}.trust-item small{display:block;color:#718075;font-size:10px;line-height:1.5;white-space:nowrap}
@media(max-width:760px){.trust-inner{justify-content:flex-start;gap:16px;padding:16px}.trust-rating{width:100%;align-items:center;text-align:center}.trust-divider{display:none}.trust-item{width:calc(50% - 8px);gap:8px}.trust-icon{width:31px;height:31px;flex-basis:31px}.trust-item small{white-space:normal}}
@media(max-width:380px){.trust-inner{gap:15px 8px;padding:13px}.trust-item{width:100%}}

/* News laufen wie Kurse einspurig als horizontales Laufband */
.ticker-track:not(.is-static) .ticker-news {
    position: relative;
    display: flex;
    flex: 0 0 390px;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 390px;
    min-width: 390px;
    max-width: 390px;
    height: 65px;
    box-sizing: border-box;
    padding: 12px 18px;
    white-space: nowrap;
    overflow: hidden;
}
.ticker-news-source {
    flex: 0 0 auto;
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #748278;
    font-size: 10px;
    font-weight: 700;
}
.ticker-track:not(.is-static) .ticker-news-title {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #25372a;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
}
.ticker-track:not(.is-static) .ticker-news-publisher {
    flex: 0 0 auto;
    max-width: 76px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #7a897e;
    font-size: 9px;
}
.ticker-news-arrow { flex: 0 0 auto; color: #21804a; font-size: 13px; }
@media (max-width: 700px) {
    .ticker-track:not(.is-static) .ticker-news { flex-basis: 310px; width: 310px; min-width: 310px; max-width: 310px; height: 60px; gap: 7px; padding: 10px 13px; }
    .ticker-news-source { max-width: 66px; font-size: 9px; }
    .ticker-track:not(.is-static) .ticker-news-publisher { max-width: 58px; font-size: 8px; }
}

/* News-Ticker: Titel lesbar über bis zu drei Zeilen, Laufband bleibt horizontal */
.ticker-track:not(.is-static) .ticker-news {
    position: relative;
    display: flex;
    flex: 0 0 350px;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 5px;
    width: 350px;
    min-width: 350px;
    max-width: 350px;
    height: 112px;
    box-sizing: border-box;
    padding: 12px 34px 12px 17px;
    white-space: normal;
    overflow: hidden;
}
.ticker-track:not(.is-static) .ticker-news-source {
    display: block;
    flex: 0 0 auto;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #748278;
    font-size: 10px;
    font-weight: 700;
}
.ticker-track:not(.is-static) .ticker-news-title {
    display: -webkit-box;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    white-space: normal;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    text-overflow: ellipsis;
    color: #25372a;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
}
.ticker-track:not(.is-static) .ticker-news-publisher {
    display: block;
    flex: 0 0 auto;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #7a897e;
    font-size: 9px;
}
.ticker-news-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    flex: 0 0 auto;
    color: #21804a;
    font-size: 13px;
}
@media (max-width: 700px) {
    .ticker-track:not(.is-static) .ticker-news {
        flex-basis: 290px;
        width: 290px;
        min-width: 290px;
        max-width: 290px;
        height: 116px;
        padding: 11px 30px 11px 13px;
        gap: 5px;
    }
    .ticker-track:not(.is-static) .ticker-news-title {
        font-size: 11px;
        line-height: 1.4;
    }
    .ticker-news-arrow { right: 11px; }
}
