/* Dark palette is the default. [data-theme="light"] overrides the variables. */

:root {
    --bg:        #0e1218;
    --panel:     #16202c;
    --ink:       #e8eef7;
    --ink-dim:   #93a3b5;
    --dim:       #93a3b5;
    --line:      #243240;
    --accent:    #f1c40f;
    --accent-2:  #2c7da0;
    --green:     #2e7d32;
    --red:       #b71c1c;
    --input-bg:  #0b1116;
    --surface-inset: #1a2430;
}

[data-theme="light"] {
    --bg:        #f5f7fa;
    --panel:     #ffffff;
    --ink:       #1a2330;
    --ink-dim:   #5a6776;
    --dim:       #5a6776;
    --line:      #d8dee6;
    --accent:    #c79b00;
    --accent-2:  #1f6b8b;
    --green:     #1e7a23;
    --red:       #b71c1c;
    --input-bg:  #ffffff;
    --surface-inset: #eef1f6;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.55;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.inline { display: inline; }
.muted { color: var(--ink-dim); }
.small { font-size: 0.85rem; }

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #1d1500; }
.btn-primary:hover { background: #ffd84a; }
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink-dim);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn-wide { width: 100%; padding: 14px 0; }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; }

.link-btn {
    background: none;
    border: 0;
    color: var(--accent-2);
    cursor: pointer;
    padding: 0;
    font: inherit;
    text-decoration: underline;
}
.link-btn:hover { color: var(--accent); }

.auth-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
}
.auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 8%;
    border-bottom: 1px solid var(--line);
}
.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 700;
    font-size: 1.15rem;
}
.auth-brand:hover { text-decoration: none; color: var(--accent); }
.brand-logo {
    width: 36px;
    height: 36px;
    display: block;
    border-radius: 9px;
}
.page-mark {
    width: 112px;
    height: 112px;
    display: block;
    margin: 0 auto 18px;
    border-radius: 26px;
}
.auth-topnav {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink-dim);
    font-size: 0.9rem;
}
.auth-main {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 6%;
}
.auth-card {
    width: 100%;
    max-width: 520px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 36px 36px 28px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}
.auth-title { color: var(--accent); margin: 0 0 8px; font-size: 1.7rem; }
.auth-sub { color: var(--ink-dim); margin: 0 0 24px; }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; }
.auth-form label span { font-size: 0.92rem; color: var(--ink-dim); }
.auth-form input[type=text],
.auth-form input[type=email],
.auth-form input[type=password] {
    background: var(--input-bg);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 11px 14px;
    font-size: 1rem;
    outline: none;
}
.auth-form input:focus { border-color: var(--accent); }
.auth-form .hint { color: var(--ink-dim); font-size: 0.82rem; }
.err { color: #ff6b6b; font-size: 0.82rem; }
.form-error {
    background: rgba(183, 28, 28, 0.12);
    color: var(--ink);
    border: 1px solid var(--red);
    border-radius: 6px;
    padding: 10px 12px;
    margin: 0 0 16px;
}
.flash {
    background: rgba(46, 125, 50, 0.16);
    color: var(--ink);
    border: 1px solid var(--green);
    border-radius: 6px;
    padding: 10px 12px;
    margin: 0 0 16px;
}
.auth-qr {
    display: block;
    width: 220px;
    height: 220px;
    margin: 0 auto 16px;
    background: #fff;
    padding: 8px;
    border-radius: 8px;
}
.auth-secret { margin: 0 0 16px; color: var(--ink-dim); }
.auth-secret code {
    display: block;
    margin-top: 8px;
    color: var(--ink);
    word-break: break-all;
}
.auth-rename {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.auth-rename h2 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    color: var(--ink);
}

.dash-shell { min-height: 100vh; display: flex; flex-direction: column; }
.dash-topbar {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 12px 5%;
    border-bottom: 1px solid var(--line);
    background: var(--panel);
    position: relative;
    z-index: 30;
}
.dash-nav { flex: 1; display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; align-items: center; }
.dash-nav-item {
    color: var(--ink-dim);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    flex: 0 0 auto;
}
.dash-nav-item:hover { background: rgba(255, 255, 255, 0.04); color: var(--ink); text-decoration: none; }
.dash-nav-item.active { background: rgba(241, 196, 15, 0.1); color: var(--accent); }
[data-theme="light"] .dash-nav-item:hover { background: rgba(0, 0, 0, 0.05); }
[data-theme="light"] .dash-nav-item.active { background: rgba(199, 155, 0, 0.12); color: var(--accent); }
.dash-menu { position: relative; flex: 0 0 auto; }
.dash-menu-button {
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
    line-height: inherit;
}
.dash-menu-button::after {
    content: "";
    display: inline-block;
    margin-left: 7px;
    border: 4px solid transparent;
    border-top-color: currentColor;
    border-bottom: 0;
    vertical-align: middle;
}
.dash-menu-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 190px;
    padding: 8px 6px 6px;
    z-index: 31;
}
.dash-menu-panel::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 8px;
}
.dash-menu:hover .dash-menu-panel,
.dash-menu:focus-within .dash-menu-panel,
.dash-menu.is-open .dash-menu-panel {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dash-menu.is-shut .dash-menu-panel { display: none; }
.dash-menu-panel .dash-nav-item {
    position: relative;
    display: block;
    background: var(--panel);
    border: 1px solid var(--line);
}
.dash-menu-panel .dash-nav-item + .dash-nav-item { border-top: 0; }
.dash-menu-panel .dash-nav-item:first-child { border-radius: 8px 8px 0 0; }
.dash-menu-panel .dash-nav-item:last-child { border-radius: 0 0 8px 8px; }
.dash-menu-panel .dash-nav-item:only-child { border-radius: 8px; }
.dash-user {
    color: var(--ink-dim);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}
.dash-main { flex: 1; padding: 32px 5% 64px; }
.dash-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink);
    border-radius: 999px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle .theme-icon { display: inline-block; }
[data-theme="dark"] .theme-toggle .icon-light { display: inline; }
[data-theme="dark"] .theme-toggle .icon-dark { display: none; }
[data-theme="light"] .theme-toggle .icon-light { display: none; }
[data-theme="light"] .theme-toggle .icon-dark { display: inline; }
.dash-user .theme-toggle { margin-right: 6px; }

/* Nifty & market direction card */
.market-card { padding: 18px 18px 22px; }
.market-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.market-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}
.market-card-title h2 { margin: 0; }
.market-state-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(108, 117, 125, 0.18);
    color: var(--ink-dim);
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.market-state-badge.is-live {
    background: rgba(46, 125, 50, 0.18);
    color: #2e7d32;
}
.market-state-badge.is-closed {
    background: rgba(108, 117, 125, 0.18);
    color: var(--ink-dim);
}
.market-card-stats {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: flex-end;
}
.market-card-stats .stat-tile {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 110px;
}
.stat-label {
    color: var(--ink-dim);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.stat-value {
    color: var(--ink);
    font-weight: 600;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
}
.market-spectrum-wrap { margin: 8px 0 22px; }
.market-spectrum-legend {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto;
    align-items: center;
    gap: 8px;
    color: var(--ink-dim);
    font-size: 0.72rem;
    margin: 4px 4px 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.market-spectrum-legend .legend-bearish { color: #d33b3b; font-weight: 700; }
.market-spectrum-legend .legend-bullish { color: #1ea73a; font-weight: 700; }
.market-spectrum-legend .legend-neutral { color: var(--ink-dim); font-weight: 700; }
.market-spectrum-legend .legend-fade {
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(to right, #d33b3b 0%, #f4b400 50%, #1ea73a 100%);
    opacity: 0.55;
}
.timeframe-strip {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 10px;
}
.timeframe-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    text-align: center;
}
[data-theme="light"] .timeframe-card { background: rgba(0, 0, 0, 0.02); }
.timeframe-card.is-loading { opacity: 0.55; }
.timeframe-card.tone-buy { border-color: rgba(30, 167, 58, 0.55); }
.timeframe-card.tone-sell { border-color: rgba(211, 59, 59, 0.55); }
.timeframe-card.tone-flat { border-color: var(--line); }
.tf-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-weight: 700;
}
.tf-name { color: var(--ink); font-size: 0.85rem; text-transform: lowercase; }
.tf-badge {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 2px 7px;
    border-radius: 999px;
    text-transform: uppercase;
}
.tf-badge-buy { background: rgba(30, 167, 58, 0.18); color: #1ea73a; }
.tf-badge-sell { background: rgba(211, 59, 59, 0.18); color: #d33b3b; }
.tf-badge-flat { background: rgba(108, 117, 125, 0.18); color: var(--ink-dim); }
.tf-spectrum {
    position: relative;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    margin: 2px 2px 4px;
}
.tf-spectrum-bar {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #b71c1c 0%, #f4b400 50%, #1ea73a 100%);
    opacity: 0.85;
}
.tf-spectrum-marker {
    position: absolute;
    top: -4px;
    width: 4px;
    height: 16px;
    background: var(--ink);
    border-radius: 2px;
    transform: translateX(-2px);
    box-shadow: 0 0 0 2px var(--panel);
    transition: left 250ms ease;
}
.tf-score {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.tf-score-value { font-size: 1.05rem; font-weight: 700; }
.tf-score-of { color: var(--ink-dim); font-size: 0.75rem; }
.tf-rsi { font-size: 0.72rem; }
.tf-probs {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    font-size: 0.7rem;
    font-variant-numeric: tabular-nums;
}
.tf-probs .prob { display: inline-flex; align-items: center; gap: 2px; }
.tf-probs .prob-up { color: #1ea73a; }
.tf-probs .prob-down { color: #d33b3b; }
.tf-probs .prob-range { color: var(--ink-dim); }
.tf-range { font-size: 0.7rem; }
.market-chart-wrap {
    width: min(1040px, 100%);
    margin: 14px auto 0;
}
.market-chart-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    margin: 8px 0 6px;
}
.market-chart-head h3 { margin: 0; font-size: 0.95rem; color: var(--ink); }
.market-chart-ranges { display: flex; gap: 4px; }
.market-chart-ranges button {
    appearance: none;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink-dim);
    font: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    cursor: pointer;
}
.market-chart-ranges button[aria-pressed="true"] {
    color: var(--ink);
    border-color: var(--accent);
}
.market-chart {
    width: 100%;
    height: 460px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}
[data-theme="light"] .market-chart { background: rgba(0, 0, 0, 0.02); }
.market-chart-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--ink-dim);
}
.market-chart-help {
    margin: 4px 2px 0;
    font-size: 0.72rem;
    color: var(--ink-dim);
    opacity: 0.85;
}

@media (max-width: 1180px) {
    .timeframe-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .timeframe-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .market-chart { height: 320px; }
    .market-card-stats { justify-content: flex-start; }
    .market-chart-help { display: none; }
    .dash-topbar { flex-wrap: wrap; gap: 10px; }
    .dash-main, .auth-main { padding-left: 16px; padding-right: 16px; }
    .auth-card { padding: 24px 18px; }
    .health-grid { grid-template-columns: 1fr; }
}

.health-banner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    background: var(--panel);
    border: 1px solid var(--line);
    border-left: 6px solid var(--ink-dim);
    border-radius: 10px;
    padding: 22px 24px;
    margin-bottom: 20px;
}
.health-banner.is-ok { border-left-color: var(--green); }
.health-banner.is-wait { border-left-color: var(--accent); }
.health-banner.is-late { border-left-color: #e67e22; }
.health-banner.is-down { border-left-color: var(--red); }
.health-banner h1 { margin: 0 0 6px; font-size: 1.8rem; }
.health-banner p { margin: 0; max-width: 46rem; }
.health-kicker {
    margin: 0 0 6px;
    color: var(--ink-dim);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.health-banner-side {
    display: flex;
    gap: 22px;
    align-items: flex-end;
}
.health-banner-side strong { display: block; font-size: 1.25rem; }
.health-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.health-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px 18px 12px;
}
.health-card header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.health-card h2 { margin: 0; font-size: 1.05rem; }
.health-age { margin: 8px 0; font-size: 1.35rem; }
.health-card dl { margin: 0; }
.health-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    border-top: 1px solid var(--line);
}
.health-card dt { color: var(--ink-dim); }
.health-card dd { margin: 0; font-variant-numeric: tabular-nums; }
.health-pill {
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 0.78rem;
    border: 1px solid var(--line);
}
.health-card.is-ok .health-pill,
.health-banner.is-ok .health-pill { color: var(--green); border-color: var(--green); }
.health-card.is-wait .health-pill { color: var(--accent); border-color: var(--accent); }
.health-card.is-late .health-pill { color: #e67e22; border-color: #e67e22; }
.health-card.is-down .health-pill { color: var(--red); border-color: var(--red); }
.health-expiry {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-top: 1px solid var(--line);
}
.health-expiry span { color: var(--ink-dim); font-size: 0.9rem; }
.stat-label { display: block; color: var(--ink-dim); font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; }
.iron-payoff { width: 100%; height: 208px; }
.iron-legs { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.iron-legs th, .iron-legs td {
    text-align: right;
    padding: 3px 8px;
    border-bottom: 1px solid var(--line);
    font-size: 0.75rem;
}
.iron-legs th.text, .iron-legs td.text { text-align: left; }
.iron-legs th {
    color: var(--ink-dim);
    font-weight: 600;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--surface-inset);
}
.iron-legs tbody tr:hover td { background: rgba(255, 255, 255, 0.03); }
[data-theme="light"] .iron-legs tbody tr:hover td { background: rgba(0, 0, 0, 0.03); }
.iron-legs tr.is-closed td { color: var(--ink-dim); }
.iron-legs td.is-buy, .iron-kpis strong.is-up, .iron-account strong.is-up, .iron-legs td.is-up { color: #39ff8f; font-weight: 600; }
.iron-legs td.is-sell, .iron-kpis strong.is-down, .iron-account strong.is-down, .iron-legs td.is-down { color: #ff4d5e; font-weight: 600; }
[data-theme="light"] .iron-legs td.is-buy,
[data-theme="light"] .iron-kpis strong.is-up,
[data-theme="light"] .iron-account strong.is-up,
[data-theme="light"] .iron-legs td.is-up { color: #00b84a; }
[data-theme="light"] .iron-legs td.is-sell,
[data-theme="light"] .iron-kpis strong.is-down,
[data-theme="light"] .iron-account strong.is-down,
[data-theme="light"] .iron-legs td.is-down { color: #e81e3a; }
.iron-legs-wrap { overflow-x: auto; }
.iron-rules, .iron-plan { margin: 0; padding-left: 1.05rem; }
.iron-rules li, .iron-plan li { margin: 1px 0; line-height: 1.28; }
.iron-plan li.has-step {
    border-left: 3px solid var(--step, var(--line));
    padding-left: 8px;
    margin-left: 2px;
}
.iron-plan li.has-step::marker { color: var(--step, inherit); font-weight: 700; }
.iron-note { margin: 1px 0 0; font-size: 0.72rem; }
.iron-title { margin: 0; font-size: 1.15rem; letter-spacing: -0.02em; font-weight: 700; }
.iron-phases { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.iron-phases li {
    margin: 0;
    padding: 7px 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 7px;
    align-items: start;
}
.phase-no {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--ink-dim);
    background: var(--surface-inset);
    border: 1px solid var(--line);
}
.iron-phases strong { display: block; margin-bottom: 1px; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; }
.iron-phases p { margin: 0; color: var(--ink-dim); font-size: 0.7rem; line-height: 1.28; }
.iron-phases li.is-current {
    border-color: rgba(241, 196, 15, 0.7);
    background: linear-gradient(180deg, rgba(241, 196, 15, 0.16), rgba(241, 196, 15, 0.04));
    box-shadow: inset 3px 0 0 var(--accent);
}
.iron-phases li.is-current .phase-no { background: var(--accent); color: #1d1500; border-color: var(--accent); }
.iron-phases li.is-current strong { color: var(--accent); }
[data-theme="light"] .iron-phases li.is-current { background: linear-gradient(180deg, rgba(199, 155, 0, 0.16), rgba(199, 155, 0, 0.04)); }

[data-component="iron-condor"] {
    padding: 8px 16px 6px;
    font-size: 12.5px;
    line-height: 1.3;
}
[data-component="iron-fly"] {
    padding: 8px 16px 6px;
    font-size: 12.5px;
    line-height: 1.3;
}
[data-component="iron-condor"] .dash-card { padding: 8px 12px; margin-bottom: 8px; }
[data-component="iron-fly"] .dash-card { padding: 8px 12px; margin-bottom: 8px; }
[data-component="iron-condor"] h2 { margin: 0 0 4px; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-dim); font-weight: 700; }
[data-component="iron-fly"] h2 { margin: 0 0 4px; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-dim); font-weight: 700; }
.iron-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}
.iron-status { margin: 2px 0 0; font-size: 0.78rem; color: var(--ink-dim); }
.iron-phase {
    display: inline-block;
    margin-right: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(241, 196, 15, 0.12);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.iron-kpis { display: flex; gap: 8px; }
.iron-kpis > div {
    min-width: 112px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-top: 2px solid var(--accent-2);
    border-radius: 8px;
    padding: 4px 10px 5px;
}
.iron-kpis > div:nth-child(2) { border-top-color: #39ff8f; }
.iron-kpis > div:nth-child(3) { border-top-color: #f1c40f; }
.iron-kpis > div:nth-child(4) { border-top-color: #7c4dff; }
.iron-kpis > div:nth-child(5) { border-top-color: var(--accent); }
.iron-kpis strong, .iron-metrics strong { display: block; font-size: 1.02rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.iron-rules-board { margin-bottom: 8px; }
.iron-rules-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; }
.iron-rules-row > div { padding-right: 12px; }
.iron-rules-row > div + div { border-left: 1px solid var(--line); padding-left: 12px; }
[data-component="iron-condor"] .iron-rules li { font-size: 0.74rem; }
[data-component="iron-fly"] .iron-rules li { font-size: 0.74rem; }
.iron-metrics {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 2px;
}
.iron-metrics > div {
    background: var(--panel);
    border: 1px solid var(--line);
    border-top: 2px solid var(--line);
    border-radius: 8px;
    padding: 4px 8px 5px;
}
.iron-metrics > div:nth-child(1) { border-top-color: #00bfa5; }
.iron-metrics > div:nth-child(2) { border-top-color: #ff5252; }
.iron-metrics > div:nth-child(3),
.iron-metrics > div:nth-child(4) { border-top-color: var(--accent); }
[data-component="iron-fly"] .iron-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
[data-component="iron-fly"] .iron-metrics > div:nth-child(1) { border-top-color: #00bfa5; }
[data-component="iron-fly"] .iron-metrics > div:nth-child(2) { border-top-color: #ff6e40; }
[data-component="iron-fly"] .iron-metrics > div:nth-child(3) { border-top-color: #ffc107; }
[data-component="iron-fly"] .iron-metrics > div:nth-child(4) { border-top-color: #e040fb; }
[data-component="iron-fly"] .iron-metrics > div:nth-child(5) { border-top-color: #ff5252; }
.iron-metric-note { margin: 2px 0 4px; font-size: 0.68rem; }
.iron-work { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.72fr); gap: 8px; align-items: start; }
.iron-chart-card, .iron-plan-card, .iron-legs-card { margin-bottom: 8px; }
.iron-caption { margin: 0 0 2px; font-size: 0.68rem; }
[data-component="iron-condor"] .iron-tabs {
    display: flex;
    gap: 4px;
    margin: 0 0 8px;
    border-bottom: 1px solid var(--line);
}
[data-component="iron-condor"] .iron-tab {
    appearance: none;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    color: var(--ink-dim);
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.72rem;
    padding: 6px 12px;
    cursor: pointer;
}
[data-component="iron-condor"] .iron-tab[aria-selected="true"] {
    color: var(--ink);
    border-bottom-color: var(--accent);
}
[data-component="iron-condor"] .iron-panel[hidden] { display: none; }
[data-component="iron-condor"] .iron-kpis {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    width: 100%;
    margin-bottom: 8px;
}
[data-component="iron-condor"] .iron-kpis > div { min-width: 0; }
[data-component="iron-condor"] .iron-kpis > div:nth-child(6) { border-top-color: #39ff8f; }
[data-component="iron-condor"] .iron-kpis > div:nth-child(7) { border-top-color: #ff4d5e; }
[data-component="iron-condor"] .iron-kpis > div.is-live {
    border-top-color: #c4783a;
    background: rgba(196, 120, 58, 0.16);
}
[data-component="iron-condor"] .iron-kpis > div.is-live .stat-label,
[data-component="iron-condor"] .iron-kpis > div.is-live strong {
    color: #e0a060;
    font-weight: 700;
}
[data-theme="light"] [data-component="iron-condor"] .iron-kpis > div.is-live .stat-label,
[data-theme="light"] [data-component="iron-condor"] .iron-kpis > div.is-live strong { color: #8a4b08; }
[data-component="iron-condor"] .iron-action {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 8px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-left: 3px solid #39ff8f;
    border-radius: 8px;
    background: var(--panel);
}
[data-component="iron-condor"] .iron-action p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
}
[data-component="iron-condor"] .iron-action.is-next { border-left-color: #c4783a; }
[data-component="iron-condor"] .iron-action.is-close { border-left-color: #ff4d5e; }
[data-component="iron-condor"] #iron-panel-now .iron-metric-note { margin-bottom: 8px; }
[data-component="iron-fly"] #iron-panel-now .iron-metric-note { margin-bottom: 8px; }
[data-component="iron-condor"] .iron-now-split {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 8px;
    align-items: start;
}
[data-component="iron-condor"] .iron-now-split .iron-chart-card,
[data-component="iron-condor"] .iron-now-split .iron-legs-card { margin-bottom: 0; }
[data-component="iron-condor"] .iron-payoff { height: 208px; }
[data-component="iron-condor"] .iron-rule-cards {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}
[data-component="iron-condor"] .iron-rule-cards > div {
    background: var(--surface-inset);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px;
}
[data-component="iron-condor"] .iron-rule-cards > div:nth-child(1),
[data-component="iron-condor"] .iron-rule-cards > div:nth-child(2),
[data-component="iron-condor"] .iron-rule-cards > div:nth-child(3) { grid-column: span 2; }
[data-component="iron-condor"] .iron-rule-cards > div:nth-child(4) { grid-column: span 4; }
[data-component="iron-condor"] .iron-rule-cards > div:nth-child(5) { grid-column: span 2; }
[data-component="iron-condor"] .iron-plan { max-height: none; overflow: visible; }
[data-component="iron-fly"] .iron-plan { max-height: none; overflow: visible; }
[data-component="iron-condor"] .iron-plan li { margin: 2px 0; font-size: 0.72rem; line-height: 1.28; }
[data-component="iron-fly"] .iron-plan li { margin: 2px 0; font-size: 0.72rem; line-height: 1.28; }
[data-component="iron-fly"] .iron-tabs {
    display: flex;
    gap: 4px;
    margin: 0 0 8px;
    border-bottom: 1px solid var(--line);
}
[data-component="iron-fly"] .iron-tab {
    appearance: none;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    color: var(--ink-dim);
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.72rem;
    padding: 6px 12px;
    cursor: pointer;
}
[data-component="iron-fly"] .iron-tab[aria-selected="true"] {
    color: var(--ink);
    border-bottom-color: var(--accent);
}
[data-component="iron-fly"] .iron-panel[hidden] { display: none; }
[data-component="iron-fly"] .iron-kpis {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    width: 100%;
    margin-bottom: 8px;
}
[data-component="iron-fly"] .iron-kpis > div { min-width: 0; }
[data-component="iron-fly"] .iron-kpis > div:nth-child(6) { border-top-color: #39ff8f; }
[data-component="iron-fly"] .iron-kpis > div:nth-child(7) { border-top-color: #ff4d5e; }
[data-component="iron-fly"] .iron-kpis > div.is-live {
    border-top-color: #c4783a;
    background: rgba(196, 120, 58, 0.16);
}
[data-component="iron-fly"] .iron-kpis > div.is-live .stat-label,
[data-component="iron-fly"] .iron-kpis > div.is-live strong {
    color: #e0a060;
    font-weight: 700;
}
[data-theme="light"] [data-component="iron-fly"] .iron-kpis > div.is-live .stat-label,
[data-theme="light"] [data-component="iron-fly"] .iron-kpis > div.is-live strong { color: #8a4b08; }
[data-component="iron-fly"] .iron-action {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 8px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-left: 3px solid #39ff8f;
    border-radius: 8px;
    background: var(--panel);
}
[data-component="iron-fly"] .iron-action p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
}
[data-component="iron-fly"] .iron-action.is-next { border-left-color: #c4783a; }
[data-component="iron-fly"] .iron-action.is-close { border-left-color: #ff4d5e; }
[data-component="iron-fly"] .iron-now-split {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 8px;
    align-items: start;
}
[data-component="iron-fly"] .iron-now-split .iron-chart-card,
[data-component="iron-fly"] .iron-now-split .iron-legs-card { margin-bottom: 0; }
[data-component="iron-fly"] .iron-payoff { height: 208px; }
[data-component="iron-fly"] .iron-rule-cards {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}
[data-component="iron-fly"] .iron-rule-cards > div {
    background: var(--surface-inset);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px;
}
[data-component="iron-fly"] .iron-rule-cards > div:nth-child(1),
[data-component="iron-fly"] .iron-rule-cards > div:nth-child(2),
[data-component="iron-fly"] .iron-rule-cards > div:nth-child(3) { grid-column: span 2; }
[data-component="iron-fly"] .iron-rule-cards > div:nth-child(4) { grid-column: span 4; }
[data-component="iron-fly"] .iron-rule-cards > div:nth-child(5) { grid-column: span 2; }
.iron-trade-no {
    display: inline-block;
    margin-right: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.iron-account { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.iron-account > div {
    min-width: 76px;
    background: var(--surface-inset);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 3px 8px 4px;
}
.iron-account strong { font-size: 0.92rem; }
.iron-ledger tr.is-current td { background: rgba(241, 196, 15, 0.08); box-shadow: inset 3px 0 0 var(--accent); }
[data-theme="light"] .iron-ledger tr.is-current td { background: rgba(199, 155, 0, 0.1); }
.iron-ledger-card { margin-bottom: 0; }
@media (max-width: 1100px) {
    .iron-phases { grid-template-columns: 1fr; }
    .iron-rules-row, .iron-work { grid-template-columns: 1fr; }
    .iron-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    [data-component="iron-condor"] .iron-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    [data-component="iron-condor"] .iron-rule-cards { grid-template-columns: 1fr; }
    [data-component="iron-condor"] .iron-rule-cards > div { grid-column: auto; }
    [data-component="iron-condor"] .iron-action { flex-direction: column; align-items: flex-start; gap: 4px; }
    [data-component="iron-condor"] .iron-now-split { grid-template-columns: 1fr; }
    [data-component="iron-fly"] .iron-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    [data-component="iron-fly"] .iron-rule-cards { grid-template-columns: 1fr; }
    [data-component="iron-fly"] .iron-rule-cards > div { grid-column: auto; }
    [data-component="iron-fly"] .iron-action { flex-direction: column; align-items: flex-start; gap: 4px; }
    [data-component="iron-fly"] .iron-now-split { grid-template-columns: 1fr; }
    [data-component="iron-fly"] .iron-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .iron-rules-row > div + div { border-left: 0; border-top: 1px solid var(--line); padding: 8px 0 0; margin-top: 8px; }
    .iron-head { flex-direction: column; align-items: flex-start; }
}
[data-component="trade-audit"] .audit-books tr.is-current td { background: rgba(241, 196, 15, 0.08); }
[data-component="trade-audit"] .audit-checks { display: grid; gap: 8px; margin-bottom: 12px; }
[data-component="trade-audit"] .audit-check {
    background: var(--panel);
    border: 1px solid var(--line);
    border-left-width: 3px;
    border-radius: 10px;
    padding: 10px 14px;
}
[data-component="trade-audit"] .audit-check h2 { margin: 0 0 4px; font-size: 0.95rem; }
[data-component="trade-audit"] .audit-check p { margin: 0; }
[data-component="trade-audit"] .audit-check.is-ok { border-left-color: var(--green); }
[data-component="trade-audit"] .audit-check.is-wait { border-left-color: var(--accent); }
[data-component="trade-audit"] .audit-check.is-fail { border-left-color: var(--red); }
[data-component="trade-audit"] .audit-check.is-info { border-left-color: var(--ink-dim); }
[data-component="trade-audit"] .audit-levels { margin-bottom: 12px; }
[data-component="trade-audit"] .audit-timeline { margin: 0; padding-left: 18px; }
[data-component="trade-audit"] .audit-timeline li { margin: 8px 0; }
[data-component="trade-audit"] .audit-timeline p { margin: 2px 0 0; color: var(--ink-dim); }
[data-component="admin-panel"] .admin-tabs {
    display: flex;
    gap: 4px;
    margin: 0 0 8px;
    border-bottom: 1px solid var(--line);
}
[data-component="admin-panel"] .admin-tab {
    color: var(--ink-dim);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.72rem;
    padding: 6px 12px;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
[data-component="admin-panel"] .admin-tab.is-current {
    color: var(--ink);
    border-bottom-color: var(--accent);
}
[data-component="admin-panel"] .admin-users { display: grid; gap: 8px; }
[data-component="admin-panel"] .admin-user {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
}
[data-component="admin-panel"] .admin-user header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: baseline;
    margin-bottom: 4px;
}
[data-component="admin-panel"] .admin-user p { margin: 0 0 10px; }
[data-component="admin-panel"] .admin-user-password {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: end;
    margin-bottom: 8px;
}
[data-component="admin-panel"] .admin-user-password label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--ink-dim);
}
[data-component="admin-panel"] .admin-user-password input {
    background: var(--input-bg);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 10px;
    min-width: 180px;
}
[data-component="bull-call-spread"] {
    padding: 8px 16px 6px;
    font-size: 12.5px;
    line-height: 1.3;
}
[data-component="bull-call-spread"] .dash-card { padding: 8px 12px; margin-bottom: 8px; }
[data-component="bull-call-spread"] h2 { margin: 0 0 4px; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-dim); font-weight: 700; }
[data-component="bull-call-spread"] .iron-rules li { font-size: 0.74rem; }
[data-component="bull-call-spread"] .iron-metrics > div:nth-child(1) { border-top-color: #00bfa5; }
[data-component="bull-call-spread"] .iron-metrics > div:nth-child(2) { border-top-color: #39ff8f; }
[data-component="bull-call-spread"] .iron-metrics > div:nth-child(3) { border-top-color: #ff5252; }
[data-component="bull-call-spread"] .iron-metrics > div:nth-child(4) { border-top-color: #ff6e40; }
[data-component="bull-call-spread"] .iron-plan { max-height: none; overflow: visible; }
[data-component="bull-call-spread"] .iron-plan li { margin: 2px 0; font-size: 0.72rem; line-height: 1.28; }
[data-component="bull-call-spread"] .iron-tabs {
    display: flex;
    gap: 4px;
    margin: 0 0 8px;
    border-bottom: 1px solid var(--line);
}
[data-component="bull-call-spread"] .iron-tab {
    appearance: none;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    color: var(--ink-dim);
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.72rem;
    padding: 6px 12px;
    cursor: pointer;
}
[data-component="bull-call-spread"] .iron-tab[aria-selected="true"] {
    color: var(--ink);
    border-bottom-color: var(--accent);
}
[data-component="bull-call-spread"] .iron-panel[hidden] { display: none; }
[data-component="bull-call-spread"] .iron-kpis {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    width: 100%;
    margin-bottom: 8px;
}
[data-component="bull-call-spread"] .iron-kpis > div { min-width: 0; }
[data-component="bull-call-spread"] .iron-kpis > div:nth-child(2) { border-top-color: #ff6e40; }
[data-component="bull-call-spread"] .iron-kpis > div:nth-child(3) { border-top-color: #39ff8f; }
[data-component="bull-call-spread"] .iron-kpis > div:nth-child(4) { border-top-color: #f1c40f; }
[data-component="bull-call-spread"] .iron-kpis > div:nth-child(5) { border-top-color: #7c4dff; }
[data-component="bull-call-spread"] .iron-kpis > div:nth-child(6) { border-top-color: var(--accent); }
[data-component="bull-call-spread"] .iron-kpis > div:nth-child(7) { border-top-color: #39ff8f; }
[data-component="bull-call-spread"] .iron-kpis > div:nth-child(8) { border-top-color: #ff4d5e; }
[data-component="bull-call-spread"] .iron-kpis > div[data-card="trail"].is-live {
    border-top-color: #c4783a;
    background: rgba(196, 120, 58, 0.16);
}
[data-component="bull-call-spread"] .iron-kpis > div[data-card="trail"].is-live .stat-label,
[data-component="bull-call-spread"] .iron-kpis > div[data-card="trail"].is-live strong {
    color: #e0a060;
    font-weight: 700;
}
[data-theme="light"] [data-component="bull-call-spread"] .iron-kpis > div[data-card="trail"].is-live .stat-label,
[data-theme="light"] [data-component="bull-call-spread"] .iron-kpis > div[data-card="trail"].is-live strong { color: #8a4b08; }
[data-component="bull-call-spread"] .iron-kpis > div[data-card="stop"].is-live {
    border-top-color: #ff6e40;
    background: rgba(255, 110, 64, 0.14);
}
[data-component="bull-call-spread"] .iron-kpis > div[data-card="stop"].is-live .stat-label,
[data-component="bull-call-spread"] .iron-kpis > div[data-card="stop"].is-live strong {
    color: #ff8a65;
    font-weight: 700;
}
[data-theme="light"] [data-component="bull-call-spread"] .iron-kpis > div[data-card="stop"].is-live .stat-label,
[data-theme="light"] [data-component="bull-call-spread"] .iron-kpis > div[data-card="stop"].is-live strong { color: #c43e00; }
[data-component="bull-call-spread"] .iron-action {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 8px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-left: 3px solid #39ff8f;
    border-radius: 8px;
    background: var(--panel);
}
[data-component="bull-call-spread"] .iron-action p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
}
[data-component="bull-call-spread"] .iron-action.is-next { border-left-color: #c4783a; }
[data-component="bull-call-spread"] .iron-action.is-close { border-left-color: #ff4d5e; }
[data-component="bull-call-spread"] #bull-panel-now .iron-metric-note { margin-bottom: 8px; }
[data-component="bull-call-spread"] .iron-now-split {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 8px;
    align-items: start;
}
[data-component="bull-call-spread"] .iron-now-split .iron-chart-card,
[data-component="bull-call-spread"] .iron-now-split .iron-legs-card { margin-bottom: 0; }
[data-component="bull-call-spread"] .iron-payoff { height: 208px; }
[data-component="bull-call-spread"] .iron-rule-cards {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}
[data-component="bull-call-spread"] .iron-rule-cards > div {
    background: var(--surface-inset);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px;
}
[data-component="bull-call-spread"] .iron-rule-cards > div:nth-child(1),
[data-component="bull-call-spread"] .iron-rule-cards > div:nth-child(2),
[data-component="bull-call-spread"] .iron-rule-cards > div:nth-child(3) { grid-column: span 2; }
[data-component="bull-call-spread"] .iron-rule-cards > div:nth-child(4) { grid-column: span 4; }
[data-component="bull-call-spread"] .iron-rule-cards > div:nth-child(5) { grid-column: span 2; }
@media (max-width: 1100px) {
    [data-component="bull-call-spread"] .iron-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    [data-component="bull-call-spread"] .iron-rule-cards { grid-template-columns: 1fr; }
    [data-component="bull-call-spread"] .iron-rule-cards > div { grid-column: auto; }
    [data-component="bull-call-spread"] .iron-action { flex-direction: column; align-items: flex-start; gap: 4px; }
    [data-component="bull-call-spread"] .iron-now-split { grid-template-columns: 1fr; }
    [data-component="bull-call-spread"] .iron-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
[data-component="bear-put-spread"] {
    padding: 8px 16px 6px;
    font-size: 12.5px;
    line-height: 1.3;
}
[data-component="bear-put-spread"] .dash-card { padding: 8px 12px; margin-bottom: 8px; }
[data-component="bear-put-spread"] h2 { margin: 0 0 4px; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-dim); font-weight: 700; }
[data-component="bear-put-spread"] .iron-rules li { font-size: 0.74rem; }
[data-component="bear-put-spread"] .iron-metrics > div:nth-child(1) { border-top-color: #00bfa5; }
[data-component="bear-put-spread"] .iron-metrics > div:nth-child(2) { border-top-color: #39ff8f; }
[data-component="bear-put-spread"] .iron-metrics > div:nth-child(3) { border-top-color: #ff5252; }
[data-component="bear-put-spread"] .iron-metrics > div:nth-child(4) { border-top-color: #ff6e40; }
[data-component="bear-put-spread"] .iron-plan { max-height: none; overflow: visible; }
[data-component="bear-put-spread"] .iron-plan li { margin: 2px 0; font-size: 0.72rem; line-height: 1.28; }
[data-component="bear-put-spread"] .iron-tabs {
    display: flex;
    gap: 4px;
    margin: 0 0 8px;
    border-bottom: 1px solid var(--line);
}
[data-component="bear-put-spread"] .iron-tab {
    appearance: none;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    color: var(--ink-dim);
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.72rem;
    padding: 6px 12px;
    cursor: pointer;
}
[data-component="bear-put-spread"] .iron-tab[aria-selected="true"] {
    color: var(--ink);
    border-bottom-color: var(--accent);
}
[data-component="bear-put-spread"] .iron-panel[hidden] { display: none; }
[data-component="bear-put-spread"] .iron-kpis {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    width: 100%;
    margin-bottom: 8px;
}
[data-component="bear-put-spread"] .iron-kpis > div { min-width: 0; }
[data-component="bear-put-spread"] .iron-kpis > div:nth-child(2) { border-top-color: #ff6e40; }
[data-component="bear-put-spread"] .iron-kpis > div:nth-child(3) { border-top-color: #39ff8f; }
[data-component="bear-put-spread"] .iron-kpis > div:nth-child(4) { border-top-color: #f1c40f; }
[data-component="bear-put-spread"] .iron-kpis > div:nth-child(5) { border-top-color: #7c4dff; }
[data-component="bear-put-spread"] .iron-kpis > div:nth-child(6) { border-top-color: var(--accent); }
[data-component="bear-put-spread"] .iron-kpis > div:nth-child(7) { border-top-color: #39ff8f; }
[data-component="bear-put-spread"] .iron-kpis > div:nth-child(8) { border-top-color: #ff4d5e; }
[data-component="bear-put-spread"] .iron-kpis > div[data-card="trail"].is-live {
    border-top-color: #c4783a;
    background: rgba(196, 120, 58, 0.16);
}
[data-component="bear-put-spread"] .iron-kpis > div[data-card="trail"].is-live .stat-label,
[data-component="bear-put-spread"] .iron-kpis > div[data-card="trail"].is-live strong {
    color: #e0a060;
    font-weight: 700;
}
[data-theme="light"] [data-component="bear-put-spread"] .iron-kpis > div[data-card="trail"].is-live .stat-label,
[data-theme="light"] [data-component="bear-put-spread"] .iron-kpis > div[data-card="trail"].is-live strong { color: #8a4b08; }
[data-component="bear-put-spread"] .iron-kpis > div[data-card="stop"].is-live {
    border-top-color: #ff6e40;
    background: rgba(255, 110, 64, 0.14);
}
[data-component="bear-put-spread"] .iron-kpis > div[data-card="stop"].is-live .stat-label,
[data-component="bear-put-spread"] .iron-kpis > div[data-card="stop"].is-live strong {
    color: #ff8a65;
    font-weight: 700;
}
[data-theme="light"] [data-component="bear-put-spread"] .iron-kpis > div[data-card="stop"].is-live .stat-label,
[data-theme="light"] [data-component="bear-put-spread"] .iron-kpis > div[data-card="stop"].is-live strong { color: #c43e00; }
[data-component="bear-put-spread"] .iron-action {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 8px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-left: 3px solid #39ff8f;
    border-radius: 8px;
    background: var(--panel);
}
[data-component="bear-put-spread"] .iron-action p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
}
[data-component="bear-put-spread"] .iron-action.is-next { border-left-color: #c4783a; }
[data-component="bear-put-spread"] .iron-action.is-close { border-left-color: #ff4d5e; }
[data-component="bear-put-spread"] #bear-panel-now .iron-metric-note { margin-bottom: 8px; }
[data-component="bear-put-spread"] .iron-now-split {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 8px;
    align-items: start;
}
[data-component="bear-put-spread"] .iron-now-split .iron-chart-card,
[data-component="bear-put-spread"] .iron-now-split .iron-legs-card { margin-bottom: 0; }
[data-component="bear-put-spread"] .iron-payoff { height: 208px; }
[data-component="bear-put-spread"] .iron-rule-cards {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}
[data-component="bear-put-spread"] .iron-rule-cards > div {
    background: var(--surface-inset);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px;
}
[data-component="bear-put-spread"] .iron-rule-cards > div:nth-child(1),
[data-component="bear-put-spread"] .iron-rule-cards > div:nth-child(2),
[data-component="bear-put-spread"] .iron-rule-cards > div:nth-child(3) { grid-column: span 2; }
[data-component="bear-put-spread"] .iron-rule-cards > div:nth-child(4) { grid-column: span 4; }
[data-component="bear-put-spread"] .iron-rule-cards > div:nth-child(5) { grid-column: span 2; }
@media (max-width: 1100px) {
    [data-component="bear-put-spread"] .iron-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    [data-component="bear-put-spread"] .iron-rule-cards { grid-template-columns: 1fr; }
    [data-component="bear-put-spread"] .iron-rule-cards > div { grid-column: auto; }
    [data-component="bear-put-spread"] .iron-action { flex-direction: column; align-items: flex-start; gap: 4px; }
    [data-component="bear-put-spread"] .iron-now-split { grid-template-columns: 1fr; }
    [data-component="bear-put-spread"] .iron-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
[data-component="batman-132"] .iron-tabs {
    display: flex;
    gap: 4px;
    margin: 0 0 8px;
    border-bottom: 1px solid var(--line);
}
[data-component="batman-132"] .iron-tab {
    appearance: none;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    color: var(--ink-dim);
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.72rem;
    padding: 6px 12px;
    cursor: pointer;
}
[data-component="batman-132"] .iron-tab[aria-selected="true"] {
    color: var(--ink);
    border-bottom-color: var(--accent);
}
[data-component="batman-132"] .iron-panel[hidden] { display: none; }
[data-component="batman-132"] .iron-action {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 8px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-left: 3px solid #39ff8f;
    border-radius: 8px;
    background: var(--panel);
}
[data-component="batman-132"] .iron-action p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
}
[data-component="batman-132"] .iron-action.is-next { border-left-color: #c4783a; }
[data-component="batman-132"] .iron-action.is-close { border-left-color: #ff4d5e; }
[data-component="batman-132"] .iron-kpis {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    width: 100%;
    margin-bottom: 8px;
}
[data-component="batman-132"] .iron-kpis > div { min-width: 0; }
[data-component="batman-132"] .iron-kpis > div:nth-child(2) { border-top-color: #39ff8f; }
[data-component="batman-132"] .iron-kpis > div:nth-child(3) { border-top-color: #f1c40f; }
[data-component="batman-132"] .iron-kpis > div:nth-child(4) { border-top-color: #7c4dff; }
[data-component="batman-132"] .iron-kpis > div:nth-child(5) { border-top-color: var(--accent); }
[data-component="batman-132"] .iron-kpis > div:nth-child(6) { border-top-color: #00bfa5; }
[data-component="batman-132"] .iron-kpis > div:nth-child(7) { border-top-color: #2196f3; }
[data-component="batman-132"] .iron-kpis > div:nth-child(8) { border-top-color: #ff6e40; }
[data-component="batman-132"] .iron-kpis > div[data-card="trail"].is-live { background: rgba(124, 77, 255, 0.16); }
[data-component="batman-132"] .iron-now-split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 8px;
}
[data-component="batman-132"] .iron-payoff { height: 240px; }
[data-component="batman-132"] .iron-metrics { grid-template-columns: repeat(6, minmax(0, 1fr)); }
[data-component="batman-132"] .iron-rule-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
@media (max-width: 1100px) {
    [data-component="batman-132"] .iron-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    [data-component="batman-132"] .iron-rule-cards { grid-template-columns: 1fr; }
    [data-component="batman-132"] .iron-now-split { grid-template-columns: 1fr; }
    [data-component="batman-132"] .iron-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
