.ewc-shell {
    width: min(100% - 2rem, 1600px);
    margin: 1rem auto 0;
}

.ewc-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    align-items: center;
    margin-bottom: .55rem;
    border: 1px solid var(--line);
    background: #f8fafc;
    padding: .55rem .75rem;
    color: #51657a;
    font-size: .82rem;
    font-weight: 850;
}

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

.ewc-breadcrumbs a:hover,
.ewc-breadcrumbs a:focus {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ewc-breadcrumbs span[aria-current="page"] {
    color: #081a2f;
}

.ewc-hero,
.ewc-ticker-hero,
.ewc-panel,
.ewc-chart-panel,
.ewc-method {
    border: 1px solid var(--line);
    background: #fff;
}

.ewc-hero,
.ewc-ticker-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: stretch;
    padding: 1.2rem 1.35rem;
}

.ewc-eyebrow {
    display: block;
    color: #51657a;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ewc-hero h1,
.ewc-ticker-hero h1 {
    margin: .2rem 0 .35rem;
    color: #081a2f;
    font-size: clamp(2.4rem, 5vw, 5.2rem);
    line-height: .92;
    letter-spacing: 0;
}

.ewc-hero p,
.ewc-ticker-hero p,
.ewc-chart-head p,
.ewc-scenario p {
    max-width: 68rem;
    margin: 0;
    color: #3b5068;
    font-weight: 720;
}

.ewc-hero-ohlc {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    width: fit-content;
    max-width: 100%;
    margin: .85rem 0 0;
    border: 1px solid #d5e1ec;
    background: #f8fafc;
}

.ewc-hero-ohlc div {
    display: grid;
    grid-template-columns: auto auto;
    gap: .35rem;
    align-items: baseline;
    padding: .45rem .65rem;
    border-left: 1px solid #d5e1ec;
}

.ewc-hero-ohlc div:first-child {
    border-left: 0;
}

.ewc-hero-ohlc dt,
.ewc-hero-ohlc dd {
    margin: 0;
}

.ewc-hero-ohlc dt {
    color: #51657a;
    font-size: .68rem;
    font-weight: 950;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ewc-hero-ohlc dd {
    color: #081a2f;
    font-size: .86rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.ewc-hero-stats,
.ewc-score {
    display: grid;
    min-width: min(26rem, 100%);
    border-left: 1px solid var(--line);
}

.ewc-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ewc-hero-stats div,
.ewc-score {
    padding: .85rem 1rem;
    background: #f6f8fa;
}

.ewc-hero-stats span,
.ewc-score span,
.ewc-score small,
.ewc-kpis span {
    display: block;
    color: #53677d;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ewc-hero-stats strong,
.ewc-score strong,
.ewc-kpis strong {
    display: block;
    margin-top: .2rem;
    color: #081a2f;
    font-size: 1.35rem;
}

.ewc-score {
    align-content: center;
    border-left: 4px solid #7896b7;
}

.ewc-score strong {
    font-size: 3rem;
    line-height: 1;
}

.ewc-method {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 1rem;
}

.ewc-method div {
    padding: 1rem;
    border-left: 1px solid var(--line);
}

.ewc-method div:first-child {
    border-left: 0;
}

.ewc-method strong,
.ewc-section-head h2,
.ewc-chart-head h2,
.ewc-scenario h2 {
    color: #081a2f;
}

.ewc-method span {
    display: block;
    margin-top: .35rem;
    color: #40566e;
    font-weight: 700;
}

.ewc-panel,
.ewc-chart-panel {
    margin-top: 1rem;
}

.ewc-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--line);
}

.ewc-guide-grid > div {
    padding: 1rem;
    border-left: 1px solid var(--line);
}

.ewc-guide-grid > div:first-child {
    border-left: 0;
}

.ewc-guide h3 {
    margin: 0 0 .35rem;
    color: #081a2f;
    font-size: .95rem;
}

.ewc-guide p,
.ewc-section-head p {
    margin: 0;
    color: #40566e;
    font-weight: 700;
}

.ewc-guide-feature {
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.ewc-guide-feature .ewc-section-head {
    border-top: 0;
    background: #f7fafc;
    padding: 1.15rem 1.25rem;
}

.ewc-guide-list {
    display: grid;
    gap: .85rem;
    padding: 1.15rem 1.25rem 1.25rem;
}

.ewc-guide-list > div {
    position: relative;
    border: 1px solid #dbe6f1;
    border-left: 4px solid #7fa8d1;
    background: #fff;
    padding: .9rem 1rem .95rem 1.05rem;
    box-shadow: 0 8px 22px rgba(8, 26, 47, .04);
}

.ewc-guide-list strong {
    display: block;
    margin-bottom: .35rem;
    color: #081a2f;
    font-size: .94rem;
}

.ewc-guide-list p {
    max-width: 62rem;
    color: #304961;
    font-size: .94rem;
    line-height: 1.55;
}

.ewc-form {
    display: grid;
    grid-template-columns: 1fr 1.35fr 1.1fr 1.1fr .7fr minmax(14rem, 1.35fr) auto auto auto;
    gap: .65rem;
    align-items: end;
    padding: 1rem;
}

.ewc-form label {
    display: grid;
    gap: .35rem;
}

.ewc-form span {
    color: #4f6378;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ewc-form input,
.ewc-form select {
    width: 100%;
    min-height: 2.75rem;
    border: 1px solid #c9d7e6;
    background: #fff;
    color: #081a2f;
    padding: .55rem .65rem;
    font-weight: 820;
}

.ewc-button {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    border: 1px solid #b8cbe0;
    background: #fff;
    color: #003366;
    padding: .65rem .85rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.ewc-button-primary {
    border-color: #003366;
    background: #003366;
    color: #fff;
}

.ewc-table-wrap {
    overflow-x: auto;
}

.ewc-table {
    width: 100%;
    min-width: 1050px;
    border-collapse: collapse;
}

.ewc-table th,
.ewc-table td {
    padding: .75rem .85rem;
    border-top: 1px solid #dbe4ee;
    text-align: left;
    vertical-align: top;
}

.ewc-table th {
    color: #50657a;
    background: #f8fafc;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ewc-table td {
    color: #081a2f;
    font-weight: 760;
}

.ewc-table small {
    display: block;
    margin-top: .18rem;
    color: #53677d;
    font-weight: 680;
}

.ewc-symbol,
.ewc-table a {
    color: #003366;
    font-weight: 930;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ewc-num {
    text-align: right !important;
    font-variant-numeric: tabular-nums;
}

.ewc-good,
.ewc-direction-bullish {
    color: #08783f !important;
}

.ewc-bad,
.ewc-direction-bearish,
.ewc-direction-risk {
    color: #b42318 !important;
}

.ewc-direction-neutral {
    color: #6a4c00 !important;
}

.ewc-pagination,
.ewc-section-head,
.ewc-chart-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .75rem;
    align-items: center;
    padding: .95rem 1rem;
    border-top: 1px solid var(--line);
}

.ewc-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(22rem, .9fr);
    gap: 1rem;
}

.ewc-scenario {
    padding: 1rem;
}

.ewc-scenario-full {
    padding: 0;
}

.ewc-scenario-body {
    padding: 1rem;
}

.ewc-scenario-score {
    display: inline-flex;
    min-height: 2.2rem;
    align-items: center;
    border: 1px solid #c9d7e6;
    background: #f8fafc;
    padding: .45rem .7rem;
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ewc-scenario h2,
.ewc-chart-head h2,
.ewc-section-head h2 {
    margin: 0 0 .4rem;
    font-size: 1.15rem;
}

.ewc-scenario ul {
    margin: .8rem 0 0;
    padding-left: 1.1rem;
    color: #2d435b;
    font-weight: 720;
}

.ewc-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ewc-kpis div {
    padding: 1rem;
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
}

.ewc-kpis div:nth-child(odd) {
    border-left: 0;
}

.ewc-kpis div:nth-child(-n+2) {
    border-top: 0;
}

.ewc-chart-head {
    border-top: 0;
    border-bottom: 1px solid var(--line);
}

.ewc-chart {
    padding: .8rem 1rem 1rem;
}

.ewc-chart-actions {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.ewc-chart-panel-inner {
    border-bottom: 1px solid #dce6f0;
}

.ewc-mini-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem 0 .25rem;
}

.ewc-mini-head h3 {
    margin: 0;
    color: #081a2f;
    font-size: .9rem;
}

.ewc-help-button,
.ewc-help-close {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border: 1px solid #b8cbe0;
    background: #fff;
    color: #003366;
    font-weight: 950;
    cursor: pointer;
}

.ewc-help-button:hover,
.ewc-help-button:focus,
.ewc-help-close:hover,
.ewc-help-close:focus {
    border-color: #003366;
    background: #f1f6fb;
}

.ewc-help-inline {
    width: 1.65rem;
    height: 1.65rem;
    margin-left: .35rem;
    vertical-align: middle;
    font-size: .8rem;
}

.ewc-svg-panel {
    width: 100%;
    display: block;
    margin-top: 0;
    background: #fff;
}

.ewc-panel-title {
    fill: #081a2f;
    font-size: 12px;
    font-weight: 900;
}

.ewc-axis,
.ewc-grid {
    stroke: #d4e0ec;
    stroke-width: 1;
}

.ewc-zero {
    stroke: #8c98a5;
    stroke-width: 1;
    stroke-dasharray: 4 4;
}

.ewc-line-close {
    fill: none;
    stroke: #111827;
    stroke-width: 2;
}

.ewc-line-trend {
    fill: none;
    stroke: #139447;
    stroke-width: 1.5;
}

.ewc-line-fair {
    fill: none;
    stroke: #7a7f87;
    stroke-width: 1.2;
    stroke-dasharray: 6 5;
}

.ewc-line-cycle {
    fill: none;
    stroke: #006fd6;
    stroke-width: 1.8;
}

.ewc-line-activity {
    fill: none;
    stroke: #0abf63;
    stroke-width: 1.8;
}

.ewc-line-hurst {
    fill: none;
    stroke: #5b3fd4;
    stroke-width: 2;
}

.ewc-line-hurst-fast {
    fill: none;
    stroke: #9d7af2;
    stroke-width: 1.15;
    opacity: .75;
}

.ewc-line-hurst-mid {
    fill: none;
    stroke: #5b3fd4;
    stroke-width: 1.35;
    opacity: .78;
}

.ewc-line-hurst-slow {
    fill: none;
    stroke: #273184;
    stroke-width: 1.45;
    opacity: .78;
}

.ewc-line-md {
    fill: none;
    stroke: #bd3f32;
    stroke-width: 1.6;
}

.ewc-line-roc {
    fill: none;
    stroke: #25364a;
    stroke-width: 1.8;
}

.ewc-fill-positive {
    fill: rgba(32, 164, 91, .18);
}

.ewc-fill-negative {
    fill: rgba(204, 65, 55, .18);
}

.ewc-pivot {
    fill: #fff;
    stroke: #003366;
    stroke-width: 2;
}

.ewc-wave-label {
    fill: #003366;
    font-size: 12px;
    font-weight: 950;
}

.ewc-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    justify-content: center;
    padding: .75rem 1rem 1rem;
    color: #081a2f;
    font-weight: 850;
}

.ewc-legend span {
    display: inline-flex;
    gap: .35rem;
    align-items: center;
}

.ewc-legend i {
    width: 1.4rem;
    height: 0;
    border-top: 2px solid currentColor;
}

.ewc-help-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(8, 26, 47, .45);
}

.ewc-help-modal[hidden] {
    display: none;
}

.ewc-help-panel {
    width: min(100%, 42rem);
    border: 1px solid #b8cbe0;
    background: #fff;
    box-shadow: 0 22px 70px rgba(8, 26, 47, .24);
}

.ewc-help-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--line);
}

.ewc-help-head h2 {
    margin: 0;
    color: #081a2f;
    font-size: 1.15rem;
}

.ewc-help-body {
    padding: 1rem;
    color: #2d435b;
    font-weight: 720;
    line-height: 1.55;
}

.ewc-help-body p {
    margin: 0;
}

.ewc-help-body p + ul,
.ewc-help-body ul + p {
    margin-top: .85rem;
}

.ewc-help-body ul {
    margin-bottom: 0;
    padding-left: 1.15rem;
}

.ewc-help-body li + li {
    margin-top: .45rem;
}

@media (max-width: 1180px) {
    .ewc-hero,
    .ewc-ticker-hero,
    .ewc-detail-grid,
    .ewc-method,
    .ewc-guide-grid {
        grid-template-columns: 1fr;
    }

    .ewc-hero-stats,
    .ewc-score {
        border-left: 0;
        min-width: 0;
    }

    .ewc-method div {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .ewc-method div:first-child {
        border-top: 0;
    }

    .ewc-guide-grid > div {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .ewc-guide-grid > div:first-child {
        border-top: 0;
    }

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

@media (max-width: 720px) {
    .ewc-shell {
        width: min(100% - 1rem, 1600px);
    }

    .ewc-form,
    .ewc-hero-stats,
    .ewc-kpis {
        grid-template-columns: 1fr;
    }

    .ewc-kpis div,
    .ewc-kpis div:nth-child(odd) {
        border-left: 0;
        border-top: 1px solid var(--line);
    }
}

/* Elliott Wave detail report */
.ewc-detail {
    --ewc-ink: #0b1f35;
    --ewc-muted: #52677d;
    --ewc-border: #d5e0ea;
    --ewc-soft: #f4f7fa;
    --ewc-green: #07866a;
    --ewc-green-soft: #eaf5f1;
    --ewc-amber: #a95b0b;
    --ewc-amber-soft: #fbf3e8;
    --ewc-red: #ad392d;
    --ewc-red-soft: #faefed;
    color: var(--ewc-ink);
}

.ewc-report-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(19rem, 27rem);
    border: 1px solid var(--ewc-border);
    background:
        linear-gradient(115deg, rgba(0, 75, 122, .045), transparent 48%),
        #fff;
}

.ewc-report-identity {
    padding: clamp(1.2rem, 2.4vw, 2rem);
}

.ewc-report-identity h1 {
    max-width: 64rem;
    margin: .35rem 0 .3rem;
    color: var(--ewc-ink);
    font-size: clamp(2.25rem, 4.8vw, 4.7rem);
    line-height: .96;
    letter-spacing: -.025em;
}

.ewc-company-name {
    margin: 0;
    color: #38516a;
    font-size: 1rem;
    font-weight: 760;
}

.ewc-report-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem 1.15rem;
    margin-top: 1rem;
    color: var(--ewc-muted);
    font-size: .82rem;
    font-weight: 750;
}

.ewc-report-meta strong {
    color: var(--ewc-ink);
    font-variant-numeric: tabular-nums;
}

.ewc-report-status {
    display: grid;
    align-content: center;
    gap: .65rem;
    border-left: 1px solid var(--ewc-border);
    border-top: 4px solid #7896b7;
    background: #f6f8fa;
    padding: 1.35rem;
}

.ewc-report-status.ewc-direction-bullish {
    border-top-color: var(--ewc-green);
    background: linear-gradient(180deg, #f2f9f6, #f8fbfa);
}

.ewc-report-status.ewc-direction-risk,
.ewc-report-status.ewc-direction-bearish {
    border-top-color: var(--ewc-red);
    background: linear-gradient(180deg, #fcf3f1, #fcf9f8);
}

.ewc-report-status > strong {
    color: var(--ewc-ink) !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.08;
}

.ewc-status-scores {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--ewc-border);
    background: rgba(255, 255, 255, .72);
}

.ewc-status-scores span {
    padding: .7rem;
    color: var(--ewc-muted);
    font-size: .68rem;
    font-weight: 820;
    line-height: 1.3;
    text-transform: uppercase;
}

.ewc-status-scores span + span {
    border-left: 1px solid var(--ewc-border);
}

.ewc-status-scores b {
    display: block;
    margin-bottom: .15rem;
    color: var(--ewc-ink);
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
}

.ewc-report-status small {
    color: var(--ewc-muted);
    font-size: .73rem;
    font-weight: 700;
    line-height: 1.45;
}

.ewc-report-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    overflow-x: auto;
    margin-top: .65rem;
    border: 1px solid var(--ewc-border);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 6px 20px rgba(11, 31, 53, .06);
    scrollbar-width: thin;
}

.ewc-report-nav a {
    flex: 0 0 auto;
    border-right: 1px solid var(--ewc-border);
    color: #23415e;
    padding: .68rem .82rem;
    font-size: .76rem;
    font-weight: 860;
    text-decoration: none;
}

.ewc-report-nav a:hover,
.ewc-report-nav a:focus {
    background: #edf4f8;
    color: #003f69;
}

.ewc-report-nav .ewc-report-nav-terminal {
    margin-left: auto;
    border-right: 0;
    border-left: 1px solid var(--ewc-border);
    background: #003f69;
    color: #fff;
}

.ewc-report-section {
    scroll-margin-top: 4rem;
    margin-top: 1rem;
    border: 1px solid var(--ewc-border);
    background: #fff;
}

.ewc-section-intro {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.1rem 1.2rem;
    border-bottom: 1px solid var(--ewc-border);
    background: linear-gradient(90deg, #f8fafc, #fff 58%);
}

.ewc-section-intro h2 {
    margin: .15rem 0 .2rem;
    color: var(--ewc-ink);
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    line-height: 1.05;
}

.ewc-section-intro p {
    max-width: 68rem;
    margin: 0;
    color: var(--ewc-muted);
    font-size: .9rem;
    font-weight: 680;
    line-height: 1.5;
}

.ewc-as-of,
.ewc-section-score {
    flex: 0 0 auto;
    border: 1px solid #c9d7e5;
    background: #fff;
    color: #2f4a65;
    padding: .45rem .6rem;
    font-size: .72rem;
    font-weight: 850;
}

.ewc-executive-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(16rem, .8fr));
}

.ewc-executive-grid > article {
    min-width: 0;
    padding: 1.15rem;
    border-left: 1px solid var(--ewc-border);
}

.ewc-executive-grid > article:first-child {
    border-left: 0;
}

.ewc-executive-grid h3 {
    margin: 0 0 .55rem;
    color: var(--ewc-ink);
    font-size: 1.05rem;
}

.ewc-executive-grid p,
.ewc-decision-card li {
    color: #344f68;
    font-size: .88rem;
    font-weight: 690;
    line-height: 1.55;
}

.ewc-executive-read > p {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    color: #162f48;
    font-size: 1.05rem;
    font-weight: 600;
}

.ewc-balance {
    margin-top: 1rem;
}

.ewc-balance-bar {
    display: flex;
    height: .48rem;
    overflow: hidden;
    background: #e6edf3;
}

.ewc-balance-bar span {
    display: block;
    width: var(--ewc-share);
}

.ewc-balance-positive { background: var(--ewc-green); }
.ewc-balance-neutral { background: #8a9aab; }
.ewc-balance-negative { background: var(--ewc-red); }

.ewc-balance p {
    margin: .45rem 0 0;
    font-size: .75rem;
}

.ewc-decision-card {
    border-top: 3px solid #7896b7;
}

.ewc-decision-positive { border-top-color: var(--ewc-green); }
.ewc-decision-risk { border-top-color: var(--ewc-red); }

.ewc-decision-card ul {
    margin: .55rem 0 0;
    padding-left: 1.1rem;
}

.ewc-decision-card li + li {
    margin-top: .35rem;
}

.ewc-decision-level {
    display: block;
    margin: .25rem 0 .45rem;
    color: var(--ewc-red);
    font-size: 1.7rem;
    font-variant-numeric: tabular-nums;
}

.ewc-return-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    border-top: 1px solid var(--ewc-border);
    background: var(--ewc-soft);
}

.ewc-return-strip > div {
    padding: .8rem 1rem;
    border-left: 1px solid var(--ewc-border);
}

.ewc-return-strip > div:first-child {
    border-left: 0;
}

.ewc-return-strip span,
.ewc-level-grid span,
.ewc-cycle-summary span,
.ewc-risk-stats span,
.ewc-range-card span {
    display: block;
    color: var(--ewc-muted);
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ewc-return-strip strong {
    display: block;
    margin-top: .2rem;
    color: var(--ewc-ink);
    font-size: 1.2rem;
    font-variant-numeric: tabular-nums;
}

.ewc-chart-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--ewc-border);
    background: #fff;
}

.ewc-chart-card-feature {
    margin: 1rem;
    border-color: #bdccda;
    box-shadow: 0 12px 30px rgba(11, 31, 53, .06);
}

.ewc-chart-card-head {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    align-items: flex-start;
    padding: .8rem .9rem;
    border-bottom: 1px solid var(--ewc-border);
    background: #fbfcfd;
}

.ewc-chart-card-head h3 {
    margin: 0 0 .15rem;
    color: var(--ewc-ink);
    font-size: .95rem;
}

.ewc-chart-card-head p {
    margin: 0;
    color: var(--ewc-muted);
    font-size: .76rem;
    font-weight: 680;
    line-height: 1.35;
}

.ewc-chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .4rem .8rem;
    color: #3b536b;
    font-size: .69rem;
    font-weight: 800;
}

.ewc-chart-legend span {
    display: inline-flex;
    gap: .3rem;
    align-items: center;
}

.ewc-chart-legend i {
    width: 1.1rem;
    border-top: 2px solid;
}

.ewc-key-close { color: #102033; }
.ewc-key-trend { color: #07866a; }
.ewc-key-fair { color: #66798c; border-top-style: dashed !important; }

.ewc-uplot {
    position: relative;
    width: 100%;
    min-height: 210px;
    padding: .35rem .35rem 0;
}

.ewc-uplot-price {
    min-height: 440px;
}

.ewc-uplot .uplot {
    font-family: "IBM Plex Sans", sans-serif;
}

.ewc-uplot .u-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem .8rem;
    min-height: 1.85rem;
    padding: .3rem .5rem;
    border-bottom: 1px solid #edf1f4;
    color: #344f68;
    font-size: .7rem;
    font-weight: 760;
}

.ewc-uplot .u-legend .u-series {
    display: inline-flex;
    gap: .25rem;
}

.ewc-uplot .u-legend .u-series:first-child {
    display: none;
}

.ewc-chart-empty {
    display: grid;
    min-height: 210px;
    place-items: center;
    color: var(--ewc-muted);
    padding: 1rem;
    text-align: center;
    font-weight: 750;
}

.ewc-level-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 0 1rem 1rem;
    border: 1px solid var(--ewc-border);
    background: var(--ewc-soft);
}

.ewc-level-grid article {
    min-width: 0;
    padding: .8rem;
    border-left: 1px solid var(--ewc-border);
}

.ewc-level-grid article:first-child { border-left: 0; }

.ewc-level-grid strong,
.ewc-cycle-summary strong,
.ewc-risk-stats strong {
    display: block;
    margin-top: .25rem;
    color: var(--ewc-ink);
    font-size: 1.2rem;
    font-variant-numeric: tabular-nums;
}

.ewc-level-grid p,
.ewc-cycle-summary p,
.ewc-risk-stats p {
    margin: .2rem 0 0;
    color: var(--ewc-muted);
    font-size: .7rem;
    font-weight: 690;
    line-height: 1.35;
}

.ewc-cycle-summary,
.ewc-risk-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid var(--ewc-border);
}

.ewc-cycle-summary article,
.ewc-risk-stats article {
    padding: .85rem 1rem;
    border-left: 1px solid var(--ewc-border);
}

.ewc-cycle-summary article:first-child,
.ewc-risk-stats article:first-child { border-left: 0; }

.ewc-chart-grid {
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.ewc-chart-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ewc-chart-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.ewc-cycle-matrix {
    margin: 0 1rem 1rem;
    border: 1px solid var(--ewc-border);
}

.ewc-cycle-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    border-left: 4px solid #8a9aac;
}

.ewc-cycle-row + .ewc-cycle-row { border-top: 1px solid var(--ewc-border); }
.ewc-cycle-rising,
.ewc-cycle-troughing { border-left-color: var(--ewc-green); }
.ewc-cycle-falling,
.ewc-cycle-cresting { border-left-color: var(--ewc-red); }

.ewc-cycle-row > div {
    min-width: 0;
    padding: .65rem .75rem;
    border-left: 1px solid var(--ewc-border);
}

.ewc-cycle-row > div:first-child { border-left: 0; }

.ewc-cycle-row span {
    display: block;
    color: var(--ewc-muted);
    font-size: .62rem;
    font-weight: 880;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.ewc-cycle-row strong {
    display: block;
    margin-top: .12rem;
    color: var(--ewc-ink);
    font-size: .82rem;
    font-variant-numeric: tabular-nums;
}

.ewc-confirmation-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, .3fr);
    border-bottom: 1px solid var(--ewc-border);
}

.ewc-confirmation-table {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ewc-confirmation-row {
    display: grid;
    grid-template-columns: .6rem minmax(0, 1fr) auto;
    gap: .65rem;
    align-items: center;
    padding: .75rem .9rem;
    border-right: 1px solid var(--ewc-border);
    border-top: 1px solid var(--ewc-border);
}

.ewc-confirmation-row:nth-child(-n+2) { border-top: 0; }

.ewc-state-dot {
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: #8a9aac;
}

.ewc-state-positive .ewc-state-dot { background: var(--ewc-green); }
.ewc-state-negative .ewc-state-dot { background: var(--ewc-red); }

.ewc-confirmation-row strong {
    display: block;
    color: var(--ewc-ink);
    font-size: .78rem;
}

.ewc-confirmation-row p {
    margin: .1rem 0 0;
    color: var(--ewc-muted);
    font-size: .68rem;
    font-weight: 650;
    line-height: 1.35;
}

.ewc-confirmation-row > b {
    color: #2b475f;
    font-size: .73rem;
    font-variant-numeric: tabular-nums;
}

.ewc-confirmation-read {
    display: grid;
    align-content: center;
    gap: .45rem;
    padding: 1.1rem;
    background: var(--ewc-soft);
}

.ewc-confirmation-read > strong {
    color: var(--ewc-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.75rem;
}

.ewc-confirmation-read p,
.ewc-confirmation-read small {
    margin: 0;
    color: var(--ewc-muted);
    font-size: .76rem;
    font-weight: 690;
    line-height: 1.45;
}

.ewc-dynamics-card {
    margin: 0 1rem 1rem;
}

.ewc-range-card {
    display: grid;
    grid-template-columns: auto minmax(8rem, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: .9rem 1rem;
    border-bottom: 1px solid var(--ewc-border);
    background: #fbfcfd;
}

.ewc-range-card > div:last-child { text-align: right; }

.ewc-range-card strong {
    display: block;
    margin-top: .15rem;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
}

.ewc-range-track {
    position: relative;
    height: .65rem;
    background: linear-gradient(90deg, #d98757, #ebd9a4 46%, #8bc8ba);
}

.ewc-range-track span {
    position: absolute;
    top: 50%;
    left: clamp(0%, var(--ewc-position), 100%);
    width: .8rem;
    height: 1.25rem;
    border: 2px solid #fff;
    background: #003f69;
    box-shadow: 0 0 0 1px #003f69;
    transform: translate(-50%, -50%);
}

.ewc-history-layout {
    display: grid;
    grid-template-columns: minmax(20rem, .75fr) minmax(0, 1.25fr);
    gap: 1rem;
    padding: 1rem;
}

.ewc-history-bars {
    display: grid;
    gap: 1rem;
    padding: 1.1rem;
}

.ewc-history-bars > div {
    display: grid;
    grid-template-columns: 2.5rem minmax(8rem, 1fr) 4rem;
    gap: .65rem;
    align-items: center;
    color: var(--ewc-muted);
    font-size: .76rem;
    font-weight: 820;
}

.ewc-history-bars strong {
    color: var(--ewc-ink);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.ewc-history-track {
    position: relative;
    height: .75rem;
    background: linear-gradient(90deg, #edf1f4 0 49.7%, #8fa0b0 49.7% 50.3%, #edf1f4 50.3% 100%);
}

.ewc-history-track i {
    position: absolute;
    top: 0;
    width: calc(var(--ewc-return-width) / 2);
    max-width: 50%;
    height: 100%;
}

.ewc-history-positive { left: 50%; background: var(--ewc-green); }
.ewc-history-negative { right: 50%; background: var(--ewc-red); }

.ewc-history-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--ewc-border);
}

.ewc-history-table {
    width: 100%;
    min-width: 37rem;
    border-collapse: collapse;
}

.ewc-history-table th,
.ewc-history-table td {
    padding: .75rem;
    border-top: 1px solid var(--ewc-border);
    text-align: right;
    font-size: .78rem;
    font-variant-numeric: tabular-nums;
}

.ewc-history-table th {
    border-top: 0;
    background: var(--ewc-soft);
    color: var(--ewc-muted);
    font-size: .64rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ewc-history-table th:first-child,
.ewc-history-table td:first-child { text-align: left; }

.ewc-history-table td { color: var(--ewc-ink); font-weight: 750; }

.ewc-method-note {
    margin: 0;
    padding: 0 1rem 1rem;
    color: var(--ewc-muted);
    font-size: .72rem;
    font-weight: 680;
}

.ewc-audit-grid {
    display: grid;
    grid-template-columns: minmax(18rem, .7fr) minmax(0, 1.3fr);
    gap: 1rem;
    padding: 0 1rem 1rem;
}

.ewc-evidence-card,
.ewc-method-card {
    border: 1px solid var(--ewc-border);
    padding: 1rem;
}

.ewc-evidence-card > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
}

.ewc-evidence-card > div > strong {
    color: var(--ewc-ink);
    font-size: 1.7rem;
    font-variant-numeric: tabular-nums;
}

.ewc-evidence-card > p,
.ewc-method-card li,
.ewc-empty p {
    color: var(--ewc-muted);
    font-size: .78rem;
    font-weight: 680;
    line-height: 1.48;
}

.ewc-evidence-card dl {
    display: grid;
    gap: .5rem;
    margin: .8rem 0 0;
}

.ewc-evidence-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: .45rem;
    border-top: 1px solid var(--ewc-border);
    color: #304b65;
    font-size: .73rem;
    font-weight: 780;
}

.ewc-evidence-card dt,
.ewc-evidence-card dd { margin: 0; }

.ewc-method-card h3 {
    margin: .25rem 0 .5rem;
    color: var(--ewc-ink);
    font-size: 1rem;
}

.ewc-method-card ul {
    margin: 0;
    padding-left: 1.1rem;
}

.ewc-method-card li + li { margin-top: .35rem; }

.ewc-empty-feature {
    margin: 1rem;
    border: 1px dashed #b8c8d7;
    background: var(--ewc-soft);
    padding: 1.2rem;
    text-align: center;
}

.ewc-empty-feature strong { color: var(--ewc-ink); }
.ewc-empty-feature p { margin: .3rem 0 0; }

.ewc-pivot-section { margin-bottom: 1rem; }
.ewc-pivot-table { min-width: 48rem; }

.ewc-pivot-status {
    display: inline-flex;
    border: 1px solid #c6d4e1;
    padding: .18rem .38rem;
    color: #3c566f;
    font-size: .64rem;
    font-weight: 860;
    text-transform: uppercase;
}

.ewc-pivot-confirmed { border-color: #9bcdbd; background: var(--ewc-green-soft); color: #086b57; }
.ewc-pivot-forming { border-color: #e2c492; background: var(--ewc-amber-soft); color: #8c4c08; }

body.ewc-modal-open { overflow: hidden; }

@media (max-width: 1180px) {
    .ewc-executive-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ewc-executive-read {
        grid-column: 1 / -1;
        border-bottom: 1px solid var(--ewc-border);
    }

    .ewc-executive-grid > article:nth-child(2) { border-left: 0; }
    .ewc-return-strip,
    .ewc-level-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ewc-return-strip > div:nth-child(4),
    .ewc-level-grid article:nth-child(4) { border-left: 0; }
    .ewc-return-strip > div:nth-child(n+4),
    .ewc-level-grid article:nth-child(n+4) { border-top: 1px solid var(--ewc-border); }
    .ewc-chart-grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ewc-chart-grid-three > article:last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    .ewc-report-hero,
    .ewc-chart-grid-two,
    .ewc-history-layout,
    .ewc-audit-grid,
    .ewc-confirmation-layout {
        grid-template-columns: 1fr;
    }

    .ewc-report-status {
        border-top-width: 1px;
        border-left: 4px solid #7896b7;
    }

    .ewc-report-status.ewc-direction-bullish { border-left-color: var(--ewc-green); }
    .ewc-report-status.ewc-direction-risk,
    .ewc-report-status.ewc-direction-bearish { border-left-color: var(--ewc-red); }
    .ewc-cycle-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ewc-cycle-row > div:nth-child(4) { border-left: 0; border-top: 1px solid var(--ewc-border); }
    .ewc-cycle-row > div:nth-child(n+4) { border-top: 1px solid var(--ewc-border); }
    .ewc-confirmation-read { border-top: 1px solid var(--ewc-border); }
}

@media (max-width: 680px) {
    .ewc-detail .ewc-breadcrumbs { margin-bottom: .4rem; }
    .ewc-report-identity,
    .ewc-report-status { padding: 1rem; }
    .ewc-report-identity h1 { font-size: clamp(2rem, 11vw, 3.1rem); }
    .ewc-status-scores,
    .ewc-executive-grid,
    .ewc-return-strip,
    .ewc-level-grid,
    .ewc-cycle-summary,
    .ewc-risk-stats,
    .ewc-chart-grid-three,
    .ewc-confirmation-table {
        grid-template-columns: 1fr;
    }

    .ewc-executive-grid > article,
    .ewc-executive-grid > article:nth-child(2),
    .ewc-return-strip > div,
    .ewc-return-strip > div:nth-child(4),
    .ewc-level-grid article,
    .ewc-level-grid article:nth-child(4),
    .ewc-cycle-summary article,
    .ewc-risk-stats article {
        border-left: 0;
        border-top: 1px solid var(--ewc-border);
    }

    .ewc-executive-grid > article:first-child,
    .ewc-return-strip > div:first-child,
    .ewc-level-grid article:first-child,
    .ewc-cycle-summary article:first-child,
    .ewc-risk-stats article:first-child { border-top: 0; }
    .ewc-chart-grid-three > article:last-child { grid-column: auto; }
    .ewc-section-intro { display: grid; }
    .ewc-as-of,
    .ewc-section-score { width: fit-content; }
    .ewc-chart-card-feature,
    .ewc-level-grid,
    .ewc-cycle-matrix,
    .ewc-dynamics-card { margin-right: .55rem; margin-left: .55rem; }
    .ewc-chart-grid { gap: .65rem; padding: .55rem; }
    .ewc-cycle-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ewc-cycle-row > div:nth-child(odd) { border-left: 0; }
    .ewc-cycle-row > div:nth-child(n+3) { border-top: 1px solid var(--ewc-border); }
    .ewc-confirmation-row,
    .ewc-confirmation-row:nth-child(-n+2) { border-top: 1px solid var(--ewc-border); border-right: 0; }
    .ewc-confirmation-row:first-child { border-top: 0; }
    .ewc-range-card { grid-template-columns: 1fr 1fr; }
    .ewc-range-track { grid-column: 1 / -1; grid-row: 2; }
    .ewc-range-card > div:last-child { grid-column: 2; grid-row: 1; }
    .ewc-uplot-price { min-height: 390px; }
    .ewc-chart-legend { display: none; }
    .ewc-report-nav .ewc-report-nav-terminal { margin-left: 0; }
}
