html.ds-theme .sd-analysis-etf-preview__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

html.ds-theme .sd-analysis-etf-preview__body {
    margin-top: 12px;
}

html.ds-theme .sd-analysis-landing__kicker {
    color: #2563eb !important;
}

html.ds-theme .sd-analysis-landing__inner {
    display: none !important;
}

html.ds-theme .sd-analysis-landing__hero h1,
html.ds-theme .sd-analysis-landing__hero h2 {
    color: #0f172a !important;
}

html.ds-theme .sd-analysis-landing__features,
html.ds-theme .sd-analysis-landing__faq {
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 14px;
    padding: 22px;
}

html.ds-theme .sd-gunlab-trader-page {
    --gn-bg: #f8fafc;
    --gn-card: #ffffff;
    --gn-text: #0f172a;
    --gn-sub: #475569;
    --gn-line: #e5eaf1;
    --primary: #2563eb;
    --primary-light: #dbeafe;
    --primary-pale: #eff4ff;
    --primary-dark: #0b3d91;
}

html.ds-theme .sd-gunlab-trader-page .gn-main,
html.ds-theme .sd-gunlab-trader-page .gn-trader {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
    color: #0f172a !important;
}

html.ds-theme .sd-gunlab-trader-page .gn-card {
    background: #fff !important;
    color: #0f172a !important;
    border: 1px solid #e5eaf1 !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05) !important;
}

html.ds-theme .sd-gunlab-trader-page .gn-trader-hero {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 0 18px !important;
}

html.ds-theme .sd-gunlab-trader-page .gn-verdict__badge,
html.ds-theme .sd-gunlab-trader-page .gn-watchlist-item,
html.ds-theme .sd-gunlab-trader-page .gn-divergence,
html.ds-theme .sd-gunlab-trader-page .gn-insight-sec,
html.ds-theme .sd-gunlab-trader-page .gn-delta-table,
html.ds-theme .sd-gunlab-trader-page .gn-watchlist {
    background: #fff !important;
    color: #0f172a !important;
    border-color: #e5eaf1 !important;
}

html.ds-theme .sd-analysis-hero-banner .gn-card__title,
html.ds-theme .sd-analysis-hero-banner .gn-trader-hero__desc {
    color: #fff !important;
}

html.ds-theme .sd-gunlab-trader-page .gn-spinner,
html.ds-theme .gn-spinner {
    background: rgba(248, 250, 252, 0.82) !important;
}

html.ds-theme .sd-gunlab-trader-page .gn-spinner__inner,
html.ds-theme .gn-spinner__inner {
    background: #fff !important;
    border: 1px solid #e5eaf1 !important;
    color: #0f172a !important;
    border-radius: 14px !important;
}

html.ds-theme .sd-gunlab-trader-page .gn-trader-analyze-form__inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

html.ds-theme .sd-gunlab-trader-page .gn-trader-hero__desc,
html.ds-theme .sd-gunlab-trader-page .gn-trader-search-icon,
html.ds-theme .sd-gunlab-trader-page .gn-score-engine__sub,
html.ds-theme .sd-gunlab-trader-page .gn-delta-empty,
html.ds-theme .sd-gunlab-trader-page .gn-card__sub {
    color: #475569 !important;
}

html.ds-theme .sd-gunlab-trader-page .gn-card__title,
html.ds-theme .sd-gunlab-trader-page .gn-verdict__company,
html.ds-theme .sd-gunlab-trader-page .gn-verdict__headline,
html.ds-theme .sd-gunlab-trader-page .gn-insight__text,
html.ds-theme .sd-gunlab-trader-page .gn-context__value,
html.ds-theme .sd-gunlab-trader-page .gn-card__desc,
html.ds-theme .sd-gunlab-trader-page .gn-trader-empty p,
html.ds-theme .sd-gunlab-trader-page .gn-score-engine__title,
html.ds-theme .sd-gunlab-trader-page .gn-plan-col__title {
    color: #0f172a !important;
}

html.ds-theme .sd-gunlab-trader-page .gn-score-bar,
html.ds-theme .sd-gunlab-trader-page .gn-table-wrap,
html.ds-theme .sd-gunlab-trader-page .gn-delta-table {
    background: #f8fafc !important;
    border-color: #e5eaf1 !important;
    color: #0f172a !important;
}

html.ds-theme .sd-gunlab-trader-page .gn-form-input,
html.ds-theme .sd-gunlab-trader-page .gn-form-input--lg {
    height: 52px !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    border: 1px solid #e5eaf1 !important;
    color: #0f172a !important;
}

html.ds-theme .sd-gunlab-trader-page .gn-btn-primary,
html.ds-theme .sd-gunlab-trader-page .gn-trader-btn {
    background: #0b3d91 !important;
    border-color: #0b3d91 !important;
    color: #fff !important;
    border-radius: 12px !important;
}

html.ds-theme .sd-analysis-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0;
}

html.ds-theme .sd-analysis-kpis[hidden] {
    display: none !important;
}

html.ds-theme .sd-analysis-kpi {
    padding: 16px;
}

html.ds-theme .sd-analysis-kpi--opinion {
    display: grid;
    justify-items: start;
}

html.ds-theme .sd-opinion-ring {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 8px 0;
    border-radius: 50%;
    background: conic-gradient(#2563eb calc(var(--pct, 50) * 1%), #e5eaf1 0);
    display: grid;
    place-items: center;
}

html.ds-theme .sd-opinion-ring--preview {
    background: conic-gradient(#2563eb 0 40%, #94a3b8 40% 72%, #ef4444 72% 100%);
    opacity: 0.55;
}

html.ds-theme .sd-opinion-ring b {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #fff;
}

html.ds-theme .sd-opinion-ring em {
    position: absolute;
    margin: 0;
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
    color: #0b3d91;
}

html.ds-theme .sd-analysis-kpi strong {
    display: block;
    margin-top: 8px;
    font-size: 22px;
    letter-spacing: -0.03em;
}

html.ds-theme .sd-analysis-recent {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

html.ds-theme .sd-analysis-landing .ds-search-hero {
    margin-bottom: 22px;
}

html.ds-theme .sd-analysis-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin: 16px 0 12px;
}

html.ds-theme .sd-analysis-entry form {
    display: flex;
    gap: 10px;
    align-items: center;
}

html.ds-theme .sd-analysis-entry input[type="search"] {
    flex: 1;
    height: 48px;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    padding: 0 14px;
}

html.ds-theme .sd-analysis-hero-split {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 280px) !important;
    align-items: stretch;
    gap: 14px;
}

html.ds-theme .sd-analysis-cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 180px;
    background: #fee500 !important;
    border-color: #f5d000 !important;
    text-decoration: none;
}

html.ds-theme .sd-opinion-ring.is-buy {
    background: conic-gradient(#2563eb calc(var(--pct, 78) * 1%), #e5eaf1 0);
}

html.ds-theme .sd-opinion-ring.is-sell {
    background: conic-gradient(#ef4444 calc(var(--pct, 22) * 1%), #e5eaf1 0);
}

html.ds-theme .sd-analysis-landing__signup-cta,
html.ds-theme .sd-analysis-landing__signup-cta span {
    background: #fee500 !important;
    color: #111827 !important;
    border-color: rgba(17, 24, 39, 0.14) !important;
}

html.ds-theme .sd-analysis-cta strong,
html.ds-theme .sd-analysis-cta em {
    display: block;
    color: #0f172a;
}

html.ds-theme .sd-thermo[hidden] {
    display: none !important;
}

html.ds-theme .sd-thermo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 12px;
    align-items: center;
    margin: 0 0 16px;
}

html.ds-theme .sd-thermo-dial {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: conic-gradient(#2563eb 0 calc(var(--pct, 0) * 1%), #e5eaf1 0);
    display: grid;
    place-items: center;
}

html.ds-theme .sd-thermo-dial b {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #fff;
}

html.ds-theme .sd-thermo-dial em {
    position: absolute;
    margin: 0;
    font-size: 22px;
    font-style: normal;
    font-weight: 800;
    color: #0b3d91;
    letter-spacing: -0.04em;
}

html.ds-theme .sd-thermo-dial {
    position: relative;
}

html.ds-theme .sd-analysis-jump {
    margin-top: 12px;
}

html.ds-theme .sd-gunlab-trader-page .sd-analysis-cta {
    display: flex;
    margin-top: 0;
}

html.ds-theme #ds-thermo-score,
html.ds-theme .sd-thermo-score {
    display: inline-block;
    margin-left: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

html.ds-theme .sd-thermo strong,
html.ds-theme #ds-thermo-label {
    font-size: 28px;
    letter-spacing: -0.04em;
}

html.ds-theme .gn-pricemap__levels {
    display: grid;
    gap: 8px;
    margin: 0 0 12px;
}

html.ds-theme .gn-catalyst__list,
html.ds-theme .sd-analysis-landing .sd-analysis-stage__mid .ds-lead {
    margin: 8px 0 0;
}

html.ds-theme .gn-catalyst-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #e5eaf1;
}

html.ds-theme .gn-catalyst-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

html.ds-theme .gn-catalyst-item__tag {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    background: #f1f5f9;
    color: #475569;
}

html.ds-theme .gn-catalyst-item__tag--good {
    background: #ecfdf5;
    color: #059669;
}

html.ds-theme .gn-catalyst-item__tag--bad {
    background: #fef2f2;
    color: #dc2626;
}

html.ds-theme .gn-catalyst-item__title {
    font-weight: 800;
    color: #0f172a;
}

html.ds-theme .gn-catalyst-item__detail,
html.ds-theme .gn-catalyst-item__date {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
}

html.ds-theme .sd-thermo-bar {
    grid-column: 1 / -1;
    height: 10px;
    margin-top: 0;
    border-radius: 999px;
    background: #e5eaf1;
    overflow: hidden;
}

html.ds-theme .sd-thermo-bar i {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #2563eb, #10b981, #ef4444);
}

html.ds-theme .sd-analysis-quote {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px 16px;
    margin: 16px 0 12px;
}

html.ds-theme .sd-analysis-ohlc {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-column: 1 / -1;
    gap: 10px;
    margin: 4px 0 0;
    padding-top: 10px;
    border-top: 1px solid #e5eaf1;
}

html.ds-theme .sd-analysis-ohlc dt {
    margin: 0;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

html.ds-theme .sd-analysis-ohlc dd {
    margin: 2px 0 0;
    font-weight: 800;
}

html.ds-theme .sd-gunlab-trader-page .gn-trader-empty {
    display: grid;
    place-items: center;
    min-height: 180px;
    padding: 28px 20px;
    text-align: center;
    color: #475569;
}

html.ds-theme .sd-gunlab-trader-page .gn-trader-empty i {
    font-size: 28px;
    color: #2563eb;
}

html.ds-theme .sd-gunlab-trader-page .gn-verdict,
html.ds-theme .sd-gunlab-trader-page .gn-trader-chart,
html.ds-theme .sd-gunlab-trader-page .gn-pricemap,
html.ds-theme .sd-gunlab-trader-page .gn-catalyst,
html.ds-theme .sd-gunlab-trader-page .gn-insight,
html.ds-theme .sd-gunlab-trader-page .gn-scorecard,
html.ds-theme .sd-gunlab-trader-page .gn-context,
html.ds-theme .sd-gunlab-trader-page .gn-delta,
html.ds-theme .sd-gunlab-trader-page .gn-member-usage-card {
    background: #fff !important;
    border: 1px solid #e5eaf1 !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05) !important;
}

html.ds-theme .sd-gunlab-trader-page .gn-verdict__head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

html.ds-theme .sd-gunlab-trader-page .gn-verdict__action,
html.ds-theme .sd-gunlab-trader-page .gn-divergence {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #eff4ff !important;
    color: #0f172a !important;
}

html.ds-theme .sd-gunlab-trader-page .gn-verdict__grade,
html.ds-theme .sd-gunlab-trader-page .gn-verdict__horizon {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #0b3d91;
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
}

html.ds-theme .sd-gunlab-trader-page .gn-pricemap__levels,
html.ds-theme .sd-gunlab-trader-page .gn-plan-cols,
html.ds-theme .sd-gunlab-trader-page .gn-catalyst__list {
    display: grid;
    gap: 10px;
}

html.ds-theme .sd-gunlab-trader-page .gn-plan-cols {
    grid-template-columns: 1fr 1fr;
}

html.ds-theme .sd-analysis-quote[hidden],
html.ds-theme .sd-analysis-points[hidden] {
    display: none !important;
}

html.ds-theme .sd-analysis-quote strong {
    display: block;
    font-size: 28px;
    letter-spacing: -0.04em;
}

html.ds-theme .sd-analysis-quote b {
    font-size: 28px;
    letter-spacing: -0.03em;
}

html.ds-theme .sd-analysis-quote .is-up {
    color: #10b981;
    font-weight: 800;
}

html.ds-theme .sd-analysis-quote .is-down {
    color: #ef4444;
    font-weight: 800;
}

html.ds-theme .sd-analysis-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

html.ds-theme .sd-analysis-points p {
    margin: 8px 0 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
}

html.ds-theme .sd-gunlab-trader-page .gn-trader-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.7fr) minmax(260px, 0.78fr);
    gap: 14px;
}

html.ds-theme .sd-gunlab-trader-page .gn-member-usage-grid,
html.ds-theme .sd-gunlab-trader-page .gn-dual-scorecard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

html.ds-theme .sd-gunlab-trader-page .gn-score-bar__fill {
    background: #2563eb !important;
}

html.ds-theme .sd-gunlab-trader-page .gn-catalyst__item,
html.ds-theme .sd-gunlab-trader-page .gn-pricemap__level,
html.ds-theme .sd-gunlab-trader-page .gn-plan-col,
html.ds-theme .sd-gunlab-trader-page .gn-context__block {
    background: #f8fafc !important;
    border: 1px solid #e5eaf1 !important;
    border-radius: 12px !important;
    color: #0f172a !important;
}

@media (max-width: 991px) {
    html.ds-theme .sd-analysis-kpis,
    html.ds-theme .sd-analysis-points,
    html.ds-theme .sd-gunlab-trader-page .gn-trader-grid,
    html.ds-theme .sd-analysis-hero-split,
    html.ds-theme .sd-analysis-landing__inner {
        grid-template-columns: 1fr !important;
    }

    html.ds-theme .sd-analysis-kpis {
        grid-template-columns: 1fr 1fr !important;
    }

    html.ds-theme .sd-analysis-ohlc {
        width: 100%;
    }

    html.ds-theme .sd-analysis-quote {
        flex-direction: column;
        align-items: flex-start;
    }

    html.ds-theme .sd-analysis-ohlc {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    html.ds-theme .sd-analysis-entry {
        grid-template-columns: 1fr;
    }

    html.ds-theme .sd-thermo {
        grid-template-columns: 1fr;
    }

    html.ds-theme .sd-gunlab-trader-page .gn-trader-analyze-form__inner,
    html.ds-theme .sd-gunlab-trader-page .gn-plan-cols {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    html.ds-theme .sd-analysis-kpis {
        grid-template-columns: 1fr 1fr !important;
    }

    html.ds-theme .sd-analysis-points,
    html.ds-theme .sd-analysis-extra,
    html.ds-theme .sd-gunlab-trader-page .gn-member-usage-grid,
    html.ds-theme .sd-gunlab-trader-page .gn-dual-scorecard,
    html.ds-theme .sd-analysis-ohlc {
        grid-template-columns: 1fr !important;
    }

    html.ds-theme .sd-analysis-entry form {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    html.ds-theme .sd-analysis-entry button {
        width: 100%;
    }
}

html.ds-theme .sd-gunlab-trader-page .gn-verdict__price,
html.ds-theme .sd-gunlab-trader-page .gn-verdict__price-source {
    margin-top: 6px;
    color: #475569 !important;
    font-size: 13px;
    font-weight: 700;
}

html.ds-theme .sd-gunlab-trader-page .gn-verdict__headline {
    margin: 14px 0 0;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 800;
}

html.ds-theme .sd-gunlab-trader-page .gn-divergence--bullish {
    background: #ecfdf5 !important;
    border: 1px solid #bbf7d0 !important;
}

html.ds-theme .sd-gunlab-trader-page .gn-divergence--bearish {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
}

html.ds-theme .sd-gunlab-trader-page .gn-divergence--neutral {
    background: #eff4ff !important;
    border: 1px solid #bfdbfe !important;
}

html.ds-theme .sd-gunlab-trader-page .gn-score-engine {
    padding: 14px;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    background: #f8fafc;
}

html.ds-theme .sd-gunlab-trader-page .gn-score-engine__value {
    margin: 8px 0;
    color: #0b3d91 !important;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

html.ds-theme .sd-gunlab-trader-page .gn-watchlist-item,
html.ds-theme .sd-gunlab-trader-page .gn-catalyst-item {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border: 1px solid #e5eaf1 !important;
    border-radius: 12px;
    background: #fff !important;
    color: #0f172a !important;
}

html.ds-theme .sd-gunlab-trader-page .gn-watchlist-item.active {
    border-color: #93c5fd !important;
    background: #eff4ff !important;
}

html.ds-theme .sd-gunlab-trader-page .gn-watchlist-item__symbol,
html.ds-theme .sd-gunlab-trader-page .gn-catalyst-item__title {
    color: #0f172a !important;
    font-weight: 800;
}

html.ds-theme .sd-gunlab-trader-page .gn-watchlist-item__scores,
html.ds-theme .sd-gunlab-trader-page .gn-catalyst-item__detail,
html.ds-theme .sd-gunlab-trader-page .gn-catalyst-item__date {
    color: #475569 !important;
}

html.ds-theme .sd-gunlab-trader-page .gn-catalyst-item__tag {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #eff4ff;
    color: #0b3d91;
    font-size: 11px;
    font-weight: 800;
}

html.ds-theme .sd-gunlab-trader-page .gn-catalyst-item__tag--bad,
html.ds-theme .sd-gunlab-trader-page .gn-catalyst-item__tag--negative {
    background: #fef2f2;
    color: #b91c1c;
}

html.ds-theme .sd-gunlab-trader-page .gn-trader-chart__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

html.ds-theme .sd-gunlab-trader-page .gn-chart-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 4px;
    border-radius: 50%;
}

html.ds-theme .sd-gunlab-trader-page .gn-chart-dot--entry { background: #2563eb; }
html.ds-theme .sd-gunlab-trader-page .gn-chart-dot--target { background: #10b981; }
html.ds-theme .sd-gunlab-trader-page .gn-chart-dot--stop { background: #ef4444; }
html.ds-theme .sd-gunlab-trader-page .gn-chart-dot--level { background: #f59e0b; }

html.ds-theme .sd-gunlab-trader-page .gn-delta-table th,
html.ds-theme .sd-gunlab-trader-page .gn-delta-table td {
    color: #0f172a !important;
    border-color: #e5eaf1 !important;
}

html.ds-theme .sd-landing-preview__levels {
    display: grid;
    gap: 8px;
}

html.ds-theme .sd-landing-preview__levels > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
}

html.ds-theme .sd-landing-preview__levels .is-support strong { color: #2563eb; }
html.ds-theme .sd-landing-preview__levels .is-resist strong { color: #dc2626; }

html.ds-theme .sd-landing-preview__signal {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #ecfdf5;
}

html.ds-theme .sd-analysis-landing .gn-trader-chart__body,
html.ds-theme .sd-analysis-stage.gn-trader-grid {
    min-height: 0;
}

html.ds-theme .sd-analysis-landing .gn-trader-chart__body {
    min-height: 280px;
    display: grid;
    align-content: center;
    background: #f8fafc;
    border-radius: 12px;
}

html.ds-theme .sd-preview-chart {
    width: 100%;
}

html.ds-theme .sd-preview-chart svg {
    display: block;
    width: 100%;
    height: 220px;
}

html.ds-theme .sd-analysis-stage.gn-trader-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.7fr) minmax(260px, 0.78fr) !important;
    gap: 14px;
    align-items: start;
}

html.ds-theme .sd-analysis-stage__chart,
html.ds-theme .sd-analysis-stage__mid,
html.ds-theme .sd-analysis-stage__side {
    display: grid;
    gap: 12px;
    align-content: start;
}

html.ds-theme .sd-analysis-stage .sd-analysis-points {
    grid-template-columns: 1fr;
    margin: 0;
}

html.ds-theme .sd-opinion-legend {
    display: flex;
    gap: 10px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

html.ds-theme .sd-opinion-legend .is-buy { color: #2563eb; }
html.ds-theme .sd-opinion-legend .is-hold { color: #64748b; }
html.ds-theme .sd-opinion-legend .is-sell { color: #ef4444; }

html.ds-theme .sd-kpi-levels {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

html.ds-theme .sd-kpi-levels li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #e5eaf1;
    color: #475569;
    font-size: 13px;
}

html.ds-theme .sd-kpi-levels b {
    color: #0f172a;
    font-weight: 800;
}

html.ds-theme #ds-kpi-target-chg {
    display: block;
    margin-top: 4px;
    font-style: normal;
    font-weight: 800;
}

html.ds-theme .sd-gunlab-trader-page .gn-trader-chart__body {
    min-height: 360px;
}

html.ds-theme .gn-chart-indicators {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

html.ds-theme .gn-chart-indicators__item {
    padding: 8px 10px;
    border: 1px solid #e5eaf1;
    border-radius: 10px;
    background: #f8fafc;
}

html.ds-theme .gn-chart-indicators__item span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

html.ds-theme .gn-chart-indicators__item strong {
    color: #0f172a;
}

html.ds-theme .sd-gunlab-trader-page .gn-chart-empty,
html.ds-theme .sd-gunlab-trader-page .gn-watchlist-empty {
    padding: 48px 16px;
    color: #64748b;
    text-align: center;
}

html.ds-theme .sd-gunlab-trader-page .gn-level-chip {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #e5eaf1;
    border-radius: 10px;
    background: #f8fafc;
}

html.ds-theme .sd-gunlab-trader-page .gn-level-chip--support {
    background: #eff4ff;
    border-color: #bfdbfe;
}

html.ds-theme .sd-gunlab-trader-page .gn-level-chip--resistance {
    background: #fef2f2;
    border-color: #fecaca;
}

html.ds-theme .sd-gunlab-trader-page .gn-level-chip__value,
html.ds-theme .sd-gunlab-trader-page .gn-plan-step__price {
    color: #0f172a !important;
    font-weight: 800;
}

html.ds-theme .sd-gunlab-trader-page .gn-plan-step {
    padding: 8px 0;
    border-bottom: 1px solid #e5eaf1;
}

html.ds-theme .sd-gunlab-trader-page .gn-plan-step__top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

html.ds-theme .sd-gunlab-trader-page .gn-plan-step__rationale,
html.ds-theme .sd-gunlab-trader-page .gn-plan-condition__desc {
    color: #475569 !important;
    font-size: 13px;
}

html.ds-theme .sd-gunlab-trader-page .gn-plan-condition {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
}

html.ds-theme .sd-gunlab-trader-page .gn-plan-condition--stop {
    background: #fef2f2;
}

html.ds-theme .sd-gunlab-trader-page .gn-plan-condition--hold {
    background: #ecfdf5;
}

html.ds-theme .sd-gunlab-trader-page .gn-context__label {
    margin-bottom: 6px;
    color: #2563eb !important;
    font-size: 12px;
    font-weight: 800;
}

html.ds-theme .sd-gunlab-trader-page .gn-insight-sec {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    background: #f8fafc;
}

@media (max-width: 1199px) {
    html.ds-theme .sd-analysis-stage.gn-trader-grid {
        grid-template-columns: minmax(0, 1fr) minmax(240px, 0.72fr);
    }

    html.ds-theme .sd-analysis-stage__side {
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
    }
}

html.ds-theme .sd-analysis-landing .gn-chart-indicators {
    margin-top: 12px;
}

html.ds-theme .sd-analysis-extra {
    display: none !important;
}

html.ds-theme .sd-gunlab-trader-page .gn-member-usage-card,
html.ds-theme .sd-gunlab-trader-page .gn-scorecard,
html.ds-theme .sd-gunlab-trader-page .gn-context,
html.ds-theme .sd-gunlab-trader-page .gn-delta,
html.ds-theme .sd-gunlab-trader-page .gn-watchlist,
html.ds-theme .sd-gunlab-trader-page .gn-verdict,
html.ds-theme .sd-gunlab-trader-page .gn-insight {
    background: #fff !important;
    color: #0f172a !important;
    border: 1px solid #e5eaf1 !important;
}

html.ds-theme .sd-analysis-extra .gn-card,
html.ds-theme .sd-analysis-extra .ds-card {
    margin: 0;
}

html.ds-theme .sd-gunlab-trader-page .gn-trader-empty {
    padding: 22px 16px;
    text-align: left;
}

html.ds-theme .sd-gunlab-trader-page .gn-verdict {
    min-height: 0;
}

@media (max-width: 991px) {
    html.ds-theme .sd-analysis-stage.gn-trader-grid,
    html.ds-theme .sd-analysis-stage__side,
    html.ds-theme .sd-analysis-extra {
        grid-template-columns: 1fr !important;
    }
}

/* Concept-aligned AI analysis, loaded after platform.css only on the analysis route. */
body.sd-rd--analysis .sd-analysis-landing,
body.sd-rd--analysis .sd-gunlab-trader-page {
    padding: 0 0 54px;
}

body.sd-rd--analysis .sd-analysis-landing .ds-wrap,
body.sd-rd--analysis .sd-gunlab-trader-page .ds-wrap {
    min-width: 0;
}

body.sd-rd--analysis .sd-analysis-hero-split {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 260px !important;
    gap: 9px;
    margin-bottom: 12px;
}

body.sd-rd--analysis .sd-analysis-hero-banner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 144px !important;
    padding: 20px 26px;
    border-radius: 9px;
    background: radial-gradient(circle at 81% 41%, rgba(56, 158, 249, .32), transparent 23%), linear-gradient(115deg, #06182e 0%, #092855 58%, #0c4385 100%);
}

body.sd-rd--analysis .sd-analysis-hero-banner::before {
    inset: 0;
    height: auto;
    background: repeating-linear-gradient(0deg, transparent 0 24px, rgba(114, 191, 255, .08) 25px), repeating-linear-gradient(90deg, transparent 0 24px, rgba(114, 191, 255, .06) 25px);
}

body.sd-rd--analysis .sd-analysis-hero-banner::after {
    content: "AI";
    top: 31px;
    right: 58px;
    bottom: auto;
    left: auto;
    display: grid;
    place-items: center;
    width: 75px;
    height: 75px;
    border: 2px solid rgba(131, 216, 255, .85);
    border-radius: 12px;
    background: rgba(19, 93, 156, .72);
    box-shadow: 0 0 25px rgba(60, 167, 255, .68), inset 0 0 14px rgba(91, 180, 245, .5);
    color: #eef9ff;
    font-size: 29px;
    font-weight: 850;
    letter-spacing: -.04em;
}

body.sd-rd--analysis .sd-analysis-hero-banner .ds-kicker {
    margin: 0;
    font-size: 10px;
    letter-spacing: .11em;
}

body.sd-rd--analysis .sd-analysis-hero-banner .ds-title,
body.sd-rd--analysis .sd-analysis-hero-banner .gn-card__title {
    max-width: 600px;
    margin: 6px 0;
    color: #fff !important;
    font-size: clamp(22px, 2.4vw, 32px);
    line-height: 1.2;
    letter-spacing: -.045em;
}

body.sd-rd--analysis .sd-analysis-hero-banner .ds-lead,
body.sd-rd--analysis .sd-analysis-hero-banner .gn-trader-hero__desc {
    max-width: 530px;
    margin: 0;
    color: #e7f1ff !important;
    font-size: 12px;
    line-height: 1.45;
}

body.sd-rd--analysis .sd-analysis-cta {
    min-height: 144px !important;
    padding: 13px 15px;
    border: 1px solid #e2eaf4 !important;
    border-radius: 9px;
    background: #fff !important;
    box-shadow: 0 4px 15px rgba(20, 47, 87, .05);
    color: #172c49;
    text-decoration: none;
}

body.sd-rd--analysis .sd-analysis-cta .ds-kicker {
    color: #3478ef;
    font-size: 10px;
}

body.sd-rd--analysis .sd-analysis-cta strong {
    margin: 3px 0 7px;
    color: #142944;
    font-size: 14px;
    line-height: 1.3;
}

body.sd-rd--analysis .sd-analysis-cta em {
    color: #5a6c85;
    font-size: 11px;
    font-style: normal;
}

body.sd-rd--analysis .sd-analysis-cta__primary,
body.sd-rd--analysis .sd-analysis-cta__kakao {
    display: block;
    width: 100%;
    min-height: 28px;
    padding: 5px 8px;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
}

body.sd-rd--analysis .sd-analysis-cta a.sd-analysis-cta__primary {
    background: #1365d6;
    color: #fff !important;
}

body.sd-rd--analysis .sd-analysis-cta a.sd-analysis-cta__kakao {
    margin-top: 5px;
    background: #fee500;
    color: #172235 !important;
}

body.sd-rd--analysis .sd-analysis-landing .ds-search-hero > .ds-section-title,
body.sd-rd--analysis .sd-gunlab-trader-page .gn-trader-hero__head .ds-section-title {
    margin: 0 0 7px;
    font-size: 15px;
}

body.sd-rd--analysis .sd-analysis-entry form {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 7px;
    border-radius: 8px;
}

body.sd-rd--analysis .sd-analysis-entry input[type="search"],
body.sd-rd--analysis .sd-gunlab-trader-page .gn-form-input--lg {
    height: 37px !important;
    border-radius: 6px !important;
    background: #f8fbff !important;
}

body.sd-rd--analysis .sd-analysis-entry button,
body.sd-rd--analysis .sd-gunlab-trader-page .gn-trader-btn {
    min-height: 37px;
    padding: 6px 15px;
    border-radius: 6px !important;
    font-size: 12px;
}

body.sd-rd--analysis .sd-analysis-landing .ds-chip-row:not(.sd-analysis-tabs),
body.sd-rd--analysis .sd-analysis-recent {
    margin-top: 8px;
}

body.sd-rd--analysis .sd-analysis-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    margin: 12px 0 0;
    border-bottom: 1px solid #dce7f4;
    scrollbar-width: thin;
}

body.sd-rd--analysis .sd-analysis-tabs a {
    flex: 0 0 auto;
    min-height: 35px;
    padding: 9px 13px;
    border-bottom: 2px solid transparent;
    color: #52647d;
    text-decoration: none;
    font-size: 11px;
    font-weight: 750;
}

body.sd-rd--analysis .sd-analysis-tabs a:first-child,
body.sd-rd--analysis .sd-analysis-tabs a:hover,
body.sd-rd--analysis .sd-analysis-tabs a:focus-visible {
    border-bottom-color: #1567d8;
    color: #1259bd;
}

body.sd-rd--analysis .sd-analysis-quote {
    margin: 9px 0 !important;
    padding: 13px 17px;
    border-radius: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 15px;
}

body.sd-rd--analysis .sd-analysis-quote strong,
body.sd-rd--analysis .sd-analysis-quote b {
    font-size: 21px;
    font-variant-numeric: tabular-nums;
}

body.sd-rd--analysis .sd-analysis-quote .ds-kicker,
body.sd-rd--analysis .sd-analysis-quote span.is-up,
body.sd-rd--analysis .sd-analysis-quote span.is-down {
    font-size: 11px;
}

body.sd-rd--analysis .sd-analysis-quote .is-up,
body.sd-rd--analysis .sd-analysis-kpi .is-up {
    color: #0ca687 !important;
}

body.sd-rd--analysis .sd-analysis-quote .is-down,
body.sd-rd--analysis .sd-analysis-kpi .is-down {
    color: #ed455a !important;
}

body.sd-rd--analysis .sd-analysis-ohlc {
    gap: 5px;
    margin: 3px 0 0;
    padding-top: 7px;
}

body.sd-rd--analysis .sd-analysis-ohlc dd {
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

body.sd-rd--analysis .sd-analysis-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    margin: 9px 0 !important;
}

body.sd-rd--analysis .sd-analysis-kpi {
    min-width: 0;
    min-height: 123px;
    padding: 12px !important;
    border-radius: 8px;
}

body.sd-rd--analysis .sd-analysis-kpi > strong {
    display: block;
    margin-top: 7px;
    color: #163255;
    font-size: 19px;
    letter-spacing: -.035em;
}

body.sd-rd--analysis .sd-analysis-kpi .ds-kicker {
    font-size: 11px;
}

body.sd-rd--analysis .sd-opinion-ring {
    width: 66px;
    height: 66px;
    margin: 7px 0;
    border: 5px solid #d9e6f4;
    background: #fff !important;
}

body.sd-rd--analysis .sd-opinion-ring.is-buy { border-color: #0ca687; }
body.sd-rd--analysis .sd-opinion-ring.is-sell { border-color: #ed455a; }
body.sd-rd--analysis .sd-opinion-ring b { display: none; }
body.sd-rd--analysis .sd-opinion-ring em {
    position: static;
    max-width: 58px;
    color: #173456;
    font-size: 10px;
    line-height: 1.2;
    text-align: center;
}

body.sd-rd--analysis .sd-opinion-legend {
    gap: 7px;
    margin: 0;
    font-size: 10px;
}

body.sd-rd--analysis .sd-analysis-stage.gn-trader-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, .72fr) minmax(0, .8fr) !important;
    gap: 9px;
    margin-top: 0;
}

body.sd-rd--analysis .sd-analysis-stage__chart,
body.sd-rd--analysis .sd-analysis-stage__mid,
body.sd-rd--analysis .sd-analysis-stage__side {
    min-width: 0;
    gap: 9px;
}

body.sd-rd--analysis .sd-analysis-stage .gn-card,
body.sd-rd--analysis .sd-analysis-stage .ds-card,
body.sd-rd--analysis .sd-analysis-extra .gn-card {
    min-width: 0;
    padding: 13px !important;
    border-radius: 8px !important;
    box-shadow: 0 3px 14px rgba(20, 47, 87, .04) !important;
}

body.sd-rd--analysis .sd-analysis-stage .gn-card__title,
body.sd-rd--analysis .sd-analysis-stage .ds-section-title {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.35;
}

body.sd-rd--analysis .sd-analysis-stage .gn-trader-chart__body {
    min-height: 285px;
    border-radius: 6px;
    background: #fbfdff;
}

body.sd-rd--analysis .sd-analysis-stage .gn-trader-chart__body svg {
    max-width: 100%;
}

body.sd-rd--analysis .sd-analysis-stage .gn-trader-chart__legend,
body.sd-rd--analysis .sd-analysis-stage .gn-chart-indicators {
    margin-top: 8px;
    font-size: 10px;
}

body.sd-rd--analysis .sd-thermo {
    grid-template-columns: minmax(0, 1fr) 62px;
    gap: 6px;
    margin: 0;
}

body.sd-rd--analysis .sd-thermo-dial {
    width: 62px;
    height: 62px;
}

body.sd-rd--analysis .sd-thermo-dial b {
    width: 42px;
    height: 42px;
}

body.sd-rd--analysis .sd-thermo-dial em {
    font-size: 17px;
}

body.sd-rd--analysis .sd-thermo strong,
body.sd-rd--analysis #ds-thermo-label {
    font-size: 20px;
}

body.sd-rd--analysis .sd-analysis-stage .gn-verdict__headline,
body.sd-rd--analysis .sd-analysis-stage .gn-insight__text {
    font-size: 12px;
    line-height: 1.5;
}

body.sd-rd--analysis .sd-analysis-stage .gn-plan-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.sd-rd--analysis .sd-analysis-stage .sd-analysis-points {
    gap: 9px;
}

body.sd-rd--analysis .sd-analysis-stage .sd-analysis-points p {
    margin-top: 5px;
    font-size: 11px;
}

body.sd-rd--analysis .sd-analysis-extra {
    gap: 9px;
    margin-top: 9px;
}

body.sd-rd--analysis [id^="analysis-"],
body.sd-rd--analysis [id^="trader-"],
body.sd-rd--analysis #ds-analysis-quote,
body.sd-rd--analysis #ds-analysis-kpis {
    scroll-margin-top: 76px;
}

@media (max-width: 1100px) {
    body.sd-rd--analysis .sd-analysis-stage.gn-trader-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    body.sd-rd--analysis .sd-analysis-stage__chart {
        grid-column: 1 / -1;
    }
}

@media (max-width: 800px) {
    body.sd-rd--analysis .sd-analysis-hero-split {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    body.sd-rd--analysis .sd-analysis-cta {
        min-height: auto !important;
    }
    body.sd-rd--analysis .sd-analysis-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    body.sd-rd--analysis .sd-analysis-hero-banner {
        min-height: 143px !important;
        padding: 20px;
    }
    body.sd-rd--analysis .sd-analysis-hero-banner::after {
        right: 13px;
        top: 13px;
        width: 48px;
        height: 48px;
        font-size: 18px;
        opacity: .75;
    }
    body.sd-rd--analysis .sd-analysis-stage.gn-trader-grid,
    body.sd-rd--analysis .sd-analysis-stage .gn-plan-cols {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    body.sd-rd--analysis .sd-analysis-stage__chart {
        grid-column: auto;
    }
    body.sd-rd--analysis .sd-analysis-quote {
        grid-template-columns: minmax(0, 1fr);
    }
    body.sd-rd--analysis .sd-analysis-ohlc {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    body.sd-rd--analysis .sd-analysis-stage .gn-trader-chart__body {
        min-height: 230px;
    }
}

/* Reference board v2: surface the stock summary and chart sooner. */
html.ds-theme body.sd-rd--analysis .sd-analysis-quote {
    grid-template-columns: minmax(0, 1fr) auto minmax(320px, .95fr);
    align-items: center;
    gap: 16px;
    min-height: 82px;
    margin: 8px 0 !important;
    padding: 10px 15px;
    border: 1px solid #dce7f3;
    box-shadow: 0 4px 14px rgba(19, 52, 91, .05);
}
html.ds-theme body.sd-rd--analysis .sd-analysis-quote > div:nth-child(2) {
    display: grid;
    justify-items: end;
    gap: 2px;
    white-space: nowrap;
}
html.ds-theme body.sd-rd--analysis .sd-analysis-ohlc {
    grid-column: 3;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 0 0 0 16px;
    border-top: 0;
    border-left: 1px solid #e5edf7;
}
html.ds-theme body.sd-rd--analysis .sd-analysis-ohlc dt { font-size: 10px; }
html.ds-theme body.sd-rd--analysis .sd-analysis-ohlc dd { font-size: 11px; }
html.ds-theme body.sd-rd--analysis .sd-analysis-kpis {
    gap: 8px;
    margin: 8px 0 !important;
}
html.ds-theme body.sd-rd--analysis .sd-analysis-kpi {
    min-height: 142px;
    padding: 11px 13px !important;
}
html.ds-theme body.sd-rd--analysis .sd-analysis-kpi--opinion {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    align-items: center;
    gap: 2px 9px;
}
html.ds-theme body.sd-rd--analysis .sd-analysis-kpi--opinion > .ds-kicker { grid-column: 1 / -1; }
html.ds-theme body.sd-rd--analysis .sd-analysis-kpi--opinion .sd-opinion-ring {
    grid-column: 1;
    grid-row: 2 / 4;
    width: 59px;
    height: 59px;
    margin: 0;
}
html.ds-theme body.sd-rd--analysis .sd-analysis-kpi--opinion .sd-opinion-legend {
    grid-column: 2;
    align-self: end;
    flex-wrap: wrap;
}
html.ds-theme body.sd-rd--analysis .sd-analysis-kpi--opinion > strong {
    grid-column: 2;
    align-self: start;
    margin: 0;
    font-size: 15px;
}
html.ds-theme body.sd-rd--analysis .sd-analysis-quote .is-up,
html.ds-theme body.sd-rd--analysis .sd-analysis-kpi .is-up { color: #e84558 !important; }
html.ds-theme body.sd-rd--analysis .sd-analysis-quote .is-down,
html.ds-theme body.sd-rd--analysis .sd-analysis-kpi .is-down { color: #3478ef !important; }
@media (max-width: 1100px) {
    html.ds-theme body.sd-rd--analysis .sd-analysis-quote { grid-template-columns: minmax(0, 1fr) auto; }
    html.ds-theme body.sd-rd--analysis .sd-analysis-ohlc {
        grid-column: 1 / -1;
        padding: 9px 0 0;
        border-left: 0;
        border-top: 1px solid #e5edf7;
    }
}
@media (max-width: 600px) {
    html.ds-theme body.sd-rd--analysis .sd-analysis-quote { grid-template-columns: minmax(0, 1fr) auto; }
    html.ds-theme body.sd-rd--analysis .sd-analysis-quote > div:nth-child(2) { justify-items: end; }
    html.ds-theme body.sd-rd--analysis .sd-analysis-ohlc { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    html.ds-theme body.sd-rd--analysis .sd-analysis-kpi { min-height: 150px; }
    html.ds-theme body.sd-rd--analysis .sd-analysis-hero-banner::after { display: none; }
}

/* Pro Chart Controls & 5-Factor Indicators */
html.ds-theme .sd-analysis-chart-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

html.ds-theme .sd-analysis-chart-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

html.ds-theme .sd-chart-mode-group,
html.ds-theme .sd-chart-tf-group {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

html.ds-theme .sd-chart-ctrl-btn {
    border: 0;
    background: transparent;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.2;
}

html.ds-theme .sd-chart-ctrl-btn:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.7);
}

html.ds-theme .sd-chart-ctrl-btn.is-active {
    background: #0f2c59;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 44, 89, 0.18);
}

html.ds-theme .sd-analysis-recent .ds-chip.is-active,
html.ds-theme .ds-chip-row .ds-chip.is-active {
    background: #0f2c59 !important;
    color: #ffffff !important;
    border-color: #0f2c59 !important;
}

html.ds-theme .gn-trader-chart__legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin: 10px 0 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
}

html.ds-theme .gn-trader-chart__legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

html.ds-theme .gn-chart-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

html.ds-theme .gn-chart-dot--entry { background: #059669; }
html.ds-theme .gn-chart-dot--target { background: #e11d48; }
html.ds-theme .gn-chart-dot--stop { background: #64748b; }
html.ds-theme .gn-chart-dot--level { background: #9333ea; }

html.ds-theme body.sd-rd--analysis .gn-chart-indicators {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

html.ds-theme body.sd-rd--analysis .gn-chart-indicators__item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 8px 10px;
    border-radius: 9px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

html.ds-theme body.sd-rd--analysis .gn-chart-indicators__item span {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

html.ds-theme body.sd-rd--analysis .gn-chart-indicators__item strong {
    font-size: 13px;
    color: #0f172a;
    font-weight: 800;
}

html.ds-theme .sd-stock-suggest {
    position: relative;
    flex: 1;
}

html.ds-theme .sd-stock-suggest__list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 60;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
    padding: 6px;
    max-height: 280px;
    overflow-y: auto;
}

html.ds-theme .sd-stock-suggest__item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

html.ds-theme .sd-stock-suggest__item:hover {
    background: #f1f5f9;
}

html.ds-theme .sd-stock-suggest__item strong {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

html.ds-theme .sd-stock-suggest__item span {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
}

@media (max-width: 768px) {
    html.ds-theme body.sd-rd--analysis .gn-chart-indicators {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Unified Pricemap, Plan Steps & Verdict Styling for Guest & Member Views */
html.ds-theme .sd-analysis-stage .gn-pricemap__levels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin: 10px 0 12px;
}

html.ds-theme .sd-analysis-stage .gn-level-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #f8fafc;
}

html.ds-theme .sd-analysis-stage .gn-level-chip__label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
}

html.ds-theme .sd-analysis-stage .gn-level-chip__value {
    font-size: 12.5px;
    font-weight: 800;
    color: #0f172a;
}

html.ds-theme .sd-analysis-stage .gn-level-chip--support {
    background: #eff6ff;
    border-color: #bfdbfe;
}

html.ds-theme .sd-analysis-stage .gn-level-chip--support .gn-level-chip__value {
    color: #1d4ed8;
}

html.ds-theme .sd-analysis-stage .gn-level-chip--resistance {
    background: #fff1f2;
    border-color: #fecdd3;
}

html.ds-theme .sd-analysis-stage .gn-level-chip--resistance .gn-level-chip__value {
    color: #be123c;
}

html.ds-theme .sd-analysis-stage .gn-plan-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

html.ds-theme .sd-analysis-stage .gn-plan-col {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

html.ds-theme .sd-analysis-stage .gn-plan-col--buy {
    border-top: 3px solid #059669;
}

html.ds-theme .sd-analysis-stage .gn-plan-col--sell {
    border-top: 3px solid #e11d48;
}

html.ds-theme .sd-analysis-stage .gn-plan-col__title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

html.ds-theme .sd-analysis-stage .gn-plan-step {
    padding: 8px 0;
    border-top: 1px dashed #e2e8f0;
}

html.ds-theme .sd-analysis-stage .gn-plan-step:first-of-type {
    border-top: 0;
    padding-top: 2px;
}

html.ds-theme .sd-analysis-stage .gn-plan-step__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
}

html.ds-theme .sd-analysis-stage .gn-plan-step__weight {
    padding: 2px 6px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 10.5px;
    font-weight: 800;
}

html.ds-theme .sd-analysis-stage .gn-plan-step__price {
    margin-top: 2px;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}

html.ds-theme .sd-analysis-stage .gn-plan-step__rationale {
    margin-top: 2px;
    font-size: 11.5px;
    color: #475569;
    line-height: 1.45;
}

html.ds-theme .sd-analysis-stage .gn-verdict__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

html.ds-theme .sd-analysis-stage .gn-verdict__company {
    margin: 0;
    font-size: 17px;
    font-weight: 850;
    color: #0f172a;
}

html.ds-theme .sd-analysis-stage .gn-verdict__price {
    margin-top: 4px;
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
}

html.ds-theme .sd-analysis-stage .gn-verdict__grade {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 800;
}

html.ds-theme .sd-analysis-stage .gn-verdict__headline {
    padding: 9px 11px;
    border-radius: 9px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 12.5px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

html.ds-theme .sd-analysis-stage .gn-verdict__action {
    font-size: 12.5px;
    font-weight: 700;
    color: #1e293b;
}

html.ds-theme .sd-analysis-stage .gn-verdict__action strong {
    color: #2563eb;
    font-weight: 850;
}

/* ── Top Section Redesign (개선안 A: 통합 검색바 + 시세 헤더 + 중복 제로 4대 판독 카드) ── */
html.ds-theme .sd-gunlab-trader-page .gn-trader-hero {
    padding: 0 !important;
}

html.ds-theme .an-search-card {
    background: #ffffff;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.03);
}

html.ds-theme .an-search-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin: 0;
}

html.ds-theme .an-search-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 850;
    color: #0f172a;
    white-space: nowrap;
}

html.ds-theme .an-search-label i {
    color: #2563eb;
}

html.ds-theme .an-search-input-wrap {
    position: relative;
    width: 100%;
    min-width: 0;
}

html.ds-theme .an-search-input-wrap > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 14px;
    pointer-events: none;
}

html.ds-theme .an-search-input {
    width: 100%;
    height: 42px !important;
    padding: 0 14px 0 38px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    transition: border-color 0.15s ease, background 0.15s ease;
}

html.ds-theme .an-search-input:focus {
    outline: none;
    border-color: #2563eb !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

html.ds-theme .an-search-btn {
    height: 42px;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    background: #0f2c59;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    transition: background 0.15s ease;
}

html.ds-theme .an-search-btn:hover {
    background: #153e7a;
}

html.ds-theme .an-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid #e8eef6;
    flex-wrap: wrap;
}

html.ds-theme .an-chips {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

html.ds-theme .an-chip-kicker {
    font-size: 11.5px;
    font-weight: 800;
    color: #64748b;
    margin-right: 4px;
}

html.ds-theme .an-chip {
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid #d5e0ee;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
}

html.ds-theme .an-chip:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
    color: #0f172a;
}

html.ds-theme .an-chip.is-active {
    background: #0f2c59;
    border-color: #0f2c59;
    color: #ffffff;
}

html.ds-theme .an-jump-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

html.ds-theme .an-jump-tab {
    padding: 5px 10px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    text-decoration: none;
    transition: all 0.15s ease;
}

html.ds-theme .an-jump-tab:hover,
html.ds-theme .an-jump-tab.is-active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 800;
}

/* 종목 시세 헤더 바 */
html.ds-theme body.sd-focused-body.sd-rd--analysis .ds-content-frame .sd-analysis-hero-split {
    grid-template-columns: minmax(0, 1fr) 236px !important;
    gap: 10px !important;
}

html.ds-theme .an-quote-bar {
    margin-top: 10px;
    background: #ffffff;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    padding: 13px 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 18px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

html.ds-theme .an-quote-id {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

html.ds-theme .an-quote-title-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

html.ds-theme .an-quote-name {
    font-size: 22px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

html.ds-theme .an-quote-badge {
    padding: 3px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    font-size: 11.5px;
    font-weight: 800;
    color: #334155;
    white-space: nowrap;
}

html.ds-theme .an-quote-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

html.ds-theme .an-mini-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 7px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    color: #334155;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

html.ds-theme .an-mini-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

html.ds-theme .an-mini-btn--primary {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

html.ds-theme .an-mini-btn--primary:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

html.ds-theme .an-quote-price-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0 0 0 16px;
    border-left: 1px solid #e8eef6;
    border-right: 0;
}

html.ds-theme .an-quote-price-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

html.ds-theme .an-quote-price {
    font-size: 25px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

html.ds-theme .an-quote-chg {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
    background: #f1f5f9;
    color: #475569;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

html.ds-theme .an-quote-chg.is-up {
    background: #fff1f2;
    color: #e11d48 !important;
}

html.ds-theme .an-quote-chg.is-down {
    background: #eff6ff;
    color: #2563eb !important;
}

html.ds-theme .an-quote-vwap-tag {
    margin-top: 3px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

html.ds-theme .an-quote-vwap-tag b {
    color: #7c3aed;
    font-weight: 800;
    font-size: 12px !important;
}

html.ds-theme .an-ohlc-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding-top: 9px;
    border-top: 1px solid #eef2f7;
}

html.ds-theme .an-ohlc-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e8eef6;
    min-width: 0;
}

html.ds-theme .an-ohlc-cell dt {
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    margin: 0;
    white-space: nowrap;
}

html.ds-theme .an-ohlc-cell dd {
    margin: 0;
    font-size: 13px;
    font-weight: 850;
    color: #0f172a;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

html.ds-theme .an-ohlc-cell dd.is-high {
    color: #e11d48;
}

html.ds-theme .an-ohlc-cell dd.is-low {
    color: #2563eb;
}

/* 4대 핵심 판독 카드 (중복 제로) */
html.ds-theme .an-kpi-grid {
    margin: 10px 0 !important;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

html.ds-theme .an-kpi-card {
    background: #ffffff;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    padding: 12px 13px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 146px;
    min-width: 0;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.025);
}

html.ds-theme .an-kpi-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 6px;
}

html.ds-theme .an-kpi-kicker {
    font-size: 11px;
    font-weight: 800;
    color: #2563eb;
    white-space: nowrap;
}

html.ds-theme .an-kpi-badge {
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 800;
    background: #eff6ff;
    color: #1d4ed8;
    white-space: nowrap;
}

html.ds-theme .an-kpi-badge--purple {
    background: #f5f3ff;
    color: #7c3aed;
}

html.ds-theme .an-kpi-badge--green {
    background: #ecfdf5;
    color: #059669;
}

html.ds-theme .an-opinion-body {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin: 2px 0 6px;
}

html.ds-theme .an-score-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: conic-gradient(#2563eb 0 calc(var(--pct, 50) * 1%), #e2e8f0 0 100%);
    display: grid;
    place-items: center;
    position: relative;
}

html.ds-theme .an-score-ring.is-buy {
    background: conic-gradient(#059669 0 calc(var(--pct, 65) * 1%), #e2e8f0 0 100%);
}

html.ds-theme .an-score-ring.is-sell {
    background: conic-gradient(#e11d48 0 calc(var(--pct, 30) * 1%), #e2e8f0 0 100%);
}

html.ds-theme .an-score-ring::before {
    content: "";
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
}

html.ds-theme .an-score-ring__txt {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.05;
}

html.ds-theme .an-score-ring__txt strong {
    font-size: 13.5px !important;
    font-weight: 900 !important;
    color: #0f2c59 !important;
    margin: 0 !important;
}

html.ds-theme .an-score-ring__txt span {
    font-size: 9px;
    font-weight: 700;
    color: #64748b;
}

html.ds-theme .an-opinion-info {
    min-width: 0;
    word-break: keep-all;
}

html.ds-theme .an-opinion-info strong {
    display: block;
    font-size: 14.5px !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    margin: 0 0 3px !important;
    line-height: 1.25;
}

html.ds-theme .an-opinion-sub {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    line-height: 1.3;
}

html.ds-theme .an-mini-bars {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding-top: 7px;
    border-top: 1px solid #e8eef6;
    font-size: 10.5px;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
}

html.ds-theme .an-mini-bars b {
    color: #0f172a;
    font-weight: 800;
}

html.ds-theme .an-vwap-main {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

html.ds-theme .an-vwap-val {
    font-size: 18.5px !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    margin: 0 !important;
    font-variant-numeric: tabular-nums;
}

html.ds-theme .an-vwap-gap,
html.ds-theme .an-vwap-main #ds-kpi-target-chg {
    display: inline-block !important;
    margin: 0 !important;
    font-size: 11.5px;
    font-weight: 800;
    font-style: normal;
}

html.ds-theme .an-vwap-gap.is-up {
    color: #e11d48 !important;
}

html.ds-theme .an-vwap-gap.is-down {
    color: #2563eb !important;
}

html.ds-theme .an-flow-bar-wrap {
    margin-top: 2px;
}

html.ds-theme .an-flow-labels {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 800;
    margin-bottom: 4px;
    white-space: nowrap;
}

html.ds-theme .an-flow-labels .buy {
    color: #e11d48;
}

html.ds-theme .an-flow-labels .sell {
    color: #2563eb;
}

html.ds-theme .an-flow-track {
    height: 8px;
    border-radius: 999px;
    background: #dbeafe;
    overflow: hidden;
}

html.ds-theme .an-flow-fill {
    height: 100%;
    background: linear-gradient(90deg, #f43f5e, #e11d48);
    border-radius: 999px;
    transition: width 0.3s ease;
}

html.ds-theme .an-flow-foot {
    margin-top: 8px;
    font-size: 11.5px;
    font-weight: 700;
    color: #475569;
    line-height: 1.35;
}

html.ds-theme .an-level-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 5px;
}

html.ds-theme .an-level-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 12px;
    padding: 3px 0;
    border-bottom: 1px dashed #e8eef6;
}

html.ds-theme .an-level-list li:last-child {
    border-bottom: 0;
}

html.ds-theme .an-level-list span {
    color: #475569;
    font-weight: 700;
    white-space: nowrap;
}

html.ds-theme .an-level-list b {
    font-weight: 850;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

html.ds-theme .an-level-list em {
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
    margin-left: 3px;
}

html.ds-theme .an-level-list .is-target {
    color: #e11d48;
}

html.ds-theme .an-level-list .is-buy {
    color: #059669;
}

html.ds-theme .an-level-list .is-stop {
    color: #2563eb;
}

html.ds-theme .an-summary-headline {
    display: block;
    margin: 2px 0 8px !important;
    font-size: 15px !important;
    font-weight: 850 !important;
    color: #0f172a !important;
    line-height: 1.38;
}

html.ds-theme .an-summary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding-top: 8px;
    border-top: 1px solid #e8eef6;
}

html.ds-theme .an-summary-tag {
    padding: 3px 8px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
}

html.ds-theme .an-summary-tag b {
    color: #0f172a;
    font-weight: 800;
}

@media (max-width: 1100px) {
    html.ds-theme .an-quote-bar {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 14px;
    }
    html.ds-theme .an-quote-price-box {
        border-right: 0;
        padding-right: 0;
    }
    html.ds-theme .an-ohlc-grid {
        grid-column: 1 / -1;
        padding-top: 10px;
        border-top: 1px solid #e8eef6;
    }
    html.ds-theme .an-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    html.ds-theme .an-search-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }
    html.ds-theme .an-search-btn {
        width: 100%;
    }
    html.ds-theme .an-quote-bar {
        grid-template-columns: minmax(0, 1fr);
    }
    html.ds-theme .an-quote-price-box {
        align-items: flex-start;
        padding: 10px 0 0;
        border-left: 0;
        border-top: 1px solid #e8eef6;
    }
    html.ds-theme .an-ohlc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    html.ds-theme .an-kpi-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* =========================================================
   TradingAgents (월가 12인 AI 투자위원회) 섹션 스타일
   ========================================================= */
html.ds-theme .sd-committee-sec {
    margin-top: 14px;
    padding: 18px 20px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

html.ds-theme .sd-cm-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

html.ds-theme .sd-cm-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 800;
    color: #2563eb;
    letter-spacing: 0.02em;
}

html.ds-theme .sd-cm-title {
    margin: 3px 0 0;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
}

html.ds-theme .sd-cm-header-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

html.ds-theme .sd-cm-verdict-badge {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 800;
}

html.ds-theme .sd-cm-verdict-badge.is-bull {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

html.ds-theme .sd-cm-verdict-badge.is-bear {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

html.ds-theme .sd-cm-run-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #1d4ed8;
    background: #2563eb;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s ease;
}

html.ds-theme .sd-cm-run-btn:hover {
    background: #1d4ed8;
}

html.ds-theme .sd-cm-run-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

html.ds-theme .sd-cm-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
    gap: 12px;
}

html.ds-theme .sd-cm-exec-box,
html.ds-theme .sd-cm-score-box {
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

html.ds-theme .sd-cm-exec-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #0f172a;
}

html.ds-theme .sd-cm-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 6px;
    background: #2563eb;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
}

html.ds-theme .sd-cm-exec-p {
    margin: 0;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.58;
    color: #0f172a;
    word-break: keep-all;
}

html.ds-theme .sd-cm-exec-sub {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.55;
    color: #475569;
    word-break: keep-all;
}

html.ds-theme .sd-cm-score-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12.5px;
}

html.ds-theme .sd-cm-score-row .is-bull,
html.ds-theme .sd-cm-table .is-bull {
    color: #dc2626;
}

html.ds-theme .sd-cm-score-row .is-bear,
html.ds-theme .sd-cm-table .is-bear {
    color: #2563eb;
}

html.ds-theme .sd-cm-win-pill {
    padding: 2px 8px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1e40af;
    font-size: 11.5px;
    font-weight: 800;
}

html.ds-theme .sd-cm-gauge {
    display: flex;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: #e2e8f0;
}

html.ds-theme .sd-cm-gauge__bull {
    background: #ef4444;
    height: 100%;
}

html.ds-theme .sd-cm-gauge__bear {
    background: #3b82f6;
    height: 100%;
}

html.ds-theme .sd-cm-verdict-p {
    margin: 2px 0 0;
    font-size: 12.5px;
    line-height: 1.52;
    color: #334155;
    word-break: keep-all;
}

html.ds-theme .sd-cm-subhead {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 12px;
    margin-top: 2px;
}

html.ds-theme .sd-cm-subhead h4 {
    margin: 0;
    font-size: 14.5px;
    font-weight: 800;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

html.ds-theme .sd-cm-subhead span {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

html.ds-theme .sd-cm-analysts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

html.ds-theme .sd-cm-analyst-card {
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

html.ds-theme .sd-cm-analyst-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 13px;
    color: #0f172a;
    word-break: keep-all;
}

html.ds-theme .sd-cm-analyst-top strong {
    word-break: keep-all;
}

html.ds-theme .sd-cm-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

html.ds-theme .sd-cm-pill.is-bull {
    background: #fef2f2;
    color: #dc2626;
}

html.ds-theme .sd-cm-pill.is-bear {
    background: #eff6ff;
    color: #2563eb;
}

html.ds-theme .sd-cm-pill.is-neutral {
    background: #f1f5f9;
    color: #475569;
}

html.ds-theme .sd-cm-analyst-hl {
    font-size: 12.5px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.42;
}

html.ds-theme .sd-cm-analyst-body {
    margin: 0;
    font-size: 12px;
    line-height: 1.52;
    color: #475569;
    word-break: keep-all;
}

html.ds-theme .sd-cm-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: auto;
}

html.ds-theme .sd-cm-chip {
    padding: 2px 6px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    font-size: 11px;
    font-weight: 700;
    color: #334155;
}

html.ds-theme .sd-cm-debate-grid,
html.ds-theme .sd-cm-us-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

html.ds-theme .sd-cm-debate-col,
html.ds-theme .sd-cm-us-card {
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

html.ds-theme .sd-cm-debate-col h5,
html.ds-theme .sd-cm-us-head h4 {
    margin: 0;
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
}

html.ds-theme .sd-cm-us-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

html.ds-theme .sd-cm-arg-list {
    margin: 0;
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

html.ds-theme .sd-cm-arg-list li {
    font-size: 12.5px;
    color: #0f172a;
    line-height: 1.48;
}

html.ds-theme .sd-cm-arg-list li p {
    margin: 2px 0 0;
    font-size: 12px;
    color: #475569;
    word-break: keep-all;
}

html.ds-theme .sd-cm-rebuttal {
    padding: 8px 10px;
    border-radius: 8px;
    background: #ffffff;
    border-left: 3px solid #2563eb;
    font-size: 12px;
    line-height: 1.5;
    color: #334155;
    word-break: keep-all;
}

html.ds-theme .sd-cm-table-wrap {
    width: 100%;
    overflow-x: auto;
}

html.ds-theme .sd-cm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

html.ds-theme .sd-cm-table th,
html.ds-theme .sd-cm-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    color: #0f172a;
    vertical-align: middle;
}

html.ds-theme .sd-cm-table th {
    background: #f1f5f9;
    font-size: 11.5px;
    font-weight: 800;
    color: #475569;
    white-space: nowrap;
}

html.ds-theme .sd-cm-td-desc {
    font-size: 12px;
    color: #475569 !important;
    line-height: 1.48;
    word-break: keep-all;
}

html.ds-theme .sd-cm-social-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

html.ds-theme .sd-cm-social-list li {
    padding: 8px 10px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    font-size: 12px;
}

html.ds-theme .sd-cm-social-list li p {
    margin: 4px 0 0;
    color: #475569;
    line-height: 1.48;
    word-break: keep-all;
}

@media (max-width: 1100px) {
    html.ds-theme .sd-cm-analysts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    html.ds-theme .sd-cm-top-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    html.ds-theme .sd-cm-analysts-grid,
    html.ds-theme .sd-cm-debate-grid,
    html.ds-theme .sd-cm-us-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}






/* 차트 캔버스가 넓은 화면 폭으로 고정된 뒤 화면을 좁혀도 그리드 트랙이 늘어나 페이지 가로 넘침이 생기지 않도록 막습니다. */
html.ds-theme .gn-trader-chart__body {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
}

html.ds-theme .sd-preview-chart,
html.ds-theme #trader-live-chart {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

/* 성향별 타점 표가 좁은 화면에서 페이지 전체를 넓히지 않고 표 영역 안에서만 가로 스크롤되도록 합니다. */
html.ds-theme .sd-cm-table-wrap {
    min-width: 0;
    max-width: 100%;
}

html.ds-theme .sd-cm-table-wrap > .sd-cm-table {
    min-width: 460px;
}

/* 폴리마켓 확률 표도 좁은 화면에서 카드 폭 안에 맞추고, 남는 부분은 카드 안에서만 스크롤되게 합니다. */
html.ds-theme .sd-cm-us-card {
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
}

html.ds-theme .sd-cm-poly-table td:first-child,
html.ds-theme .sd-cm-poly-table th:first-child {
    overflow-wrap: anywhere;
    word-break: keep-all;
}

.ds3d-tnum {
    font-variant-numeric: tabular-nums;
}

.ds3d-stage {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #dbe4f0;
    user-select: none;
    touch-action: pan-y;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.ds3d-stage[hidden] {
    display: none !important;
}

.ds3d-stage--dark {
    background: radial-gradient(circle at 50% 44%, #15316e 0%, #091533 68%, #040a1a 100%);
    border-color: #1e3a78;
}

.ds3d-stage--light {
    background: linear-gradient(180deg, #fafcff 0%, #eef4fc 100%);
    border-color: #dbe4f0;
}

.ds3d-stage--light::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(15, 37, 87, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 37, 87, 0.045) 1px, transparent 1px);
    background-size: 24px 24px;
}

.ds3d-stage canvas {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    cursor: grab;
}

.ds3d-stage canvas:active {
    cursor: grabbing;
}

.ds3d-hud-t,
.ds3d-hud-b {
    position: absolute;
    left: 10px;
    right: 10px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    pointer-events: none;
    flex-wrap: wrap;
}

.ds3d-hud-t {
    top: 9px;
}

.ds3d-hud-b {
    bottom: 9px;
}

.ds3d-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3.5px 8.5px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    backdrop-filter: blur(6px);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ds3d-stage--dark .ds3d-pill,
.ds3d-corridor .ds3d-pill,
.ds3d-trophy-stage .ds3d-pill {
    background: rgba(9, 21, 51, 0.78);
    border: 1px solid rgba(147, 197, 253, 0.34);
    color: #e2eeff;
}

.ds3d-stage--light .ds3d-pill {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #cbd7e6;
    color: #0f2557;
}

.ds3d-btn {
    pointer-events: auto;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 800;
    border: 1px solid #cbd7e6;
    background: #ffffff;
    color: #0f2557;
    white-space: nowrap;
    transition: border-color 0.14s ease, background-color 0.14s ease, color 0.14s ease;
}

.ds3d-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.ds3d-btn.is-active {
    background: #0f2557;
    border-color: #0f2557;
    color: #ffffff;
}

.ds3d-seg {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: 9px;
    background: #edf2f9;
    border: 1px solid #dbe4f0;
    flex-wrap: nowrap;
}

.ds3d-seg button {
    border: 0;
    background: transparent;
    color: #334155;
    font-size: 11.5px;
    font-weight: 750;
    padding: 4.5px 9px;
    border-radius: 6.5px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.14s ease, color 0.14s ease;
}

.ds3d-seg button.is-active {
    background: #0f2557;
    color: #ffffff;
}

.ds3d-home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.96fr);
    gap: 14px;
    padding: 14px 16px;
    margin-top: 10px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0b1b42 0%, #102a63 58%, #0d1f49 100%);
    border: 1px solid #1e3f87;
    color: #ffffff;
    align-items: stretch;
    box-shadow: 0 6px 22px rgba(15, 37, 87, 0.12);
}

.ds3d-home-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.ds3d-home-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

html.ds-theme body .ds3d-home-hero .ds3d-home-head h2,
.ds3d-home-head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    word-break: keep-all;
}

.ds3d-home-head h2 i {
    color: #7dd3fc;
}

.ds3d-home-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.ds3d-home-tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
    padding: 9px 11px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(191, 219, 254, 0.18);
    text-decoration: none;
    color: #ffffff !important;
    min-width: 0;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ds3d-home-tile:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(147, 197, 253, 0.45);
    color: #ffffff !important;
}

.ds3d-home-tile__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #b8cdf2 !important;
}

.ds3d-home-tile__val {
    font-size: 13.5px;
    font-weight: 850;
    color: #ffffff !important;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ds3d-home-tile__val--flow {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
    white-space: normal;
}

.ds3d-home-tile__val--flow b {
    font-weight: 850;
}

.ds3d-home-tile__sub {
    font-size: 11px;
    font-weight: 650;
    color: #9bb8e8 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ds3d-home-dot {
    display: inline-block;
    width: 6.5px;
    height: 6.5px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}

.ds3d-home-dot--open {
    background: #34d399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.24);
}

.ds3d-home-dot--wait {
    background: #fbbf24;
}

.ds3d-home-dot--closed {
    background: #94a3b8;
}

.ds3d-home-state {
    font-size: 10.5px;
    font-weight: 800;
    padding: 1.5px 6px;
    border-radius: 999px;
    white-space: nowrap;
}

.ds3d-home-state--open {
    background: rgba(16, 185, 129, 0.22);
    color: #6ee7b7 !important;
}

.ds3d-home-state--wait {
    background: rgba(245, 158, 11, 0.22);
    color: #fde68a !important;
}

.ds3d-home-state--closed {
    background: rgba(148, 163, 184, 0.2);
    color: #cbd5e1 !important;
}

.ds3d-home-flow-up {
    color: #fda4af !important;
}

.ds3d-home-flow-dn {
    color: #93c5fd !important;
}

.ds3d-home-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ds3d-home-qlink {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4.5px 9px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(191, 219, 254, 0.2);
    color: #e2eeff !important;
    font-size: 11.5px;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.14s ease, border-color 0.14s ease;
}

.ds3d-home-qlink:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(147, 197, 253, 0.45);
    color: #ffffff !important;
}

.ds3d-home-kicker {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3.5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(191, 219, 254, 0.3);
    color: #e2eeff;
}

html.ds-theme body .ds3d-home-hero .ds3d-home-copy h2,
.ds3d-home-copy h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.32;
    letter-spacing: -0.02em;
    color: #ffffff !important;
    word-break: keep-all;
}

html.ds-theme body .ds3d-home-hero .ds3d-home-copy p,
.ds3d-home-copy p {
    margin: 0;
    font-size: 12.2px;
    line-height: 1.52;
    color: #cbd8f5 !important;
    word-break: keep-all;
}

.ds3d-home-modes {
    display: inline-flex;
    gap: 3px;
    padding: 2.5px;
    border-radius: 9px;
    background: rgba(5, 12, 32, 0.45);
    border: 1px solid rgba(191, 219, 254, 0.22);
}

.ds3d-home-mode-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4.5px 9px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 800;
    border: 0;
    background: transparent;
    color: #cbd8f5;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.ds3d-home-mode-btn.is-active {
    background: #ffffff;
    color: #0f2557;
}

.ds3d-home-stage {
    height: 222px;
}

.ds3d-ex-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 900px;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.ds3d-ex-stack {
    position: relative;
    width: 246px;
    height: 118px;
    transform-style: preserve-3d;
    transform: rotateX(55deg) rotateZ(-28deg) translateY(10px);
}

.ds3d-ex-lv {
    position: absolute;
    inset: 0;
    border-radius: 11px;
    padding: 9px 11px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 10.5px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: -8px 14px 20px rgba(2, 8, 28, 0.45);
    transition: transform 0.25s ease;
}

.ds3d-ex-lv[data-lv="1"] {
    transform: translateZ(-20px);
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
    border: 1px solid #cbd5e1;
}

.ds3d-ex-lv[data-lv="2"] {
    transform: translateZ(10px);
    background: rgba(239, 246, 255, 0.95);
    color: #1d4ed8;
    border: 1px solid #93c5fd;
}

.ds3d-ex-lv[data-lv="3"] {
    transform: translateZ(40px);
    background: rgba(255, 241, 242, 0.95);
    color: #be123c;
    border: 1px solid #fda4af;
}

.ds3d-ex-lv[data-lv="4"] {
    transform: translateZ(70px);
    background: rgba(37, 99, 235, 0.96);
    color: #ffffff;
    border: 1px solid #93c5fd;
}

.ds3d-hm-stage {
    height: 204px;
}

.ds3d-hm-pane[hidden] {
    display: none !important;
}

.ds3d-fut-card {
    margin: 10px 0 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #dbe4f0;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.ds3d-fut-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 9px;
}

.ds3d-fut-head h2 {
    margin: 0;
    font-size: 13.5px;
    font-weight: 850;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    word-break: keep-all;
}

.ds3d-fut-head h2 i {
    color: #2563eb;
}

.ds3d-fut-stage {
    height: 222px;
}

.ds3d-fg-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    margin-bottom: 6px;
}

.ds3d-fg-orb-stage {
    height: 196px;
    width: 100%;
    border-radius: 13px;
}

.ds3d-fg-toggle {
    display: inline-flex;
    gap: 2px;
    padding: 2px;
    border-radius: 8px;
    background: rgba(15, 37, 87, 0.08);
    border: 1px solid rgba(15, 37, 87, 0.14);
}

.ds3d-fg-toggle button {
    border: 0;
    background: transparent;
    color: #475569;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
}

.ds3d-fg-toggle button.is-active {
    background: #0f2557;
    color: #ffffff;
}

.ds3d-stk-pass-wrap {
    margin: 10px 0 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 316px;
    gap: 14px;
    align-items: center;
    padding: 13px 15px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fbff 0%, #eff5ff 100%);
    border: 1px solid #d5e2f5;
}

.ds3d-stk-pass-info h2 {
    margin: 0 0 5px;
    font-size: 14.5px;
    font-weight: 850;
    color: #0f2557;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ds3d-stk-pass-info p {
    margin: 0 0 9px;
    font-size: 12.2px;
    color: #475569;
    line-height: 1.5;
    word-break: keep-all;
}

.ds3d-stk-pass-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.ds3d-stk-pass-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #dbe4f0;
    font-size: 11.5px;
    font-weight: 750;
    color: #1e293b;
}

.ds3d-mcard-stage {
    height: 196px;
    border-radius: 14px;
    padding: 10px;
    background: radial-gradient(circle at 50% 45%, #163373 0%, #091533 70%, #050c20 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    position: relative;
}

.ds3d-mcard {
    width: 280px;
    height: 164px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
}

.ds3d-mcard.is-fast {
    transition: transform 0.08s ease-out;
}

.ds3d-mface {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 13px 15px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    box-shadow: 0 16px 34px rgba(2, 8, 28, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.ds3d-mface--front {
    background: linear-gradient(135deg, #0d1f4d 0%, #194097 48%, #0a1636 100%);
    border: 1px solid rgba(191, 219, 254, 0.42);
    color: #ffffff;
}

.ds3d-mface--back {
    background: linear-gradient(135deg, #10192e 0%, #1e293b 52%, #0f172a 100%);
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: #e2e8f0;
    transform: rotateY(180deg);
}

.ds3d-msheen {
    position: absolute;
    inset: -40%;
    pointer-events: none;
    background: radial-gradient(circle 140px at var(--sx, 30%) var(--sy, 25%), rgba(125, 211, 252, 0.38), rgba(244, 63, 94, 0.14) 45%, transparent 72%);
    mix-blend-mode: screen;
}

.ds3d-mchip {
    width: 30px;
    height: 21px;
    border-radius: 5px;
    background: linear-gradient(135deg, #fde68a, #f59e0b 55%, #fef08a);
}

.ds3d-mface__top,
.ds3d-mface__mid,
.ds3d-mface__bot {
    position: relative;
    z-index: 2;
}

.ds3d-mface__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

.ds3d-mtag {
    font-size: 9.5px;
    font-weight: 800;
    padding: 2.5px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #e2eeff;
    white-space: nowrap;
}

.ds3d-mface__mid small {
    display: block;
    font-size: 10.5px;
    color: #93c5fd;
    font-weight: 750;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ds3d-mface__mid strong {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.ds3d-mface__mid em {
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
    margin-left: 6px;
}

.ds3d-mface__bot {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 10px;
    color: #cbd5e1;
}

.ds3d-mface__bot b {
    display: block;
    color: #ffffff;
    font-size: 11px;
    margin-top: 1px;
}

.ds3d-opt-surf-stage {
    height: 268px;
    margin-top: 4px;
}

.ds3d-orbit-stage {
    height: 244px;
}

.ds3d-ring-stage {
    height: 256px;
}

.ds3d-city-section {
    margin: 0 0 14px;
    padding: 13px 15px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #dbe4f0;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.ds3d-city-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 9px;
}

.ds3d-city-head h2 {
    margin: 0;
    font-size: 14.5px;
    font-weight: 850;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    word-break: keep-all;
    line-height: 1.35;
}

.ds3d-city-head h2 i {
    color: #2563eb;
}

.ds3d-city-stage {
    height: 244px;
}

.ds3d-corridor-card {
    padding: 12px 14px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #dbe4f0;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.ds3d-corridor {
    position: relative;
    height: 238px;
    border-radius: 13px;
    overflow: hidden;
    background: radial-gradient(ellipse 85% 70% at 50% 42%, #132c63 0%, #091533 68%, #040a18 100%);
    border: 1px solid #1e3a78;
    perspective: 960px;
}

.ds3d-corridor-grid {
    position: absolute;
    left: -20%;
    right: -20%;
    bottom: -44px;
    height: 140px;
    background-image:
        linear-gradient(rgba(96, 165, 250, 0.22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 165, 250, 0.22) 1px, transparent 1px);
    background-size: 38px 28px;
    transform: rotateX(74deg);
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.ds3d-corridor-track {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ds3d-ev-card {
    position: absolute;
    width: 320px;
    max-width: calc(100% - 34px);
    padding: 13px 15px;
    border-radius: 14px;
    background: rgba(15, 37, 87, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(147, 197, 253, 0.4);
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(2, 8, 28, 0.55);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
    cursor: pointer;
}

.ds3d-ev-card.is-front {
    border-color: #60a5fa;
    background: linear-gradient(135deg, rgba(23, 58, 138, 0.96), rgba(11, 26, 64, 0.97));
}

.ds3d-ev-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.ds3d-ev-badge {
    font-size: 10.5px;
    font-weight: 850;
    padding: 2.5px 8px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.22);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.45);
}

html.ds-theme body .ds3d-corridor .ds3d-ev-card h3,
.ds3d-ev-card h3 {
    margin: 0 0 4px;
    font-size: 14.5px;
    font-weight: 900;
    color: #ffffff !important;
    word-break: keep-all;
    line-height: 1.38;
}

html.ds-theme body .ds3d-corridor .ds3d-ev-card p,
.ds3d-ev-card p {
    margin: 0;
    font-size: 11.5px;
    color: #cbd8f5 !important;
    line-height: 1.45;
    word-break: keep-all;
}

.ds3d-crystal-card {
    margin: 12px 0;
    padding: 13px 15px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #dbe4f0;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.ds3d-crystal-stage {
    height: 236px;
}

.ds3d-trophy-box {
    margin-top: 8px;
    padding: 11px 12px;
    border-radius: 14px;
    border: 1px solid #dbe4f0;
    background: #f8fafd;
}

.ds3d-trophy-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.ds3d-trophy-head strong {
    font-size: 13px;
    font-weight: 850;
    color: #0f2557;
}

.ds3d-trophy-stage {
    height: 220px;
    border-radius: 13px;
    padding: 12px;
    background: radial-gradient(circle at 50% 42%, #162e63 0%, #08122b 72%, #040917 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    perspective: 1000px;
    border: 1px solid #1e3a78;
}

.ds3d-trophy-card {
    width: 282px;
    max-width: 100%;
    height: 162px;
    border-radius: 16px;
    padding: 14px 16px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.14s ease-out;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
    box-shadow: 0 22px 44px rgba(2, 8, 28, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

.ds3d-trophy-card--navy {
    background: linear-gradient(135deg, #0d2050 0%, #1d4ed8 55%, #091536 100%);
    border: 1px solid rgba(147, 197, 253, 0.45);
}

.ds3d-trophy-card--rose {
    background: linear-gradient(135deg, #4c0519 0%, #be123c 52%, #1f0a1d 100%);
    border: 1px solid rgba(253, 164, 175, 0.48);
}

.ds3d-trophy-card--teal {
    background: linear-gradient(135deg, #042f2e 0%, #0f766e 52%, #071e26 100%);
    border: 1px solid rgba(94, 234, 212, 0.45);
}

.ds3d-trophy-sheen {
    position: absolute;
    inset: -40%;
    pointer-events: none;
    background: radial-gradient(circle 140px at var(--tx, 32%) var(--ty, 25%), rgba(255, 255, 255, 0.34), transparent 68%);
    mix-blend-mode: screen;
}

@media (max-width: 960px) {
    .ds3d-home-hero,
    .ds3d-stk-pass-wrap {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .ds3d-home-tile {
        padding: 8px 9px;
    }
    .ds3d-home-tile__top {
        font-size: 10.5px;
    }
    .ds3d-home-tile__val {
        font-size: 12.2px;
        white-space: normal;
        word-break: keep-all;
    }
    .ds3d-home-tile__sub {
        font-size: 10.2px;
    }
    .ds3d-home-links {
        gap: 5px;
    }
    .ds3d-home-qlink {
        font-size: 10.8px;
        padding: 4px 7px;
    }
    .ds3d-pill {
        font-size: 10px;
        padding: 2.5px 7px;
    }
    .ds3d-hud-t,
    .ds3d-hud-b {
        left: 8px;
        right: 8px;
    }
    .ds3d-home-hero,
    .ds3d-stk-pass-wrap,
    .ds3d-fut-card,
    .ds3d-city-section,
    .ds3d-corridor-card,
    .ds3d-crystal-card {
        padding: 12px;
        border-radius: 14px;
    }
    .ds3d-home-stage,
    .ds3d-hm-stage,
    .ds3d-fut-stage,
    .ds3d-city-stage,
    .ds3d-crystal-stage {
        height: 196px;
    }
    .ds3d-mcard {
        width: 256px;
        height: 156px;
    }
    .ds3d-ex-stack {
        width: 214px;
        height: 108px;
    }
    .ds3d-corridor {
        height: 220px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ds3d-mcard,
    .ds3d-trophy-card,
    .ds3d-ev-card {
        transition: none !important;
    }
}

html.ds-theme body.sd-home-panels {
    --ds-panel-left: 236px;
    --ds-panel-right: 288px;
    --ds-panel-gap: 16px;
    --ds-panel-top: calc(var(--ds-header-h, 72px) + 16px);
    --ds-panel-bottom-nav: 64px;
}

html.ds-theme body.sd-home-panels .sd-main {
    width: min(1640px, calc(100% - 32px)) !important;
    max-width: 1640px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 16px 0 0 !important;
}

html.ds-theme body.sd-home-panels .ds-home {
    padding-bottom: 32px;
}

html.ds-theme body.sd-home-panels .ds-desktop-shell {
    display: grid;
    grid-template-columns: var(--ds-panel-left) minmax(0, 1fr) var(--ds-panel-right);
    align-items: start;
    gap: var(--ds-panel-gap);
    width: 100% !important;
    max-width: 1640px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.sd-home-panels .ds-desktop-center {
    container-name: ds-home-content;
    container-type: inline-size;
    display: grid;
    align-content: start;
    gap: 16px;
    min-width: 0;
}

.sd-home-panels .ds-desktop-center > * {
    min-width: 0;
    max-width: 100%;
}

.sd-home-panels .ds-desktop-left,
.sd-home-panels .ds-desktop-right {
    position: sticky;
    top: var(--ds-panel-top);
    min-width: 0;
    max-height: calc(100vh - var(--ds-header-h, 72px) - 32px);
    max-height: calc(100dvh - var(--ds-header-h, 72px) - 32px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    border: 1px solid var(--ds-border, #e5eaf1);
    border-radius: 12px;
    background: var(--ds-card, #fff);
    color: var(--ds-text, #0f172a);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .025);
}

.sd-home-panels .ds-desktop-left {
    display: flex;
    flex-direction: column;
    padding: 0;
}
.sd-home-panels .ds-desktop-right { padding: 0; }

.sd-home-panels .ds-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 44px;
    padding: 12px 12px 8px 14px;
}

.sd-home-panels .ds-panel-head h2,
.sd-home-panels .ds-panel-head h3 {
    min-width: 0;
    margin: 0;
    color: var(--ds-text, #0f172a);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.4;
}

.sd-home-panels .ds-panel-head-controls {
    display: flex;
    align-items: center;
    gap: 3px;
}

.sd-home-panels .ds-panel-toggle,
.sd-home-panels .ds-panel-close {
    display: inline-flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ds-text-muted, #64748b);
    font: inherit;
    font-size: 17px;
    cursor: pointer;
}

.sd-home-panels .ds-panel-toggle:hover,
.sd-home-panels .ds-panel-close:hover {
    background: var(--ds-blue-soft, #eff4ff);
    color: var(--ds-navy, #0b3d91);
}

.sd-home-panels .ds-panel-close { display: none; }

/* PC Left Sidebar — Proposal 1 (Live-harmonized vertical rhythm) */
.sd-home-panels .ds-panel-left-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 56px;
    min-height: 56px;
    padding: 12px 12px 8px 16px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.sd-home-panels .ds-panel-left-head .ds-panel-toggle {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: var(--ds-text-muted, #64748b);
    font-size: 17px;
}

.sd-home-panels .ds-panel-left-head .ds-panel-toggle:hover {
    background: var(--ds-blue-soft, #eff4ff);
    color: var(--ds-navy, #0b3d91);
}

html.ds-theme .sd-home-panels .ds-left-mkt-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    height: 32px;
    padding: 0 11px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #1e293b;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
}

html.ds-theme .sd-home-panels .ds-left-mkt-pill:hover,
html.ds-theme .sd-home-panels .ds-left-mkt-pill.is-active {
    background: var(--ds-blue-soft, #eff4ff);
    border-color: #bfdbfe;
    color: var(--ds-navy, #0b3d91);
}

.sd-home-panels .ds-left-mkt-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16a34a;
    flex-shrink: 0;
}

.sd-home-panels .ds-left-mkt-pill.is-live .ds-left-mkt-dot {
    background: #16a34a;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, .16);
}

.sd-home-panels .ds-left-mkt-pill.is-pre .ds-left-mkt-dot {
    background: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, .16);
}

.sd-home-panels .ds-left-mkt-pill.is-after .ds-left-mkt-dot {
    background: #0284c7;
}

.sd-home-panels .ds-left-mkt-pill.is-weekend .ds-left-mkt-dot {
    background: #64748b;
}

.sd-home-panels .ds-left-mkt-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sd-home-panels .ds-left-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px 10px 14px;
    flex: 1 1 auto;
}

.sd-home-panels .ds-left-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 4px;
    border-radius: 12px;
    background: #f8fafd;
    border: 1px solid #e6edf7;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.sd-home-panels .ds-left-group:hover {
    border-color: #d6e2f2;
}

.sd-home-panels .ds-left-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 2px 3px 5px;
    border-bottom: 1px solid #e6edf6;
    transition: border-color 0.2s ease, padding-bottom 0.2s ease;
}

.sd-home-panels .ds-left-group.is-collapsed .ds-left-group-head {
    padding-bottom: 2px;
    border-bottom-color: transparent;
}

html.ds-theme .sd-home-panels .ds-left-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 28px;
    padding: 4px 6px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.14s ease;
}

html.ds-theme .sd-home-panels .ds-left-group-toggle:hover {
    background: rgba(255, 255, 255, 0.85);
}

html.ds-theme .sd-home-panels .ds-left-group-toggle:hover .ds-panel-section-label,
html.ds-theme .sd-home-panels .ds-left-group-toggle:hover .ds-left-group-chev,
html.ds-theme .sd-home-panels .ds-left-group-chev-btn:hover .ds-left-group-chev {
    color: #1d4ed8;
}

html.ds-theme .sd-home-panels .ds-left-group-chev-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.14s ease;
}

html.ds-theme .sd-home-panels .ds-left-group-chev-btn:hover {
    background: rgba(255, 255, 255, 0.85);
}

.sd-home-panels .ds-left-group-chev {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 250ms cubic-bezier(0.22, 1, 0.36, 1), color 150ms ease;
}

.sd-home-panels .ds-left-group.is-collapsed .ds-left-group-chev {
    transform: rotate(-90deg);
}

.sd-home-panels .ds-panel-section-label {
    margin: 0;
    color: #475569;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: -.015em;
    line-height: 1.35;
    white-space: nowrap;
    transition: color 0.14s ease;
}

html.ds-theme .sd-home-panels .ds-left-group-more {
    color: #1d4ed8;
    font-size: 11.5px;
    font-weight: 750;
    line-height: 1.35;
    text-decoration: none;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    padding: 2px 5px;
    border-radius: 6px;
    flex-shrink: 0;
}

html.ds-theme .sd-home-panels .ds-left-group-more:hover {
    background: #eff6ff;
    text-decoration: none;
}

html.ds-theme .sd-home-panels .ds-left-group-more.is-active {
    color: var(--ds-navy, #0b3d91);
    font-weight: 850;
}

.sd-home-panels .ds-left-group-panel {
    display: grid;
    grid-template-rows: 1fr;
    opacity: 1;
    padding-top: 5px;
}

.sd-home-panels .ds-desktop-left.is-acc-ready .ds-left-group-panel {
    transition: grid-template-rows 270ms cubic-bezier(0.22, 1, 0.36, 1), opacity 210ms ease, padding-top 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sd-home-panels .ds-left-group.is-collapsed .ds-left-group-panel {
    grid-template-rows: 0fr;
    opacity: 0;
    padding-top: 0;
    pointer-events: none;
}

.sd-home-panels .ds-panel-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 0;
    overflow: hidden;
    margin-left: 5px;
    padding-left: 5px;
    border-left: 2px solid #dbe5f4;
    transition: border-color 0.18s ease;
}

.sd-home-panels .ds-left-group:hover .ds-panel-nav {
    border-left-color: #bfd4f4;
}

html.ds-theme .sd-home-panels .ds-panel-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 37px;
    min-height: 37px;
    min-width: 0;
    padding: 0 8px;
    border-radius: 9px;
    color: var(--ds-text-sub, #475569);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 650;
    letter-spacing: -.02em;
    line-height: 1.35;
    box-sizing: border-box;
    border: 1px solid transparent;
    transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.sd-home-panels .ds-panel-nav-icon {
    display: inline-flex;
    flex: 0 0 18px;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #64748b;
    font-size: 16.5px;
    line-height: 1;
}

.sd-home-panels .ds-panel-nav-label {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sd-home-panels .ds-panel-nav-short { display: none; }

html.ds-theme .sd-home-panels button.ds-panel-nav-trigger {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.sd-home-panels .ds-panel-nav-chev {
    margin-left: auto;
    font-size: 11.5px;
    color: #94a3b8;
    flex-shrink: 0;
    transition: transform 0.16s ease, color 0.16s ease;
}

.sd-home-panels .ds-desktop-shell.is-left-collapsed .ds-panel-nav-chev {
    display: none;
}

html.ds-theme .sd-home-panels .ds-panel-nav-trigger:hover .ds-panel-nav-chev,
html.ds-theme .sd-home-panels .ds-panel-nav-trigger.is-pop-open .ds-panel-nav-chev {
    color: #1d4ed8;
    transform: translateX(2px);
}

html.ds-theme .sd-home-panels .ds-panel-nav-trigger.is-pop-open {
    background: var(--ds-blue-soft, #eff4ff);
    color: var(--ds-navy, #0b3d91);
}

.ds-left-pop {
    position: fixed;
    z-index: 1250;
    width: 244px;
    padding: 10px;
    border-radius: 15px;
    background: #ffffff;
    border: 1px solid #d7e3f4;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.15), 0 2px 6px rgba(15, 23, 42, 0.05);
    animation: dsLeftPopIn 0.14s ease-out;
}

.ds-left-pop[hidden] {
    display: none !important;
}

@keyframes dsLeftPopIn {
    from { opacity: 0; transform: translateX(-6px); }
    to { opacity: 1; transform: translateX(0); }
}

.ds-left-pop__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 6px 8px;
    margin-bottom: 6px;
    border-bottom: 1px solid #eef2f8;
    font-size: 12px;
    font-weight: 850;
    color: #475569;
    letter-spacing: -0.015em;
}

.ds-left-pop__close {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
}

.ds-left-pop__close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.ds-left-pop__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ds-left-pop__item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 14px;
    align-items: center;
    gap: 9px;
    padding: 8px 9px;
    border-radius: 11px;
    text-decoration: none;
    color: #0f172a;
    border: 1px solid transparent;
    transition: background-color 0.14s ease, border-color 0.14s ease;
}

.ds-left-pop__item:hover,
.ds-left-pop__item:focus-visible {
    background: #f4f8ff;
    border-color: #dbeafe;
    outline: none;
}

.ds-left-pop__item.is-active {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.ds-left-pop__ico {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.ds-left-pop__ico--all { background: #e2e8f0; color: #334155; }
.ds-left-pop__ico--kr { background: #dbeafe; color: #1d4ed8; }
.ds-left-pop__ico--us { background: #ede9fe; color: #6d28d9; }

.ds-left-pop__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.ds-left-pop__text strong {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}

.ds-left-pop__item.is-active .ds-left-pop__text strong {
    color: #1d4ed8;
}

.ds-left-pop__text small {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ds-left-pop__arr {
    font-size: 11px;
    color: #94a3b8;
}

.ds-left-pop__item:hover .ds-left-pop__arr,
.ds-left-pop__item.is-active .ds-left-pop__arr {
    color: #1d4ed8;
}

html.ds-theme .sd-home-panels .ds-panel-nav-link:hover {
    background: #ffffff;
    color: var(--ds-navy, #0b3d91);
    border-color: #e2eaf5;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

html.ds-theme .sd-home-panels .ds-panel-nav-link.is-active,
html.ds-theme .sd-home-panels .ds-panel-nav-link[aria-current="page"] {
    background: #eaf2ff;
    border-color: #c8defc;
    color: var(--ds-navy, #0b3d91);
    font-weight: 800;
    box-shadow: 0 1px 3px rgba(29, 78, 216, 0.08);
}

html.ds-theme .sd-home-panels .ds-panel-nav-link:hover .ds-panel-nav-icon,
html.ds-theme .sd-home-panels .ds-panel-nav-link.is-active .ds-panel-nav-icon,
html.ds-theme .sd-home-panels .ds-panel-nav-link[aria-current="page"] .ds-panel-nav-icon {
    color: var(--ds-navy, #0b3d91);
}

.sd-home-panels .ds-left-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    padding: 0 6px;
    border-radius: 5px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    white-space: nowrap;
}

.sd-home-panels .ds-left-badge--live {
    background: #dcfce7;
    color: #166534;
}

.sd-home-panels .ds-left-badge--ai {
    background: #e0e7ff;
    color: #1e40af;
}

.sd-home-panels .ds-left-chips {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) minmax(0, 1fr);
    gap: 5px;
    margin: 2px 0 4px;
    padding: 0 4px 0 32px;
}

html.ds-theme .sd-home-panels .ds-left-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    min-width: 0;
    padding: 0 4px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

html.ds-theme .sd-home-panels .ds-left-chip:hover,
html.ds-theme .sd-home-panels .ds-left-chip.is-active,
html.ds-theme .sd-home-panels .ds-left-chip[aria-current="page"] {
    background: var(--ds-blue-soft, #eff4ff);
    border-color: #93c5fd;
    color: #1d4ed8;
    font-weight: 750;
}

.sd-home-panels .ds-left-foot {
    margin-top: auto;
    padding: 12px;
    border-top: 1px solid var(--ds-border, #e5eaf1);
    background: #fff;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    flex-shrink: 0;
}

html.ds-theme .sd-home-panels .ds-left-foot-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    min-width: 0;
    padding: 0 6px;
    border: 1px solid var(--ds-border, #e2e8f0);
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

html.ds-theme .sd-home-panels .ds-left-foot-btn i {
    color: #64748b;
    font-size: 14.5px;
    line-height: 1;
    flex-shrink: 0;
}

html.ds-theme .sd-home-panels .ds-left-foot-btn:hover {
    border-color: #cbd5e1;
    background: var(--ds-blue-soft, #eff4ff);
    color: var(--ds-navy, #0b3d91);
}

html.ds-theme .sd-home-panels .ds-left-foot-btn:hover i,
html.ds-theme .sd-home-panels .ds-left-foot-btn.is-active i,
html.ds-theme .sd-home-panels .ds-left-foot-btn[aria-current="page"] i {
    color: #1d4ed8;
}

html.ds-theme .sd-home-panels .ds-left-foot-btn.is-active,
html.ds-theme .sd-home-panels .ds-left-foot-btn[aria-current="page"] {
    background: var(--ds-blue-soft, #eff4ff);
    border-color: #93c5fd;
    color: var(--ds-navy, #0b3d91);
}

/* Medium-height desktop windows (e.g., 1080p with bookmarks bar: 840px–919px) */
@media (min-width: 1366px) and (min-height: 840px) and (max-height: 919px) {
    .sd-home-panels .ds-desktop-shell:not(.is-left-collapsed) .ds-panel-left-head { height: 50px; min-height: 50px; padding: 10px 12px 6px 16px; }
    .sd-home-panels .ds-desktop-shell:not(.is-left-collapsed) .ds-left-body { gap: 12px; padding: 6px 12px 10px; }
    .sd-home-panels .ds-desktop-shell:not(.is-left-collapsed) .ds-left-group { gap: 5px; }
    .sd-home-panels .ds-desktop-shell:not(.is-left-collapsed) .ds-left-group + .ds-left-group { padding-top: 12px; }
    html.ds-theme .sd-home-panels .ds-desktop-shell:not(.is-left-collapsed) .ds-panel-nav-link { height: 37px; min-height: 37px; font-size: 13.5px; }
    html.ds-theme .sd-home-panels .ds-desktop-shell:not(.is-left-collapsed) .ds-left-chip { height: 26px; }
    .sd-home-panels .ds-desktop-shell:not(.is-left-collapsed) .ds-left-foot { padding: 10px 12px; }
    html.ds-theme .sd-home-panels .ds-desktop-shell:not(.is-left-collapsed) .ds-left-foot-btn { height: 34px; font-size: 12.5px; }
}

/* Compact vertical rhythm on shorter laptop screens (e.g., 1536x864 @ 125% scale: <=839px) */
@media (min-width: 1366px) and (max-height: 839px) {
    .sd-home-panels .ds-desktop-shell:not(.is-left-collapsed) .ds-panel-left-head { height: 44px; min-height: 44px; padding: 8px 10px 6px 12px; }
    html.ds-theme .sd-home-panels .ds-desktop-shell:not(.is-left-collapsed) .ds-left-mkt-pill { height: 27px; padding: 0 9px; font-size: 11.5px; }
    .sd-home-panels .ds-desktop-shell:not(.is-left-collapsed) .ds-panel-left-head .ds-panel-toggle { flex: 0 0 30px; width: 30px; height: 30px; font-size: 15.5px; }
    .sd-home-panels .ds-desktop-shell:not(.is-left-collapsed) .ds-left-body { gap: 8px; padding: 2px 10px 8px; }
    .sd-home-panels .ds-desktop-shell:not(.is-left-collapsed) .ds-left-group { gap: 4px; }
    .sd-home-panels .ds-desktop-shell:not(.is-left-collapsed) .ds-left-group + .ds-left-group { padding-top: 8px; }
    .sd-home-panels .ds-desktop-shell:not(.is-left-collapsed) .ds-panel-nav { gap: 2px; }
    html.ds-theme .sd-home-panels .ds-desktop-shell:not(.is-left-collapsed) .ds-panel-nav-link { height: 32px; min-height: 32px; font-size: 13px; }
    .sd-home-panels .ds-desktop-shell:not(.is-left-collapsed) .ds-panel-nav-icon { font-size: 15.5px; }
    .sd-home-panels .ds-desktop-shell:not(.is-left-collapsed) .ds-left-chips { margin: 1px 0 2px; }
    html.ds-theme .sd-home-panels .ds-desktop-shell:not(.is-left-collapsed) .ds-left-chip { height: 24px; font-size: 11.5px; }
    .sd-home-panels .ds-desktop-shell:not(.is-left-collapsed) .ds-left-foot { padding: 8px 10px; gap: 6px; }
    html.ds-theme .sd-home-panels .ds-desktop-shell:not(.is-left-collapsed) .ds-left-foot-btn { height: 30px; font-size: 12px; }
}

/* Prevent oversized blank gap on tall fullscreen / QHD / 4K monitors */
@media (min-width: 1366px) and (min-height: 1000px) {
    .sd-home-panels .ds-desktop-shell:not(.is-left-collapsed) .ds-left-body { flex: 0 0 auto; }
    .sd-home-panels .ds-desktop-shell:not(.is-left-collapsed) .ds-left-foot { margin-top: 6px; }
}

.sd-home-panels .ds-panel-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
    padding: 3px;
    margin: 0 12px 8px;
    border-radius: 9px;
    background: var(--ds-bg, #f8fafc);
}

.sd-home-panels .ds-panel-tabs button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 40px;
    min-width: 0;
    padding: 6px 2px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--ds-text-sub, #475569);
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
    cursor: pointer;
}

.sd-home-panels .ds-panel-tabs button[aria-selected="true"],
.sd-home-panels .ds-panel-tabs button.is-active {
    background: var(--ds-card, #fff);
    color: var(--ds-navy, #0b3d91);
    font-weight: 800;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .09);
}

.sd-home-panels .ds-panel-tab-icon { display: none; }
.sd-home-panels .ds-panel-pane { min-width: 0; padding: 0 14px 14px; }
.sd-home-panels .ds-panel-pane-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px 10px;
    padding: 10px 0 3px;
}

.sd-home-panels .ds-panel-pane-heading h3 {
    margin: 0;
    color: var(--ds-text, #0f172a);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
}

.sd-home-panels .ds-panel-pane-heading > span,
.sd-home-panels .ds-panel-pane-heading > a {
    color: var(--ds-text-muted, #64748b);
    text-decoration: none;
    font-size: 12px;
    line-height: 1.5;
}

.sd-home-panels .ds-panel-pane-heading > a { color: var(--ds-navy, #0b3d91); }
.sd-home-panels .ds-panel-pane[hidden],
.sd-home-panels .ds-panel-backdrop[hidden],
.sd-home-panels .ds-panel-toast[hidden],
.sd-home-panels [data-desktop-shell] [hidden] { display: none !important; }

.sd-home-panels .ds-panel-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sd-home-panels .ds-panel-list > li {
    min-width: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--ds-border, #e5eaf1);
}

.sd-home-panels .ds-panel-list > li:last-child { border-bottom: 0; }

html.ds-theme .sd-home-panels .ds-panel-item-title {
    display: block;
    margin: 0;
    color: var(--ds-text, #0f172a);
    text-decoration: none;
    font-size: 14px;
    font-weight: 650;
    letter-spacing: -.025em;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

html.ds-theme .sd-home-panels .ds-panel-item-title:hover { color: var(--ds-navy, #0b3d91); }

.sd-home-panels .ds-panel-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin: 6px 0 0;
    color: var(--ds-text-muted, #64748b);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.sd-home-panels .ds-panel-meta time,
.sd-home-panels .ds-panel-meta > span:last-child { font-variant-numeric: tabular-nums; }
.sd-home-panels .ds-panel-meta .ds-panel-save { margin-left: auto; }

.sd-home-panels .ds-panel-schedule-item {
    display: grid;
    grid-template-columns: 47px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
}

.sd-home-panels .ds-panel-schedule-item > time {
    padding-top: 1px;
    color: var(--ds-navy, #0b3d91);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
}

.sd-home-panels .ds-panel-schedule-body { min-width: 0; }
.sd-home-panels .ds-panel-schedule-body h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 650;
    letter-spacing: -.025em;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.sd-home-panels .ds-panel-schedule-body h3 a { text-decoration: none; }
.sd-home-panels .ds-panel-schedule-body h3 a:hover { color: var(--ds-navy, #0b3d91); }

html.ds-theme .sd-home-panels .ds-panel-stock-link {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    color: var(--ds-text, #0f172a);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.45;
}

.sd-home-panels .ds-panel-stock-name,
.sd-home-panels .ds-panel-stock-link > span:first-child {
    display: grid;
    gap: 2px;
    min-width: 0;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.sd-home-panels .ds-panel-stock-code,
.sd-home-panels .ds-panel-stock-link small {
    color: var(--ds-text-muted, #64748b);
    font-size: 12px;
    font-weight: 400;
}

.sd-home-panels .ds-panel-stock-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.sd-home-panels .ds-panel-stock-quote {
    display: grid;
    flex: 0 0 auto;
    justify-items: end;
    gap: 2px;
    font-size: 13px;
    line-height: 1.45;
    font-variant-numeric: tabular-nums;
}

.sd-home-panels .ds-panel-stock-quote small { font-size: 12px; }
.sd-home-panels .ds-panel-stock-quote .is-up { color: #cf3045; }
.sd-home-panels .ds-panel-stock-quote .is-down { color: #2563eb; }

.sd-home-panels .ds-panel-empty,
.sd-home-panels .ds-panel-login {
    padding: 20px 6px;
    color: var(--ds-text-sub, #475569);
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    overflow-wrap: anywhere;
}

.sd-home-panels .ds-panel-empty p,
.sd-home-panels .ds-panel-login p { margin: 0 0 12px; }
.sd-home-panels .ds-panel-empty p:last-child,
.sd-home-panels .ds-panel-login p:last-child { margin-bottom: 0; }

html.ds-theme .sd-home-panels .ds-panel-login a,
html.ds-theme .sd-home-panels .ds-panel-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid var(--ds-navy, #0b3d91);
    border-radius: 8px;
    background: var(--ds-navy, #0b3d91);
    color: #fff;
    text-decoration: none;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}

.sd-home-panels .ds-panel-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--ds-border, #e5eaf1);
    color: var(--ds-text-muted, #64748b);
    font-size: 12px;
    line-height: 1.5;
}

html.ds-theme .sd-home-panels .ds-panel-foot a {
    color: var(--ds-navy, #0b3d91);
    text-decoration: none;
    font-weight: 650;
}

.sd-home-panels .ds-panel-status {
    margin: 0;
    padding: 0 14px 12px;
    color: var(--ds-text-muted, #64748b);
    font-size: 12px;
    line-height: 1.5;
}

.sd-home-panels .ds-panel-pane > .ds-panel-status { padding: 0 0 8px; }
.sd-home-panels .ds-panel-status:empty,
.sd-home-panels .ds-panel-toast:empty { display: none; }

.sd-home-panels .ds-panel-new {
    display: block;
    width: calc(100% - 28px);
    min-height: 40px;
    margin: 0 14px 8px;
    padding: 8px;
    border: 1px solid #c6d8f5;
    border-radius: 8px;
    background: var(--ds-blue-soft, #eff4ff);
    color: var(--ds-navy, #0b3d91);
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}

.sd-home-panels .ds-panel-pane > .ds-panel-new { width: 100%; margin: 0 0 8px; }

.sd-home-panels .ds-panel-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    min-width: 32px;
    min-height: 32px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--ds-text-muted, #64748b);
    font: inherit;
    cursor: pointer;
}

.sd-home-panels .ds-panel-save:hover,
.sd-home-panels .ds-panel-save[aria-pressed="true"] {
    background: var(--ds-blue-soft, #eff4ff);
    color: var(--ds-navy, #0b3d91);
}

.sd-home-panels .ds-panel-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 1090;
    max-width: min(440px, calc(100vw - 32px));
    padding: 12px 18px;
    border-radius: 10px;
    background: var(--ds-navy-deep, #082a66);
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 4px 20px rgba(15, 23, 42, .18);
    transform: translateX(-50%);
}

.sd-home-panels .ds-panel-backdrop { display: none; }

.sd-home-panels .ds-home-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
    min-height: 72px;
    padding: 18px 20px;
    border: 1px solid var(--ds-border, #e5eaf1);
    border-radius: 12px;
    background: var(--ds-card, #fff);
}

.sd-home-panels .ds-home-intro h1 {
    margin: 0;
    color: var(--ds-text, #0f172a);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -.045em;
}

.sd-home-panels .ds-home-intro p {
    margin: 4px 0 0;
    color: var(--ds-text-muted, #64748b);
    font-size: 13px;
    line-height: 1.5;
}

html.ds-theme .sd-home-panels .ds-home-intro > a {
    color: var(--ds-navy, #0b3d91);
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.5;
}

.sd-home-panels .ds-mobile-shortcuts,
.sd-home-panels .ds-mobile-bottom-nav { display: none; }

html.ds-theme body.sd-home-panels .ds-home .ds-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
}

html.ds-theme body.sd-home-panels .ds-home .ds-kpi {
    min-width: 0;
    min-height: 96px;
    padding: 12px 14px;
    box-shadow: none;
}

.sd-home-panels .ds-home .ds-kpi .sd-market-asof {
    grid-column: 1 / -1;
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

html.ds-theme body.sd-home-panels .ds-home .ds-market-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

html.ds-theme body.sd-home-panels .ds-home .ds-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

html.ds-theme body.sd-home-panels .ds-home .ds-board > :first-child { grid-column: 1 / -1; }
html.ds-theme body.sd-home-panels .ds-home .ds-market-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html.ds-theme body.sd-home-panels .ds-home .ds-split { grid-template-columns: minmax(0, 1fr); gap: 16px; }
html.ds-theme body.sd-home-panels .ds-home .ds-ai-band { grid-template-columns: minmax(0, 1fr); }
html.ds-theme body.sd-home-panels .ds-home .ds-market-chart { height: 220px; min-height: 220px; }
html.ds-theme body.sd-home-panels .ds-home .ds-cat-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.sd-home-panels :where(.ds-panel-toggle, .ds-panel-close, .ds-panel-nav-link, .ds-left-mkt-pill,
    .ds-left-group-toggle, .ds-left-group-chev-btn,
    .ds-left-group-more, .ds-left-chip, .ds-left-foot-btn, .ds-panel-tabs button,
    .ds-panel-item-title, .ds-panel-stock-link, .ds-panel-action, .ds-panel-save,
    .ds-panel-new, .ds-panel-foot a, .ds-panel-login a, .ds-mobile-shortcuts > *,
    .ds-mobile-bottom-nav > *):focus-visible {
    outline: 2px solid var(--ds-blue, #2563eb);
    outline-offset: 2px;
}

@container ds-home-content (min-width: 800px) {
    html.ds-theme body.sd-home-panels .ds-home .ds-kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@container ds-home-content (min-width: 800px) and (max-width: 1099px) {
    html.ds-theme body.sd-home-panels .ds-home .ds-kpi { grid-template-columns: minmax(0, 1fr) 64px; }
    html.ds-theme body.sd-home-panels .ds-home .ds-kpi .ds-spark,
    html.ds-theme body.sd-home-panels .ds-home .ds-kpi .ds-gauge { width: 60px; }
}

@container ds-home-content (min-width: 760px) {
    html.ds-theme body.sd-home-panels .ds-home .ds-split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
}

@container ds-home-content (min-width: 1100px) {
    html.ds-theme body.sd-home-panels .ds-home .ds-board { grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, .8fr)); }
    html.ds-theme body.sd-home-panels .ds-home .ds-board > :first-child { grid-column: auto; }
}

@container ds-home-content (max-width: 949px) {
    .sd-home-panels .sd-stock-layout { grid-template-columns: minmax(0, 1fr); }
    .sd-home-panels .sd-stock-secondary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .sd-home-panels .sd-stock-secondary .sd-stock-card { margin: 0; }
    .sd-home-panels .sd-stock-help { grid-column: 1 / -1; }
}

@container ds-home-content (max-width: 759px) {
    .sd-home-panels .sd-personal-home__grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

@container ds-home-content (max-width: 599px) {
    .sd-home-panels .sd-stock-hero { flex-direction: column; align-items: start; padding: 18px; gap: 16px; }
    .sd-home-panels .sd-stock-quote { align-items: start; }
    .sd-home-panels .sd-stock-secondary { display: block; }
    .sd-home-panels .sd-stock-secondary .sd-stock-card { margin-bottom: 16px; }
    .sd-home-panels .sd-stock-section-head { flex-wrap: wrap; }
    .sd-home-panels .sd-stock-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@container ds-home-content (max-width: 479px) {
    html.ds-theme body.sd-home-panels .ds-home .ds-kpi { grid-template-columns: minmax(0, 1fr); min-height: 92px; padding: 11px 12px; }
    html.ds-theme body.sd-home-panels .ds-home .ds-kpi .ds-spark,
    html.ds-theme body.sd-home-panels .ds-home .ds-kpi .ds-gauge { display: none; }
    html.ds-theme body.sd-home-panels .ds-home .ds-board,
    html.ds-theme body.sd-home-panels .ds-home .ds-market-rail,
    html.ds-theme body.sd-home-panels .ds-home .ds-cat-cards { grid-template-columns: minmax(0, 1fr); }
    html.ds-theme body.sd-home-panels .ds-home .ds-ai-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    html.ds-theme body.sd-home-panels .ds-home .ds-market-chart { height: 190px; min-height: 190px; }
}

@media (min-width: 1100px) {
    
    html.ds-theme body.sd-home-panels .sd-main { width: 100% !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
    html.ds-theme body.sd-home-panels .ds-desktop-shell { max-width: none !important; }
    .sd-home-panels .ds-desktop-center { grid-column: 2; }
    .sd-home-panels .ds-desktop-left,
    .sd-home-panels .ds-desktop-right { position: fixed; top: var(--ds-header-h, 72px); bottom: 0; height: auto; max-height: none; margin: 0; border-top: 0; border-bottom: 0; border-radius: 0; box-shadow: none; box-sizing: border-box; z-index: 20; }
    .sd-home-panels .ds-desktop-left { left: 0; width: var(--ds-panel-left); border-left: 0; }
    .sd-home-panels .ds-desktop-right { right: 0; width: var(--ds-panel-right); border-right: 0; }
    html.ds-theme body.sd-home-panels { --ds-footer-left: var(--ds-panel-left); --ds-footer-right: var(--ds-panel-right); }
    html.ds-theme body.sd-home-panels:has(.ds-desktop-shell.is-left-collapsed) { --ds-footer-left: 64px; }
    html.ds-theme body.sd-home-panels:has(.ds-desktop-shell.is-right-collapsed) { --ds-footer-right: 48px; }
    html.ds-theme body.sd-home-panels .sd-footer { width: auto !important; max-width: none !important; margin-left: var(--ds-footer-left) !important; margin-right: var(--ds-footer-right) !important; }
    html.ds-theme body.sd-home-panels .sd-footer__top { grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); gap: 24px; }
    html.ds-theme body.sd-home-panels .sd-footer__top > * { min-width: 0; overflow-wrap: anywhere; }
    html.ds-theme body.sd-home-panels .sd-floating-actions { right: calc(var(--ds-footer-right) + 16px) !important; }
    html.ds-theme .sd-home-panels .ds-nav,
    html.ds-theme .sd-home-panels .ds-header.is-nav-open .ds-nav { display: none !important; }
    html.ds-theme .sd-home-panels .ds-header .ds-menu-toggle { display: none; }
    html.ds-theme .sd-home-panels .ds-header .ds-header__bar { grid-template-columns: auto minmax(240px, 1fr) auto; gap: 24px; }
    html.ds-theme .sd-home-panels .ds-header .ds-search { max-width: 680px; justify-self: center; width: 100%; }
    html.ds-theme .sd-home-panels .ds-header .ds-wrap { max-width: none !important; }
    .sd-home-panels .ds-desktop-shell.is-left-collapsed { --ds-panel-left: 64px; }
    .sd-home-panels .ds-desktop-shell.is-right-collapsed { --ds-panel-right: 48px; }
    html.ds-theme body.sd-home-panels .is-left-collapsed .ds-desktop-left { padding: 0; }
    html.ds-theme body.sd-home-panels .is-left-collapsed .ds-panel-left-head { justify-content: center; height: 48px; min-height: 48px; padding: 6px 4px 2px; }
    html.ds-theme body.sd-home-panels .is-left-collapsed .ds-left-mkt-pill,
    html.ds-theme body.sd-home-panels .is-left-collapsed .ds-left-group-head,
    html.ds-theme body.sd-home-panels .is-left-collapsed .ds-panel-nav-label,
    html.ds-theme body.sd-home-panels .is-left-collapsed .ds-left-badge,
    html.ds-theme body.sd-home-panels .is-left-collapsed .ds-left-chips,
    html.ds-theme body.sd-home-panels .is-left-collapsed .ds-left-foot-label,
    html.ds-theme body.sd-home-panels .is-left-collapsed .ds-panel-nav-short { display: none !important; }
    html.ds-theme body.sd-home-panels .is-left-collapsed .ds-left-body { padding: 4px 8px 8px; gap: 7px; flex: 1 1 auto; }
    html.ds-theme body.sd-home-panels .is-left-collapsed .ds-left-group { gap: 2px; padding: 0; border: 0; border-radius: 0; background: transparent; }
    html.ds-theme body.sd-home-panels .is-left-collapsed .ds-left-group + .ds-left-group { padding-top: 7px; border-top: 1px solid var(--ds-border, #e5eaf1); }
    html.ds-theme body.sd-home-panels .is-left-collapsed .ds-left-group-panel,
    html.ds-theme body.sd-home-panels .is-left-collapsed .ds-left-group.is-collapsed .ds-left-group-panel { grid-template-rows: 1fr !important; opacity: 1 !important; padding-top: 0 !important; pointer-events: auto !important; }
    html.ds-theme body.sd-home-panels .is-left-collapsed .ds-panel-nav { gap: 2px; margin-left: 0; padding-left: 0; border-left: 0; }
    html.ds-theme body.sd-home-panels .is-left-collapsed .ds-panel-nav-link { justify-content: center; height: 36px; min-height: 36px; padding: 0; border-radius: 9px; }
    html.ds-theme body.sd-home-panels .is-left-collapsed .ds-panel-nav-icon { flex: 0 0 20px; width: 20px; height: 20px; font-size: 17px; }
    html.ds-theme body.sd-home-panels .is-left-collapsed .ds-left-foot { grid-template-columns: minmax(0, 1fr); gap: 5px; padding: 8px; margin-top: auto; }
    html.ds-theme body.sd-home-panels .is-left-collapsed .ds-left-foot-btn { height: 34px; padding: 0; }
    html.ds-theme body.sd-home-panels .is-left-collapsed .ds-left-foot-btn i { font-size: 16px; }
    .sd-home-panels .is-right-collapsed .ds-panel-head { justify-content: center; padding: 8px 4px; }
    .sd-home-panels .is-right-collapsed .ds-panel-head h2,
    .sd-home-panels .is-right-collapsed .ds-panel-head h3,
    .sd-home-panels .is-right-collapsed .ds-panel-pane,
    .sd-home-panels .is-right-collapsed .ds-panel-status,
    .sd-home-panels .is-right-collapsed .ds-panel-new { display: none; }
    .sd-home-panels .is-right-collapsed .ds-panel-tabs { grid-template-columns: minmax(0, 1fr); gap: 6px; margin: 0 4px 8px; padding: 0; background: transparent; }
    .sd-home-panels .is-right-collapsed .ds-panel-tabs button { flex-direction: column; gap: 4px; padding: 9px 0; min-height: 48px; }
    .sd-home-panels .is-right-collapsed .ds-panel-tab-icon { display: inline-block; font-size: 17px; }
    .sd-home-panels .is-right-collapsed .ds-panel-tab-label { font-size: 10px; }
}

@media (min-width: 1100px) and (max-width: 1365px) {
    html.ds-theme body.sd-home-panels { --ds-panel-left: 64px; --ds-panel-right: 280px; }
    html.ds-theme body.sd-home-panels .ds-desktop-left { padding: 0; }
    html.ds-theme body.sd-home-panels .ds-desktop-left .ds-panel-left-head,
    html.ds-theme body.sd-home-panels .ds-desktop-left .ds-left-mkt-pill,
    html.ds-theme body.sd-home-panels .ds-desktop-left .ds-left-group-head,
    html.ds-theme body.sd-home-panels .ds-desktop-left .ds-panel-nav-label,
    html.ds-theme body.sd-home-panels .ds-desktop-left .ds-left-badge,
    html.ds-theme body.sd-home-panels .ds-desktop-left .ds-left-chips,
    html.ds-theme body.sd-home-panels .ds-desktop-left .ds-left-foot-label,
    html.ds-theme body.sd-home-panels .ds-desktop-left .ds-panel-nav-short { display: none !important; }
    html.ds-theme body.sd-home-panels .ds-desktop-left .ds-left-body { padding: 10px 8px 8px; gap: 8px; }
    html.ds-theme body.sd-home-panels .ds-desktop-left .ds-left-group { gap: 2px; padding: 0; border: 0; border-radius: 0; background: transparent; }
    html.ds-theme body.sd-home-panels .ds-desktop-left .ds-left-group + .ds-left-group { padding-top: 8px; border-top: 1px solid var(--ds-border, #e5eaf1); }
    html.ds-theme body.sd-home-panels .ds-desktop-left .ds-left-group-panel,
    html.ds-theme body.sd-home-panels .ds-desktop-left .ds-left-group.is-collapsed .ds-left-group-panel { grid-template-rows: 1fr !important; opacity: 1 !important; padding-top: 0 !important; pointer-events: auto !important; }
    html.ds-theme body.sd-home-panels .ds-desktop-left .ds-panel-nav { gap: 3px; margin-left: 0; padding-left: 0; border-left: 0; }
    html.ds-theme body.sd-home-panels .ds-desktop-left .ds-panel-nav-link { justify-content: center; height: 38px; min-height: 38px; padding: 0; border-radius: 9px; }
    html.ds-theme body.sd-home-panels .ds-desktop-left .ds-panel-nav-icon { flex: 0 0 20px; width: 20px; height: 20px; font-size: 17px; }
    html.ds-theme body.sd-home-panels .ds-desktop-left .ds-left-foot { grid-template-columns: minmax(0, 1fr); gap: 5px; padding: 8px; }
    html.ds-theme body.sd-home-panels .ds-desktop-left .ds-left-foot-btn { height: 36px; padding: 0; }
    html.ds-theme body.sd-home-panels .ds-desktop-left .ds-left-foot-btn i { font-size: 16px; }
}

@media (max-width: 1099px) {
    html.ds-theme body.sd-home-panels .sd-main { width: calc(100% - 24px) !important; padding-top: 12px !important; }
    html.ds-theme body.sd-home-panels .ds-desktop-shell { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    html.ds-theme body.sd-home-panels .ds-desktop-left,
    .sd-home-panels .ds-desktop-left { display: none !important; }
    .sd-home-panels .ds-desktop-center { gap: 12px; }
    .sd-home-panels .ds-desktop-right { position: static; max-height: none; width: 100%; }
    .sd-home-panels .ds-panel-toggle { display: none; }
    .sd-home-panels .ds-mobile-shortcuts { display: flex; gap: 8px; flex-wrap: wrap; }
    .sd-home-panels .ds-mobile-shortcuts > * { display: inline-flex; flex: 1 1 0; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 9px 12px; border: 1px solid var(--ds-border, #e5eaf1); border-radius: 9px; background: var(--ds-card, #fff); color: var(--ds-text-sub, #475569); font: inherit; font-size: 13px; font-weight: 650; line-height: 1.4; text-decoration: none; cursor: pointer; }
    .sd-home-panels .ds-mobile-shortcuts > *:hover { color: var(--ds-navy, #0b3d91); background: var(--ds-blue-soft, #eff4ff); }
    .sd-home-panels .ds-mobile-shortcuts i { color: var(--ds-navy, #0b3d91); font-size: 16px; }
    .sd-home-panels .is-panels-ready .ds-desktop-right { display: none; }
    .sd-home-panels .is-panels-ready .ds-desktop-right.is-open { display: block; position: fixed; top: calc(var(--ds-header-h, 72px) + 8px); right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 1050; width: min(380px, calc(100vw - 24px)); max-height: none; padding-bottom: 12px; box-shadow: 0 12px 48px rgba(15, 23, 42, .2); }
    .sd-home-panels .is-panels-ready .ds-panel-close { display: inline-flex; }
    .sd-home-panels .ds-panel-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 1040; border: 0; background: rgba(15, 23, 42, .42); cursor: pointer; }
    html.ds-theme body.sd-home-panels.is-panel-drawer-open { overflow: hidden; }
    html.ds-theme body.sd-home-panels.is-panel-drawer-open .sd-main { z-index: 1040; }
    html.ds-theme body.sd-home-panels { padding-bottom: calc(var(--ds-panel-bottom-nav) + env(safe-area-inset-bottom, 0px)); }
    .sd-home-panels .ds-mobile-bottom-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035; min-height: var(--ds-panel-bottom-nav); padding: 5px max(8px, env(safe-area-inset-left, 0px)) calc(5px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--ds-border, #e5eaf1); background: rgba(255, 255, 255, .97); box-shadow: 0 -2px 12px rgba(15, 23, 42, .035); }
    .sd-home-panels .ds-mobile-bottom-nav > * { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 52px; min-width: 0; padding: 4px 2px; border: 0; border-radius: 8px; background: transparent; color: var(--ds-text-muted, #64748b); font: inherit; font-size: 11px; font-weight: 650; line-height: 1.3; text-decoration: none; cursor: pointer; }
    .sd-home-panels .ds-mobile-bottom-nav i { font-size: 20px; line-height: 1; }
    .sd-home-panels .ds-mobile-bottom-nav > .is-active,
    .sd-home-panels .ds-mobile-bottom-nav > [aria-current="page"],
    .sd-home-panels .ds-mobile-bottom-nav > [aria-expanded="true"] { background: var(--ds-blue-soft, #eff4ff); color: var(--ds-navy, #0b3d91); }
    .sd-home-panels .sd-floating-actions { bottom: calc(var(--ds-panel-bottom-nav) + env(safe-area-inset-bottom, 0px) + 12px) !important; right: 12px !important; }
    .sd-home-panels .ds-panel-toast,
    .sd-home-panels .sd-stock-toast,
    .sd-home-panels .sd-news__toast { bottom: calc(var(--ds-panel-bottom-nav) + env(safe-area-inset-bottom, 0px) + 14px); }
    .sd-home-panels input,
    .sd-home-panels select,
    .sd-home-panels textarea { font-size: 16px; }
    .sd-home-panels .ds-panel-item-title,
    .sd-home-panels .ds-panel-schedule-body h3,
    .sd-home-panels .ds-panel-stock-link { font-size: 15px; }
}

@media (max-width: 479px) {
    html.ds-theme body.sd-home-panels .sd-main { width: calc(100% - 20px) !important; }
    .sd-home-panels .ds-home-intro { min-height: 0; padding: 15px 16px; }
    .sd-home-panels .ds-home-intro h1 { font-size: 21px; }
    .sd-home-panels .ds-home-intro p { font-size: 12px; }
    .sd-home-panels .ds-mobile-shortcuts { gap: 6px; }
    .sd-home-panels .ds-mobile-shortcuts > * { padding: 9px 6px; gap: 5px; font-size: 12px; }
    .sd-home-panels .ds-desktop-right.is-open .ds-panel-head { padding-top: 10px; }
    .sd-home-panels .ds-panel-close { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    .sd-home-panels [data-desktop-shell] *,
    .sd-home-panels .ds-mobile-bottom-nav * { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; animation-iteration-count: 1 !important; }
}


@media (min-width: 1100px) {
    html.ds-theme body.sd-home-panels { --ds-panel-motion: 260ms cubic-bezier(.22, 1, .36, 1); }
    html.ds-theme body.sd-home-panels .ds-desktop-shell.is-panel-motion-ready { transition: grid-template-columns var(--ds-panel-motion); }
    html.ds-theme body.sd-home-panels .is-panel-motion-ready .ds-desktop-left,
    html.ds-theme body.sd-home-panels .is-panel-motion-ready .ds-desktop-right { transition: width var(--ds-panel-motion), padding var(--ds-panel-motion); }
    html.ds-theme body.sd-home-panels:has(.ds-desktop-shell.is-panel-motion-ready) .sd-footer { transition: margin-left var(--ds-panel-motion), margin-right var(--ds-panel-motion); }
    html.ds-theme body.sd-home-panels:has(.ds-desktop-shell.is-panel-motion-ready) .sd-floating-actions { transition: right var(--ds-panel-motion); }

    
    html.ds-theme body.sd-home-panels .ds-desktop-right .ds-panel-head { position: relative; height: 56px; min-height: 56px; box-sizing: border-box; }
    html.ds-theme body.sd-home-panels .ds-desktop-right .ds-panel-head-controls { position: absolute; right: 12px; top: 10px; }
    html.ds-theme body.sd-home-panels .is-right-collapsed .ds-desktop-right .ds-panel-head-controls { right: 5px; }
    html.ds-theme body.sd-home-panels .ds-desktop-right .ds-panel-head h2 { display: block; opacity: 1; visibility: visible; white-space: nowrap; }
    html.ds-theme body.sd-home-panels .is-right-collapsed .ds-desktop-right .ds-panel-head h2 { opacity: 0; visibility: hidden; }
    html.ds-theme body.sd-home-panels .is-panel-motion-ready .ds-panel-head-controls { transition: right var(--ds-panel-motion); }
    html.ds-theme body.sd-home-panels .is-panel-motion-ready .ds-panel-head h2 { transition: opacity var(--ds-panel-motion), visibility var(--ds-panel-motion); }

    
    html.ds-theme body.sd-home-panels .ds-desktop-right .ds-panel-tabs { position: relative; display: block; height: 46px; min-height: 46px; padding: 0; box-sizing: border-box; }
    html.ds-theme body.sd-home-panels .ds-desktop-right .ds-panel-tabs button { --ds-tab-index: 0; position: absolute; left: calc(var(--ds-tab-index) * 25% + 3px); top: 3px; width: calc(25% - 6px); height: 40px; min-height: 40px; padding: 0; overflow: hidden; box-sizing: border-box; }
    html.ds-theme body.sd-home-panels .ds-desktop-right .ds-panel-tabs button:nth-child(2) { --ds-tab-index: 1; }
    html.ds-theme body.sd-home-panels .ds-desktop-right .ds-panel-tabs button:nth-child(3) { --ds-tab-index: 2; }
    html.ds-theme body.sd-home-panels .ds-desktop-right .ds-panel-tabs button:nth-child(4) { --ds-tab-index: 3; }
    html.ds-theme body.sd-home-panels .ds-desktop-right .ds-panel-tab-icon { display: inline-block; position: absolute; left: 50%; top: 7px; transform: translateX(-50%); font-size: 17px; line-height: 1; opacity: 0; visibility: hidden; pointer-events: none; }
    html.ds-theme body.sd-home-panels .ds-desktop-right .ds-panel-tab-label { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); font-size: 13px; line-height: 1.3; white-space: nowrap; pointer-events: none; }
    html.ds-theme body.sd-home-panels .is-right-collapsed .ds-desktop-right .ds-panel-tabs { height: 210px; min-height: 210px; }
    html.ds-theme body.sd-home-panels .is-right-collapsed .ds-desktop-right .ds-panel-tabs button { left: 0; top: calc(var(--ds-tab-index) * 54px); width: 100%; height: 48px; min-height: 48px; }
    html.ds-theme body.sd-home-panels .is-right-collapsed .ds-desktop-right .ds-panel-tab-icon { opacity: 1; visibility: visible; }
    html.ds-theme body.sd-home-panels .is-right-collapsed .ds-desktop-right .ds-panel-tab-label { top: 33px; font-size: 10px; }
    html.ds-theme body.sd-home-panels .ds-desktop-right .ds-panel-body { display: grid; grid-template-rows: 1fr; }
    html.ds-theme body.sd-home-panels .is-right-collapsed .ds-desktop-right .ds-panel-body { grid-template-rows: 0fr; }
    html.ds-theme body.sd-home-panels .ds-desktop-right .ds-panel-pane:not([hidden]) { display: block; min-height: 0; overflow: hidden; opacity: 1; visibility: visible; }
    html.ds-theme body.sd-home-panels .is-right-collapsed .ds-desktop-right .ds-panel-pane:not([hidden]) { padding-bottom: 0; opacity: 0; visibility: hidden; pointer-events: none; }
    html.ds-theme body.sd-home-panels .is-panel-motion-ready .ds-panel-tabs { transition: height var(--ds-panel-motion), min-height var(--ds-panel-motion), margin var(--ds-panel-motion), background-color var(--ds-panel-motion); }
    html.ds-theme body.sd-home-panels .is-panel-motion-ready .ds-panel-tabs button { transition: left var(--ds-panel-motion), top var(--ds-panel-motion), width var(--ds-panel-motion), height var(--ds-panel-motion), min-height var(--ds-panel-motion); }
    html.ds-theme body.sd-home-panels .is-panel-motion-ready .ds-panel-tab-icon { transition: opacity var(--ds-panel-motion), visibility var(--ds-panel-motion); }
    html.ds-theme body.sd-home-panels .is-panel-motion-ready .ds-panel-tab-label { transition: top var(--ds-panel-motion), font-size var(--ds-panel-motion); }
    html.ds-theme body.sd-home-panels .is-panel-motion-ready .ds-panel-body { transition: grid-template-rows var(--ds-panel-motion); }
    html.ds-theme body.sd-home-panels .is-panel-motion-ready .ds-panel-pane { transition: opacity var(--ds-panel-motion), visibility var(--ds-panel-motion), padding-bottom var(--ds-panel-motion); }
}



@media (prefers-reduced-motion: reduce) {
    .sd-home-panels [data-desktop-shell],
    .sd-home-panels [data-desktop-shell] *,
    .sd-home-panels .sd-footer,
    .sd-home-panels .sd-floating-actions { transition-duration: 0s !important; transition-delay: 0s !important; animation-duration: 0s !important; animation-delay: 0s !important; }
}




@media (min-width: 1100px) {
    html.ds-theme body.sd-home-panels.sd-focused-body {
        --rd-header-h: 64px;
        --ds-header-h: 64px;
    }
    html.ds-theme body.sd-home-panels.sd-focused-body .ds-header .ds-wrap {
        width: 100% !important;
        max-width: none !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
    html.ds-theme body.sd-home-panels.sd-focused-body .ds-header .ds-header__bar {
        grid-template-columns: minmax(180px, 1fr) minmax(320px, 560px) minmax(180px, 1fr);
        gap: 24px;
        height: 64px;
        min-height: 64px;
    }
    html.ds-theme body.sd-home-panels.sd-focused-body .ds-header .ds-logo {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        font-size: 19px;
        gap: 9px;
    }
    html.ds-theme body.sd-home-panels.sd-focused-body .ds-header .ds-search {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
        max-width: 560px;
        margin: 0;
    }
    html.ds-theme body.sd-home-panels.sd-focused-body .ds-header .ds-search input {
        height: 40px;
        padding-left: 40px;
        padding-right: 42px;
        border-radius: 8px;
        font-size: 14px;
    }
    html.ds-theme body.sd-home-panels.sd-focused-body .ds-header .ds-search__icon { left: 14px; font-size: 14px; }
    html.ds-theme body.sd-home-panels.sd-focused-body .ds-header .ds-search button { width: 32px; height: 32px; font-size: 14px; }
    html.ds-theme body.sd-home-panels.sd-focused-body .ds-header .ds-header__tools {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        justify-content: flex-end;
        gap: 8px;
        min-width: 0;
    }
    html.ds-theme body.sd-home-panels.sd-focused-body .ds-header .ds-user-link {
        min-height: 38px;
        padding: 0 16px;
        font-size: 13px;
        border-radius: 8px;
    }
}

@media (min-width: 1100px) {
    html.ds-theme body.sd-home-panels > .ds-panel-nav-tooltip {
        position: fixed;
        z-index: 1100;
        max-width: calc(100vw - 88px);
        padding: 9px 13px;
        border-radius: 7px;
        background: var(--ds-navy-deep, #082a66);
        color: #fff;
        box-shadow: 0 4px 14px rgba(15, 23, 42, .16);
        font-size: 13px;
        font-weight: 650;
        line-height: 1.4;
        white-space: nowrap;
        pointer-events: auto;
    }
    html.ds-theme body.sd-home-panels > .ds-panel-nav-tooltip::before {
        content: '';
        position: absolute;
        left: -5px;
        top: calc(50% - 5px);
        width: 10px;
        height: 10px;
        background: inherit;
        transform: rotate(45deg);
    }
}
html.ds-theme body.sd-home-panels > .ds-panel-nav-tooltip[hidden] { display: none !important; }


/* Focused public content. Header, side panels and their motion keep their own layout. */
html.ds-theme body.sd-focused-body .sd-main {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

html.ds-theme body.sd-focused-body .ds-desktop-center {
    container-name: none;
    container-type: normal;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
}

html.ds-theme body.sd-focused-body .ds-focused-standalone {
    width: 100%;
    min-width: 0;
    padding: 0;
}

html.ds-theme body.sd-focused-body .ds-content-frame {
    --ds-content-max: 1280px;
    container-name: ds-home-content ds-focused-content;
    container-type: inline-size;
    display: grid;
    align-content: start;
    gap: 16px;
    box-sizing: border-box;
    width: min(100%, var(--ds-content-max)) !important;
    min-width: 0 !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0;
    padding-right: 0;
    position: relative;
    transform: none;
    /* Actual sidebar rectangles drive the frame on every motion frame. */
    transition: none !important;
    animation: none !important;
}

html.ds-theme body.sd-focused-body .ds-content-frame[data-content-kind="article"] { --ds-content-max: 1040px; }
html.ds-theme body.sd-focused-body .ds-content-frame[data-content-kind="task"] { --ds-content-max: 1280px; }
html.ds-theme body.sd-focused-body .ds-content-frame[data-content-kind="form"] { --ds-content-max: 560px; }

html.ds-theme body.sd-focused-body .ds-content-frame > * { min-width: 0; }

/* A visible content surface separates the center from the surrounding page gutters. */
html.ds-theme body.sd-focused-body.sd-home-panels .ds-content-frame {
    padding: 20px;
    border: 1px solid #cbd8e8;
    border-radius: 16px;
    background: #eef3f9;
    box-shadow: 0 4px 18px rgba(18, 49, 92, .06);
}

/* Preserve the tool directory's three columns inside the newly padded surface. */
@container ds-focused-content (min-width: 860px) {
    html.ds-theme body.sd-focused-body.sd-home-panels .sd-tool-page { --sd-tool-hub-columns: 3; }
}

@media (min-width: 1100px) {
    html.ds-theme body.sd-focused-body .ds-content-frame.is-content-positioned {
        width: var(--ds-content-width) !important;
        margin-left: var(--ds-content-inset) !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 1099px) {
    html.ds-theme body.sd-focused-body .sd-main {
        width: calc(100% - 24px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    html.ds-theme body.sd-focused-body .ds-content-frame {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        gap: 12px;
    }
    html.ds-theme body.sd-focused-body.sd-home-panels .ds-content-frame {
        padding: 12px;
        border-radius: 14px;
    }
    html.ds-theme body.sd-focused-body .ds-focused-standalone > .ds-content-frame[data-content-kind="form"] {
        width: min(100%, 560px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    html.ds-theme body.sd-focused-body .ds-content-frame :is(input, select, textarea) { font-size: 16px; }
    /* Only known viewport toasts are portalled; native dialogs keep their app scope. */
    html.ds-theme body.sd-focused-body > :is(.sd-stock-toast, .sd-news__toast, .hm-toast,
        .sd-tool-toast, .sd-investment-toast, .sd-watch-toast)[data-content-overlay] {
        bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

@media (max-width: 479px) {
    html.ds-theme body.sd-focused-body.sd-home-panels .ds-content-frame {
        padding: 10px;
        border-radius: 12px;
    }
}

/* Page content responds to its reading frame, independently of the screen rails. */
html.ds-theme body.sd-focused-body .ds-content-frame {
  --ds-focused-shell-width:100%;
  --ds-focused-shell-max:none;
  --ds-focused-reading-max:760px;
  --ds-focused-space:16px;
  --ds-focused-space-compact:12px;
  --ds-focused-policy-padding-start:4px;
  --ds-focused-policy-padding-end:32px;
  --ds-focused-policy-padding-compact:18px;
}
html.ds-theme body.sd-focused-body .ds-content-frame > :is(section, article, main) { min-width:0; width:var(--ds-focused-shell-width); }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-blog-page__container,.sd-news-page__container,.sd-futures__container,.sd-member-shell,.sd-investment-shell,.sd-about-page__container,.sd-privacy-page__container,.sd-terms-page__container,.sd-cookie-page__container) { width:var(--ds-focused-shell-width); max-width:var(--ds-focused-shell-max); margin-inline:0; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-about-page,.sd-privacy-page,.sd-terms-page,.sd-cookie-page) { padding:var(--ds-focused-policy-padding-start) 0 var(--ds-focused-policy-padding-end); }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-about-page__container,.sd-privacy-page__container,.sd-terms-page__container,.sd-cookie-page__container) { padding-inline:0; }
html.ds-theme body.sd-focused-body .ds-content-frame .ds-hero__banner { min-height:0 !important; padding:20px !important; margin-bottom:16px; }
html.ds-theme body.sd-focused-body .ds-content-frame .ds-hero__banner h1 { font-size:26px !important; line-height:1.35; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-stock-heading h1,.sd-stock-hero h1) { font-size:26px; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-news__row,.sd-news-archive-list,.sd-insight-archive) { min-width:0; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-news__row { padding-block:14px; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-news__title { font-size:15px; line-height:1.6; }

/* Lists stay readable; article side material follows the main text. */
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-news-detail__row,.sd-blog-layout--article,.sd-blog-detail-top,.sd-blog-layout--reports,.sd-v2-insight-layout) { display:grid; grid-template-columns:minmax(0,1fr) !important; gap:16px; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-blog-sidebar,.sd-v2-insight-sidebar) { position:static; width:100%; min-width:0; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-v2-insight-toc.ds-card { position:static; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-news-featured { grid-template-columns:160px minmax(0,1fr) !important; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-news-featured__quote { grid-column:1/-1; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-blog-detail__hero { grid-template-columns:minmax(0,1fr) !important; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-report-hero-visual { min-height:180px; }
html.ds-theme body.sd-focused-body .ds-content-frame .ds-article.sd-blog-article { grid-template-columns:minmax(0,1fr) !important; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.ds-toc,.sd-blog-rail) { position:static; width:100%; grid-column:auto; }
html.ds-theme body.sd-focused-body .ds-content-frame .ds-toc { display:flex; flex-wrap:wrap; gap:4px 12px; }
html.ds-theme body.sd-focused-body .ds-content-frame .ds-toc strong { width:100%; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-blog-featured { align-items:start; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-blog-featured__recent { grid-template-columns:minmax(0,1fr); }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-blog-featured__recent .sd-blog-pop { display:grid; grid-template-columns:76px minmax(0,1fr); gap:4px 12px; padding:10px; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-blog-featured__recent .sd-blog-pop :is(img,.sd-rd-report-tile) { grid-row:1/3; width:76px; height:70px; border-radius:6px; object-fit:cover; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-blog-featured__recent .sd-blog-pop .ds-kicker { display:none; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-blog-featured__recent .sd-blog-pop strong { font-size:14px; line-height:1.55; min-height:0; padding:0; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-blog-featured__recent .sd-blog-pop .ds-lead { padding:0; font-size:11px; }
html.ds-theme body.sd-focused-body .ds-content-frame .hm-detail { grid-template-columns:minmax(0,1fr); }
html.ds-theme body.sd-focused-body .ds-content-frame .hm-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-page { min-height:0; padding:4px 0 32px; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-hero { grid-template-columns:minmax(0,1fr) 300px; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-guide-grid { grid-template-columns:minmax(0,1fr); }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-futures__grid { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-futures-card { min-height:0; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-chart-canvas-wrap { height:320px; }
html.ds-theme body.sd-focused-body .ds-content-frame .ds-focused-details > summary { cursor:pointer; }
html.ds-theme body.sd-focused-body .ds-content-frame .ds-focused-details > summary::after { content:'펼치기'; margin-left:auto; color:#61738b; font-size:12px; }
html.ds-theme body.sd-focused-body .ds-content-frame .ds-focused-details[open] > summary::after { content:'접기'; }

@container ds-focused-content (max-width:899px) {
  html.ds-theme body.sd-focused-body .ds-content-frame .sd-futures__grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}
html.ds-theme body.sd-focused-body .ds-content-frame :is(.ds-post-prose,.sd-market-insight__content) { font-size:16px; line-height:1.9; overflow-wrap:anywhere; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.ds-post-prose img,.sd-market-insight__content img) { max-width:100%; height:auto; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-blog-detail__title,.sd-market-insight__title) { font-size:26px; line-height:1.4; }

/* Stock/chart pages get the full task frame; secondary information stays below. */
html.ds-theme body.sd-focused-body .ds-content-frame .sd-stock-layout { grid-template-columns:minmax(0,1fr); gap:0; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-stock-secondary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-stock-secondary > .sd-stock-card { margin:0; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-stock-help { grid-column:1/-1; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-analysis-stage.gn-trader-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-analysis-stage__chart { grid-column:1/-1; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-analysis-quote { grid-template-columns:minmax(0,1fr) auto; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-analysis-ohlc { grid-column:1/-1; padding:9px 0 0; border-left:0; border-top:1px solid #e5edf7; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-investment-workspace { grid-template-columns:minmax(0,1fr); }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-investment-aside { position:static; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-member-table-wrap,.sd-investment-portfolio-table,.sd-futures-table-wrap) { max-width:100%; overflow-x:auto; }
html.ds-theme body.sd-focused-body .ds-content-frame[data-content-kind=form] .sd-member-auth__wrap { width:var(--ds-focused-shell-width); max-width:var(--ds-focused-shell-max); margin:0; }
html.ds-theme body.sd-focused-body .ds-content-frame[data-content-kind=form] .sd-member-auth__panel { width:var(--ds-focused-shell-width); max-width:var(--ds-focused-shell-max); }

@container ds-focused-content (max-width:879px) {
  html.ds-theme body.sd-focused-body .ds-content-frame .sd-blog-stats { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
  html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-investment-layout,.sd-analysis-hero-split,.sd-watch-layout) { grid-template-columns:minmax(0,1fr) !important; }
  html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-analysis-kpis,.sd-investment-status-strip,.sd-investment-watchlist,.sd-member-summary-grid) { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  html.ds-theme body.sd-focused-body .ds-content-frame .sd-analysis-cta { min-height:0 !important; }
  html.ds-theme body.sd-focused-body .ds-content-frame .sd-analysis-hero-banner { min-height:120px !important; }
}
@container ds-focused-content (max-width:759px) {
  html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-hero { grid-template-columns:minmax(0,1fr); }
  html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-fg-strip,.sd-fg-factor-grid) { grid-template-columns:repeat(2,minmax(0,1fr)); }
  html.ds-theme body.sd-focused-body .ds-content-frame .sd-blog-stats { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
  html.ds-theme body.sd-focused-body .ds-content-frame .hm-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-member-two-col,.sd-blog-featured,.sd-blog-featured__cards,.sd-insight-featured,.sd-v2-news-related) { grid-template-columns:minmax(0,1fr) !important; }
  html.ds-theme body.sd-focused-body .ds-content-frame .sd-market-insight__mini-grid { grid-template-columns:minmax(0,1fr) !important; }
  html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-news-hero,.sd-blog-hero,.sd-futures-hero) { padding:16px; }
}
@container ds-focused-content (max-width:599px) {
  html.ds-theme body.sd-focused-body .ds-content-frame .sd-chart-canvas-wrap { height:250px; }
  html.ds-theme body.sd-focused-body .ds-content-frame .sd-futures-card > svg { display:none; }
  html.ds-theme body.sd-focused-body .ds-content-frame .sd-futures__grid { grid-template-columns:minmax(0,1fr) !important; }
  html.ds-theme body.sd-focused-body .ds-content-frame .sd-watch-summary { grid-template-columns:minmax(0,1fr) !important; }
  html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-fg-factor-grid,.sd-fg-risk-links) { grid-template-columns:minmax(0,1fr); }
  html.ds-theme body.sd-focused-body .ds-content-frame .sd-blog-stats { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-stock-results,.sd-stock-secondary,.sd-analysis-stage.gn-trader-grid,.sd-analysis-stage .gn-plan-cols,.sd-investment-field-row,.sd-investment-search,.sd-investment-tabs,.sd-member-summary-grid,.sd-investment-market-list) { grid-template-columns:minmax(0,1fr) !important; }
  html.ds-theme body.sd-focused-body .ds-content-frame .sd-analysis-stage__chart { grid-column:auto; }
  html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-stock-metrics,.sd-analysis-ohlc,.sd-investment-summary-grid) { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  html.ds-theme body.sd-focused-body .ds-content-frame .sd-news-featured { grid-template-columns:minmax(0,1fr) !important; }
  html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-news-row,.sd-insight-card) { grid-template-columns:88px minmax(0,1fr) !important; }
  html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-stock-section-head,.sd-investment-head__actions,.sd-rd-news-date) { flex-wrap:wrap; }
  html.ds-theme body.sd-focused-body .ds-content-frame .ds-hero__banner h1 { font-size:23px; }
  html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-blog-detail__title,.sd-market-insight__title) { font-size:23px; }
  html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-about-page__card,.sd-privacy-page__card,.sd-terms-page__card,.sd-cookie-page__card) { padding:var(--ds-focused-policy-padding-compact); }
}

/* 2026-10: outer work surface and reading measure are independent. */
html.ds-theme body.sd-focused-body .ds-content-frame :is(.ds-post-prose,.sd-about-page__card,.sd-privacy-page__card,.sd-terms-page__card,.sd-cookie-page__card) { width:var(--ds-focused-shell-width); max-width:var(--ds-focused-reading-max); margin-inline:auto; box-sizing:border-box; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-about-page__card,.sd-privacy-page__card,.sd-terms-page__card,.sd-cookie-page__card) { font-size:16px; line-height:1.8; overflow-wrap:anywhere; }
html.ds-theme body.sd-focused-body .ds-content-frame .ds-wrap { min-width:0; max-width:100%; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-member-page,.sd-investment-page,.sd-watch-page,.sd-search-page,.sd-rd--live-news .ds-page) { padding-top:0; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-member-shell,.sd-investment-shell) { padding:0; border:0; background:transparent; box-shadow:none; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-member-page-head,.sd-investment-head,.sd-stock-heading) { margin-bottom:var(--ds-focused-space); gap:var(--ds-focused-space-compact); }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-member-page-head p,.sd-investment-head p,.sd-stock-heading p) { font-size:15px; line-height:1.6; margin-block:8px 0; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-member-panel,.sd-investment-panel,.sd-watch-panel) { padding:var(--ds-focused-space); border-radius:10px; box-shadow:none; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-member-head-actions,.sd-member-action-row,.sd-investment-toolbar,.sd-investment-head__actions) { flex-wrap:wrap; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-member-muted,.sd-member-panel p,.sd-watch-panel p) { line-height:1.65; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-watch-guide { margin-block:var(--ds-focused-space-compact); }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-watch-guide li { padding:var(--ds-focused-space-compact); }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-watch-summary { margin-block:var(--ds-focused-space-compact); }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-watch-hero { padding:16px !important; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-watch-report-time { white-space:nowrap; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-news:not(.sd-news--compact) .sd-news__filters { margin-top:0; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-news:not(.sd-news--compact) .sd-news__title { font-size:17px; line-height:1.55; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-news__notice { font-size:14px; line-height:1.65; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-news__member-tools { margin-block:8px; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-bank-domestic__container,.sd-bank-overseas__container,.sd-dividend-domestic__container,.sd-dividend-overseas__container) { width:100%; max-width:none; margin:0; padding:0; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-bank-domestic__section,.sd-bank-overseas__section,.sd-dividend-domestic__section,.sd-dividend-overseas__section) { padding:16px; margin-bottom:16px; border-radius:10px; box-shadow:none; min-width:0; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-bank-domestic__nav,.sd-bank-overseas__nav,.sd-dividend-domestic__nav,.sd-dividend-overseas__nav) { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-bank-domestic__table-wrap,.sd-bank-overseas__table-wrap,.sd-dividend-domestic__table-wrap,.sd-dividend-overseas__table-wrap) { max-width:100%; overflow-x:auto; margin-inline:0; border-radius:8px; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-bank-domestic__table,.sd-bank-overseas__table,.sd-dividend-domestic__table,.sd-dividend-overseas__table) { font-size:14px; line-height:1.6; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-bank-domestic__input,.sd-bank-overseas__input,.sd-dividend-domestic__input,.sd-dividend-overseas__input) { max-width:100%; min-width:0; min-height:44px; box-sizing:border-box; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-bank-domestic__btn,.sd-bank-overseas__btn,.sd-dividend-domestic__btn,.sd-dividend-overseas__btn) { min-height:44px; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-bank-domestic__sim-row,.sd-bank-overseas__sim-row,.sd-dividend-domestic__sim-row,.sd-dividend-overseas__sim-row) { flex-wrap:wrap; gap:8px; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-bank-domestic__intro,.sd-bank-overseas__intro,.sd-dividend-domestic__intro,.sd-dividend-overseas__intro) { font-size:15px; line-height:1.65; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-bank-domestic__result,.sd-bank-overseas__result,.sd-dividend-domestic__result,.sd-dividend-overseas__result) { max-width:100%; overflow-x:auto; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-bank-domestic__page-title,.sd-bank-overseas__page-title,.sd-dividend-domestic__page-title,.sd-dividend-overseas__page-title) { font-size:26px; line-height:1.35; margin-bottom:12px; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-bank-domestic__sort-tabs,.sd-bank-overseas__sort-tabs,.sd-dividend-domestic__sort-tabs,.sd-dividend-overseas__sort-tabs) { display:flex; flex-wrap:wrap; gap:8px; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-bank-domestic__scenario-tabs,.sd-bank-overseas__scenario-tabs,.sd-dividend-domestic__scenario-tabs,.sd-dividend-overseas__scenario-tabs) { display:flex; flex-wrap:wrap; gap:8px; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-page { padding:0; background:transparent; }

@container ds-focused-content (max-width:599px) {
 html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-member-panel,.sd-investment-panel,.sd-watch-panel) { padding:var(--ds-focused-space-compact); }
 html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-bank-domestic__section,.sd-bank-overseas__section,.sd-dividend-domestic__section,.sd-dividend-overseas__section) { padding:12px; }
 html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-bank-domestic__nav,.sd-bank-overseas__nav,.sd-dividend-domestic__nav,.sd-dividend-overseas__nav) { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
 html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-bank-domestic__nav,.sd-bank-overseas__nav,.sd-dividend-domestic__nav,.sd-dividend-overseas__nav) a { text-align:center; padding:10px 6px; }
 html.ds-theme body.sd-focused-body .ds-content-frame .sd-news:not(.sd-news--compact) .sd-news__title { font-size:16px; }
 html.ds-theme body.sd-focused-body .ds-content-frame .sd-watch-guide { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
 html.ds-theme body.sd-focused-body .ds-content-frame .sd-watch-guide li { min-width:0; padding:10px; }
}

html.ds-theme body.sd-focused-body .ds-content-frame .sd-watch-entry-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:12px; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-watch-entry-head h1 { margin:0; font-size:26px; line-height:1.35; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-watch-entry-head p { margin:8px 0 0; font-size:15px; line-height:1.6; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-watch-entry-head a { text-decoration:none; min-height:44px; padding:10px 20px; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-watch-entry-guide { padding:12px 16px; border:1px solid #d7e3f1; border-radius:10px; background:white; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-watch-entry-guide summary { cursor:pointer; font-size:15px; font-weight:650; }
@container ds-focused-content (max-width:599px) {
 html.ds-theme body.sd-focused-body .ds-content-frame .sd-watch-guide { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}

/* Numeric comparison tables retain column headings; only labelled stock rows use cards. */
@container ds-focused-content (max-width:599px) {
 html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-bank-domestic__table-wrap,.sd-dividend-domestic__table-wrap):has(td:not([data-label])) table { display:table; min-width:360px; }
 html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-bank-domestic__table-wrap,.sd-dividend-domestic__table-wrap):has(td:not([data-label])) thead { display:table-header-group; }
 html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-bank-domestic__table-wrap,.sd-dividend-domestic__table-wrap):has(td:not([data-label])) tbody { display:table-row-group; }
 html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-bank-domestic__table-wrap,.sd-dividend-domestic__table-wrap):has(td:not([data-label])) tr { display:table-row; border:0; padding:0; box-shadow:none; }
 html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-bank-domestic__table-wrap,.sd-dividend-domestic__table-wrap):has(td:not([data-label])) td { display:table-cell; padding:10px; }
 html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-bank-domestic__table-wrap,.sd-dividend-domestic__table-wrap):has(td:not([data-label])) td::before { display:none; }
}

@container ds-focused-content (max-width:599px) {
 html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-bank-domestic__table-wrap,.sd-dividend-domestic__table-wrap):not(:has(td:not([data-label]))) :is(table,tbody) { display:block; width:100%; }
 html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-bank-domestic__table-wrap,.sd-dividend-domestic__table-wrap):not(:has(td:not([data-label]))) tr { width:100%; box-sizing:border-box; }
}

html.ds-theme body.sd-focused-body .ds-content-frame .sd-member-status-item { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px 12px; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-member-status-item > :is(span,strong) { grid-column:1; min-width:0; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-member-status-item > span { overflow-wrap:anywhere; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-member-status-item > strong { white-space:normal; word-break:keep-all; overflow-wrap:normal; text-align:left; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-member-status-item .sd-member-mini-btn { grid-column:2; grid-row:1 / span 2; min-width:52px; min-height:44px; white-space:nowrap; }

/* Reading and archive pages: use the available frame, keep prose readable. */
html.ds-theme body .sd-reading-refresh.sd-reading-refresh {
  --bg-page: #f3f6fb;
  --bg-surface: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-soft-blue: #eff6ff;
  --ink-900: #0f172a;
  --ink-800: #1e293b;
  --ink-600: #475569;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --line-200: #e2e8f0;
  --line-300: #cbd5e1;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --brand-900: #0f2557;
  --up-red: #e11d48;
  --up-bg: #fff1f2;
  --down-blue: #2563eb;
  --down-bg: #eff6ff;
  --radius-xl: 16px;
  --radius-lg: 12px;
  --radius-md: 8px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06);
  --prose-size: 16.5px;
  --reading-ink: #0f172a;
  --reading-muted: #64748b;
  --reading-line: #dbe4f0;
  --reading-gap: 16px;
  container: ds-reading-page / inline-size;
  min-width: 0;
  padding: 4px 0 28px !important;
  color: var(--ink-900);
  overflow-wrap: anywhere;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh a {
  text-decoration: none;
  color: inherit;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh :is(.ds-wrap,.sd-blog-page__container,.sd-news-page__container,.sd-market-insight__container) {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin-inline: 0;
  padding-inline: 0 !important;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .ds-hero__banner:not(.sd-blog-hero) {
  min-height: 0 !important;
  height: auto !important;
  padding: 0 0 12px !important;
  margin: 0 0 12px !important;
  border: 0;
  border-bottom: 1px solid var(--reading-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .ds-hero__banner:not(.sd-blog-hero)::before,
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .ds-hero__banner:not(.sd-blog-hero)::after { display: none; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .ds-hero__banner:not(.sd-blog-hero) > .ds-kicker { display: none; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh :is(.ds-title,.sd-market-insight__title) {
  margin: 0;
  color: var(--reading-ink) !important;
  font-size: 26px !important;
  line-height: 1.4;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .ds-lead {
  margin: 6px 0 0;
  color: var(--reading-muted);
  font-size: 15px !important;
  line-height: 1.7;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .ds-hero__banner:not(.sd-blog-hero) :is(h1,.ds-title,.sd-market-insight__title) {
  color: var(--reading-ink) !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .ds-hero__banner:not(.sd-blog-hero) .ds-lead {
  color: var(--reading-muted) !important;
  -webkit-text-fill-color: currentColor !important;
  opacity: 1 !important;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh :is(.sd-rd-toolbar,.ds-page-head,.sd-rd-news-date) {
  gap: 8px 16px;
  margin: 0 0 16px;
  padding: 0;
  min-width: 0;
  flex-wrap: wrap;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh :is(.sd-rd-toolbar form,.sd-rd-date-jump,.sd-rd-news-date form) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .sd-rd-toolbar input[type=search] {
  width: min(100%, 240px);
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .txt-up { color: var(--up-red) !important; font-weight: 800; font-style: normal; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .txt-down { color: var(--down-blue) !important; font-weight: 800; font-style: normal; }

/* ==========================================================================
   BLOG / REPORT ARCHIVE (blog/index.php) - NEW HTML STRUCTURE
   ========================================================================== */

/* 1. Archive Header & KPI Stat Grid */
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .archive-Header {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 16px;
  padding: 20px 24px;
  margin-bottom: 14px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #0f172a 0%, #172554 58%, #1e3a8a 100%);
  color: #ffffff;
  box-shadow: var(--shadow-md);
  align-items: center;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .archive-Header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.24);
  border: 1px solid rgba(147, 197, 253, 0.35);
  color: #bfdbfe;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .archive-Header__titleRow {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .archive-Header__title {
  margin: 0 !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .archive-Header__count {
  font-size: 13px;
  font-weight: 800;
  color: #93c5fd;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .archive-Header__desc {
  margin: 0 !important;
  font-size: 13.5px !important;
  color: #cbd5e1 !important;
  line-height: 1.55 !important;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .archive-StatGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .archive-StatCard {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 12px;
  min-height: 70px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff !important;
  text-decoration: none !important;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .archive-StatCard:hover,
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .archive-StatCard.is-active {
  background: rgba(37, 99, 235, 0.52);
  border-color: #60a5fa;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .archive-StatCard__label {
  font-size: 11px;
  color: #cbd5e1;
  font-weight: 700;
  line-height: 1.35;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .archive-StatCard__val {
  font-size: 17px;
  font-weight: 900;
  color: #ffffff;
  margin-top: 4px;
}

/* 2. Spotlight Grid: Left Lead Report Card + Right Top 5 Ranking Card */
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .spotlight-Grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(280px, 0.98fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .lead-ReportCard {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  border: 1px solid #cbd5e1;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  height: 100%;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .lead-ReportCard__visual {
  position: relative;
  background: linear-gradient(145deg, #0b1936 0%, #1d4ed8 100%);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  min-height: 220px;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .lead-ReportCard__ribbon {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  background: #2563eb;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .lead-ReportCard__chartBox {
  margin: auto 0;
  padding: 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .lead-ReportCard__chartTicker {
  font-size: 11.5px;
  color: #93c5fd;
  font-weight: 800;
  margin-bottom: 3px;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .lead-ReportCard__chartPrice {
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .lead-ReportCard__visualFoot {
  font-size: 11px;
  color: #e2e8f0;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-weight: 700;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .lead-ReportCard__body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .lead-ReportCard__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .badge-Group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .cat-Badge {
  display: inline-flex;
  align-items: center;
  height: 23px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 800;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  text-decoration: none !important;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .cat-Badge--nasdaq {
  background: #fdf2f8;
  color: #be185d;
  border-color: #fbcfe8;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .cat-Badge--kospi {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .cat-Badge--world {
  background: #f5f3ff;
  color: #6d28d9;
  border-color: #ddd6fe;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .stock-Pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 23px;
  padding: 0 8px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: var(--ink-800);
  font-size: 11.5px;
  font-weight: 800;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .lead-ReportCard__title {
  margin: 0 !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1.4 !important;
  letter-spacing: -0.02em;
  color: var(--ink-900) !important;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .lead-ReportCard__title a {
  color: var(--ink-900) !important;
  text-decoration: none !important;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .lead-ReportCard__title a:hover {
  color: var(--brand-700) !important;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .lead-ReportCard__bullets {
  margin: 0;
  list-style: none;
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--line-200);
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .lead-ReportCard__bullets li {
  position: relative;
  padding-left: 12px;
  font-size: 12.5px;
  color: var(--ink-800);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .lead-ReportCard__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-600);
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .lead-ReportCard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line-200);
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .lead-ReportCard__Metrics {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .metric-Chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 11.5px;
  color: var(--ink-600);
  font-weight: 700;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .metric-Chip strong {
  color: var(--brand-700);
  font-weight: 800;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .btn-Primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 12px !important;
  border-radius: 8px;
  background: var(--brand-600);
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none !important;
  transition: background 0.15s ease;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .btn-Primary:hover {
  background: var(--brand-700);
}

/* Right Ranking Card */
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .ranking-Card {
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  border: 1px solid #cbd5e1;
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .ranking-Card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-200);
  margin-bottom: 10px;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .ranking-Card__title {
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  color: var(--ink-900) !important;
  white-space: nowrap;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .ranking-Tabs {
  display: inline-flex;
  padding: 2px;
  border-radius: 8px;
  background: #f1f5f9;
  gap: 2px;
  flex-shrink: 0;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .ranking-Tab {
  min-height: 24px !important;
  height: 24px !important;
  padding: 0 8px !important;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-600);
  white-space: nowrap;
  cursor: pointer;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .ranking-Tab.is-active {
  background: #ffffff;
  color: var(--brand-700);
  font-weight: 800;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .ranking-List {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  flex: 1;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .ranking-List[hidden] {
  display: none !important;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .ranking-Item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--bg-subtle);
  border: 1px solid #eef2f7;
  text-decoration: none !important;
  transition: border-color 0.15s ease, background 0.15s ease;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .ranking-Item:hover {
  border-color: #93c5fd;
  background: var(--bg-soft-blue);
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .ranking-Item__num {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 11.5px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .ranking-Item__title {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .ranking-Item__meta {
  font-size: 11px;
  color: var(--ink-500);
  font-weight: 700;
  white-space: nowrap;
}

/* 3. Filter & Search Toolbar */
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .filter-Toolbar {
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  border: 1px solid #cbd5e1;
  padding: 13px 16px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .filter-Toolbar__rowTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .cat-FilterBar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .cat-FilterBtn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 11px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--line-200);
  color: var(--ink-600) !important;
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none !important;
  transition: all 0.15s ease;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .cat-FilterBtn em {
  font-style: normal;
  font-size: 11px;
  color: var(--ink-400);
  font-weight: 800;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .cat-FilterBtn.is-active {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: #ffffff !important;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .cat-FilterBtn.is-active em {
  color: #93c5fd;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .search-AndSort {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 320px;
  justify-content: flex-end;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .search-Box {
  position: relative;
  flex: 1 1 200px;
  max-width: 280px;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .search-Box input {
  width: 100%;
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 12px 0 32px !important;
  border-radius: 8px !important;
  border: 1px solid var(--line-300) !important;
  background: #f8fafc !important;
  font-size: 12.5px !important;
  color: var(--ink-900);
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .search-Box svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-400);
  pointer-events: none;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .sort-Group {
  display: inline-flex;
  padding: 2px;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px solid var(--line-200);
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .sort-Btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px !important;
  height: 28px !important;
  padding: 0 9px !important;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-600) !important;
  text-decoration: none !important;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .sort-Btn.is-active {
  background: #ffffff;
  color: var(--brand-700) !important;
  font-weight: 800;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .view-Toggle {
  display: inline-flex;
  padding: 2px;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px solid var(--line-200);
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .view-ToggleBtn {
  min-height: 28px !important;
  height: 28px !important;
  padding: 0 9px !important;
  border: 0;
  background: transparent;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-600);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .view-ToggleBtn.is-active {
  background: #ffffff;
  color: var(--ink-900);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .filter-Toolbar__rowBottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 9px;
  border-top: 1px solid #eef2f7;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .tag-QuickList {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .tag-QuickList__label {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink-500);
  margin-right: 3px;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .tag-Chip {
  height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--line-200);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-600) !important;
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .tag-Chip:hover,
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .tag-Chip.is-active {
  border-color: #93c5fd;
  color: var(--brand-700) !important;
  background: var(--bg-soft-blue);
  font-weight: 800;
}

/* 4. Report Archive Card Grid (Equal-Height 2-Column Bento & 1-Column List Mode) */
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .report-Grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .report-Grid.is-list-mode {
  grid-template-columns: minmax(0, 1fr);
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .report-Card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  border: 1px solid #d5e0ee;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .report-Card:hover {
  transform: translateY(-2px);
  border-color: #60a5fa;
  box-shadow: var(--shadow-md);
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .report-Card__linkWrap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 16px 18px;
  gap: 10px;
  text-decoration: none !important;
  color: inherit !important;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .report-Card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .report-Card__time {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-500);
  text-decoration: none !important;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .report-Card__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 12px;
  align-items: start;
  flex: 1;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .report-Card__title {
  margin: 0 0 6px !important;
  font-size: 16.5px !important;
  font-weight: 900 !important;
  line-height: 1.4 !important;
  letter-spacing: -0.02em;
  color: var(--ink-900) !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .report-Card:hover .report-Card__title {
  color: var(--brand-700) !important;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .report-Card__summary {
  margin: 0 !important;
  font-size: 13px !important;
  color: var(--ink-600) !important;
  line-height: 1.55 !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .report-Card__thumb {
  width: 108px;
  height: 82px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  border: 1px solid var(--line-200);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  overflow: hidden;
  text-align: center;
  flex-shrink: 0;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .report-Card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .report-Card__thumb strong {
  font-size: 12px;
  font-weight: 900;
  color: #93c5fd;
  padding: 0 6px;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .report-Card__thumb span {
  font-size: 10.5px;
  color: #e2e8f0;
  margin-top: 2px;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .report-Card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 9px;
  border-top: 1px solid #eef2f7;
  margin-top: auto;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .report-Card__stats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-500);
}


/* ==========================================================================
   POST DETAIL PAGE (post.php) - NEW HTML STRUCTURE
   ========================================================================== */

html.ds-theme body .sd-reading-refresh.sd-reading-refresh .breadcrumb-Bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-500);
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .breadcrumb-Bar__links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .breadcrumb-Bar__links a {
  color: var(--ink-600) !important;
  text-decoration: none !important;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .breadcrumb-Bar__links a:hover {
  color: var(--brand-700) !important;
}

/* Article Header Card + Target Stock Snapshot Strip */
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .article-HeaderCard {
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  border: 1px solid #cbd5e1;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 16px;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .article-HeaderCard__top {
  padding: 20px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .article-HeaderCard__badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .article-HeaderCard__title {
  margin: 0 !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  line-height: 1.36 !important;
  letter-spacing: -0.025em;
  color: var(--ink-900) !important;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .article-HeaderCard__subtitle {
  margin: 0 !important;
  font-size: 14.5px !important;
  color: var(--ink-600) !important;
  line-height: 1.6 !important;
  font-weight: 600;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .article-HeaderCard__metaRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #eef2f7;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .article-MetaList {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-500);
  font-weight: 700;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .article-Actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .btn-Tool {
  min-height: 30px !important;
  height: 30px !important;
  padding: 0 10px !important;
  border-radius: 7px;
  border: 1px solid var(--line-300);
  background: #ffffff;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-800) !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  text-decoration: none !important;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .btn-Tool:hover {
  border-color: var(--brand-600);
  color: var(--brand-700) !important;
  background: var(--bg-soft-blue);
}

/* Integrated Stock Snapshot Strip */
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .stock-SnapshotStrip {
  background: linear-gradient(90deg, #f8fafc 0%, #eff6ff 100%);
  border-top: 1px solid #dbeafe;
  padding: 13px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .stock-SnapshotStrip__identity {
  display: flex;
  align-items: center;
  gap: 10px;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .stock-Avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand-900);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .stock-SnapshotStrip__name strong {
  display: block;
  font-size: 14.5px;
  font-weight: 900;
  color: var(--ink-900);
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .stock-SnapshotStrip__name span {
  font-size: 11.5px;
  color: var(--ink-500);
  font-weight: 700;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .stock-SnapshotStrip__metrics {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .snapshot-Metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .snapshot-Metric span {
  font-size: 11px;
  color: var(--ink-500);
  font-weight: 700;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .snapshot-Metric strong {
  font-size: 13.5px;
  font-weight: 900;
  color: var(--ink-900);
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .stock-SnapshotStrip__cta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* 2-Column Asymmetric Article Workspace */
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .article-Workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 16px;
  align-items: start;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .article-MainCol {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

/* 3-Line Executive Summary Card */
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .exec-SummaryCard {
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
  border: 1px solid #93c5fd;
  border-left: 4px solid var(--brand-600);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .exec-SummaryCard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .exec-SummaryCard__title {
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px !important;
  font-weight: 900 !important;
  color: #1e3a8a !important;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .exec-SummaryCard__badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .exec-SummaryCard__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .exec-SummaryCard__list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  font-size: 14px;
  color: var(--ink-800);
  line-height: 1.58;
  font-weight: 600;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .exec-SummaryCard__num {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--brand-600);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* Article Body Card */
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .article-BodyCard {
  border-radius: var(--radius-xl) !important;
  background: var(--bg-surface) !important;
  border: 1px solid #cbd5e1 !important;
  padding: 24px 26px !important;
  box-shadow: var(--shadow-sm) !important;
  font-size: var(--prose-size);
  line-height: 1.84;
  color: var(--ink-800);
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .article-BodyCard .ds-post-prose {
  max-width: none !important;
  font-size: var(--prose-size) !important;
  line-height: 1.84 !important;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .prose-Heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px !important;
  font-weight: 900 !important;
  color: var(--ink-900) !important;
  margin: 26px 0 12px !important;
  padding-bottom: 8px !important;
  border-bottom: 2px solid var(--line-200) !important;
  scroll-margin-top: 84px;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .prose-Heading__num {
  padding: 2px 8px;
  border-radius: 6px;
  background: #0f172a;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 900;
}

/* Sources Box */
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .article-SourcesBox {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--line-200);
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .article-SourcesBox__title {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-900);
  margin-bottom: 8px;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .article-SourcesBox__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .article-SourcesBox__list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-600) !important;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .article-SourcesBox__list a:hover {
  text-decoration: underline !important;
}

/* Reader Vote Card */
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .article-FeedbackCard {
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  border: 1px solid #cbd5e1;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .article-FeedbackCard__copy strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
  color: var(--ink-900);
  margin-bottom: 2px;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .article-FeedbackCard__copy span {
  font-size: 12.5px;
  color: var(--ink-500);
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .vote-BtnGroup {
  display: flex;
  gap: 8px;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .vote-PillBtn {
  min-height: 36px !important;
  height: 36px !important;
  padding: 0 14px !important;
  border-radius: 999px;
  border: 1px solid var(--line-300);
  background: #f8fafc;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-800);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .vote-PillBtn:hover {
  border-color: var(--brand-600);
  color: var(--brand-700);
  background: var(--bg-soft-blue);
}

/* Sticky Right Sidebar Rail */
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .article-StickyRail {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .rail-Widget {
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  border: 1px solid #cbd5e1;
  padding: 15px 16px;
  box-shadow: var(--shadow-sm);
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .rail-Widget__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 9px;
  margin-bottom: 10px;
  border-bottom: 1px solid #eef2f7;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .rail-Widget__title {
  margin: 0 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  color: var(--ink-900) !important;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .toc-List {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .toc-Link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-600) !important;
  background: #f8fafc;
  text-decoration: none !important;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .toc-Link.is-active,
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .toc-Link:hover {
  background: var(--bg-soft-blue);
  color: var(--brand-700) !important;
  font-weight: 800;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .toc-Link__num {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .rail-RelatedList {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .rail-RelatedItem {
  display: block;
  padding: 9px 11px;
  border-radius: 9px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-decoration: none !important;
  transition: border-color 0.15s ease, background 0.15s ease;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .rail-RelatedItem:hover {
  border-color: #93c5fd;
  background: var(--bg-soft-blue);
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .rail-RelatedItem strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-900);
  line-height: 1.42;
  margin-bottom: 3px;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .rail-RelatedItem span {
  font-size: 11px;
  color: var(--ink-500);
  font-weight: 700;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .rail-StockList {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .rail-StockItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-decoration: none !important;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .rail-StockItem:hover {
  border-color: #93c5fd;
  background: var(--bg-soft-blue);
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .rail-StockItem strong {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-900);
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .rail-StockItem small {
  font-size: 11px;
  color: var(--ink-500);
  font-weight: 700;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .rail-ToolLinks {
  display: grid;
  gap: 6px;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .rail-ToolBtn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  border-radius: 9px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-800) !important;
  text-decoration: none !important;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .rail-ToolBtn:hover {
  border-color: var(--brand-600);
  color: var(--brand-700) !important;
  background: var(--bg-soft-blue);
}


/* ==========================================================================
   DATE-BASED NEWS & INSIGHT ARCHIVE RULES (PRESERVED)
   ========================================================================== */
html.ds-theme body .sd-reading-refresh.sd-reading-refresh :is(.sd-news-row,.sd-insight-card,.sd-insight-featured,.sd-news-featured) {
  display: grid; grid-template-columns: minmax(0,1fr) !important; min-width: 0; gap: 8px;
  padding: 14px 0 !important; border: 0; border-bottom: 1px solid var(--reading-line);
  border-radius: 0; background: transparent; box-shadow: none;
}
html.ds-theme body .sd-reading-refresh.sd-reading-refresh :is(.sd-news-row,.sd-insight-card,.sd-insight-featured,.sd-news-featured) > :is(.ds-thumb,.sd-insight-card__thumb) { display: none; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh :is(.sd-news-row strong,.sd-insight-card strong,.sd-insight-featured__title,.sd-news-featured strong) { color: var(--reading-ink); font-size: 17px !important; line-height: 1.6; -webkit-line-clamp: unset; overflow: visible; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh :is(.sd-news-row p,.sd-insight-card p,.sd-insight-featured p,.sd-news-featured p) { color: var(--reading-muted); font-size: 15px !important; line-height: 1.75; margin: 6px 0; -webkit-line-clamp: unset; overflow: visible; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh :is(.sd-news-row time,.sd-insight-card time) { color: var(--reading-muted); font-size: 13px; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh :is(.sd-rd-section-heading,.sd-news-detail__section-head) { margin: 16px 0 8px; padding: 0; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .sd-rd-section-heading .ds-kicker { display: none; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh :is(.sd-rd-section-heading h2,.sd-news-detail__section-head h2) { font-size: 19px; line-height: 1.5; margin: 0; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .sd-insight-cards { grid-template-columns: minmax(0,1fr); gap: 0; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .sd-v2-news-calendar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 16px; padding: 8px 0; background: transparent; border: 0; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .sd-v2-news-calendar__label { display: none; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .sd-v2-news-calendar__days { display: flex; flex-wrap: wrap; gap: 6px; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .sd-v2-news-calendar__day { display: inline-flex; align-items: center; gap: 5px; width: auto; min-height: 38px; padding: 6px 9px; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .sd-v2-news-calendar__day strong { font-size: 16px; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .sd-v2-news-calendar__day span { font-size: 13px; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .ds-date-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; align-items: center; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .sd-reading-archive-extra { margin: 20px 0 0; border-top: 1px solid var(--reading-line); padding-top: 8px; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .sd-reading-archive-extra > summary { padding: 8px 0; font-size: 15px; cursor: pointer; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .sd-news-hero .ds-lead { display: none; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .sd-rd-news-date h2 { font-size: 21px; margin: 0; line-height: 1.5; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .sd-rd-news-date :is(p,.ds-kicker) { display: none; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .sd-v2-news-totals { gap: 8px 16px; padding: 10px 0; margin: 0 0 8px; background: transparent; border: 0; font-size: 14px; flex-wrap: wrap; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .sd-news-detail__row { display: grid; grid-template-columns: minmax(0,1fr) !important; gap: 20px; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .sd-news-card { display: block !important; padding: 16px 0 !important; margin: 0; border: 0; border-bottom: 1px solid var(--reading-line); border-radius: 0; box-shadow: none; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .sd-news-card > .ds-thumb { display: none; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .sd-news-card__title,
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .sd-news-card__title a { font-size: 17px !important; line-height: 1.6 !important; margin: 8px 0; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .sd-news-card__body { color: var(--reading-ink); font-size: 15px !important; line-height: 1.8 !important; margin: 8px 0 0; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .sd-news-detail__quote { margin: 20px 0; padding: 16px !important; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .sd-news-detail__quote-text { font-size: 16px; line-height: 1.8; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .sd-v2-insight-layout { display: grid; grid-template-columns: minmax(0,1fr) !important; gap: 20px; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh :is(.sd-market-insight__summary-card,.sd-market-insight__movers,.sd-market-insight__watch,.sd-market-insight__risk-box) { padding: 16px !important; margin-top: 16px; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .sd-market-insight__block-title { font-size: 17px; line-height: 1.5; margin-bottom: 10px; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh :is(.sd-market-insight__summary,.sd-market-insight__mini-card p,.sd-market-insight__watch li,.sd-market-insight__risk) { font-size: 16px; line-height: 1.8; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .sd-market-insight__mini-grid { display: grid; grid-template-columns: minmax(0,1fr) !important; gap: 12px; margin-top: 16px; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .sd-market-insight__mini-card { padding: 16px; min-width: 0; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .sd-market-insight__mini-card h4 { font-size: 18px; margin: 0 0 8px; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .sd-market-insight__mover-item { padding: 12px 0; gap: 8px; flex-wrap: wrap; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .sd-market-insight__mover-main { min-width: 0; flex-wrap: wrap; gap: 8px; }
html.ds-theme body .sd-reading-refresh.sd-reading-refresh .sd-market-insight__mover-main strong { font-size: 16px; overflow-wrap: anywhere; }

@container ds-reading-page (min-width: 720px) {
  html.ds-theme body .sd-reading-refresh.sd-reading-refresh .sd-news-detail__row { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 24px; }
  html.ds-theme body .sd-reading-refresh.sd-reading-refresh .sd-market-insight__mini-grid { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
}

@container ds-reading-page (max-width: 780px) {
  html.ds-theme body .sd-reading-refresh.sd-reading-refresh .archive-Header,
  html.ds-theme body .sd-reading-refresh.sd-reading-refresh .spotlight-Grid,
  html.ds-theme body .sd-reading-refresh.sd-reading-refresh .article-Workspace {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  html.ds-theme body .sd-reading-refresh.sd-reading-refresh .article-StickyRail {
    position: static;
  }
}

@media (max-width: 767px) {
  html.ds-theme body .sd-reading-refresh.sd-reading-refresh .archive-Header {
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 16px !important;
  }
  html.ds-theme body .sd-reading-refresh.sd-reading-refresh .archive-Header__title {
    font-size: 20px !important;
  }
  html.ds-theme body .sd-reading-refresh.sd-reading-refresh .spotlight-Grid,
  html.ds-theme body .sd-reading-refresh.sd-reading-refresh .report-Grid,
  html.ds-theme body .sd-reading-refresh.sd-reading-refresh .article-Workspace {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  html.ds-theme body .sd-reading-refresh.sd-reading-refresh .lead-ReportCard {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  html.ds-theme body .sd-reading-refresh.sd-reading-refresh .lead-ReportCard__visual {
    min-height: 150px;
  }
  html.ds-theme body .sd-reading-refresh.sd-reading-refresh .report-Card__main {
    grid-template-columns: minmax(0, 1fr) 88px !important;
  }
  html.ds-theme body .sd-reading-refresh.sd-reading-refresh .report-Card__thumb {
    width: 88px !important;
    height: 72px !important;
  }
  html.ds-theme body .sd-reading-refresh.sd-reading-refresh .article-HeaderCard__top,
  html.ds-theme body .sd-reading-refresh.sd-reading-refresh .stock-SnapshotStrip,
  html.ds-theme body .sd-reading-refresh.sd-reading-refresh .article-BodyCard {
    padding: 16px !important;
  }
  html.ds-theme body .sd-reading-refresh.sd-reading-refresh .article-HeaderCard__title {
    font-size: 20px !important;
  }
  html.ds-theme body .sd-reading-refresh.sd-reading-refresh :is(.sd-rd-toolbar,.sd-rd-news-date) { align-items: flex-start; }
  html.ds-theme body .sd-reading-refresh.sd-reading-refresh .sd-rd-toolbar form { width: 100%; }
  html.ds-theme body .sd-reading-refresh.sd-reading-refresh .sd-rd-toolbar input[type=search] { flex: 1; width: 0; }
}

/* Public mobile header. Load after the shared and page styles. */
html.ds-theme body .sd-header.ds-header.navbar .ds-mobile-menu-head,
html.ds-theme body .sd-header.ds-header.navbar .ds-mobile-menu-account,
html.ds-theme body .sd-header.ds-header.navbar .ds-mobile-menu-home,
html.ds-theme body .sd-header.ds-header.navbar .ds-mobile-menu-shortcuts,
html.ds-theme body .sd-header.ds-header.navbar .ds-search-close,
html.ds-theme body .sd-header.ds-header.navbar .ds-nav-icon,
html.ds-theme body .sd-header.ds-header.navbar .ds-header-backdrop {
    display: none;
}

@media (max-width: 1099px) {
    html.ds-theme body,
    html.ds-theme body.sd-rd {
        --ds-mobile-safe-top: env(safe-area-inset-top, 0px);
        --ds-mobile-header-h: calc(60px + var(--ds-mobile-safe-top));
        --ds-header-h: var(--ds-mobile-header-h);
        --rd-header-h: var(--ds-mobile-header-h);
    }

    html.ds-theme body .sd-header.ds-header.navbar {
        height: var(--ds-mobile-header-h);
        min-height: var(--ds-mobile-header-h);
        max-height: var(--ds-mobile-header-h);
        padding: var(--ds-mobile-safe-top) 0 0 !important;
        box-sizing: border-box;
        overflow: visible !important;
        border: 0 !important;
        background: #fff !important;
        box-shadow: inset 0 -1px 0 #dce5ef !important;
        backdrop-filter: none;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-wrap {
        width: 100% !important;
        max-width: none !important;
        padding: 0 12px !important;
        margin: 0 !important;
        box-sizing: border-box;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-header__bar {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) auto;
        align-items: center;
        gap: 6px;
        height: 60px;
        min-height: 60px;
        position: static;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-logo {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        min-width: 0;
        gap: 7px;
        font-size: 17px;
        font-weight: 800;
        line-height: 1.25;
        letter-spacing: -.04em;
        white-space: nowrap;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-logo span {
        flex: 0 0 18px;
        width: 18px;
        height: 22px;
        border-radius: 0;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 22'%3E%3Cpath fill='%232564d5' d='M1 13h4v8H1zM7 7h4v14H7zM13 1h4v20h-4z'/%3E%3C/svg%3E") center / 18px 22px no-repeat;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-header__tools {
        display: flex;
        grid-column: 3;
        grid-row: 1;
        align-items: center;
        justify-content: flex-end;
        justify-self: end;
        gap: 6px;
        min-width: 0;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-icon-btn,
    html.ds-theme body .sd-header.ds-header.navbar .ds-user-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        height: 44px;
        border-radius: 8px;
        border: 1px solid transparent;
        font-size: 14px;
        line-height: 1;
        box-sizing: border-box;
        color: #18345c !important;
        background: transparent;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-icon-btn {
        flex: 0 0 44px;
        width: 44px;
        padding: 0;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-icon-btn i {
        font-size: 22px;
        line-height: 1;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-search-toggle {
        display: none;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-menu-toggle {
        display: inline-flex;
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-header-watch {
        display: none;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-user-link[data-ds-account="guest"],
    html.ds-theme body .sd-header.ds-header.navbar .ds-user-link[data-ds-account="admin"] {
        min-width: 60px;
        padding: 0 10px;
        background: #edf3ff;
        color: #16498f !important;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-user-link[data-ds-account="guest"] span {
        display: inline;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-user-link[data-ds-account="guest"] i {
        display: none;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-user-link[data-ds-account="member"] {
        flex: 0 0 44px;
        width: 44px;
        padding: 0;
        background: #edf3ff;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-user-link[data-ds-account="member"] span {
        display: none;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-user-link[data-ds-account="member"] i {
        font-size: 22px;
    }

    html.ds-theme body .sd-header.ds-header.navbar.is-nav-mounted,
    html.ds-theme body .sd-header.ds-header.navbar.is-nav-open,
    html.ds-theme body .sd-header.ds-header.navbar.is-search-open {
        z-index: 1080;
    }

    html.ds-theme body .sd-header.ds-header.navbar > .ds-header-backdrop {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        padding: 0;
        margin: 0;
        border: 0;
        border-radius: 0;
        appearance: none;
        background: rgba(18, 35, 59, .42);
        opacity: 0;
        transition: opacity 220ms ease-out;
        z-index: 30;
    }

    html.ds-theme body .sd-header.ds-header.navbar.is-nav-mounted > .ds-header-backdrop:not([hidden]),
    html.ds-theme body .sd-header.ds-header.navbar.is-search-open > .ds-header-backdrop:not([hidden]) {
        display: block;
    }

    html.ds-theme body .sd-header.ds-header.navbar.is-nav-open > .ds-header-backdrop:not([hidden]),
    html.ds-theme body .sd-header.ds-header.navbar.is-search-open > .ds-header-backdrop:not([hidden]) {
        opacity: 1;
    }

    html.ds-theme body .sd-header.ds-header.navbar > .ds-header-backdrop[hidden] {
        display: none !important;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-nav {
        display: none;
    }

    html.ds-theme body .sd-header.ds-header.navbar.is-nav-mounted .ds-nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        position: fixed;
        inset: 0 auto 0 0;
        width: min(336px, calc(100vw - 48px));
        max-width: calc(100vw - 48px);
        height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
        box-sizing: border-box;
        margin: 0;
        padding: max(12px, env(safe-area-inset-top, 0px)) 12px calc(16px + env(safe-area-inset-bottom, 0px));
        gap: 2px;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        border: 0;
        border-radius: 0 12px 12px 0;
        background: #fff;
        box-shadow: 8px 0 36px rgba(18, 35, 59, .18);
        transform: translateX(-100%);
        transition: transform 260ms cubic-bezier(.22, 1, .36, 1);
        will-change: transform;
        z-index: 40;
    }

    html.ds-theme body .sd-header.ds-header.navbar.is-nav-mounted.is-nav-open .ds-nav {
        transform: translateX(0);
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-nav::-webkit-scrollbar {
        display: block;
        width: 6px;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-nav::-webkit-scrollbar-thumb {
        background: #b9c8da;
        border-radius: 6px;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-mobile-menu-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex: 0 0 auto;
        gap: 8px;
        padding: 0 0 8px 8px;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-mobile-menu-head strong {
        font-size: 18px;
        font-weight: 750;
        line-height: 1.4;
        color: #182b49;
    }

    html.ds-theme body .sd-header.ds-header.navbar [data-ds-nav-close] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 8px;
        background: #f1f5fa;
        color: #18345c;
        font-size: 20px;
        line-height: 1;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-nav > a,
    html.ds-theme body .sd-header.ds-header.navbar .ds-mobile-menu-shortcuts > a {
        display: flex;
        align-items: center;
        flex: 0 0 auto;
        gap: 10px;
        min-height: 44px;
        width: 100%;
        padding: 10px 12px;
        margin: 0;
        border-radius: 8px;
        color: #293e5e !important;
        font-size: 15px;
        font-weight: 650;
        line-height: 1.5;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: keep-all;
        max-height: none;
        overflow: visible;
        text-decoration: none !important;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-nav a i {
        display: inline-block;
        flex: 0 0 20px;
        width: 20px;
        font-size: 19px;
        line-height: 1;
        text-align: center;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-nav-label {
        min-width: 0;
        line-height: 1.5;
        word-break: keep-all;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-nav > a:hover,
    html.ds-theme body .sd-header.ds-header.navbar .ds-nav > a.is-active,
    html.ds-theme body .sd-header.ds-header.navbar .ds-mobile-menu-shortcuts > a:hover {
        background: #edf3ff;
        color: #1764c7 !important;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-mobile-menu-account {
        display: flex;
        flex: 0 0 auto;
        gap: 8px;
        padding: 10px 0 12px;
        margin-bottom: 6px;
        border-top: 1px solid #e2e9f2;
        border-bottom: 1px solid #e2e9f2;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-mobile-menu-account > a {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1 1 0;
        gap: 6px;
        min-width: 0;
        min-height: 44px;
        padding: 8px;
        border: 1px solid #dce5ef;
        border-radius: 8px;
        background: #f6f9fd;
        font-size: 14px;
        font-weight: 650;
        color: #18345c !important;
        line-height: 1.5;
        white-space: normal;
        overflow-wrap: anywhere;
        text-decoration: none !important;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-mobile-menu-shortcuts {
        display: flex;
        flex-direction: column;
        flex: 0 0 auto;
        gap: 2px;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #e2e9f2;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-mobile-menu-shortcuts > strong {
        padding: 0 12px 4px;
        font-size: 13px;
        line-height: 1.5;
        color: #52647c;
        font-weight: 650;
    }

    html.ds-theme body .sd-header.ds-header.navbar #sdHeaderSearch.ds-search {
        display: none;
    }

    html.ds-theme body .sd-header.ds-header.navbar.is-search-open #sdHeaderSearch.ds-search {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px 44px;
        align-items: start;
        gap: 8px;
        position: fixed;
        top: var(--ds-mobile-header-h);
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        min-width: 0;
        max-height: calc(100vh - var(--ds-mobile-header-h));
        max-height: calc(100dvh - var(--ds-mobile-header-h));
        padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
        margin: 0;
        box-sizing: border-box;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        border: 0;
        border-radius: 0 0 12px 12px;
        background: #fff;
        box-shadow: 0 10px 32px rgba(18, 35, 59, .16);
        z-index: 40;
    }

    html.ds-theme body .sd-header.ds-header.navbar #sdHeaderSearch.ds-search > input {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        min-width: 0;
        height: 44px;
        padding: 0 10px 0 36px;
        border: 1px solid #cdd9e7;
        border-radius: 8px;
        background: #f8faff;
        color: #182b49;
        font-size: 16px;
        line-height: 1.5;
        box-sizing: border-box;
    }

    html.ds-theme body .sd-header.ds-header.navbar #sdHeaderSearch.ds-search > .ds-search__icon {
        position: absolute;
        top: 34px;
        left: 24px;
        width: 18px;
        transform: translateY(-50%);
        color: #63799a;
        font-size: 16px;
        line-height: 1;
        pointer-events: none;
    }

    html.ds-theme body .sd-header.ds-header.navbar #sdHeaderSearch.ds-search > button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: static;
        top: auto;
        right: auto;
        left: auto;
        transform: none;
        grid-row: 1;
        width: 44px;
        min-width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 8px;
        margin: 0;
        font-size: 18px;
        line-height: 1;
    }

    html.ds-theme body .sd-header.ds-header.navbar #sdHeaderSearch.ds-search > button[type="submit"] {
        grid-column: 2;
        background: #1e5fce;
        color: #fff;
    }

    html.ds-theme body .sd-header.ds-header.navbar #sdHeaderSearch.ds-search > [data-ds-search-close] {
        grid-column: 3;
        background: #f1f5fa;
        color: #18345c;
    }

    html.ds-theme body .sd-header.ds-header.navbar #sdHeaderSearch.ds-search .ds-search__panel {
        position: static;
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
        max-height: min(420px, calc(100dvh - var(--ds-mobile-header-h) - 92px));
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 12px;
        border: 1px solid #dce5ef;
        border-radius: 8px;
        background: #fff;
        box-shadow: none;
    }

    html.ds-theme body .sd-header.ds-header.navbar #sdHeaderSearch.ds-search .ds-search__suggestions {
        max-height: none;
        overflow: visible;
    }

    html.ds-theme body .sd-header.ds-header.navbar #sdHeaderSearch.ds-search .ds-search__panel .ds-chip {
        max-width: 100%;
        min-height: 44px;
        padding: 8px 12px;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: keep-all;
    }

    html.ds-theme body .sd-header.ds-header.navbar #sdHeaderSearch.ds-search .ds-search__option {
        min-height: 44px;
        padding: 10px 8px;
        gap: 8px;
        font-size: 14px;
        line-height: 1.5;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    html.ds-theme body .sd-header.ds-header.navbar #sdHeaderSearch.ds-search .ds-search__option span,
    html.ds-theme body .sd-header.ds-header.navbar #sdHeaderSearch.ds-search .ds-search__panel small {
        font-size: 12px;
        line-height: 1.5;
    }

    html.ds-theme body .sd-header.ds-header.navbar #sdHeaderSearch.ds-search .ds-search__status,
    html.ds-theme body .sd-header.ds-header.navbar #sdHeaderSearch.ds-search .ds-search__all {
        padding: 10px 8px;
        margin: 0;
        font-size: 14px;
        line-height: 1.6;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    html.ds-theme body.is-header-overlay-open {
        overscroll-behavior: none;
    }

    html.ds-theme body.sd-home-panels .ds-mobile-bottom-nav span {
        font-size: 12px;
        line-height: 1.4;
        white-space: nowrap;
    }

    html.ds-theme body .sd-header.ds-header.navbar a:focus-visible,
    html.ds-theme body .sd-header.ds-header.navbar button:focus-visible,
    html.ds-theme body .sd-header.ds-header.navbar input:focus-visible {
        outline: 3px solid #94b7fa;
        outline-offset: 2px;
    }
}

@media (max-width: 1099px) and (prefers-reduced-motion: reduce) {
    html.ds-theme body .sd-header.ds-header.navbar.is-nav-mounted .ds-nav,
    html.ds-theme body .sd-header.ds-header.navbar > .ds-header-backdrop {
        transition: none;
    }
}

