html.ds-theme body.sd-rd--tools .ds-content-frame .sd-tool-page {
    padding: 0 0 24px !important;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.sd-tool-page,
.sd-tool-container,
.sd-tool-detail .ds-td-shell,
.sd-tool-detail .ds-td-shell .ds-td-topbar,
.sd-tool-detail .ds-td-shell .ds-td-topbar__nav,
.sd-tool-detail .ds-td-shell .ds-td-workspace,
.sd-tool-detail .ds-td-shell .ds-td-workspace > *,
.sd-tool-detail .ds-td-shell .ds-td-card,
.sd-tool-detail .ds-td-shell [data-td-result-body],
.sd-tool-detail .ds-td-shell .ds-td-table-sec,
.sd-tool-detail .ds-td-shell .ds-td-table-wrap,
.sd-tool-detail .ds-td-shell .ds-td-quick-chips,
.sd-tool-detail .ds-td-shell .sd-tool-workbench,
.sd-tool-detail .ds-td-shell .sd-tool-grid,
.sd-tool-detail .ds-td-shell .sd-tool-grid > *,
.sd-tool-detail .ds-td-shell .sd-tool-panel,
.sd-tool-detail .ds-td-shell .sd-tool-table-wrap {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.sd-tool-breadcrumb {
    margin: 0 0 10px !important;
    font-size: 12px;
    font-weight: 650;
    color: #64748b;
}

.sd-tool-breadcrumb a:hover {
    color: #1d4ed8;
}

.sd-tool-detail .ds-td-shell {
    gap: 14px;
}

.sd-tool-detail .ds-td-shell .ds-td-up,
.sd-tool-detail .ds-td-shell .ds-td-kpi > strong.ds-td-up,
.sd-tool-detail .ds-td-shell .ds-td-hero__val.ds-td-up,
.sd-tool-detail .ds-td-shell td.ds-td-up,
.sd-tool-detail .ds-td-shell span.ds-td-up,
.sd-tool-detail .ds-td-shell .sd-tool-positive {
    color: #e11d48 !important;
}

.sd-tool-detail .ds-td-shell .ds-td-down,
.sd-tool-detail .ds-td-shell .ds-td-kpi > strong.ds-td-down,
.sd-tool-detail .ds-td-shell .ds-td-hero__val.ds-td-down,
.sd-tool-detail .ds-td-shell td.ds-td-down,
.sd-tool-detail .ds-td-shell span.ds-td-down,
.sd-tool-detail .ds-td-shell .sd-tool-negative {
    color: #2563eb !important;
}

.sd-tool-detail .ds-td-shell .ds-td-kpi > strong.ds-td-navy {
    color: #0f2557 !important;
}

.sd-tool-detail .ds-td-shell .ds-td-kpi > strong.ds-td-muted {
    color: #64748b !important;
}

.sd-tool-detail .ds-td-shell .ds-td-pill {
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 11.5px;
    font-weight: 800;
}

.sd-tool-detail .ds-td-shell .ds-td-pill--up {
    background: #ffe4e6 !important;
    color: #e11d48 !important;
    border-color: #fecdd3 !important;
}

.sd-tool-detail .ds-td-shell .ds-td-pill--down {
    background: #dbeafe !important;
    color: #2563eb !important;
    border-color: #bfdbfe !important;
}

.sd-tool-detail .ds-td-shell .ds-td-pill--navy {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border-color: #bfdbfe !important;
}

.sd-tool-detail .ds-td-shell .ds-td-topbar {
    background: #ffffff;
    border: 1px solid #e4ebf4;
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.035);
    gap: 11px;
}

.sd-tool-detail .ds-td-shell .ds-td-topbar__nav {
    flex-wrap: nowrap;
    gap: 8px;
    padding-bottom: 11px;
    border-bottom: 1px solid #eef2f8;
}

.sd-tool-detail .ds-td-shell .ds-td-tabs {
    flex: 1 1 0%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 5px;
    padding: 1px 0;
}

.sd-tool-detail .ds-td-shell .ds-td-tabs::-webkit-scrollbar {
    display: none;
}

.sd-tool-detail .ds-td-shell .ds-td-tab {
    flex: 0 0 auto;
    min-height: 32px;
    height: 32px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid #dbe4f0;
    background: #f8fafd;
    color: #334155 !important;
    font-size: 12px;
    font-weight: 750;
}

.sd-tool-detail .ds-td-shell .ds-td-tab:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8 !important;
}

.sd-tool-detail .ds-td-shell .ds-td-tab.is-active {
    background: #0f172a !important;
    border-color: #0f172a !important;
    color: #ffffff !important;
    box-shadow: 0 3px 9px rgba(15, 23, 42, 0.16);
}

.sd-tool-detail .ds-td-shell .ds-td-topbar__nav > .ds-td-btn-util {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #f8fafd;
    border-color: #d5e0ee;
    color: #1e293b !important;
    font-size: 12px;
}

.sd-tool-detail .ds-td-shell .ds-td-title-row h1 {
    font-size: 21px !important;
    font-weight: 900 !important;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.td2-title-ico {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-grid;
    place-items: center;
    font-size: 15px;
    flex-shrink: 0;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.td2-theme--violet .td2-title-ico {
    background: #f5f3ff;
    color: #6d28d9;
    border-color: #ddd6fe;
}

.td2-theme--rose .td2-title-ico {
    background: #fff1f2;
    color: #e11d48;
    border-color: #fecdd3;
}

.td2-theme--mint .td2-title-ico {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.sd-tool-detail .ds-td-shell .ds-td-state-tag {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
    font-weight: 800;
}

.sd-tool-detail .ds-td-shell .ds-td-btn-util {
    border-radius: 10px;
    border-color: #d5e0ee;
    color: #1e293b !important;
    font-size: 12px;
    font-weight: 750;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.sd-tool-detail .ds-td-shell .ds-td-btn-util--primary {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8 !important;
}

.sd-tool-detail .ds-td-shell .ds-td-card {
    background: #ffffff;
    border: 1px solid #e4ebf4;
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.035);
}

.sd-tool-detail .ds-td-shell .ds-td-quote-bar {
    background: linear-gradient(145deg, #f3f8ff 0%, #ffffff 80%);
    border: 1px solid #cfe0fc;
    border-radius: 14px;
    padding: 11px 13px;
    margin-bottom: 4px;
}

.td2-theme--violet .ds-td-quote-bar {
    background: linear-gradient(145deg, #f7f4ff 0%, #ffffff 80%);
    border-color: #ddd6fe;
}

.td2-theme--rose .ds-td-quote-bar {
    background: linear-gradient(145deg, #fff5f6 0%, #ffffff 80%);
    border-color: #fecdd3;
}

.sd-tool-detail .ds-td-shell .ds-td-quote-bar__head strong {
    color: #0f172a;
    font-weight: 850;
}

.sd-tool-detail .ds-td-shell .ds-td-quote-bar__head strong i {
    color: #2563eb;
}

.td2-theme--violet .ds-td-quote-bar__head strong i {
    color: #6d28d9;
}

.td2-theme--rose .ds-td-quote-bar__head strong i {
    color: #e11d48;
}

.sd-tool-detail .ds-td-shell .ds-td-quote-chip {
    min-height: 29px;
    height: auto;
    padding: 4px 9px;
    border-radius: 9px;
    border: 1px solid #dbe4f0;
    background: #ffffff;
    color: #0f172a;
    font-size: 11.5px;
    transition: border-color 0.14s ease, transform 0.14s ease;
}

.sd-tool-detail .ds-td-shell .ds-td-quote-chip:hover {
    border-color: #93c5fd;
    background: #ffffff;
    transform: translateY(-1px);
}

.td2-qchg {
    display: inline-flex;
    align-items: center;
    padding: 1px 5px;
    border-radius: 5px;
    font-style: normal;
    font-size: 10.5px;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.td2-qchg--up {
    background: #ffe4e6;
    color: #e11d48 !important;
}

.td2-qchg--down {
    background: #dbeafe;
    color: #2563eb !important;
}

.td2-qchg--flat {
    background: #f1f5f9;
    color: #475569 !important;
}

.sd-tool-detail .ds-td-shell .ds-td-quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.sd-tool-detail .ds-td-shell .ds-td-seg {
    border-radius: 10px;
    background: #eef3fa;
    border: 1px solid #dde6f2;
    padding: 3px;
}

.sd-tool-detail .ds-td-shell .ds-td-seg__btn {
    border-radius: 7px;
    font-weight: 750;
}

.sd-tool-detail .ds-td-shell .ds-td-seg__btn.is-active {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.14);
}

.sd-tool-detail .ds-td-shell .ds-td-qchip {
    border-radius: 999px;
    padding: 0 10px;
    font-size: 11.5px;
    font-weight: 750;
}

.sd-tool-detail .ds-td-shell .ds-td-qchip.is-active {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.sd-tool-detail .ds-td-shell .ds-td-inp-wrap input,
.sd-tool-detail .ds-td-shell .ds-td-inp-wrap select {
    border-radius: 10px;
    border-color: #d5e0ee;
    background: #f8fafd;
}

.sd-tool-detail .ds-td-shell .ds-td-inp-wrap input:focus,
.sd-tool-detail .ds-td-shell .ds-td-inp-wrap select:focus {
    background: #ffffff;
    border-color: #2563eb;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.sd-tool-detail .ds-td-shell .ds-td-sheet {
    border-radius: 13px;
    border-color: #e2eaf4;
}

.sd-tool-detail .ds-td-shell .ds-td-row-badge {
    border-radius: 7px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 850;
}

.sd-tool-detail .ds-td-shell .ds-td-etf-chip {
    border-radius: 11px;
    border-color: #dbe4f0;
    background: #fbfdff;
    transition: border-color 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

.sd-tool-detail .ds-td-shell .ds-td-etf-chip.is-active {
    border-color: #6d28d9;
    background: linear-gradient(145deg, #f5f3ff 0%, #ffffff 78%);
    box-shadow: 0 0 0 2px rgba(109, 40, 217, 0.14);
}

.sd-tool-detail .ds-td-shell .ds-td-etf-chip.is-active strong {
    color: #5b21b6;
}

.sd-tool-detail .ds-td-shell .ds-td-hero {
    border-radius: 16px;
    padding: 15px 17px;
    background: linear-gradient(145deg, #eff6ff 0%, #e0f2fe 52%, #eef2ff 100%);
    border: 1px solid #bfdbfe;
    box-shadow: 0 3px 12px rgba(37, 99, 235, 0.06);
}

.td2-theme--violet .ds-td-hero {
    background: linear-gradient(145deg, #f5f3ff 0%, #ede9fe 52%, #e0e7ff 100%) !important;
    border-color: #ddd6fe !important;
    box-shadow: 0 3px 12px rgba(109, 40, 217, 0.06);
}

.td2-theme--violet .ds-td-hero__label {
    color: #5b21b6 !important;
}

.td2-theme--rose .ds-td-hero {
    background: linear-gradient(145deg, #fff1f2 0%, #fff7ed 58%, #ffffff 100%) !important;
    border-color: #fecdd3 !important;
    box-shadow: 0 3px 12px rgba(225, 29, 72, 0.06);
}

.td2-theme--rose .ds-td-hero__label {
    color: #be123c !important;
}

.sd-tool-detail .ds-td-shell .ds-td-hero.td2-hero--buy {
    background: linear-gradient(145deg, #fff1f2 0%, #ffe4e6 50%, #fff5f6 100%) !important;
    border-color: #fecdd3 !important;
}

.sd-tool-detail .ds-td-shell .ds-td-hero.td2-hero--buy .ds-td-hero__label {
    color: #be123c !important;
}

.sd-tool-detail .ds-td-shell .ds-td-hero.td2-hero--sell {
    background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 50%, #f0f9ff 100%) !important;
    border-color: #bfdbfe !important;
}

.sd-tool-detail .ds-td-shell .ds-td-hero.td2-hero--sell .ds-td-hero__label {
    color: #1d4ed8 !important;
}

.sd-tool-detail .ds-td-shell .ds-td-hero.td2-hero--safe {
    background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 52%, #f0fdf4 100%) !important;
    border-color: #a7f3d0 !important;
}

.sd-tool-detail .ds-td-shell .ds-td-hero.td2-hero--safe .ds-td-hero__label {
    color: #047857 !important;
}

.sd-tool-detail .ds-td-shell .ds-td-hero__val {
    font-size: 27px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.sd-tool-detail .ds-td-shell .ds-td-ladder {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.96);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.sd-tool-detail .ds-td-shell .ds-td-ladder__fill {
    background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
}

.sd-tool-detail .ds-td-shell .ds-td-ladder__fill--buy {
    background: linear-gradient(90deg, #f43f5e 0%, #e11d48 100%);
}

.sd-tool-detail .ds-td-shell .ds-td-ladder__fill--sell {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

.sd-tool-detail .ds-td-shell .ds-td-kpi-grid {
    gap: 9px;
}

.sd-tool-detail .ds-td-shell .ds-td-kpi {
    border-radius: 13px;
    border: 1px solid #e4ebf4;
    background: linear-gradient(160deg, #f8fbff 0%, #ffffff 68%);
    padding: 11px 13px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.025);
}

.sd-tool-detail .ds-td-shell .ds-td-kpi > strong {
    font-size: 16.5px;
    font-weight: 900;
}

.sd-tool-detail .ds-td-shell .ds-td-table-wrap {
    border-radius: 12px;
    border-color: #e4ebf4;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sd-tool-detail .ds-td-shell .ds-td-table th {
    background: #f8fafd;
    font-size: 11.5px;
}

.sd-tool-detail .ds-td-shell .ds-td-table tr.is-highlight {
    background: #eff6ff;
}

.sd-tool-detail .ds-td-shell .ds-td-principle-box {
    border-radius: 12px;
    background: #f8fafd;
    border-color: #e4ebf4;
}

.sd-tool-detail .ds-td-shell .ds-td-sep {
    border: 0;
    border-top: 1px solid #eef2f8;
    margin: 2px 0;
}

.sd-tool-detail .ds-td-shell .ds-td-tax-item__head {
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
}

.sd-tool-detail .ds-td-shell .ds-td-tax-item__head .ds-td-row-sub {
    white-space: normal !important;
    text-align: left;
    word-break: keep-all;
    overflow-wrap: anywhere;
    min-width: 0;
    flex: 1 1 180px;
}

.sd-tool-detail .ds-td-shell .ds-td-tax-item {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.sd-tool-detail .ds-td-shell.ds-td-shell--standard :is(.sd-tool-panel, .sd-tool-form, .sd-tool-result) {
    border: 1px solid #e4ebf4 !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.035) !important;
    padding: 16px 18px !important;
}

@container ds-td-shell (min-width: 820px) {
    .sd-tool-detail .ds-td-shell.ds-td-shell--standard .sd-tool-grid:not(.sd-tool-calendar-workspace),
    .sd-tool-detail .ds-td-shell.ds-td-shell--standard .sd-tool-workspace:not(.sd-tool-workspace--rows) {
        grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.14fr) !important;
        gap: 14px;
        align-items: start;
    }
    .sd-tool-detail .ds-td-shell.ds-td-shell--standard .sd-tool-grid:not(.sd-tool-calendar-workspace) > .sd-tool-result,
    .sd-tool-detail .ds-td-shell.ds-td-shell--standard .sd-tool-workspace:not(.sd-tool-workspace--rows) > .sd-tool-result {
        position: sticky;
        top: calc(var(--ds-header-h, 60px) + 14px);
    }
}

.sd-tool-detail .ds-td-shell.ds-td-shell--standard .sd-tool-quick-chips button {
    border-radius: 999px !important;
    padding: 5px 11px !important;
    background: #f8fafd !important;
    border: 1px solid #d5e0ee !important;
    color: #1e293b !important;
    font-size: 12px !important;
    font-weight: 750 !important;
}

.sd-tool-detail .ds-td-shell.ds-td-shell--standard .sd-tool-quick-chips button:hover {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
    color: #1d4ed8 !important;
}

.sd-tool-detail .ds-td-shell.ds-td-shell--standard .sd-tool-quick-chips button.is-active {
    background: #0f172a !important;
    border-color: #0f172a !important;
    color: #ffffff !important;
}

.sd-tool-detail .ds-td-shell.ds-td-shell--standard :is(.sd-tool-button-primary, .sd-tool-primary) {
    background: #0f2557 !important;
    border-color: #0f2557 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-radius: 10px !important;
    font-weight: 800 !important;
}

.sd-tool-detail .ds-td-shell.ds-td-shell--standard :is(.sd-tool-button-primary, .sd-tool-primary):hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}

.sd-tool-detail .ds-td-shell.ds-td-shell--standard .sd-tool-metrics > div,
.sd-tool-detail .ds-td-shell.ds-td-shell--standard .sd-tool-metric {
    padding: 12px 13px;
    border-radius: 13px;
    background: linear-gradient(155deg, #f8fbff 0%, #ffffff 70%);
    border: 1px solid #e4ebf4;
    margin: 0;
}

.sd-tool-detail .ds-td-shell.ds-td-shell--standard .sd-tool-metrics > div.is-primary,
.sd-tool-detail .ds-td-shell.ds-td-shell--standard .sd-tool-metric.is-primary {
    background: linear-gradient(145deg, #eff6ff 0%, #e0f2fe 55%, #eef2ff 100%);
    border-color: #bfdbfe;
}

.td2-theme--violet .sd-tool-metrics > div.is-primary,
.td2-theme--violet .sd-tool-metric.is-primary {
    background: linear-gradient(145deg, #f5f3ff 0%, #ede9fe 55%, #e0e7ff 100%) !important;
    border-color: #c4b5fd !important;
}

.sd-tool-detail .ds-td-shell.ds-td-shell--standard .sd-tool-metrics dt {
    font-size: 11.5px;
    font-weight: 750;
    color: #64748b;
    margin-bottom: 4px;
}

.sd-tool-detail .ds-td-shell.ds-td-shell--standard .sd-tool-metrics dd {
    margin: 0;
    font-size: 19px;
    font-weight: 900;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.sd-tool-detail .ds-td-shell.ds-td-shell--standard .sd-tool-metrics small {
    display: block;
    margin-top: 4px;
    font-size: 11.5px;
    color: #475569;
    font-variant-numeric: tabular-nums;
}

.sd-tool-detail .ds-td-shell.ds-td-shell--standard .sd-tool-metrics--opt {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px;
}

.sd-tool-detail .ds-td-shell.ds-td-shell--standard .sd-tool-metrics--opt > div,
.sd-tool-detail .ds-td-shell.ds-td-shell--standard .sd-tool-metrics--opt > .sd-tool-metric {
    grid-column: auto !important;
}

.td2-finder-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.td2-finder-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    align-items: center;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid #e4ebf4;
    background: #fbfdff;
    transition: border-color 0.14s ease, background-color 0.14s ease;
}

.td2-finder-row:hover {
    border-color: #93c5fd;
    background: #ffffff;
}

.td2-finder-row__left {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.td2-finder-row__check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.4;
    color: #0f172a;
}

.td2-finder-row__check input {
    margin-top: 3px;
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    accent-color: #1d4ed8;
}

.td2-finder-row__name {
    font-weight: 800;
    color: #0f172a;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.td2-finder-row__ticker {
    display: inline-block;
    margin-left: 5px;
    padding: 1px 6px;
    border-radius: 5px;
    background: #eef2f8;
    color: #334155;
    font-size: 11px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.td2-finder-row__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    padding-left: 23px;
    font-size: 11.5px;
    color: #64748b;
}

.td2-finder-row__meta a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.td2-finder-row__meta a:hover {
    text-decoration: underline;
}

.td2-opt-card--call {
    background: linear-gradient(155deg, #fff5f6 0%, #ffffff 70%) !important;
    border-color: #fecdd3 !important;
}

.td2-opt-card--call dd {
    color: #e11d48 !important;
}

.td2-opt-card--put {
    background: linear-gradient(155deg, #eff6ff 0%, #ffffff 70%) !important;
    border-color: #bfdbfe !important;
}

.td2-opt-card--put dd {
    color: #2563eb !important;
}

.sd-tool-opt-term {
    border-radius: 11px !important;
    border-color: #ddd6fe !important;
    background: #faf8ff !important;
}

.sd-tool-opt-term.is-active {
    border-color: #5b21b6 !important;
    background: #5b21b6 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(91, 33, 182, 0.2);
}

.sd-tool-opt-chip {
    border-radius: 10px;
    border-color: #e4ebf4;
    background: #fbfdff;
}

.sd-tool-opt-chip.is-active {
    border-color: #6d28d9;
    background: #f5f3ff;
    box-shadow: 0 0 0 2px rgba(109, 40, 217, 0.12);
}

.sd-tool-opt-chip.is-active strong {
    color: #5b21b6;
}

.sd-tool-opt-verdict {
    border-radius: 12px;
    background: linear-gradient(145deg, #f5f3ff 0%, #ffffff 80%);
    border-color: #ddd6fe;
    color: #1e293b;
}

.td2-finder-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 13px 15px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: linear-gradient(145deg, #eff6ff 0%, #e0f2fe 54%, #eef2ff 100%);
    border: 1px solid #bfdbfe;
}

.td2-finder-hero h3 {
    margin: 0 !important;
    font-size: 16.5px !important;
    font-weight: 900 !important;
    color: #0f172a;
}

.td2-finder-hero p {
    margin: 3px 0 0;
    font-size: 12px;
    color: #475569;
}

.td2-finder-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 12.5px;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.td2-wcell {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 72px;
}

.td2-wcell strong {
    font-size: 13px;
    font-weight: 850;
    color: #0f172a;
}

.td2-wbar {
    width: 68px;
    height: 6px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    display: block;
}

.td2-wbar i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb 0%, #6366f1 100%);
}

.td2-mkt-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 800;
    white-space: nowrap;
}

.td2-mkt-pill--us {
    background: #f5f3ff;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
}

.td2-mkt-pill--kr {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.td2-cal-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.td2-cal-badge--earnings {
    background: #f5f3ff;
    color: #6d28d9;
    border-color: #ddd6fe;
}

.td2-cal-badge--dividend_ex {
    background: #fff1f2;
    color: #be123c;
    border-color: #fecdd3;
}

.td2-cal-badge--dividend_payment {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.td2-cal-badge--supply {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}

.td2-cal-badge--macro {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.td2-cal-more-wrap {
    margin-top: 12px;
    text-align: center;
}

.td2-cal-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 18px !important;
    border-radius: 999px !important;
    border: 1px solid #bfdbfe !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
}

.td2-cal-more-btn:hover {
    background: #dbeafe !important;
}

.sd-tool-selected {
    padding: 12px 13px;
    border-radius: 13px;
    border: 1px solid #e4ebf4;
    background: #f8fafd;
    margin-bottom: 8px;
}

.sd-tool-selected h3 {
    margin: 0 0 4px !important;
    font-size: 14px !important;
    font-weight: 850;
    color: #0f172a;
}

.sd-tool-selected p {
    margin: 0 0 8px;
    font-size: 12px;
    color: #64748b;
}

.sd-tool-bar-track i {
    background: linear-gradient(90deg, #2563eb 0%, #6366f1 100%);
}

.sd-tool-related a {
    border-radius: 999px;
    background: #ffffff;
    border-color: #dbe4f0;
    color: #334155 !important;
    font-weight: 750;
}

.sd-tool-related a:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8 !important;
}

.sd-tool-help {
    background: #ffffff;
    border: 1px solid #e4ebf4 !important;
    border-radius: 14px;
    padding: 12px 16px !important;
    margin-top: 14px !important;
}

.sd-tool-hub .sd-hub-heading {
    background: linear-gradient(145deg, #eff6ff 0%, #e0f2fe 52%, #eef2ff 100%);
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    padding: 18px 20px;
    margin: 0 0 14px !important;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.sd-tool-hub .sd-hub-title h1 {
    font-size: 24px !important;
    font-weight: 900 !important;
    letter-spacing: -0.03em !important;
    color: #0f172a !important;
}

.sd-tool-hub .sd-hub-title > span {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-weight: 850;
}

.sd-tool-hub .sd-hub-heading p {
    color: #334155;
    font-size: 13.5px;
}

.sd-tool-hub .sd-hub-plans {
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #bfdbfe;
    color: #0f2557 !important;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.sd-tool-hub .sd-hub-controls {
    background: #ffffff;
    border: 1px solid #e4ebf4;
    border-radius: 15px;
    padding: 10px 12px;
    margin-bottom: 14px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.sd-tool-hub .sd-hub-categories button {
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 750;
}

.sd-tool-hub .sd-hub-categories button[aria-pressed="true"] {
    background: #0f172a !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.16);
}

.sd-tool-hub .sd-hub-search {
    height: 36px;
    border-radius: 10px;
    background: #f8fafd;
    border-color: #d5e0ee;
}

.sd-tool-hub .sd-hub-panel {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.sd-tool-hub .sd-hub-panel-head {
    padding: 4px 4px 10px;
    border-bottom: 0;
}

.sd-tool-hub .sd-hub-panel-head h2 {
    font-size: 15.5px;
    font-weight: 850;
    color: #0f172a;
}

.sd-tool-hub .sd-hub-panel-head > span {
    padding: 2px 9px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-weight: 800;
}

.sd-tool-hub .sd-hub-grid {
    gap: 10px;
}

.sd-tool-hub .sd-hub-tool {
    background: #ffffff;
    border: 1px solid #e4ebf4 !important;
    border-radius: 16px;
    padding: 15px 15px !important;
    min-height: 108px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.sd-tool-hub .sd-hub-tool:hover {
    background: #ffffff;
    border-color: #93c5fd !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.065);
}

.sd-tool-hub .sd-hub-tool-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 11px;
    font-size: 18px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.sd-tool-hub .sd-hub-tool[data-hub-tool^="leveraged-"] .sd-hub-tool-icon,
.sd-tool-hub .sd-hub-tool[data-hub-tool="options-max-pain"] .sd-hub-tool-icon,
.sd-tool-hub .sd-hub-tool[data-hub-tool="overseas-tax"] .sd-hub-tool-icon,
.sd-tool-hub .sd-hub-tool[data-hub-tool="foreign-return"] .sd-hub-tool-icon {
    background: #f5f3ff;
    color: #6d28d9;
    border-color: #ddd6fe;
}

.sd-tool-hub .sd-hub-tool[data-hub-tool="margin-call"] .sd-hub-tool-icon,
.sd-tool-hub .sd-hub-tool[data-hub-tool="loss-recovery"] .sd-hub-tool-icon,
.sd-tool-hub .sd-hub-tool[data-hub-group="결과 이미지"] .sd-hub-tool-icon {
    background: #fff1f2;
    color: #e11d48;
    border-color: #fecdd3;
}

.sd-tool-hub .sd-hub-tool[data-hub-group="배당·일정"] .sd-hub-tool-icon {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.sd-tool-hub .sd-hub-tool[data-hub-tool^="etf-"] .sd-hub-tool-icon {
    background: #f0f9ff;
    color: #0369a1;
    border-color: #bae6fd;
}

.sd-tool-hub .sd-hub-tool-group {
    font-size: 10.5px;
    font-weight: 800;
    color: #64748b;
}

.sd-tool-hub .sd-hub-tool-copy strong {
    font-size: 15px;
    font-weight: 850;
    color: #0f172a;
}

.sd-tool-hub .sd-hub-tool-desc {
    font-size: 12.5px;
    color: #475569;
    line-height: 1.5;
}

.sd-tool-hub .sd-hub-access {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 13px;
    background: #ffffff;
    border: 1px solid #e4ebf4;
}

@media (max-width: 760px) {
    .sd-tool-detail .ds-td-shell .ds-td-topbar {
        padding: 12px;
        border-radius: 15px;
    }
    .sd-tool-detail .ds-td-shell .ds-td-topbar__nav {
        flex-wrap: wrap;
        gap: 7px;
    }
    .sd-tool-detail .ds-td-shell .ds-td-tabs {
        flex: 0 0 100%;
        width: 100%;
    }
    .sd-tool-detail .ds-td-shell .ds-td-title-row h1 {
        font-size: 18.5px !important;
    }
    .sd-tool-detail .ds-td-shell .ds-td-card,
    .sd-tool-detail .ds-td-shell.ds-td-shell--standard :is(.sd-tool-panel, .sd-tool-form, .sd-tool-result) {
        padding: 13px !important;
        border-radius: 15px !important;
    }
    .sd-tool-detail .ds-td-shell .ds-td-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }
    .sd-tool-detail .ds-td-shell .ds-td-kpi {
        padding: 9px 10px;
    }
    .sd-tool-detail .ds-td-shell .ds-td-kpi > strong {
        font-size: 14.5px;
    }
    .sd-tool-opt-chips {
        max-height: 214px;
        overflow-y: auto;
        padding-right: 4px;
    }
    .sd-tool-hub .sd-hub-heading {
        padding: 14px;
        border-radius: 16px;
        flex-direction: column;
        align-items: stretch;
    }
    .sd-tool-hub .sd-hub-title h1 {
        font-size: 20px !important;
    }
    .sd-tool-hub .sd-hub-tool {
        padding: 13px !important;
        min-height: 92px;
    }
}
