.terminal-shell {
    padding: 0.45rem 0 2rem;
}

.terminal-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin-bottom: 0.18rem;
    color: #526579;
    font-size: 0.78rem;
    font-weight: 800;
}

.terminal-breadcrumbs a {
    color: #003366;
    text-decoration: none;
}

.terminal-breadcrumbs a:hover,
.terminal-breadcrumbs a:focus,
.terminal-classification a:hover,
.terminal-classification a:focus {
    text-decoration: underline;
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 0.55rem;
    padding: 0.18rem 0 0.48rem;
    border-bottom: 1px solid #d8e1ea;
}

.terminal-identity {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.18rem 0.55rem;
    min-width: 0;
    max-width: 100%;
}

.terminal-symbol-row {
    display: inline-flex;
    align-items: baseline;
    gap: 0.34rem;
}

.terminal-symbol-row span,
.terminal-classification {
    color: #526579;
    font-size: 0.78rem;
}

.terminal-header h1 {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1;
}

.terminal-company-name,
.terminal-classification,
.terminal-stats {
    margin: 0;
}

.terminal-company-name {
    font-size: 0.88rem;
    font-weight: 700;
    min-width: 0;
    max-width: 100%;
}

.terminal-classification {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.42rem;
}

.terminal-classification a {
    color: #003366;
    font-weight: 800;
    text-decoration: none;
}

.terminal-classification span {
    margin: 0;
}

.terminal-separator {
    display: inline-block;
    flex: 0 0 auto;
    width: 0.3rem;
    height: 0.3rem;
    margin: 0 0.08rem;
    border-radius: 999px;
    background: #9aaabe;
    vertical-align: middle;
}

.terminal-symbol-row .terminal-separator {
    position: relative;
    top: -0.07em;
    width: 0.26rem;
    height: 0.26rem;
}

.terminal-stats {
    display: flex;
    flex: 0 0 auto;
    gap: 0.35rem;
    align-items: center;
    text-align: right;
}

.terminal-stats div {
    display: flex;
    align-items: baseline;
    gap: 0.32rem;
    min-width: 5.35rem;
    padding: 0.1rem 0.55rem;
    border-left: 1px solid #e4ebf2;
    line-height: 1.15;
}

.terminal-stats .terminal-header-action {
    min-width: auto;
    padding-left: 0;
    border-left: 0;
}

.terminal-header-action a {
    display: inline-flex;
    align-items: center;
    min-height: 1.85rem;
    padding: 0.28rem 0.65rem;
    border: 1px solid #003366;
    color: #003366;
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.terminal-header-action a:hover,
.terminal-header-action a:focus {
    background: #003366;
    color: #ffffff;
}

.terminal-stats dt {
    color: #526579;
    font-size: 0.7rem;
    white-space: nowrap;
}

.terminal-stats dd {
    margin: 0;
    color: #102033;
    font-weight: 700;
    white-space: nowrap;
}

.terminal-expectation dd {
    padding: 0.1rem 0.35rem;
    border-radius: 999px;
}

.terminal-expectation-positive dd {
    color: #0f6b2b;
    background: #e9f8ee;
}

.terminal-expectation-negative dd {
    color: #9f1239;
    background: #fdecef;
}

.terminal-expectation-undecided dd {
    color: #92400e;
    background: #fff7e6;
}

.terminal-report-shell {
    color: #071b33;
}

.terminal-report-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(26rem, 0.78fr);
    gap: 1rem;
    margin: 0.45rem 0 0.9rem;
    border: 1px solid #c9d8e8;
    background: #ffffff;
}

.terminal-report-title {
    padding: 1rem;
}

.terminal-report-kicker,
.terminal-report-section-head span {
    display: block;
    color: #526985;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.terminal-report-title h1 {
    margin: 0.2rem 0 0.35rem;
    font-size: clamp(2.1rem, 6vw, 4.7rem);
    line-height: 0.95;
}

.terminal-report-title p {
    max-width: 52rem;
    margin: 0;
    color: #304a67;
    font-weight: 800;
}

.terminal-report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.85rem;
}

.terminal-report-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    border: 1px solid #c9d8e8;
    padding: 0.45rem 0.75rem;
    color: #003b73;
    font-weight: 900;
    text-decoration: none;
}

.terminal-report-actions a:first-child {
    border-color: #003b73;
    background: #003b73;
    color: #ffffff;
}

.terminal-report-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-left: 3px solid #003b73;
}

.terminal-report-kpi {
    min-height: 7rem;
    padding: 1rem;
    border-left: 1px solid #d7e3f0;
    border-bottom: 1px solid #d7e3f0;
    background: #f8fbff;
}

.terminal-report-kpi span,
.terminal-report-kpi small,
.terminal-report-chip span,
.terminal-report-metric-list dt {
    color: #526985;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.terminal-report-kpi strong {
    display: block;
    margin-top: 0.2rem;
    font-size: 1.65rem;
    line-height: 1;
}

.terminal-report-kpi small {
    display: block;
    margin-top: 0.35rem;
    letter-spacing: 0;
    text-transform: none;
}

.terminal-report-positive,
.terminal-report-chip-positive strong {
    color: #04713a;
}

.terminal-report-negative,
.terminal-report-chip-negative strong {
    color: #b84e00;
}

.terminal-report-neutral,
.terminal-report-chip-neutral strong {
    color: #071b33;
}

.terminal-report-band {
    margin-top: 0.85rem;
}

.terminal-report-description {
    display: grid;
    grid-template-columns: minmax(12rem, 0.25fr) minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
    padding: 0.85rem;
    border: 1px solid #c9d8e8;
    background: #ffffff;
}

.terminal-report-description span {
    display: block;
    color: #526985;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.terminal-report-description h2 {
    margin: 0.18rem 0 0;
    font-size: 1.2rem;
}

.terminal-report-description p {
    margin: 0;
    color: #304a67;
    font-weight: 800;
    line-height: 1.45;
}

.terminal-report-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
    margin-bottom: 0.65rem;
    padding-top: 0.8rem;
    border-top: 1px solid #d7e3f0;
}

.terminal-report-section-head h2 {
    margin: 0.18rem 0;
    font-size: 1.55rem;
}

.terminal-report-section-head p {
    max-width: 72rem;
    margin: 0;
    color: #39516f;
    font-weight: 800;
    line-height: 1.45;
}

.terminal-report-chip-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.terminal-report-chip,
.terminal-report-panel {
    border: 1px solid #c9d8e8;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 59, 115, 0.04);
}

.terminal-report-chip {
    min-height: 4.8rem;
    padding: 0.85rem;
}

.terminal-report-chip strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 1rem;
}

.terminal-report-two,
.terminal-report-three {
    display: grid;
    gap: 0.75rem;
    align-items: start;
}

.terminal-report-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.terminal-report-three {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.terminal-report-two > :only-child {
    grid-column: 1 / -1;
}

.terminal-report-panel {
    padding: 0.9rem;
}

.terminal-report-panel h3 {
    margin: 0 0 0.6rem;
    font-size: 1.08rem;
}

.terminal-report-line-chart {
    min-height: 15rem;
    border: 1px solid #d7e3f0;
    background: #fbfdff;
}

.terminal-report-line-chart svg {
    display: block;
    width: 100%;
    height: 15rem;
}

.terminal-report-grid line {
    stroke: #e7eef6;
    stroke-width: 0.45;
}

.terminal-report-line-price,
.terminal-report-line-trend,
.terminal-report-line-fair {
    fill: none;
    stroke-width: 2.2;
    vector-effect: non-scaling-stroke;
}

.terminal-report-line-price {
    stroke: #003b73;
}

.terminal-report-line-trend {
    stroke: #147c45;
}

.terminal-report-line-fair {
    stroke: #b84e00;
    stroke-dasharray: 4 3;
}

.terminal-report-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.55rem;
    color: #526985;
    font-size: 0.8rem;
    font-weight: 900;
}

.terminal-report-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.terminal-report-legend i {
    display: inline-block;
    width: 1.1rem;
    height: 0.18rem;
    background: #003b73;
}

.terminal-report-legend-trend {
    background: #147c45 !important;
}

.terminal-report-legend-fair {
    background: #b84e00 !important;
}

.terminal-report-metric-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0;
}

.terminal-report-metric-list div {
    min-height: 4.1rem;
    padding: 0.65rem;
    border: 1px solid #d7e3f0;
    background: #f8fbff;
}

.terminal-report-metric-list dd {
    margin: 0.25rem 0 0;
    font-size: 1.02rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.terminal-report-return-bars {
    display: grid;
    gap: 0.6rem;
}

.terminal-report-return-row,
.terminal-report-score-row {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr) 5rem;
    gap: 0.6rem;
    align-items: center;
}

.terminal-report-return-row span,
.terminal-report-return-row strong,
.terminal-report-score-row span,
.terminal-report-score-row strong {
    font-weight: 900;
}

.terminal-report-return-row i,
.terminal-report-score-row i {
    display: block;
    height: 0.7rem;
    background: #e7eef6;
}

.terminal-report-return-row b,
.terminal-report-score-row b {
    display: block;
    height: 100%;
}

.terminal-report-score-list {
    display: grid;
    gap: 0.7rem;
}

.terminal-report-score-row {
    grid-template-columns: 8rem minmax(0, 1fr) 3rem;
}

.terminal-report-score-row small {
    grid-column: 1 / -1;
    color: #526985;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.35;
}

.terminal-report-radar-panel {
    display: grid;
    align-content: start;
}

.terminal-report-radar {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 17rem;
    border: 1px solid #d7e3f0;
    background: #fbfdff;
}

.terminal-report-radar svg {
    width: min(100%, 17rem);
    height: 17rem;
}

.terminal-report-radar circle,
.terminal-report-radar line {
    fill: none;
    stroke: #d7e3f0;
    stroke-width: 0.7;
}

.terminal-report-radar polygon {
    fill: rgba(0, 59, 115, 0.16);
    stroke: #003b73;
    stroke-width: 1.8;
}

.terminal-report-radar strong {
    position: absolute;
    inset: 0.75rem 0.75rem auto auto;
    min-width: 3.2rem;
    border: 1px solid #c9d8e8;
    background: #ffffff;
    padding: 0.28rem 0.35rem;
    color: #003b73;
    font-size: 1.45rem;
    line-height: 1;
    text-align: center;
}

.terminal-report-radar > span {
    position: absolute;
    inset: 3.1rem 0.75rem auto auto;
    max-width: 8rem;
    text-align: right;
    color: #526985;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.terminal-report-timeline-panel {
    margin-top: 0.75rem;
}

.terminal-report-signal-timeline {
    display: grid;
    grid-template-columns: repeat(16, minmax(0, 1fr));
    gap: 0.2rem;
    min-height: 8.5rem;
    padding: 0.55rem;
    border: 1px solid #d7e3f0;
    background: #fbfdff;
}

.terminal-report-timeline-week {
    position: relative;
    display: grid;
    align-items: end;
    justify-items: center;
    min-height: 7.25rem;
    border-bottom: 1px solid #d7e3f0;
}

.terminal-report-timeline-week i {
    width: 58%;
    min-height: 0.25rem;
    background: #9db0c5;
}

.terminal-report-timeline-positive i {
    background: #147c45;
}

.terminal-report-timeline-negative i {
    background: #b84e00;
}

.terminal-report-timeline-week b,
.terminal-report-timeline-week em {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: #d7e3f0;
}

.terminal-report-timeline-week b.is-on {
    background: #147c45;
}

.terminal-report-timeline-week em {
    background: #ead9c7;
}

.terminal-report-timeline-week em.is-on {
    background: #b84e00;
}

.terminal-report-timeline-week small {
    margin-top: 0.25rem;
    color: #526985;
    font-size: 0.68rem;
    font-weight: 900;
    writing-mode: vertical-rl;
}

.terminal-report-fill-positive {
    background: #147c45;
}

.terminal-report-fill-negative {
    background: #b84e00;
}

.terminal-report-fill-neutral {
    background: #9db0c5;
}

.terminal-report-volume-bars {
    display: flex;
    align-items: end;
    gap: 2px;
    height: 15rem;
    padding: 0.6rem;
    border: 1px solid #d7e3f0;
    background: #fbfdff;
}

.terminal-report-volume-bars span {
    flex: 1 1 0;
    min-width: 2px;
    background: #9db0c5;
}

.terminal-report-distribution {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 15rem;
    padding: 0.7rem;
    border: 1px solid #d7e3f0;
    background:
        linear-gradient(to bottom, transparent calc(50% - 1px), #d7e3f0 calc(50% - 1px), #d7e3f0 calc(50% + 1px), transparent calc(50% + 1px)),
        #fbfdff;
}

.terminal-report-distribution span {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    min-width: 4px;
    height: 100%;
}

.terminal-report-distribution i {
    display: block;
    width: 100%;
    min-height: 0.3rem;
}

.terminal-report-distribution-positive {
    align-items: flex-start !important;
}

.terminal-report-distribution-negative {
    align-items: flex-end !important;
}

.terminal-report-distribution-positive i {
    background: #147c45;
}

.terminal-report-distribution-negative i {
    background: #b84e00;
}

.terminal-report-distribution-neutral i {
    background: #9db0c5;
}

.terminal-report-peer-list {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.6rem;
}

.terminal-report-peer-list a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    align-items: center;
    padding: 0.48rem 0.55rem;
    border: 1px solid #d7e3f0;
    color: inherit;
    text-decoration: none;
}

.terminal-report-peer-list a:hover,
.terminal-report-peer-list a:focus {
    border-color: #003b73;
    background: #f8fbff;
}

.terminal-report-peer-list span,
.terminal-report-peer-list strong {
    font-weight: 900;
}

.terminal-report-peer-list span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.terminal-report-list-panel ul {
    display: grid;
    gap: 0.6rem;
    margin: 0;
    padding-left: 1.1rem;
    color: #304a67;
    font-weight: 800;
    line-height: 1.4;
}

.terminal-report-table-wrap {
    overflow-x: auto;
    border: 1px solid #c9d8e8;
    background: #ffffff;
}

.terminal-report-table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
}

.terminal-report-table th,
.terminal-report-table td {
    padding: 0.7rem 0.75rem;
    border-bottom: 1px solid #d7e3f0;
    text-align: left;
}

.terminal-report-table th {
    background: #f4f8fc;
    color: #526985;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.terminal-report-table td {
    font-weight: 800;
}

@media (max-width: 1180px) {
    .terminal-report-hero,
    .terminal-report-two,
    .terminal-report-three {
        grid-template-columns: 1fr;
    }

    .terminal-report-kpis {
        border-left: 0;
        border-top: 3px solid #003b73;
    }

    .terminal-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0.75rem;
        align-items: start;
    }

    .terminal-identity {
        display: grid;
        grid-template-columns: minmax(0, auto) minmax(0, 1fr);
        gap: 0.18rem 0.55rem;
        align-items: baseline;
    }

    .terminal-symbol-row {
        grid-row: span 2;
    }

    .terminal-company-name {
        overflow-wrap: break-word;
    }

    .terminal-classification {
        grid-column: 2;
    }

    .terminal-stats {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.45rem;
        width: 100%;
        text-align: left;
    }

    .terminal-stats div {
        display: grid;
        grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
        min-width: 0;
        padding: 0.5rem 0.6rem;
        border: 1px solid #e4ebf2;
        background: #f8fafc;
    }

    .terminal-stats dt,
    .terminal-stats dd {
        min-width: 0;
    }

    .terminal-stats dd {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .terminal-expectation dd {
        justify-self: start;
        max-width: 100%;
    }

    .terminal-stats .terminal-header-action {
        grid-column: 1 / -1;
        padding: 0;
        border: 0;
        background: transparent;
    }
}

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

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

.terminal-chart-card {
    --bg: #ffffff;
    --bg2: #f6f8fb;
    --surface: #ffffff;
    --border: #d8e1ea;
    --border2: #b9c8d8;
    --text: #102033;
    --text-muted: #526579;
    --muted: #526579;
    --dim: #7890a8;
    --accent: #003366;
    --acc-bg: #eef5fb;
    --acc-bd: #9bb7d4;
    --green: #15803d;
    --red: #b91c1c;
    --amber: #c97916;
    --fs-micro: 0.62rem;
    --fs-xs: 0.72rem;
    --fs-sm: 0.78rem;
    --fs-base: 0.9rem;
    --ff-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    overflow: hidden;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #d8e1ea;
}

.terminal-chart-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #d8e1ea;
}

.terminal-chart-tab {
    padding: 0.55rem 0.8rem;
    color: #003366;
    background: #ffffff;
    border: 1px solid #d8e1ea;
    border-bottom: 0;
    font-weight: 800;
    cursor: pointer;
}

.terminal-chart-tab.is-active {
    color: #ffffff;
    background: #003366;
    border-color: #003366;
}

.terminal-chart-panel[hidden] {
    display: none;
}

.terminal-chart {
    width: 100%;
    min-height: 560px;
}

.terminal-trader-chart-shell {
    display: grid;
    grid-template-rows: minmax(360px, auto) minmax(120px, auto);
    gap: 0.35rem;
    width: 100%;
    background: #ffffff;
}

.terminal-smart-money-chart-shell {
    display: grid;
    grid-template-rows: minmax(390px, auto) minmax(58px, auto) minmax(38px, auto) minmax(38px, auto);
    gap: 0.25rem;
    width: 100%;
    background: #ffffff;
}

.terminal-trader-price-chart,
.terminal-trader-volume-chart,
.terminal-smart-money-chart,
.terminal-smart-money-signals,
.terminal-smart-money-cycle,
.terminal-smart-money-smi {
    width: 100%;
}

.terminal-trader-price-chart {
    min-height: 430px;
}

.terminal-trader-volume-chart {
    min-height: 135px;
}

.terminal-smart-money-chart {
    min-height: 390px;
}

.terminal-smart-money-signals {
    min-height: 58px;
}

.terminal-smart-money-cycle,
.terminal-smart-money-smi {
    min-height: 38px;
}

.terminal-hover-readout {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.8rem;
    min-height: 1.4rem;
    margin-bottom: 0.35rem;
    color: #102033;
    font-size: 0.9rem;
    font-weight: 700;
}

.terminal-hover-readout span {
    margin-right: 0;
    white-space: nowrap;
}

.terminal-relative-strength-chart,
.terminal-rate-of-change-chart,
.terminal-market-dynamics-chart {
    width: 100%;
    margin-top: 1rem;
}

.terminal-relative-strength-chart,
.terminal-rate-of-change-chart,
.terminal-market-dynamics-chart {
    min-height: 220px;
}

.terminal-indicator-panels {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #d8e1ea;
}

.terminal-indicator-panel-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.terminal-indicator-panel-toolbar h2,
.terminal-indicator-panel-toolbar p {
    margin: 0;
}

.terminal-indicator-panel-toolbar h2 {
    font-size: 1.05rem;
}

.terminal-indicator-panel-toolbar p {
    color: #526579;
    font-size: 0.82rem;
    font-weight: 700;
}

.terminal-indicator-panel-actions {
    display: grid;
    grid-template-columns: auto minmax(14rem, 1fr) auto auto;
    gap: 0.4rem;
    align-items: center;
}

.terminal-indicator-panel-actions label {
    color: #526579;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.terminal-indicator-panel-actions select,
.terminal-indicator-panel-actions button {
    min-height: 2.25rem;
    border: 1px solid #b9c8d8;
    border-radius: 0;
    background: #ffffff;
    color: #003366;
    font: inherit;
    font-weight: 800;
}

.terminal-indicator-panel-actions button {
    padding: 0 0.8rem;
    cursor: pointer;
}

.terminal-indicator-panel-actions button:hover,
.terminal-indicator-panel-actions button:focus {
    color: #ffffff;
    background: #003366;
}

.terminal-indicator-panel-grid,
.t-panel-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.15rem;
}

.pg-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.pg-panel[style*="span 2"] {
    grid-column: 1 / -1 !important;
}

.pg-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 1.4rem;
    padding: 0 0.15rem 0.2rem;
    border-bottom: 0;
    background: transparent;
    cursor: grab;
    user-select: none;
}

.pg-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: #001f3f;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0;
    text-align: center;
    text-overflow: ellipsis;
    text-transform: none;
    white-space: nowrap;
}

.pg-drag-handle,
.pg-live,
.pg-score,
.pg-signal,
.pg-close-btn {
    flex: 0 0 auto;
}

.pg-drag-handle {
    position: relative;
    display: inline-flex;
    width: 1.35rem;
    height: 1.55rem;
    align-items: center;
    justify-content: center;
    color: #24364a;
    cursor: grab;
    opacity: 0.82;
}

.pg-drag-handle::before {
    width: 3px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
    box-shadow:
        0 5px 0 currentColor,
        0 10px 0 currentColor,
        0 15px 0 currentColor,
        7px 0 0 currentColor,
        7px 5px 0 currentColor,
        7px 10px 0 currentColor,
        7px 15px 0 currentColor;
    content: "";
}

.pg-head:active .pg-drag-handle {
    cursor: grabbing;
}

.pg-live {
    max-width: 40%;
    overflow: hidden;
    color: #102033;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.76rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pg-live,
.pg-controls {
    opacity: 0.45;
}

.pg-panel:hover .pg-drag-handle,
.pg-panel:focus-within .pg-drag-handle {
    color: #003366;
}

.pg-panel:hover .pg-drag-handle,
.pg-panel:hover .pg-live,
.pg-panel:hover .pg-controls,
.pg-panel:focus-within .pg-drag-handle,
.pg-panel:focus-within .pg-live,
.pg-panel:focus-within .pg-controls {
    opacity: 1;
}

.pg-score,
.pg-signal {
    display: none;
}

.pg-close-btn {
    width: 1.45rem;
    height: 1.45rem;
    border: 1px solid transparent;
    background: transparent;
    color: #526579;
    cursor: pointer;
}

.pg-close-btn:hover,
.pg-close-btn:focus {
    color: #b91c1c;
    border-color: #f2b8c2;
}

.pg-chart {
    background: transparent;
}

.pg-no-data {
    display: grid;
    min-height: 8rem;
    place-items: center;
    color: #526579;
    font-weight: 700;
}

.terminal-chart .uplot {
    width: 100% !important;
    max-width: 100%;
}

.terminal-trader-price-chart .uplot,
.terminal-trader-volume-chart .uplot,
.terminal-smart-money-chart .uplot,
.terminal-smart-money-signals .uplot,
.terminal-smart-money-cycle .uplot,
.terminal-smart-money-smi .uplot,
.terminal-relative-strength-chart .uplot,
.terminal-rate-of-change-chart .uplot,
.terminal-market-dynamics-chart .uplot {
    width: 100% !important;
    max-width: 100%;
}

.terminal-chart canvas,
.terminal-trader-price-chart canvas,
.terminal-trader-volume-chart canvas,
.terminal-smart-money-chart canvas,
.terminal-smart-money-signals canvas,
.terminal-smart-money-cycle canvas,
.terminal-smart-money-smi canvas,
.terminal-relative-strength-chart canvas,
.terminal-rate-of-change-chart canvas,
.terminal-market-dynamics-chart canvas {
    max-width: 100%;
}

.terminal-chart-legend {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    padding-top: 0.75rem;
    color: #102033;
    font-weight: 700;
}

.terminal-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.terminal-legend-line {
    display: inline-block;
    width: 1.4rem;
    height: 0;
    border-top: 2px solid;
}

.terminal-legend-line-close {
    border-color: #000000;
}

.terminal-legend-line-trend {
    border-color: #15803d;
}

.terminal-legend-line-fair-value {
    border-color: #808080;
    border-top-style: dashed;
}

.terminal-legend-line-activity {
    border-color: #0b63ce;
}

.terminal-legend-line-trader-trend {
    border-color: #b9973d;
}

.terminal-legend-line-trader-pivotal {
    border-color: #003366;
    border-top-style: dashed;
    border-top-width: 2px;
}

.terminal-legend-line-smart-momentum {
    border-color: #15803d;
}

.terminal-legend-line-smart-trend {
    border-color: #15803d;
}

.terminal-legend-line-smart-trend-signal {
    border-color: #111111;
    border-top-width: 3px;
}

.terminal-legend-line-smart-dtl {
    border-color: #9333ea;
    border-top-style: dashed;
}

.terminal-legend-line-smart-reversal {
    border-color: #64748b;
    border-top-style: dashed;
}

.terminal-legend-candle {
    display: inline-block;
    width: 0.65rem;
    height: 0.9rem;
    border: 1px solid;
}

.terminal-legend-candle-up {
    border-color: #0f6b2b;
    background: #ffffff;
}

.terminal-legend-candle-down {
    border-color: #111111;
    background: #111111;
}

.terminal-legend-bar {
    display: inline-block;
    width: 1.4rem;
    height: 0.65rem;
    border: 1px solid #15803d;
    background: linear-gradient(90deg, rgba(185, 28, 28, 0.24) 0 50%, rgba(21, 128, 61, 0.24) 50% 100%);
}

.terminal-legend-bar-volume {
    border-color: #6b7280;
    background: linear-gradient(90deg, rgba(17, 17, 17, 0.42) 0 50%, rgba(21, 128, 61, 0.42) 50% 100%);
}

.terminal-legend-bar-smart-price {
    border-color: #9ca3af;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.18) 0 28%, rgba(16, 185, 129, 0.2) 28% 56%, rgba(21, 128, 61, 0.58) 56% 78%, rgba(245, 158, 11, 0.58) 78% 100%);
}

.terminal-legend-marker,
.terminal-legend-triangle {
    display: inline-block;
    flex: 0 0 auto;
}

.terminal-legend-marker {
    width: 0.78rem;
    height: 0.78rem;
    clip-path: polygon(50% 0%, 61% 34%, 98% 34%, 68% 55%, 79% 91%, 50% 68%, 21% 91%, 32% 55%, 2% 34%, 39% 34%);
}

.terminal-legend-marker-smart-buy {
    background: #1d4ed8;
}

.terminal-legend-triangle {
    width: 0;
    height: 0;
    border-right: 0.42rem solid transparent;
    border-left: 0.42rem solid transparent;
}

.terminal-legend-triangle-accumulation {
    border-bottom: 0.72rem solid #15803d;
}

.terminal-legend-triangle-risk {
    border-top: 0.72rem solid #f59e0b;
}

.terminal-legend-triangle-danger {
    border-top: 0.72rem solid #dc2626;
}

.terminal-chart-summary {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #d8e1ea;
}

.terminal-chart-summary h2 {
    margin: 0 0 0.45rem;
    font-size: 1.15rem;
}

.terminal-key-points-title {
    margin: 0.7rem 0 0.45rem;
    color: #526579;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.terminal-key-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 0.5rem;
    margin: 0 0 0.9rem;
}

.terminal-key-points div {
    padding: 0.55rem 0.65rem;
    background: #f7f9fb;
    border: 1px solid #d8e1ea;
}

.terminal-key-points dt {
    color: #526579;
    font-size: 0.76rem;
    font-weight: 700;
}

.terminal-key-points dd {
    margin: 0.15rem 0 0;
    color: #102033;
    font-weight: 800;
}

.terminal-chart-summary p {
    max-width: 70rem;
    margin: 0;
    color: #24364a;
}

.terminal-md-chart-shell {
    position: relative;
    width: 100%;
    min-height: 720px;
    padding: 0.4rem 0;
    background: #ffffff;
    border: 1px solid #e4ebf2;
}

.terminal-md-chart-main,
.terminal-md-chart-secondary,
.terminal-md-chart-ribbon-alt,
.terminal-md-chart-ribbon,
.terminal-md-chart-flips {
    width: 100%;
}

.terminal-md-chart-main {
    min-height: 410px;
}

.terminal-md-chart-secondary {
    min-height: 138px;
}

.terminal-md-chart-ribbon-alt,
.terminal-md-chart-ribbon {
    min-height: 52px;
}

.terminal-md-chart-flips {
    min-height: 62px;
}

.terminal-md-chart-main .uplot,
.terminal-md-chart-secondary .uplot,
.terminal-md-chart-ribbon-alt .uplot,
.terminal-md-chart-ribbon .uplot,
.terminal-md-chart-flips .uplot {
    width: 100% !important;
    max-width: 100%;
}

.terminal-md-chart-main canvas,
.terminal-md-chart-secondary canvas,
.terminal-md-chart-ribbon-alt canvas,
.terminal-md-chart-ribbon canvas,
.terminal-md-chart-flips canvas {
    max-width: 100%;
}

.terminal-md-chart-dates {
    position: relative;
    height: 34px;
}

.terminal-md-chart-dates-axis {
    position: absolute;
    top: 10px;
    height: 1px;
    background: #cbd5e1;
}

.terminal-md-chart-dates-tick {
    position: absolute;
    top: 5px;
    width: 1px;
    height: 11px;
    background: #cbd5e1;
}

.terminal-md-chart-dates-label {
    position: absolute;
    top: 16px;
    transform: translateX(-50%);
    color: #526579;
    font-size: 0.72rem;
    white-space: nowrap;
}

.terminal-md-chart-tooltip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.9rem;
    align-items: center;
    min-height: 2.35rem;
    margin: 0.35rem 0.7rem 0.15rem;
    padding: 0.55rem 0.75rem;
    color: #102033;
    background: #f7f9fb;
    border-left: 3px solid #003366;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.25;
}

.terminal-md-chart-tooltip span {
    white-space: nowrap;
}

.terminal-md-chart-tooltip .terminal-md-readout-muted {
    color: #526579;
    font-weight: 700;
}

.terminal-md-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem 1rem;
    padding-top: 0.75rem;
    color: #24364a;
    font-size: 0.84rem;
    font-weight: 700;
}

.terminal-md-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.legend-line {
    display: inline-block;
    width: 1.3rem;
    height: 0;
    border-top: 2px solid;
}

.legend-line-zero {
    border-color: #1f77b4;
}

.legend-line-lower {
    border-color: #22c55e;
}

.legend-line-top {
    border-color: #00a99d;
    border-top-style: dotted;
}

.legend-line-bottom {
    border-color: #c026d3;
    border-top-style: dotted;
}

.legend-line-raw {
    border-color: rgba(100, 116, 139, 0.72);
    border-top-style: dashed;
}

.terminal-md-legend .legend-line-close {
    border-color: #111111;
}

.legend-line-strength {
    border-color: #2563eb;
}

.legend-pill,
.legend-dot,
.legend-triangle {
    display: inline-block;
    flex: 0 0 auto;
}

.legend-pill {
    width: 1.2rem;
    height: 0.55rem;
    border-radius: 999px;
}

.legend-pill-volume {
    background: linear-gradient(90deg, #228b22 0 50%, #b22222 50% 100%);
}

.legend-pill-action {
    background: linear-gradient(90deg, rgba(34, 139, 34, 0.7) 0 50%, rgba(178, 34, 34, 0.7) 50% 100%);
}

.legend-dot {
    width: 0.58rem;
    height: 0.58rem;
    border-radius: 50%;
    background: #16a34a;
    border: 1px solid #ffffff;
    box-shadow: 0 0 0 1px #16a34a;
}

.legend-triangle {
    width: 0;
    height: 0;
    border-left: 0.36rem solid transparent;
    border-right: 0.36rem solid transparent;
}

.legend-triangle-up {
    border-bottom: 0.62rem solid #16a34a;
}

.legend-triangle-down {
    border-top: 0.62rem solid #dc2626;
}

@media (max-width: 760px) {
    .terminal-report-description {
        grid-template-columns: 1fr;
    }

    .terminal-report-title {
        padding: 0.85rem;
    }

    .terminal-report-kpis,
    .terminal-report-chip-row,
    .terminal-report-metric-list {
        grid-template-columns: 1fr;
    }

    .terminal-report-title h1 {
        font-size: 2.25rem;
    }

    .terminal-report-line-chart,
    .terminal-report-volume-bars,
    .terminal-report-distribution {
        min-height: 11rem;
        height: 11rem;
    }

    .terminal-report-line-chart svg {
        height: 11rem;
    }

    .terminal-report-radar {
        min-height: 14rem;
    }

    .terminal-report-radar svg {
        height: 13rem;
    }

    .terminal-report-signal-timeline {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }

    .terminal-report-score-row {
        grid-template-columns: 6rem minmax(0, 1fr) 2.75rem;
    }

    .terminal-report-table {
        min-width: 0;
    }

    .terminal-report-table thead {
        display: none;
    }

    .terminal-report-table,
    .terminal-report-table tbody,
    .terminal-report-table tr,
    .terminal-report-table td {
        display: block;
        width: 100%;
    }

    .terminal-report-table tr {
        border-bottom: 1px solid #d7e3f0;
        padding: 0.55rem 0;
    }

    .terminal-report-table td {
        display: grid;
        grid-template-columns: minmax(7rem, 0.45fr) minmax(0, 1fr);
        gap: 0.65rem;
        border-bottom: 0;
        padding: 0.3rem 0.7rem;
    }

    .terminal-report-table td::before {
        content: attr(data-label);
        color: #526985;
        font-size: 0.72rem;
        font-weight: 900;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .terminal-shell {
        padding: 0.75rem 0 1.5rem;
    }

    .terminal-header {
        text-align: left;
    }

    .terminal-identity {
        display: block;
    }

    .terminal-symbol-row {
        flex-wrap: wrap;
    }

    .terminal-header h1 {
        font-size: 1.65rem;
    }

    .terminal-classification span {
        margin: 0 0.22rem;
    }

    .terminal-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
        margin-top: 0.75rem;
        text-align: left;
    }

    .terminal-stats div {
        min-width: 0;
        margin-top: 0;
        padding: 0.5rem 0.55rem;
        border: 1px solid #e4ebf2;
    }

    .terminal-expectation {
        grid-column: 1 / -1;
    }

    .terminal-chart-card {
        padding: 0.55rem;
    }

    .terminal-indicator-panel-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .terminal-indicator-panel-actions {
        grid-template-columns: 1fr;
    }

    .terminal-indicator-panel-grid,
    .t-panel-grid {
        grid-template-columns: 1fr;
    }

    .pg-panel,
    .pg-panel[style*="span 2"] {
        grid-column: span 1 !important;
    }

    .terminal-chart-tab {
        flex: 1 1 9rem;
    }

    .terminal-hover-readout {
        gap: 0.3rem 0.65rem;
        padding: 0.1rem 0;
        font-size: 0.85rem;
    }

    .terminal-chart {
        min-height: 360px;
    }

    .terminal-trader-chart-shell {
        grid-template-rows: minmax(310px, auto) minmax(105px, auto);
        gap: 0.25rem;
    }

    .terminal-trader-price-chart {
        min-height: 320px;
    }

    .terminal-trader-volume-chart {
        min-height: 110px;
    }

    .terminal-smart-money-chart-shell {
        grid-template-rows: minmax(320px, auto) minmax(52px, auto) minmax(32px, auto) minmax(32px, auto);
        gap: 0.2rem;
    }

    .terminal-smart-money-chart {
        min-height: 320px;
    }

    .terminal-smart-money-signals {
        min-height: 52px;
    }

    .terminal-smart-money-cycle,
    .terminal-smart-money-smi {
        min-height: 32px;
    }

    .terminal-relative-strength-chart,
    .terminal-rate-of-change-chart,
    .terminal-market-dynamics-chart {
        min-height: 165px;
        margin-top: 0.75rem;
    }

    .terminal-chart-legend {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.55rem 0.9rem;
        font-size: 0.88rem;
    }

    .terminal-md-chart-shell {
        min-height: 660px;
    }

    .terminal-md-chart-main {
        min-height: 350px;
    }

    .terminal-md-legend {
        justify-content: flex-start;
    }

    .terminal-key-points {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 460px) {
    .terminal-report-actions,
    .terminal-report-actions a {
        width: 100%;
    }

    .terminal-report-return-row {
        grid-template-columns: 2.6rem minmax(0, 1fr) 4.4rem;
    }

    .terminal-report-table td {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

    .terminal-stats,
    .terminal-key-points {
        grid-template-columns: 1fr;
    }

    .terminal-stats div {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .terminal-chart-card {
        padding: 0.45rem;
    }

    .terminal-chart {
        min-height: 340px;
    }

    .terminal-trader-chart-shell {
        grid-template-rows: minmax(290px, auto) minmax(96px, auto);
    }

    .terminal-trader-price-chart {
        min-height: 300px;
    }

    .terminal-trader-volume-chart {
        min-height: 100px;
    }

    .terminal-hover-readout span {
        white-space: normal;
    }
}
