:root {
    --card-bg:
        linear-gradient(180deg, rgba(14, 24, 45, 0.96) 0%, rgba(8, 16, 33, 0.96) 100%);
    --card-border: rgba(147, 197, 253, 0.10);
    --card-border-strong: rgba(147, 197, 253, 0.18);
    --card-shadow:
        0 18px 48px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    --panel-soft:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
        linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(10, 18, 35, 0.92));
}

body {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.15), transparent 28%),
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.10), transparent 22%),
        linear-gradient(180deg, #04101f 0%, #071224 46%, #040b17 100%);
}

.decision-page {
    min-width: 0;
    width: 100%;
    max-width: none;
    align-self: stretch;
}

.page-shell {
    display: grid;
    gap: 14px;
    width: 100%;
    max-width: none;
    justify-self: stretch;
}

.page-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid var(--card-border-strong);
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.14), transparent 28%),
        radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(10, 20, 38, 0.97), rgba(7, 14, 30, 0.97));
    box-shadow: var(--card-shadow);
}

.hero-main {
    min-width: 0;
}

.eyebrow {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #93c5fd;
}

.page-hero h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.05;
    font-weight: 900;
    color: #f8fafc;
}

.hero-copy {
    max-width: 760px;
    margin: 10px 0 0;
    color: #a5b4cc;
    font-size: 13px;
    line-height: 1.6;
}

.hero-meta,
.hero-actions,
.chips,
.row,
.delta,
.agent-columns,
.ref-meta,
.step .meta,
.step .refs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-meta {
    margin-top: 14px;
}

.hero-actions {
    align-items: flex-start;
    justify-content: flex-end;
    align-content: flex-start;
    min-width: 250px;
}

.grid,
.agent-grid,
.subgrid {
    display: grid;
    gap: 14px;
}

.grid,
.agent-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    width: 100%;
    max-width: none;
    justify-self: stretch;
}

.subgrid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.subcol-6 { grid-column: span 6; }
.subcol-4 { grid-column: span 4; }
.subcol-8 { grid-column: span 8; }
.subcol-12 { grid-column: span 12; }

.col-12 { grid-column: span 12; }
.col-8 { grid-column: span 8; }
.col-10 { grid-column: span 10; }
.col-7 { grid-column: span 7; }
.col-6 { grid-column: span 6; }
.col-5 { grid-column: span 5; }
.col-4 { grid-column: span 4; }
.centered-card { justify-self: center; width: 100%; }
.col-3 { grid-column: span 3; }

.card,
.agent-card,
.metric,
.block,
.step,
.diff {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
}

.card::before,
.agent-card::before,
.metric::before,
.block::before,
.step::before,
.diff::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(96, 165, 250, 0.04), transparent 18%, transparent 82%, rgba(96, 165, 250, 0.03)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 28%);
}

.card > .hd,
.modal .hd {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0)),
        linear-gradient(90deg, rgba(59, 130, 246, 0.06), transparent 35%);
}

.card > .hd h2,
.modal .hd h2 {
    margin: 0;
    color: #f3f4f6;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

.body {
    position: relative;
    z-index: 1;
    padding: 14px;
    min-width: 0;
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn {
    appearance: none;
    height: 34px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.btn:hover {
    text-decoration: none;
    border-color: rgba(96, 165, 250, 0.28);
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.14), rgba(96, 165, 250, 0.06));
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.14);
}

.btn.primary {
    border-color: rgba(96, 165, 250, 0.30);
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.20), rgba(96, 165, 250, 0.09));
}

.btn.danger {
    color: #fff1f2;
    border-color: rgba(239, 68, 68, 0.28);
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.20), rgba(239, 68, 68, 0.08));
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(6, 16, 34, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #c7d2fe;
    font-size: 11px;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.chip-ok { color: #86efac; border-color: rgba(34, 197, 94, 0.24); background: rgba(20, 83, 45, 0.24); }
.chip-warn { color: #fde68a; border-color: rgba(245, 158, 11, 0.24); background: rgba(120, 53, 15, 0.20); }
.chip-bad { color: #fca5a5; border-color: rgba(239, 68, 68, 0.24); background: rgba(127, 29, 29, 0.18); }
.chip-info { color: #bfdbfe; border-color: rgba(96, 165, 250, 0.22); background: rgba(30, 64, 175, 0.16); }

.signal-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.72);
    color: #cbd5e1;
    font-size: 11px;
    line-height: 1;
}

.signal-chip--synthetic { color: #fde68a; border-color: rgba(245, 158, 11, 0.30); background: rgba(120, 53, 15, 0.22); }
.signal-chip--degraded { color: #fef08a; border-color: rgba(251, 191, 36, 0.34); background: rgba(113, 63, 18, 0.25); }
.signal-chip--risk-off { color: #fca5a5; border-color: rgba(239, 68, 68, 0.30); background: rgba(127, 29, 29, 0.22); }

/* Decision: buy=green, sell=red, wait/hold= yellow */
.chip-pos-buy { color: #86efac; border-color: rgba(34, 197, 94, 0.28); background: rgba(20, 83, 45, 0.26); }
.chip-pos-sell { color: #fca5a5; border-color: rgba(239, 68, 68, 0.28); background: rgba(127, 29, 29, 0.22); }
.chip-pos-wait { color: #fde68a; border-color: rgba(245, 158, 11, 0.28); background: rgba(120, 53, 15, 0.22); }
.chip-pos-neutral { color: #cbd5e1; border-color: rgba(148, 163, 184, 0.22); background: rgba(51, 65, 85, 0.2); }

.decision-pos-text.pos-buy { color: #86efac; font-weight: 800; }
.decision-pos-text.pos-sell { color: #fca5a5; font-weight: 800; }
.decision-pos-text.pos-wait { color: #fde68a; font-weight: 800; }
.decision-pos-text.pos-neutral { color: #cbd5e1; font-weight: 700; }

.kv {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 8px 12px;
}

.kv .k,
.section-title,
.metric .label,
.small,
.muted,
th {
    color: var(--muted);
}

.kv .k,
.kv .v,
.section-title,
.ref-summary,
.ref-why,
.ref-meta,
.ref-path,
.ref-title,
.empty,
.reason-list,
.metric .sub,
table,
.step,
.pre-mini {
    font-size: 12px;
}

.section-title {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.block,
.metric,
.agent-card,
.step,
.diff {
    padding: 14px;
}

.metric .value {
    margin-top: 8px;
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
    color: #f8fafc;
}

.metric .sub {
    margin-top: 8px;
    line-height: 1.5;
}

.hr {
    height: 1px;
    margin: 14px 0;
    background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.02), rgba(255,255,255,.06));
}

.agent-card .title {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.agent-card .title h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 900;
    color: #f8fafc;
}

.agent-card .section {
    position: relative;
    z-index: 1;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.agent-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ref-list {
    display: grid;
    gap: 10px;
}

.ref-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--panel-soft);
}

.ref-kind {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(6, 16, 34, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #93c5fd;
    font-size: 11px;
    font-weight: 700;
}

.ref-title {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 800;
    color: #f8fafc;
}

.ref-summary,
.ref-why,
.ref-path,
.empty {
    line-height: 1.55;
}

.ref-path,
.mono,
.pre-mini,
pre,
code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.pre-mini,
pre {
    margin: 0;
    padding: 10px 12px;
    white-space: pre-wrap;
    word-break: break-word;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(3, 10, 24, 0.7);
}

.reason-list {
    margin: 0;
    padding-left: 18px;
    line-height: 1.55;
}

.reason-list li {
    margin: 4px 0;
}

.step .top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.step .name {
    font-weight: 800;
    color: #f8fafc;
}

.diff .item {
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.table-wrap {
    overflow: auto;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(2, 8, 20, 0.52);
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
    vertical-align: top;
}

th {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, 0.72);
}

.modal {
    width: min(980px, 92vw);
    max-height: 86vh;
    overflow: auto;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: linear-gradient(180deg, rgba(14, 24, 45, 0.98), rgba(8, 16, 33, 0.96));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.quality-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.quality-panel {
    grid-column: span 6;
}

.quality-panel > .block,
.quality-takeaways > .block {
    height: 100%;
}

.quality-takeaways {
    grid-column: 1 / -1;
}

.readiness-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
}

.readiness-metric {
    grid-column: span 3;
}

.readiness-metric > .metric,
.readiness-synthesis > .block {
    height: 100%;
}

.readiness-synthesis {
    grid-column: 1 / -1;
}
@media (max-width: 1180px) {
    .page-hero {
        flex-direction: column;
    }

    .hero-actions {
        min-width: 0;
        justify-content: flex-start;
    }

    .col-10,
    .col-8,
    .col-7,
    .col-6,
    .col-5,
    .col-4,
    .col-3,
    .subcol-8,
    .subcol-6,
    .subcol-4 {
        grid-column: span 12;
    }
}

@media (max-width: 820px) {
    .quality-grid,
    .readiness-grid {
        grid-template-columns: 1fr;
    }

    .quality-panel,
    .quality-takeaways,
    .readiness-metric,
    .readiness-synthesis {
        grid-column: 1 / -1;
    }

    .page-hero {
        padding: 16px;
        border-radius: 18px;
    }

    .page-hero h1 {
        font-size: 20px;
    }

    .agent-columns,
    .ref-item {
        grid-template-columns: 1fr;
    }

    .kv {
        grid-template-columns: 1fr;
    }
}

.decision-tail-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.tail-main {
    grid-column: 1 / -1;
}

.tail-side {
    grid-column: 1;
}

.tail-wide {
    grid-column: 2;
    width: 100%;
    max-width: none;
    justify-self: stretch;
}

@media (max-width: 700px) {
    .decision-tail-grid {
        grid-template-columns: 1fr;
    }

    .tail-main,
    .tail-side,
    .tail-wide {
        grid-column: auto;
        max-width: none;
        justify-self: stretch;
    }
}

.evidence-card {
    min-width: 0;
}

.evidence-card > .hd {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
}

.evidence-card > .hd h2 {
    line-height: 1.2;
}

.evidence-actions {
    justify-content: flex-end;
    align-self: center;
}

.evidence-card .table-wrap {
    width: 100%;
    overflow-x: auto;
}

.evidence-card table {
    min-width: 640px;
}

@media (max-width: 860px) {
    .evidence-card > .hd {
        grid-template-columns: 1fr;
    }

    .evidence-actions {
        justify-content: flex-start;
    }
}

.metric {
    min-height: 146px;
}

.metric .label {
    font-size: 12px;
    line-height: 1.35;
}

.metric .value {
    line-height: 1.15;
    word-break: break-word;
}

.metric .sub {
    font-size: 13px;
    line-height: 1.45;
    word-break: break-word;
}

/* Evidence quality / Execution readiness spacing fix */

.decision-page .subgrid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.decision-page .subgrid > .subcol-4,
.decision-page .subgrid > .subcol-6,
.decision-page .subgrid > .subcol-8,
.decision-page .subgrid > .subcol-12 {
    min-width: 0;
    width: 100%;
}

.decision-page .subgrid > .subcol-4  { grid-column: span 4; }
.decision-page .subgrid > .subcol-6  { grid-column: span 6; }
.decision-page .subgrid > .subcol-8  { grid-column: span 8; }
.decision-page .subgrid > .subcol-12 { grid-column: 1 / -1; }

.decision-page .block,
.decision-page .metric {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.decision-page .subcol-12 > .block,
.decision-page .subcol-12 > .metric {
    width: 100%;
    max-width: none;
}

.decision-page .metric .value,
.decision-page .metric .sub,
.decision-page .block,
.decision-page .kv,
.decision-page .chips {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 1180px) {
    .col-10,
    .col-8,
    .col-7,
    .col-6,
    .col-5,
    .col-4,
    .col-3,
    .subcol-8,
    .subcol-6,
    .subcol-4,
    .subcol-12 {
        grid-column: 1 / -1;
    }
}


/* decision top gap lock */
.decision-page,
.decision-page .page-shell {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.decision-page > .page-shell > .page-head.unified-page-head {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* unified header spacing */
.decision-page,
.decision-page .page-shell {
  gap: var(--page-gap) !important;
}

.decision-page .page-title,
.decision-page .page-subtitle,
.decision-page .hero-copy {
  margin: 0 !important;
}

.decision-page .hero-meta,
.decision-page .page-meta {
  margin-top: var(--content-gap) !important;
}

.decision-page > .page-shell > .page-head.unified-page-head,
.decision-page > .page-shell > section + section {
  margin-top: 0 !important;
}

.decision-page > .page-shell > .page-head.unified-page-head,
.decision-page > .page-shell > .grid,
.decision-page > .page-shell > .card,
.decision-page > .page-shell > section.card,
.decision-page > .page-shell > .grid > section.card,
.decision-page > .page-shell > .grid > .card {
    width: 100%;
    max-width: none;
    justify-self: stretch;
    box-sizing: border-box;
}

/* decision center redesign */
.decision-legacy-hidden {
    display: none !important;
}

.decision-agent-mini-board,
.decision-agent-spotlight-board,
.decision-launch-card {
    grid-column: 1 / -1;
}

.agent-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    grid-auto-rows: 320px;
    align-items: stretch;
}

.agent-mini-card,
.agent-spotlight-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(147, 197, 253, 0.12);
    background: linear-gradient(180deg, rgba(13, 23, 42, 0.96), rgba(8, 16, 32, 0.96));
    box-shadow: var(--card-shadow);
}

.agent-mini-card {
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.agent-mini-head,
.agent-spotlight-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
}

.agent-mini-head h3,
.agent-spotlight-head h3 {
    margin: 0;
    color: #f8fafc;
    font-weight: 900;
    letter-spacing: 0.01em;
    min-width: 0;
}

.agent-mini-head h3 {
    font-size: 16px;
    line-height: 1.2;
    flex: 1 1 auto;
    overflow-wrap: anywhere;
}

.agent-spotlight-head h3 {
    font-size: 20px;
    line-height: 1.15;
}

.agent-mini-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(51, 65, 85, 0.2);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    flex: 0 0 auto;
    max-width: 100%;
}

.agent-mini-action.pos-buy {
    border-color: rgba(34, 197, 94, 0.32);
    background: rgba(20, 83, 45, 0.28);
    color: #86efac;
}

.agent-mini-action.pos-sell {
    border-color: rgba(239, 68, 68, 0.32);
    background: rgba(127, 29, 29, 0.22);
    color: #fca5a5;
}

.agent-mini-action.pos-wait {
    border-color: rgba(245, 158, 11, 0.32);
    background: rgba(120, 53, 15, 0.22);
    color: #fde68a;
}

.agent-mini-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}

.agent-mini-metrics span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 0;
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #dbe7ff;
    font-size: 12px;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
}

.agent-mini-text,
.agent-spotlight-text,
.agent-long-copy {
    margin: 0;
    color: #9fb0c8;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.agent-mini-text {
    font-size: 13px;
    margin-top: auto;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    max-height: calc(1.6em * 6);
}

.agent-spotlight-text,
.agent-long-copy {
    font-size: 14px;
}

.agent-spotlight-card {
    padding: 18px;
    display: grid;
    gap: 16px;
}

.agent-spotlight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.final-synthesis-card {
    grid-column: 1 / -1;
}

.agent-spotlight-actions,
.decision-launch-actions,
.agent-detail-chips,
.agent-ref-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.agent-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.agent-stat {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
}

.agent-stat span {
    display: block;
    margin-bottom: 8px;
    color: #8ea4c9;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.agent-stat strong {
    display: block;
    color: #f8fafc;
    font-size: 20px;
    line-height: 1.15;
    font-weight: 900;
    word-break: break-word;
}

.agent-stat-action {
    border-color: rgba(148, 163, 184, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.agent-stat-action.pos-buy {
    border-color: rgba(74, 222, 128, 0.22);
    background: linear-gradient(180deg, rgba(22, 101, 52, 0.26), rgba(10, 26, 22, 0.28));
}

.agent-stat-action.pos-buy strong {
    color: #86efac;
}

.agent-stat-action.pos-sell {
    border-color: rgba(248, 113, 113, 0.22);
    background: linear-gradient(180deg, rgba(127, 29, 29, 0.28), rgba(40, 10, 14, 0.26));
}

.agent-stat-action.pos-sell strong {
    color: #fca5a5;
}

.agent-stat-action.pos-wait {
    border-color: rgba(251, 191, 36, 0.22);
    background: linear-gradient(180deg, rgba(120, 53, 15, 0.22), rgba(40, 26, 8, 0.24));
}

.agent-stat-action.pos-wait strong {
    color: #fde68a;
}

.agent-stat-confidence {
    border-color: rgba(96, 165, 250, 0.18);
    background: linear-gradient(180deg, rgba(30, 64, 175, 0.22), rgba(11, 24, 45, 0.24));
}

.agent-more {
    display: grid;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.agent-more summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #dbe7ff;
    font-size: 13px;
    font-weight: 700;
    list-style: none;
}

.agent-more summary::-webkit-details-marker {
    display: none;
}

.agent-more-body {
    display: grid;
    gap: 12px;
}

.decision-launch-actions {
    justify-content: flex-start;
}

.decision-launch-actions .btn {
    min-width: 160px;
}

@media (max-width: 1280px) {
    .agent-mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 300px;
    }
}

@media (max-width: 980px) {
    .agent-spotlight-grid,
    .agent-stat-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .agent-mini-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .agent-mini-head,
    .agent-spotlight-head {
        flex-direction: column;
        align-items: stretch;
    }

    .decision-launch-actions .btn {
        width: 100%;
    }
}


.decision-page .empty {
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
    color: var(--muted);
    text-align: left;
}

.empty-inline {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
    padding: 0;
    border: 0;
    background: transparent;
}

/* Candle cadence panel: analysis vs execution vs monitoring */
.cadence-panel .hd {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.cadence-panel-note {
    margin: 0;
    max-width: 920px;
    font-size: 12px;
    line-height: 1.5;
    color: #94a3b8;
}

.cadence-triple {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 1100px) {
    .cadence-triple {
        grid-template-columns: 1fr;
    }
}

.cadence-col {
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 12px 14px;
    background: var(--panel-soft);
}

.cadence-col-title {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #93c5fd;
}

.cadence-col-a {
    border-color: rgba(59, 130, 246, 0.35);
}

.cadence-col-b {
    border-color: rgba(34, 197, 94, 0.28);
}

.cadence-col-c {
    border-color: rgba(148, 163, 184, 0.35);
}

.cadence-kv .k {
    font-size: 11px;
    color: #94a3b8;
}

.cadence-kv .v {
    font-size: 12px;
    word-break: break-all;
}
