.cwc-analytics-shell {
    --cwc-ink: #0f172a;
    --cwc-muted: #64748b;
    --cwc-line: rgba(148, 163, 184, 0.28);
    --cwc-surface: #ffffff;
    --cwc-surface-alt: #f8fbff;
    --cwc-accent: #2155ff;
    --cwc-accent-soft: #dbe7ff;
    --cwc-mint: #38d39f;
    --cwc-alert: #ff9f6e;
    color: var(--cwc-ink);
    font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
    margin: 32px 0;
}

.cwc-card {
    background:
        radial-gradient(circle at top right, rgba(56, 211, 159, 0.1), transparent 35%),
        linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
    border: 1px solid var(--cwc-line);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    margin: 0 0 24px;
    overflow: hidden;
    position: relative;
}

.cwc-card::before {
    background: linear-gradient(90deg, #2155ff 0%, #2d7ff9 55%, #38d39f 100%);
    content: "";
    display: block;
    height: 5px;
    width: 100%;
}

.cwc-card__inner,
.cwc-board {
    padding: 28px;
}

.cwc-board__grid {
    align-items: start;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
}

.cwc-eyebrow,
.cwc-section-header__label,
.cwc-bars__caption,
.cwc-stat-strip__label,
.cwc-meter-card__label,
.cwc-best-card__persona {
    color: var(--cwc-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.2;
    text-transform: uppercase;
}

.cwc-title {
    color: #071226;
    font-family: "Avenir Next Condensed", "Avenir Next", "Segoe UI", sans-serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.98;
    margin: 10px 0 10px;
}

.cwc-subtitle {
    color: #415167;
    font-size: 0.98rem;
    line-height: 1.6;
    margin: 0 0 18px;
    max-width: 780px;
}

.cwc-hero-copy,
.cwc-profile-block__note {
    color: #516173;
    font-size: 0.96rem;
    line-height: 1.65;
    margin: 0;
    max-width: 640px;
}

.cwc-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 24px;
}

.cwc-chip-row--compact {
    gap: 8px;
    margin-bottom: 16px;
}

.cwc-chip {
    background: rgba(33, 85, 255, 0.08);
    border: 1px solid rgba(33, 85, 255, 0.14);
    border-radius: 999px;
    color: #1635a5;
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 700;
    gap: 6px;
    padding: 8px 12px;
}

.cwc-chip--soft {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.08);
    color: #475569;
}

.cwc-section-header {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    justify-content: space-between;
    margin: 0 0 16px;
}

.cwc-section-header--tight {
    margin-top: 14px;
}

.cwc-section-header__sub,
.cwc-summary-copy__price-note,
.cwc-meter-card__note,
.cwc-methodology,
.cwc-methodology__meta,
.cwc-bar-row__meta,
.cwc-entity-card__note,
.cwc-matchup-card__meta,
.cwc-portfolio-card__meta {
    color: var(--cwc-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.cwc-metric-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.cwc-metric-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.96));
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 128px;
    padding: 18px;
}

.cwc-metric-card__label {
    color: var(--cwc-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cwc-metric-card__value {
    color: #091222;
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
}

.cwc-metric-card__note {
    color: #475569;
    font-size: 0.82rem;
}

.cwc-profile-block {
    display: grid;
    gap: 22px;
}

.cwc-profile-block__summary {
    align-items: center;
    background: linear-gradient(180deg, #fcfdff 0%, #f7fbff 100%);
    border: 1px solid rgba(33, 85, 255, 0.1);
    border-radius: 22px;
    display: grid;
    gap: 18px;
    grid-template-columns: auto 1fr;
    padding: 18px;
}

.cwc-profile-block__title {
    color: #071226;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 6px;
}

.cwc-summary-panel {
    align-items: center;
    background: linear-gradient(180deg, #fcfdff 0%, #f5f9ff 100%);
    border: 1px solid rgba(33, 85, 255, 0.12);
    border-radius: 24px;
    display: grid;
    gap: 22px;
    grid-template-columns: auto 1fr;
    padding: 22px;
}

.cwc-score-ring {
    align-items: center;
    background: conic-gradient(var(--cwc-accent) calc(var(--cwc-score) * 1%), rgba(219, 231, 255, 0.9) 0);
    border-radius: 999px;
    display: flex;
    height: 136px;
    justify-content: center;
    width: 136px;
}

.cwc-score-ring--compact {
    height: 108px;
    width: 108px;
}

.cwc-score-ring--compact .cwc-score-ring__inner {
    height: 80px;
    width: 80px;
}

.cwc-score-ring--compact .cwc-score-ring__score {
    font-size: 1.45rem;
}

.cwc-score-ring--compact .cwc-score-ring__label {
    font-size: 0.68rem;
}

.cwc-score-ring__inner {
    align-items: center;
    background: var(--cwc-surface);
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(33, 85, 255, 0.07);
    display: flex;
    flex-direction: column;
    gap: 2px;
    height: 100px;
    justify-content: center;
    width: 100px;
}

.cwc-score-ring__score {
    color: #081225;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
}

.cwc-score-ring__label {
    color: var(--cwc-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cwc-summary-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cwc-summary-copy__label {
    color: #071226;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.cwc-summary-copy__price {
    color: #0f172a;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.cwc-cta {
    align-items: center;
    align-self: flex-start;
    background: linear-gradient(90deg, #2155ff 0%, #2d7ff9 100%);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 700;
    gap: 8px;
    margin-top: 6px;
    padding: 11px 18px;
    text-decoration: none;
}

.cwc-cta:hover,
.cwc-cta:focus {
    color: #ffffff;
    filter: brightness(1.03);
    text-decoration: none;
}

.cwc-bars {
    display: grid;
    gap: 14px;
}

.cwc-bar-row {
    display: grid;
    gap: 8px;
}

.cwc-bar-row__top {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.cwc-bar-row__label,
.cwc-bar-row__value {
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 700;
}

.cwc-progress {
    background: rgba(226, 232, 240, 0.7);
    border-radius: 999px;
    height: 11px;
    overflow: hidden;
    position: relative;
}

.cwc-progress__fill {
    background: linear-gradient(90deg, #2d7ff9 0%, #38d39f 100%);
    border-radius: 999px;
    display: block;
    height: 100%;
    width: calc(var(--cwc-progress) * 1%);
}

.cwc-progress--alert .cwc-progress__fill {
    background: linear-gradient(90deg, #ffb585 0%, #ff8a5b 100%);
}

.cwc-progress--metric {
    height: 9px;
}

.cwc-progress--metric .cwc-progress__fill {
    background: linear-gradient(90deg, #2155ff 0%, #55d7aa 100%);
}

.cwc-stat-strip {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    display: grid;
    gap: 0;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    margin-top: 28px;
    padding-top: 18px;
}

.cwc-stat-strip__item {
    border-right: 1px solid rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 12px 18px 6px 0;
}

.cwc-stat-strip__item:last-child {
    border-right: 0;
    padding-right: 0;
}

.cwc-stat-strip__value {
    color: #071226;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.cwc-meter-grid,
.cwc-entity-grid,
.cwc-matchup-grid,
.cwc-portfolio-grid,
.cwc-best-grid {
    display: grid;
    gap: 16px;
}

.cwc-meter-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cwc-entity-grid,
.cwc-matchup-grid,
.cwc-portfolio-grid,
.cwc-best-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cwc-meter-card,
.cwc-entity-card,
.cwc-matchup-card,
.cwc-portfolio-card,
.cwc-best-card {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 18px;
    padding: 18px;
}

.cwc-meter-card__top {
    align-items: baseline;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cwc-meter-card__value {
    color: #091222;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.cwc-curve-grid {
    display: grid;
    gap: 14px;
}

.cwc-curve-row {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.96));
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 18px;
    padding: 18px;
}

.cwc-curve-row--best {
    border-color: rgba(33, 85, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(33, 85, 255, 0.06);
}

.cwc-curve-row__top {
    align-items: baseline;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cwc-curve-row__label {
    color: var(--cwc-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cwc-curve-row__value {
    color: #091222;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.cwc-curve-row__meta {
    color: var(--cwc-muted);
    font-size: 0.88rem;
    line-height: 1.55;
    margin-top: 8px;
}

.cwc-entity-card__title,
.cwc-matchup-card__title,
.cwc-portfolio-card__title,
.cwc-best-card__title {
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0 0 8px;
}

.cwc-entity-card__meta {
    color: #1635a5;
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.cwc-matchup-card {
    align-items: center;
    display: grid;
    gap: 14px;
    grid-template-columns: 72px 1fr;
}

.cwc-matchup-card__score {
    align-items: center;
    background: rgba(33, 85, 255, 0.08);
    border-radius: 18px;
    color: #1635a5;
    display: flex;
    font-size: 1.4rem;
    font-weight: 800;
    height: 72px;
    justify-content: center;
    width: 72px;
}

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

.cwc-best-card {
    display: grid;
    gap: 10px;
}

.cwc-best-card__meta {
    color: var(--cwc-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.cwc-best-card__score {
    color: #1635a5;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cwc-portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.cwc-portfolio-card {
    display: grid;
    gap: 14px;
    min-height: 100%;
    position: relative;
}

.cwc-portfolio-card--featured {
    background:
        radial-gradient(circle at top right, rgba(56, 211, 159, 0.12), transparent 42%),
        linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border-color: rgba(33, 85, 255, 0.16);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.09);
}

.cwc-portfolio-card__top {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.cwc-portfolio-card__kicker {
    color: #1635a5;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.cwc-portfolio-card__score {
    align-items: center;
    background: rgba(33, 85, 255, 0.08);
    border: 1px solid rgba(33, 85, 255, 0.12);
    border-radius: 999px;
    color: #1635a5;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 800;
    min-height: 38px;
    padding: 0 12px;
}

.cwc-portfolio-card__price {
    color: #071226;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
}

.cwc-portfolio-card__summary {
    color: #516173;
    font-size: 0.94rem;
    line-height: 1.6;
    margin: -4px 0 0;
}

.cwc-portfolio-card__facts {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cwc-portfolio-card__fact {
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 14px;
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 12px;
}

.cwc-portfolio-card__fact-label {
    color: var(--cwc-muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cwc-portfolio-card__fact-value {
    color: #091222;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.cwc-portfolio-card__footer {
    margin-top: auto;
    padding-top: 4px;
}

.cwc-portfolio-card__link {
    color: #1635a5;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.cwc-portfolio-card__link:hover,
.cwc-portfolio-card__link:focus {
    color: #0f2f98;
    text-decoration: underline;
}

.cwc-best-card__title,
.cwc-portfolio-card__title a,
.cwc-matchup-card__title a {
    color: #071226;
    text-decoration: none;
}

.cwc-best-card__title:hover,
.cwc-portfolio-card__title a:hover,
.cwc-matchup-card__title a:hover {
    color: #1635a5;
    text-decoration: underline;
}

@media (max-width: 980px) {
    .cwc-board__grid,
    .cwc-profile-block__summary,
    .cwc-summary-panel,
    .cwc-entity-grid,
    .cwc-matchup-grid,
    .cwc-portfolio-grid,
    .cwc-best-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .cwc-card__inner,
    .cwc-board {
        padding: 20px;
    }

    .cwc-title {
        font-size: 2rem;
    }

    .cwc-stat-strip {
        grid-template-columns: 1fr;
    }

    .cwc-stat-strip__item {
        border-right: 0;
        border-top: 1px solid rgba(15, 23, 42, 0.06);
        padding: 14px 0 0;
    }

    .cwc-stat-strip__item:first-child {
        border-top: 0;
        padding-top: 0;
    }

    .cwc-portfolio-card__facts {
        grid-template-columns: 1fr;
    }
}
