.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);
    }
}
