.sd-tool-page { --sd-tool-hub-columns:1; --sd-tool-field-columns:1; --sd-tool-workspace-columns:minmax(0,1fr); --sd-tool-clock-columns:minmax(0,1fr); --sd-tool-result-position:static; --sd-tool-card-padding:16px; padding:4px 0 24px; color:var(--ds-text); font-family:inherit; min-width:0; }
.sd-tool-container { width:100%; max-width:none; min-width:0; margin:0; }
.sd-tool-page [hidden], .sd-tool-modal [hidden], .sd-tool-toast[hidden] { display:none!important; }
.sd-tool-breadcrumb { display:flex; flex-wrap:wrap; gap:8px; align-items:center; font-size:12px; color:var(--ds-text-muted); margin-bottom:8px; }
.sd-tool-breadcrumb a { color:inherit; text-decoration:none; }
.sd-tool-page-heading { display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:8px 16px; margin-bottom:12px; }
.sd-tool-page-heading>div { flex:1 1 240px; min-width:0; }
.sd-tool-page h1 { font-size:clamp(24px,2.5cqi,28px); line-height:1.3; margin:0 0 4px; font-weight:800; letter-spacing:-.03em; }
.sd-tool-page-heading p { font-size:14px; line-height:1.6; color:var(--ds-text-sub); max-width:850px; margin:0; word-break:keep-all; overflow-wrap:anywhere; }
.sd-tool-page h2, .sd-tool-modal h2 { font-size:17px; line-height:1.4; margin:0 0 12px; font-weight:700; }
.sd-tool-page h3 { font-size:15px; font-weight:700; margin:14px 0 8px; }
.sd-tool-page a { color:var(--ds-blue); }
.sd-tool-page button, .sd-tool-modal button, .sd-tool-back, .sd-tool-related a { border:1px solid var(--ds-border); border-radius:var(--ds-radius-sm); background:var(--ds-card); color:var(--ds-text); font:inherit; font-size:13px; font-weight:700; padding:8px 12px; line-height:1.5; cursor:pointer; text-decoration:none; }
.sd-tool-page button:hover, .sd-tool-modal button:hover { border-color:var(--ds-blue); background:var(--ds-bg); }
.sd-tool-page button:disabled { cursor:default; opacity:.5; }
.sd-tool-page .sd-tool-primary, .sd-tool-page .sd-tool-button-primary, .sd-tool-modal .sd-tool-primary { color:#fff; background:var(--ds-navy); border-color:var(--ds-navy); }
.sd-tool-page .sd-tool-primary:hover, .sd-tool-page .sd-tool-button-primary:hover, .sd-tool-modal .sd-tool-primary:hover { color:#fff; background:var(--ds-navy-deep); border-color:var(--ds-navy-deep); }
.sd-tool-page :is(input,select,textarea):focus, .sd-tool-page button:focus-visible, .sd-tool-page a:focus-visible, .sd-tool-modal :focus-visible { outline:3px solid var(--ds-blue); outline-offset:2px; }
.sd-tool-toolbar, .sd-tool-actions, .sd-tool-related, .sd-tool-group-links, .sd-tool-quick-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.sd-tool-related { margin:16px 0 0; }
.sd-tool-related a { font-size:12px; color:var(--ds-text-sub); padding:5px 10px; }
.sd-tool-related i { margin-left:6px; }
.sd-tool-toolbar { margin:16px 0 0; padding:12px 0 0; border-top:1px solid var(--ds-border); }
.sd-tool-toolbar button, .sd-tool-quick-actions button { font-size:13px; padding:7px 10px; min-height:36px; }
.sd-tool-quick-actions { margin:0 0 12px; }
.sd-tool-group-links { margin:8px 0 16px; }
.sd-tool-group-links button.is-active { color:var(--ds-blue); border-color:var(--ds-blue); background:var(--ds-blue-soft); }
.sd-tool-hub-list { display:grid; gap:20px; }
.sd-tool-hub-group { min-width:0; }
.sd-tool-hub-group h2 { margin-bottom:8px; }
.sd-tool-hub-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:8px; }
.sd-tool-hub-link { display:flex; min-width:0; gap:12px; align-items:center; padding:12px; background:var(--ds-card); border:1px solid var(--ds-border); border-radius:var(--ds-radius-sm); text-decoration:none; }
.sd-tool-hub-link:hover { border-color:var(--ds-blue); background:var(--ds-bg); }
.sd-tool-hub-link>span:nth-child(2) { flex:1; min-width:0; }
.sd-tool-hub-link strong { display:block; color:var(--ds-text); font-size:16px; margin-bottom:3px; }
.sd-tool-hub-link span span { display:block; color:var(--ds-text-sub); font-size:14px; line-height:1.5; word-break:keep-all; overflow-wrap:anywhere; }
.sd-tool-hub-category { display:block; color:var(--ds-text-muted); font-size:11px; margin-bottom:3px; }
.sd-tool-hub-icon { display:grid; place-items:center; background:var(--ds-blue-soft); flex:0 0 36px; height:36px; border-radius:var(--ds-radius-sm); font-size:18px; }
.sd-tool-workspace, .sd-tool-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; align-items:start; min-width:0; }
.sd-tool-form, .sd-tool-result, .sd-tool-panel, .sd-tool-comparisons { background:var(--ds-card); border:1px solid var(--ds-border); border-radius:var(--ds-radius); box-shadow:var(--ds-shadow); padding:var(--sd-tool-card-padding); min-width:0; }
.sd-tool-result { position:static; }
.sd-tool-workspace>.sd-tool-result, [data-tool-key="profit-image"] .sd-tool-grid>.sd-tool-result { position:var(--sd-tool-result-position); top:calc(var(--ds-header-h) + 16px); }
.sd-tool-result :is(p,a,small), .sd-tool-panel :is(p,a,small), .sd-tool-modal :is(p,a,small) { overflow-wrap:anywhere; }
.sd-tool-panel { margin-bottom:16px; }
.sd-tool-grid .sd-tool-panel { margin-bottom:0; }
.sd-tool-fields { display:grid; grid-template-columns:repeat(var(--sd-tool-field-columns),minmax(0,1fr)); gap:12px; }
.sd-tool-fields>div { min-width:0; }
.sd-tool-field { display:flex; flex-direction:column; gap:6px; font-size:13px; min-width:0; flex:1 1 145px; margin:0; }
.sd-tool-field>span:first-child { font-weight:600; color:var(--ds-text-sub); }
.sd-tool-field :is(input,select,textarea) { width:100%; min-width:0; border:1px solid var(--ds-border); border-radius:var(--ds-radius-sm); padding:9px 10px; font:inherit; font-size:14px; color:var(--ds-text); background:var(--ds-card); min-height:40px; }
.sd-tool-field input[type=checkbox] { width:auto; min-height:0; }
.sd-tool-input-wrap { position:relative; display:flex; align-items:center; }
.sd-tool-input-wrap input { padding-right:44px; }
.sd-tool-input-wrap>[data-unit] { position:absolute; right:10px; color:var(--ds-text-muted); font-weight:400; font-size:12px; }
.sd-tool-field-error, .sd-tool-error { color:var(--ds-down); font-size:12px; line-height:1.6; }
.sd-tool-field > small:not(.sd-tool-field-error) { font-size:13px; line-height:1.6; color:var(--ds-text-sub); }
.sd-tool-field-error:empty, .sd-tool-error:empty { display:none; }
.sd-tool-page [aria-invalid=true] { border-color:var(--ds-down); }
.sd-tool-row { display:flex; flex-wrap:wrap; gap:12px; align-items:flex-end; }
fieldset.sd-tool-row, .sd-tool-item { display:block; min-width:0; border:1px solid var(--ds-border); background:var(--ds-bg); border-radius:var(--ds-radius-sm); padding:14px; margin:14px 0; }
.sd-tool-row legend, .sd-tool-item legend { float:none; width:auto; padding:0 5px; font-size:13px; font-weight:700; margin:0 0 8px; }
.sd-tool-row .sd-tool-fields { margin-bottom:10px; }
.sd-tool-stack { display:flex; flex-direction:column; gap:14px; }
.sd-tool-stack>*, .sd-tool-form>* { min-width:0; }
.sd-tool-details-body { padding-top:12px; }
.sd-tool-image-privacy { border:1px solid var(--ds-border); border-radius:var(--ds-radius-sm); background:var(--ds-bg); padding:10px; }
.sd-tool-stack > .sd-tool-field { flex:0 0 auto; }
.sd-tool-item>.sd-tool-row+.sd-tool-row { margin-top:12px; }
.sd-tool-page details { margin:14px 0; }
.sd-tool-page details>summary { cursor:pointer; color:var(--ds-text-sub); font-size:13px; font-weight:650; }
.sd-tool-details[open]>.sd-tool-fields { margin-top:12px; }
.sd-tool-note, .sd-tool-warning { font-size:14px; line-height:1.65; margin:8px 0; color:var(--ds-text-sub); overflow-wrap:anywhere; }
.sd-tool-warning { padding:10px 12px; background:var(--ds-blue-soft); color:var(--ds-text-sub); border-left:3px solid var(--sd-neutral); border-radius:var(--ds-radius-sm); }
.sd-tool-page .sd-tool-text-button, .sd-tool-page .sd-tool-link { padding:4px 0; border:0; background:transparent; color:var(--ds-blue); font-size:12px; }
.sd-tool-check { display:flex; align-items:center; gap:7px; font-size:13px; line-height:1.6; cursor:pointer; }
.sd-tool-check input, .sd-tool-local-save input { accent-color:var(--ds-blue); width:16px; height:16px; flex:0 0 auto; }
.sd-tool-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-bottom:16px; }
.sd-tool-metric { min-width:0; padding:12px; background:var(--ds-bg); border-radius:var(--ds-radius-sm); }
.sd-tool-metric span, .sd-tool-metric small { display:block; font-size:12px; color:var(--ds-text-muted); margin-bottom:5px; }
.sd-tool-metric strong { display:block; font-size:20px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.sd-tool-metric small { margin-top:5px; }
.sd-tool-table-wrap { overflow:auto; max-width:100%; min-width:0; scrollbar-width:thin; overscroll-behavior-x:contain; }
.sd-tool-table-wrap:focus-visible { outline:3px solid var(--ds-blue); outline-offset:2px; }
.sd-tool-table { width:100%; border-collapse:collapse; font-size:13px; font-variant-numeric:tabular-nums; }
.sd-tool-table th, .sd-tool-table td { padding:9px 8px; border-bottom:1px solid var(--ds-border); text-align:right; vertical-align:top; white-space:nowrap; }
.sd-tool-table th { color:var(--ds-text-muted); background:var(--ds-bg); font-weight:650; }
.sd-tool-table th:first-child, .sd-tool-table td:first-child { text-align:left; }
.sd-tool-table th:first-child, .sd-tool-table td:first-child { position:sticky; left:0; z-index:1; background:var(--ds-card); }
.sd-tool-table thead th:first-child { z-index:2; background:var(--ds-bg); }
.sd-tool-table button { display:block; font-size:11px; padding:3px 6px; margin-top:5px; }
.sd-tool-comparison-difference { display:block; margin-top:4px; color:var(--ds-text-muted); font-size:11px; }
.sd-tool-input-table td { min-width:140px; white-space:normal; }
.sd-tool-input-table th:first-child { min-width:110px; }
.sd-tool-input-table :is(input,select) { min-width:110px; }
.sd-tool-input-table .sd-tool-field { margin-bottom:8px; }
.sd-tool-input-table td [data-row-result] { display:block; min-width:110px; line-height:1.7; }
.sd-tool-buy-list { display:grid; gap:12px; margin:12px 0; min-width:0; }
.sd-tool-buy-row { min-width:0; margin:0; padding:12px; border:1px solid var(--ds-border); border-radius:var(--ds-radius-sm); background:var(--ds-bg); }
.sd-tool-buy-row:only-child { grid-column:1/-1; }
.sd-tool-buy-row legend { float:none; display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; margin:0 0 8px; padding:0; font-size:14px; font-weight:700; }
.sd-tool-buy-row legend button { flex:0 0 auto; min-height:32px; }
.sd-tool-buy-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; min-width:0; }
.sd-tool-buy-fields > * { min-width:0; }
.sd-tool-buy-row .sd-tool-input-wrap { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px; }
.sd-tool-buy-row .sd-tool-input-wrap input { padding-right:10px; }
.sd-tool-buy-row .sd-tool-input-wrap > [data-unit] { position:static; white-space:nowrap; }
[data-tool-key="foreign-return"] .sd-tool-buy-fields > label:has([name$=".fxRate"]) { grid-column:1/-1; }
.sd-tool-buy-mode { margin-bottom:12px; max-width:320px; }
.sd-tool-buy-allocation { display:grid; align-content:start; gap:6px; min-width:0; font-size:13px; }
.sd-tool-buy-allocation > span { color:var(--ds-text-sub); font-weight:600; }
.sd-tool-buy-allocation > strong { min-height:40px; display:flex; align-items:center; font-size:14px; overflow-wrap:anywhere; }
.sd-tool-page .sd-tool-buy-cost { margin:12px 0; }
.sd-tool-buy-cost[open] > .sd-tool-buy-fields { margin-top:12px; }
.sd-tool-buy-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 12px; margin:12px 0 0; padding-top:12px; border-top:1px solid var(--ds-border); }
.sd-tool-buy-summary > div { min-width:0; }
.sd-tool-buy-summary dt { margin:0 0 4px; color:var(--ds-text-sub); font-size:13px; font-weight:400; }
.sd-tool-buy-summary dd { margin:0; color:var(--ds-text); font-size:14px; font-weight:700; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.sd-tool-workspace--rows > .sd-tool-result { position:static; }
.sd-tool-workspace--rows .sd-tool-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
.sd-tool-workspace--rows .sd-tool-actions { margin-top:12px; }
.sd-tool-positive { color:var(--ds-up); }
.sd-tool-negative { color:var(--ds-down); }
.sd-tool-badge { display:inline-block; border-radius:4px; background:var(--ds-blue-soft); color:var(--ds-text-sub); padding:2px 5px; font-size:11px; margin:2px 4px 2px 0; }
.sd-tool-local-save { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin:12px 0; font-size:13px; color:var(--ds-text-sub); }
.sd-tool-local-save label { display:flex; align-items:center; gap:6px; color:var(--ds-text-sub); }
.sd-tool-local-save button { padding:6px 8px; font-size:12px; }
.sd-tool-section-title { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.sd-tool-help { border-top:1px solid var(--ds-border); padding-top:12px; margin-top:16px!important; }
.sd-tool-help>div { max-width:850px; padding-top:12px; font-size:14px; line-height:1.8; }
.sd-tool-help h2 { font-size:14px; margin:14px 0 6px; }
.sd-tool-modal { border:1px solid var(--ds-border); border-radius:var(--ds-radius); width:min(560px,calc(100% - 28px)); max-height:85vh; padding:22px; color:var(--ds-text); box-shadow:var(--ds-shadow-hover); overflow:auto; }
.sd-tool-modal::backdrop { background:rgba(15,23,42,.4); }
.sd-tool-modal-head { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:16px; }
.sd-tool-modal-head h2 { margin:0; }
.sd-tool-modal-head button { font-size:22px; border:0; padding:0 6px; }
.sd-tool-modal .sd-tool-actions { justify-content:flex-end; margin-top:20px; }
.sd-tool-modal input { border:1px solid var(--ds-border); padding:10px; border-radius:var(--ds-radius-sm); width:100%; }
.sd-tool-modal .sd-tool-plan-row { display:flex; gap:8px; align-items:center; border-bottom:1px solid var(--ds-border); padding:8px 0; }
.sd-tool-plan-row>span { flex:1; min-width:0; overflow-wrap:anywhere; }
.sd-tool-plan-row small { display:block; color:var(--ds-text-muted); font-size:11px; margin-top:4px; }
.sd-tool-holding { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; text-align:left; }
.sd-tool-holding span { color:var(--ds-text-muted); font-size:12px; }
.sd-tool-toast { position:fixed; z-index:1080; bottom:24px; left:50%; transform:translateX(-50%); width:max-content; max-width:calc(100% - 32px); border-radius:var(--ds-radius-sm); background:var(--ds-navy); color:#fff; padding:12px 18px; font-size:13px; box-shadow:var(--ds-shadow); }
.sd-tool-image-preview { background:var(--ds-blue-soft); border:1px solid var(--ds-border); padding:12px; border-radius:var(--ds-radius-sm); }
.sd-tool-image-preview canvas { width:100%; height:auto; display:block; }
.sd-tool-search-results { display:flex; flex-direction:column; gap:5px; max-height:320px; overflow:auto; min-width:0; max-width:100%; }
.sd-tool-search-results:empty { display:none; }
.sd-tool-search-results button { text-align:left; white-space:normal; overflow-wrap:anywhere; }
.sd-tool-search-results small { color:var(--ds-text-muted); display:block; font-size:11px; font-weight:400; }
[data-calendar-output] { min-width:0; max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; }
.sd-tool-calendar { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); min-width:644px; border-top:1px solid var(--ds-border); border-left:1px solid var(--ds-border); font-size:12px; }
.sd-tool-calendar-day { min-height:110px; padding:7px; border-right:1px solid var(--ds-border); border-bottom:1px solid var(--ds-border); overflow-wrap:anywhere; }
.sd-tool-calendar-day button { font-size:12px; padding:4px; width:100%; text-align:left; white-space:normal; margin-top:5px; }
.sd-tool-bar { display:block; height:6px; border-radius:4px; background:var(--ds-blue); margin:6px 0; max-width:100%; }
.sd-tool-month-bars { display:flex; flex-direction:column; gap:9px; margin:15px 0; }
.sd-tool-month-bar { display:grid; grid-template-columns:30px minmax(0,1fr) 110px; gap:8px; align-items:center; font-size:12px; }
.sd-tool-month-bar strong { text-align:right; font-variant-numeric:tabular-nums; }
.sd-tool-bar-track { height:8px; background:var(--ds-border); border-radius:5px; overflow:hidden; }
.sd-tool-bar-track i { display:block; height:100%; background:var(--ds-blue); border-radius:5px; }
.sd-tool-calendar-weekday { border-right:1px solid var(--ds-border); border-bottom:1px solid var(--ds-border); text-align:center; padding:7px 2px; background:var(--ds-bg); }
.sd-tool-calendar-day.is-today { background:var(--ds-blue-soft); }
[data-clock-output] { display:grid; grid-template-columns:var(--sd-tool-clock-columns); gap:14px; min-width:0; }
.sd-tool-clock-workspace { display:flex; flex-direction:column; gap:18px; min-width:0; }
.sd-clock-hero { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; padding:18px 20px; border-radius:16px; background:linear-gradient(135deg,#f8fbff 0%,#eff6ff 55%,#f5f3ff 100%); border:1px solid #dbeafe; }
.sd-clock-hero__clocks { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; flex:1 1 480px; min-width:0; }
.sd-clock-world { display:flex; flex-direction:column; gap:4px; padding:14px 16px; border-radius:13px; background:rgba(255,255,255,0.92); border:1px solid #e2e8f0; min-width:0; }
.sd-clock-world__label { display:flex; align-items:center; flex-wrap:wrap; gap:6px; font-size:12.5px; font-weight:750; color:#475569; }
.sd-clock-world__tag { display:inline-flex; align-items:center; justify-content:center; padding:2px 6px; border-radius:5px; font-size:10.5px; font-weight:850; letter-spacing:0.03em; }
.sd-clock-world__tag--kr { background:#dbeafe; color:#1d4ed8; }
.sd-clock-world__tag--us { background:#ede9fe; color:#6d28d9; }
.sd-clock-world__dst { margin-left:auto; padding:2px 7px; border-radius:999px; background:#f1f5f9; color:#334155; font-size:11px; font-weight:750; }
.sd-clock-world__time,
[data-clock-time].sd-clock-world__time { font-size:26px !important; font-weight:900 !important; letter-spacing:-0.03em; color:#0f172a; font-variant-numeric:tabular-nums; line-height:1.15; margin:0 !important; }
.sd-clock-world__date { font-size:12px; font-weight:600; color:#64748b; font-variant-numeric:tabular-nums; }
.sd-clock-hero__actions { display:flex; align-items:center; flex-shrink:0; }
.sd-clock-refresh-btn { display:inline-flex; align-items:center; gap:6px; padding:10px 15px; border-radius:10px; border:1px solid #bfdbfe; background:#ffffff; color:#1d4ed8; font:inherit; font-size:13px; font-weight:750; cursor:pointer; white-space:nowrap; transition:all 0.15s ease; }
.sd-clock-refresh-btn:hover { background:#eff6ff; border-color:#2563eb; }
.sd-clock-timeline-card,
.sd-clock-cards-section,
.sd-clock-schedule-card { display:flex; flex-direction:column; gap:12px; padding:18px; border-radius:16px; background:#ffffff; border:1px solid #e6ecf5; min-width:0; }
.sd-clock-timeline-card__head,
.sd-clock-cards-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; }
.sd-clock-timeline-card__head h2,
.sd-clock-cards-head h2 { margin:0; font-size:16px; font-weight:850; color:#0f172a; display:inline-flex; align-items:center; gap:7px; }
.sd-clock-timeline-card__head h2 i,
.sd-clock-cards-head h2 i { color:#2563eb; }
.sd-clock-timeline-card__season,
.sd-clock-cards-sub { font-size:12px; font-weight:700; color:#475569; padding:3px 10px; border-radius:999px; background:#f1f5f9; }
.sd-clock-timeline { display:flex; flex-direction:column; gap:8px; padding-top:22px; }
.sd-clock-timeline__track { position:relative; height:16px; border-radius:999px; background:#f1f5f9; border:1px solid #e2e8f0; }
.sd-clock-seg { position:absolute; top:2px; bottom:2px; border-radius:999px; }
.sd-clock-seg--kr { background:linear-gradient(90deg,#2563eb,#3b82f6); }
.sd-clock-seg--pre { background:linear-gradient(90deg,#a78bfa,#c4b5fd); }
.sd-clock-seg--us { background:linear-gradient(90deg,#059669,#10b981); }
.sd-clock-now-pin { position:absolute; top:-4px; bottom:-4px; width:2.5px; background:#e11d48; border-radius:2px; transform:translateX(-50%); z-index:2; }
.sd-clock-now-pin i { position:absolute; bottom:calc(100% + 4px); left:50%; transform:translateX(-50%); padding:2px 6px; border-radius:6px; background:#e11d48; color:#ffffff; font-style:normal; font-size:10.5px; font-weight:800; font-variant-numeric:tabular-nums; white-space:nowrap; }
.sd-clock-timeline__ticks { display:flex; justify-content:space-between; font-size:11px; color:#64748b; font-variant-numeric:tabular-nums; }
.sd-clock-timeline__legend { display:flex; flex-wrap:wrap; gap:8px 16px; font-size:12px; color:#475569; }
.sd-clock-timeline__legend span { display:inline-flex; align-items:center; gap:6px; }
.sd-clock-dot { width:10px; height:10px; border-radius:3px; display:inline-block; }
.sd-clock-dot--kr { background:#2563eb; }
.sd-clock-dot--pre { background:#a78bfa; }
.sd-clock-dot--us { background:#10b981; }
.sd-clock-dot--now { background:#e11d48; border-radius:50%; }
.sd-clock-card { display:flex; flex-direction:column; justify-content:space-between; gap:12px; padding:14px; border-radius:15px; background:#ffffff; border:1px solid #e2e8f0; border-top-width:3px; min-width:0; transition:box-shadow 0.16s ease,transform 0.16s ease; }
.sd-clock-card:hover { transform:translateY(-2px); box-shadow:0 10px 22px rgba(15,23,42,0.06); }
.sd-clock-card.is-open { border-top-color:#10b981; background:linear-gradient(180deg,#f0fdf4 0%,#ffffff 34%); }
.sd-clock-card.is-waiting { border-top-color:#2563eb; background:linear-gradient(180deg,#eff6ff 0%,#ffffff 34%); }
.sd-clock-card.is-warn { border-top-color:#f59e0b; background:linear-gradient(180deg,#fffbeb 0%,#ffffff 34%); }
.sd-clock-card.is-closed { border-top-color:#94a3b8; background:linear-gradient(180deg,#f8fafc 0%,#ffffff 34%); }
.sd-clock-card__top { display:flex; align-items:center; justify-content:space-between; gap:6px; }
.sd-clock-card__title-wrap { display:flex; align-items:center; gap:8px; min-width:0; }
.sd-clock-card__icon { width:32px; height:32px; border-radius:9px; background:#eff6ff; color:#1d4ed8; display:inline-flex; align-items:center; justify-content:center; font-size:15px; flex-shrink:0; }
.sd-clock-card.is-open .sd-clock-card__icon { background:#dcfce7; color:#047857; }
.sd-clock-card.is-closed .sd-clock-card__icon { background:#f1f5f9; color:#475569; }
.sd-clock-card__title-wrap h3 { margin:0; font-size:14.5px; font-weight:850; color:#0f172a; line-height:1.25; white-space:nowrap; letter-spacing:-0.02em; }
.sd-clock-card__code { font-size:11px; font-weight:700; color:#64748b; }
.sd-clock-status { display:inline-flex; align-items:center; gap:4px; padding:3px 8px; border-radius:999px; font-size:10.5px; font-weight:800; white-space:nowrap; flex-shrink:0; }
.sd-clock-status i { width:6px; height:6px; border-radius:50%; background:currentColor; }
.sd-clock-status.is-open { background:#dcfce7; color:#047857; }
.sd-clock-status.is-waiting { background:#dbeafe; color:#1d4ed8; }
.sd-clock-status.is-warn { background:#fef3c7; color:#b45309; }
.sd-clock-status.is-closed { background:#f1f5f9; color:#475569; }
.sd-clock-countdown-box { display:flex; flex-direction:column; gap:5px; padding:12px 13px; border-radius:12px; background:#f8fafc; border:1px solid #e2e8f0; }
.sd-clock-card.is-open .sd-clock-countdown-box { background:#ecfdf5; border-color:#a7f3d0; }
.sd-clock-countdown-box__head { display:flex; align-items:center; justify-content:space-between; gap:6px; font-size:11.5px; font-weight:750; color:#475569; }
.sd-clock-countdown-box__head small { font-size:11px; color:#64748b; font-variant-numeric:tabular-nums; }
.sd-clock-countdown-box__val { font-size:18px; font-weight:900; letter-spacing:-0.025em; color:#0f172a; font-variant-numeric:tabular-nums; line-height:1.2; }
.sd-clock-countdown-box__val.is-muted { color:#64748b; font-size:15px; }
.sd-clock-meta { margin:0; display:flex; flex-direction:column; gap:7px; }
.sd-clock-meta > div { display:flex; align-items:baseline; justify-content:space-between; gap:8px; font-size:12.5px; }
.sd-clock-meta dt { color:#64748b; font-weight:650; flex-shrink:0; }
.sd-clock-meta dd { margin:0; color:#1e293b; font-weight:700; text-align:right; word-break:keep-all; font-variant-numeric:tabular-nums; }
.sd-clock-card__foot { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:6px; padding-top:10px; border-top:1px solid #f1f5f9; font-size:11.5px; color:#64748b; font-variant-numeric:tabular-nums; }
.sd-clock-card__foot a { color:#1d4ed8; font-weight:700; text-decoration:none; }
.sd-clock-card__foot a:hover { text-decoration:underline; }
.sd-clock-table tr.is-active-season { background:#f0f7ff; }
.sd-clock-now-tag { display:inline-flex; align-items:center; padding:2px 6px; border-radius:999px; background:#2563eb; color:#ffffff; font-size:10.5px; font-weight:800; margin-left:4px; vertical-align:middle; }
.sd-tool-detail .sd-tool-workbench .sd-clock-cards-section { border:1px solid #e6ecf5 !important; border-radius:16px !important; background:#ffffff !important; padding:18px !important; }
@media (max-width: 720px) {
    .sd-clock-hero { padding:14px; }
    .sd-clock-hero__clocks { grid-template-columns:minmax(0,1fr); }
    .sd-clock-world__time { font-size:23px; }
    .sd-clock-hero__actions, .sd-clock-refresh-btn { width:100%; justify-content:center; }
    .sd-clock-timeline-card, .sd-clock-cards-section, .sd-clock-schedule-card { padding:14px !important; }
    .sd-clock-timeline__ticks span:nth-child(even) { display:none; }
}
.sd-tool-etf-choice { display:flex; align-items:center; flex-wrap:wrap; gap:12px; border-bottom:1px solid var(--ds-border); padding:14px 0; }
.sd-tool-etf-choice>div { flex:2 1 220px; }
.sd-tool-etf-choice label { flex:1 1 120px; max-width:180px; }
.sd-tool-event { border-bottom:1px solid var(--ds-border); padding:10px 0; font-size:12px; }
.sd-tool-event.is-cancelled { opacity:.65; text-decoration:line-through; }
.sd-tool-calendar .sd-tool-event { font-size:12px; padding:4px 0; }

@container ds-focused-content (min-width:600px) {
    .sd-tool-page { --sd-tool-hub-columns:2; --sd-tool-field-columns:2; }
}
@container ds-home-content (min-width:600px) {
    .sd-tool-page { --sd-tool-hub-columns:2; --sd-tool-field-columns:2; }
}
@container ds-focused-content (min-width:760px) {
    .sd-tool-page { --sd-tool-clock-columns:repeat(3,minmax(0,1fr)); }
}
@container ds-home-content (min-width:760px) {
    .sd-tool-page { --sd-tool-clock-columns:repeat(3,minmax(0,1fr)); }
}
@container ds-focused-content (min-width:1080px) {
    .sd-tool-workspace:not(.sd-tool-workspace--rows), :is([data-tool-key="profit-image"],[data-tool-key="monthly-dividend"],[data-tool-key="etf-overlap"]) .sd-tool-grid { grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); }
    .sd-tool-workspace:not(.sd-tool-workspace--rows) > .sd-tool-result, :is([data-tool-key="profit-image"],[data-tool-key="monthly-dividend"],[data-tool-key="etf-overlap"]) .sd-tool-grid > .sd-tool-result { position:sticky; top:calc(var(--ds-header-h) + 16px); }
}
@container ds-home-content (min-width:1080px) {
    .sd-tool-workspace:not(.sd-tool-workspace--rows), :is([data-tool-key="profit-image"],[data-tool-key="monthly-dividend"],[data-tool-key="etf-overlap"]) .sd-tool-grid { grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); }
    .sd-tool-workspace:not(.sd-tool-workspace--rows) > .sd-tool-result, :is([data-tool-key="profit-image"],[data-tool-key="monthly-dividend"],[data-tool-key="etf-overlap"]) .sd-tool-grid > .sd-tool-result { position:sticky; top:calc(var(--ds-header-h) + 16px); }
}
@container ds-focused-content (min-width:680px) {
    .sd-tool-workspace--rows .sd-tool-fields { grid-template-columns:repeat(4,minmax(0,1fr)); }
    .sd-tool-buy-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .sd-tool-buy-row:only-child .sd-tool-buy-summary { grid-template-columns:repeat(4,minmax(0,1fr)); }
    .sd-tool-workspace--rows .sd-tool-metrics { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@container ds-home-content (min-width:680px) {
    .sd-tool-workspace--rows .sd-tool-fields { grid-template-columns:repeat(4,minmax(0,1fr)); }
    .sd-tool-buy-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .sd-tool-buy-row:only-child .sd-tool-buy-summary { grid-template-columns:repeat(4,minmax(0,1fr)); }
    .sd-tool-workspace--rows .sd-tool-metrics { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@container ds-focused-content (max-width:599px) {
    .sd-tool-row > .sd-tool-field { flex-basis:calc(50% - 6px); }
    .sd-tool-note { font-size:14px; line-height:1.65; }
    .sd-tool-stack { gap:12px; }
    .sd-tool-item { padding:12px; margin:8px 0; }
}
@container ds-home-content (max-width:599px) {
    .sd-tool-row > .sd-tool-field { flex-basis:calc(50% - 6px); }
    .sd-tool-note { font-size:14px; line-height:1.65; }
    .sd-tool-stack { gap:12px; }
    .sd-tool-item { padding:12px; margin:8px 0; }
}
@container ds-focused-content (min-width:900px) {
    .sd-tool-page { --sd-tool-hub-columns:3; }
}
@container ds-home-content (min-width:900px) {
    .sd-tool-page { --sd-tool-hub-columns:3; }
}
@container ds-focused-content (max-width:599px) {
    .sd-tool-local-save { flex-direction:column; align-items:flex-start; }
    .sd-tool-back { font-size:12px; padding:6px 9px; }
}
@container ds-home-content (max-width:599px) {
    .sd-tool-local-save { flex-direction:column; align-items:flex-start; }
    .sd-tool-back { font-size:12px; padding:6px 9px; }
}
@media(max-width:760px) {
    .sd-tool-modal { padding:16px; }
    .sd-tool-toast { bottom:calc(76px + env(safe-area-inset-bottom,0px)); }
}


html.sd-tool-dialog-open,html.sd-tool-dialog-open body{overflow:hidden;overscroll-behavior:none}
.sd-tool-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.sd-tool-detail .sd-tool-page-heading{margin-bottom:16px;gap:16px}
.sd-tool-detail .sd-tool-page-heading h1{font-size:26px;line-height:1.35;margin:0 0 6px}
.sd-tool-detail .sd-tool-page-heading p{font-size:14px;line-height:1.65}
.sd-tool-detail .sd-tool-breadcrumb{margin-bottom:12px}
.sd-tool-detail .sd-tool-workbench{min-width:0;padding:20px;background:#fff;border:1px solid #d5e1f0;border-radius:12px}
.sd-tool-detail .sd-tool-workbench :is(.sd-tool-form,.sd-tool-panel,.sd-tool-result){border:0;border-radius:0;background:transparent;box-shadow:none;padding:0;margin:0;min-width:0}
.sd-tool-detail .sd-tool-workspace,.sd-tool-detail .sd-tool-grid{grid-template-columns:minmax(0,1fr);gap:24px}
.sd-tool-detail .sd-tool-result{position:static!important;padding-top:20px!important;border-top:1px solid #dce5f1!important}
.sd-tool-detail .sd-tool-input-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px}
.sd-tool-detail .sd-tool-input-head h2{margin:0}
.sd-tool-detail :is(.sd-tool-form,.sd-tool-result,.sd-tool-panel) h2{font-size:17px;line-height:1.5;font-weight:800;margin:0 0 14px}
.sd-tool-detail .sd-tool-input-head h2{margin:0}
.sd-tool-detail .sd-tool-subheading{font-size:14px;font-weight:750;margin:18px 0 10px;color:#193b68}
.sd-tool-detail .sd-tool-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.sd-tool-detail .sd-tool-fields>[data-show-when]{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.sd-tool-detail [hidden]{display:none!important}
.sd-tool-detail .sd-tool-field{font-size:14px;gap:6px;line-height:1.5}
.sd-tool-detail .sd-tool-field>span:first-child{color:#435b79}
.sd-tool-detail .sd-tool-field :is(input,select,textarea){min-height:42px;font-size:14px;padding:9px 10px}
.sd-tool-detail .sd-tool-field small{font-size:13px;line-height:1.6}
.sd-tool-detail .sd-tool-field [data-unit]{font-size:12px}
.sd-tool-detail :is(button,.sd-tool-button){min-height:40px;font-size:13px;padding:8px 12px;line-height:1.45;white-space:normal;word-break:keep-all;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.sd-tool-detail .sd-tool-button-primary{background:#165ec9;color:white;border:1px solid #165ec9}
.sd-tool-detail .sd-tool-quick-actions{display:flex;gap:6px;flex-wrap:wrap;margin:0}
.sd-tool-detail .sd-tool-quick-actions button{min-height:34px;padding:6px 9px;font-size:12px}
.sd-tool-detail .sd-tool-workspace--rows .sd-tool-buy-list{grid-template-columns:minmax(0,1fr);gap:0}
.sd-tool-detail .sd-tool-buy-row{border:0;border-top:1px solid #dce5f1;background:transparent;border-radius:0;padding:14px 0;margin:10px 0 0}
.sd-tool-detail .sd-tool-buy-row legend{display:flex;align-items:center;justify-content:space-between;width:100%;padding:0;gap:8px;margin:0 0 8px;font-size:14px}
.sd-tool-detail .sd-tool-buy-row legend button{min-height:36px;padding:6px 8px;font-size:12px}
.sd-tool-detail .sd-tool-buy-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.sd-tool-detail .sd-tool-buy-mode{margin-bottom:10px}
.sd-tool-detail .sd-tool-buy-mode select{max-width:240px}
.sd-tool-detail .sd-tool-buy-cost{margin:8px 0!important}
.sd-tool-detail .sd-tool-row-summary{margin:8px 0 0!important}
.sd-tool-detail .sd-tool-buy-summary,.sd-tool-detail .sd-tool-buy-row:only-child .sd-tool-buy-summary{grid-template-columns:repeat(2,minmax(0,1fr));margin:10px 0 0;gap:8px}
.sd-tool-detail .sd-tool-buy-summary>div{padding:0;background:transparent;border:0}
.sd-tool-detail .sd-tool-buy-summary dt{font-size:12px}
.sd-tool-detail .sd-tool-buy-summary dd{font-size:14px}
.sd-tool-detail .sd-tool-row{gap:10px}
.sd-tool-detail .sd-tool-stack{gap:12px}
.sd-tool-detail fieldset.sd-tool-item{border:0;border-top:1px solid #dce5f1;background:transparent;border-radius:0;padding:14px 0;margin:8px 0}
.sd-tool-detail [data-payment-row]{background:#f5f8fc;border:0;border-radius:8px;padding:12px;margin:8px 0}
.sd-tool-detail .sd-tool-currency-details{margin:8px 0!important}
.sd-tool-detail .sd-tool-currency-details summary span{margin-left:8px;font-size:12px;font-weight:400;color:#566d8a}
.sd-tool-detail .sd-tool-currency-details[open]>.sd-tool-row{margin-top:10px}
.sd-tool-detail .sd-tool-metrics,.sd-tool-detail .sd-tool-workspace--rows .sd-tool-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px;margin:0 0 16px}
.sd-tool-detail .sd-tool-metric{background:transparent;padding:10px 0;border-radius:0;border-bottom:1px solid #e3eaf4}
.sd-tool-detail .sd-tool-metric span,.sd-tool-detail .sd-tool-metric small{font-size:13px;line-height:1.5;color:#526985;margin:0 0 5px}
.sd-tool-detail .sd-tool-metric strong{font-size:19px;line-height:1.4;color:#102e58;word-break:keep-all;overflow-wrap:anywhere}
.sd-tool-detail .sd-tool-metric--primary{grid-column:1/-1;grid-row:1;padding:16px;background:#eff5ff;border:0;border-left:3px solid #2568dc;border-radius:8px;margin-bottom:4px}
.sd-tool-detail .sd-tool-metric--primary strong{font-size:28px;line-height:1.35;letter-spacing:-.5px}
.sd-tool-detail .sd-tool-metric--primary small{margin:6px 0 0}
.sd-tool-detail .sd-tool-toolbar{display:flex;align-items:flex-start;flex-wrap:wrap;gap:6px;border:0;margin:0 0 16px;padding:0}
.sd-tool-detail .sd-tool-toolbar>button{padding:7px 9px;min-height:36px;font-size:12px}
.sd-tool-detail .sd-tool-more{position:relative;margin:0!important}
.sd-tool-detail .sd-tool-more>summary{min-height:36px;display:flex;align-items:center;gap:6px;padding:7px 9px;border:1px solid #d5e1f0;border-radius:7px;font-size:12px;list-style:none;color:#24486f}
.sd-tool-detail .sd-tool-more>summary::-webkit-details-marker{display:none}
.sd-tool-detail .sd-tool-more-menu{position:absolute;z-index:20;top:calc(100% + 6px);right:0;width:270px;max-width:calc(100vw - 48px);padding:12px;border:1px solid #d5e1f0;border-radius:9px;background:white;box-shadow:0 8px 24px #18345120}
.sd-tool-detail .sd-tool-local-save{margin:8px 0 0;display:flex;gap:8px;font-size:13px}
.sd-tool-detail .sd-tool-local-save span{font-size:12px;line-height:1.6}
.sd-tool-detail .sd-tool-comparisons{margin-top:20px;padding:16px 0 0;border:0;border-top:1px solid #dce5f1;box-shadow:none;border-radius:0}
.sd-tool-detail .sd-tool-result-detail{border-top:1px solid #dce5f1;margin:12px 0!important;padding-top:12px}
.sd-tool-detail .sd-tool-result-detail>summary{font-size:14px;color:#153961}
.sd-tool-detail .sd-tool-result-detail[open]>summary{margin-bottom:12px}
.sd-tool-detail .sd-tool-result-detail h3{font-size:15px;margin:16px 0 10px}
.sd-tool-detail .sd-tool-table{font-size:13px}
.sd-tool-detail .sd-tool-table th,.sd-tool-detail .sd-tool-table td{padding:10px 8px;line-height:1.65}
.sd-tool-detail .sd-tool-table button{font-size:12px;min-height:36px;padding:6px 8px}
.sd-tool-detail .sd-tool-table td:first-child,.sd-tool-detail .sd-tool-table th:first-child{white-space:normal;min-width:100px;word-break:keep-all;overflow-wrap:anywhere}
.sd-tool-detail .sd-tool-growth{margin:0 0 16px;padding:12px;background:#f5f8fc;border-radius:8px}
.sd-tool-detail .sd-tool-growth figcaption{font-size:13px;font-weight:700;color:#1c3e68;display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px}
.sd-tool-detail .sd-tool-growth figcaption span{font-size:12px;font-weight:400}
.sd-tool-detail .sd-tool-growth svg{display:block;width:100%;height:auto;margin:12px 0}
.sd-tool-detail .sd-tool-growth path{fill:none;stroke-width:3;stroke-linejoin:round;stroke-linecap:round}
.sd-tool-detail .sd-tool-growth-principal{stroke:#9aabc1;stroke-dasharray:5 5}
.sd-tool-detail .sd-tool-growth-balance{stroke:#2568dc}
.sd-tool-detail .sd-tool-growth>div{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:#526985}
.sd-tool-detail .sd-tool-empty{padding:18px 14px;border-radius:8px;background:#f5f8fc;font-size:14px;line-height:1.7;color:#526985;margin:0}
.sd-tool-detail .sd-tool-guest{min-height:250px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;padding:20px}
.sd-tool-detail .sd-tool-guest-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:12px;background:#edf4ff;color:#1964cb;font-size:24px}
.sd-tool-detail .sd-tool-guest h2{font-size:20px;margin:0}
.sd-tool-detail .sd-tool-guest p{font-size:14px;line-height:1.7;max-width:36em;margin:0}
.sd-tool-detail .sd-tool-guest>a:not(.sd-tool-button){font-size:13px}
.sd-tool-detail [data-calendar-output]{margin-top:6px}
.sd-tool-detail .sd-tool-calendar-periods{margin:0;gap:6px}
.sd-tool-detail .sd-tool-calendar-periods button[aria-pressed=true]{background:#e9f1ff;border-color:#a9c7f8;color:#1159be}
.sd-tool-detail [data-calendar-count]{display:block;font-size:13px;line-height:1.6}
.sd-tool-detail .sd-tool-clock-workspace .sd-tool-result{padding-top:0!important;border:0!important;margin-top:16px}
.sd-tool-detail [data-clock-time]{font-size:16px;font-weight:750;color:#153961;margin:0}
.sd-tool-detail .sd-tool-clock-row{padding:16px;border-color:#dce5f1;border-radius:9px;background:#f5f8fc;gap:10px}
.sd-tool-detail .sd-tool-clock-row h3{font-size:16px;line-height:1.5;margin:0 0 8px}
.sd-tool-detail .sd-tool-clock-row .sd-tool-badge{font-size:13px;padding:4px 8px}
.sd-tool-detail .sd-tool-clock-row p{font-size:14px;line-height:1.65;margin:0 0 6px}
.sd-tool-detail .sd-tool-clock-row small{font-size:12px;line-height:1.6}
.sd-tool-detail .sd-tool-clock-row strong{font-size:18px;white-space:normal}
.sd-tool-detail [data-etf-result-filter]{display:flex;flex-direction:row;align-items:center;gap:10px;margin:0 0 14px}
.sd-tool-detail [data-etf-result-filter] select{max-width:180px}
.sd-tool-detail .sd-tool-selected{padding:12px 0;border:0;border-bottom:1px solid #dce5f1;border-radius:0;background:transparent}
.sd-tool-detail .sd-tool-selected h3{font-size:15px;margin:0 0 6px}
.sd-tool-detail .sd-tool-selected p{font-size:13px;line-height:1.6;margin:0 0 8px}
.sd-tool-detail [data-stock-finder-filters]{margin:0 0 14px}
.sd-tool-detail [data-stock-finder-filters]>.sd-tool-field{flex-basis:calc(50% - 10px)}
.sd-tool-detail .sd-tool-image-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:190px;border:1px dashed #b7cbe5;border-radius:9px;background:#f5f8fc;color:#526985;text-align:center;padding:20px}
.sd-tool-detail .sd-tool-image-empty i{font-size:28px;color:#3475d2}
.sd-tool-detail .sd-tool-image-empty strong{font-size:15px;color:#294b74}
.sd-tool-detail .sd-tool-image-empty span{font-size:13px;line-height:1.6}
.sd-tool-detail .sd-tool-image-preview{padding:8px;border-radius:9px;background:#f5f8fc;border-color:#dce5f1}
.sd-tool-detail .sd-tool-image-preview canvas{display:block;width:100%;max-height:580px;object-fit:contain}
.sd-tool-detail .sd-tool-image-privacy{background:#f5f8fc;border:0;padding:12px;border-radius:8px}
.sd-tool-detail .sd-tool-month-bar{font-size:13px}
.sd-tool-modal .sd-tool-modal-head button{display:grid;place-items:center;min-width:40px;min-height:40px;padding:8px;font-size:18px;border-radius:7px;color:#24486f;background:#f1f6fc}
.sd-tool-modal :is(button,input){min-height:40px;font-size:14px}
.sd-tool-modal .sd-tool-plan-row small{font-size:12px}
@container ds-focused-content (min-width:820px){
 .sd-tool-detail .sd-tool-workspace,.sd-tool-detail :is([data-tool-key]) .sd-tool-grid{grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:32px}
 .sd-tool-detail .sd-tool-grid:not(.sd-tool-calendar-workspace){grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:32px}
 .sd-tool-detail .sd-tool-result{border-top:0!important;border-left:1px solid #dce5f1!important;padding:0 0 0 24px!important;position:sticky!important;top:calc(var(--ds-header-h,56px) + 16px)}
 .sd-tool-detail .sd-tool-calendar-workspace .sd-tool-result{position:static!important;border:0!important;padding:16px 0 0!important;border-top:1px solid #dce5f1!important}
 .sd-tool-detail .sd-tool-calendar-workspace{grid-template-columns:minmax(0,1fr)}
 .sd-tool-detail[data-tool-key="etf-stock-finder"] .sd-tool-grid{grid-template-columns:minmax(0,1fr)}
 .sd-tool-detail[data-tool-key="etf-stock-finder"] .sd-tool-result{position:static!important;border:0!important;padding:16px 0 0!important;border-top:1px solid #dce5f1!important}
 .sd-tool-detail .sd-tool-clock-workspace .sd-tool-result{position:static!important;padding:0!important;border:0!important}
}
@container ds-focused-content (max-width:599px){
 .sd-tool-detail .sd-tool-workbench{padding:14px}
 .sd-tool-detail .sd-tool-fields,.sd-tool-detail .sd-tool-workspace--rows .sd-tool-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
 .sd-tool-detail .sd-tool-field :is(input,select,textarea){font-size:16px}
 .sd-tool-detail .sd-tool-metric--primary strong{font-size:26px}
 .sd-tool-detail .sd-tool-buy-row [name$="fxRate"]{font-size:14px}
 .sd-tool-detail .sd-tool-responsive-table,.sd-tool-detail .sd-tool-responsive-table tbody{display:block;width:100%}
 .sd-tool-detail .sd-tool-responsive-table thead{display:none}
 .sd-tool-detail .sd-tool-responsive-table tbody tr{display:block;padding:10px 0;border-bottom:1px solid #dce5f1}
 .sd-tool-detail .sd-tool-responsive-table :is(td,th){display:flex;position:static!important;align-items:flex-start;justify-content:space-between;gap:14px;white-space:normal;min-width:0!important;text-align:right!important;padding:4px 0;border:0;background:transparent!important;overflow-wrap:anywhere}
 .sd-tool-detail .sd-tool-responsive-table :is(td,th)::before{content:attr(data-cell-label);flex:0 0 34%;text-align:left;font-size:12px;font-weight:500;color:#526985}
 .sd-tool-detail .sd-tool-responsive-table :is(td,th)>*{min-width:0;max-width:100%}
 .sd-tool-detail .sd-tool-responsive-table .sd-tool-check{align-items:flex-start;text-align:left}
 .sd-tool-detail .sd-tool-responsive-table .sd-tool-check input{margin-top:3px}
 .sd-tool-detail .sd-tool-responsive-table td:has(details){display:block;text-align:left!important}
 .sd-tool-detail .sd-tool-responsive-table td:has(details)::before{display:block;margin-bottom:6px}
 .sd-tool-detail[data-tool-key="profit-image"] .sd-tool-result{order:-1;padding-top:0!important;border-top:0!important;padding-bottom:16px!important;border-bottom:1px solid #dce5f1!important}
 .sd-tool-detail .sd-tool-image-preview canvas{max-height:360px}
}
@media(max-width:600px){
 .sd-tool-detail .sd-tool-page-heading h1{font-size:23px}
 .sd-tool-detail .sd-tool-page-heading{align-items:flex-start;gap:10px}
 .sd-tool-detail .sd-tool-page-heading .sd-tool-back{font-size:12px;padding:8px 10px;white-space:nowrap}
 .sd-tool-detail .sd-tool-more-menu{right:auto;left:0}
 .sd-tool-modal{padding:18px;max-height:85dvh;overscroll-behavior:contain}
}

.sd-tool-detail .sd-tool-cell-value{min-width:0;max-width:100%;overflow-wrap:anywhere}
@container ds-focused-content (max-width:599px){
 .sd-tool-detail .sd-tool-responsive-table .sd-tool-cell-value{flex:1 1 0;min-width:0;text-align:right;white-space:normal;line-height:1.7}
 .sd-tool-detail .sd-tool-responsive-table .sd-tool-cell-value>small{display:block;font-size:12px;line-height:1.6}
 .sd-tool-detail .sd-tool-key-value thead{display:none}
 .sd-tool-detail .sd-tool-key-value td{font-size:13px;padding:10px 4px;white-space:normal}
 .sd-tool-detail .sd-tool-key-value td:first-child{width:54%;min-width:0}
 .sd-tool-detail .sd-tool-key-value td:last-child{text-align:right;white-space:nowrap}
}


.sd-tool-detail .sd-tool-calendar-mobile-weekday,.sd-tool-detail .sd-tool-calendar-empty{display:none}
.sd-tool-detail .sd-tool-calendar-events{min-width:0}
@container ds-focused-content (max-width:599px){
 .sd-tool-detail .sd-tool-calendar{display:block;min-width:0;border:0}
 .sd-tool-detail .sd-tool-calendar-weekday,.sd-tool-detail .sd-tool-calendar-day.is-empty,.sd-tool-detail .sd-tool-calendar-day:not(.has-events):not(.is-today){display:none}
 .sd-tool-detail .sd-tool-calendar-day{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:start;gap:10px;min-height:0;padding:12px 0;border:0;border-bottom:1px solid #dce5f1}
 .sd-tool-detail .sd-tool-calendar-day>strong{font-size:18px;line-height:1.4;text-align:center}
 .sd-tool-detail .sd-tool-calendar-mobile-weekday{display:block;font-size:12px;font-weight:500;color:#526985}
 .sd-tool-detail .sd-tool-calendar-empty{display:block;font-size:14px;line-height:1.7;margin:8px 0 16px;color:#526985}
 .sd-tool-detail .sd-tool-calendar-events .sd-tool-event{padding:0 0 10px;min-width:0}
 .sd-tool-detail .sd-tool-calendar-events .sd-tool-event:last-child{padding-bottom:0}
 .sd-tool-detail .sd-tool-calendar-day button{width:auto;max-width:100%;min-height:36px;padding:4px 0;margin:2px 0;text-align:left;justify-content:flex-start}
}
.sd-tool-opt-chips {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
}
.sd-tool-opt-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 8px 10px;
    border: 1px solid #d5e2f2;
    border-radius: 8px;
    background: #f8fafd;
    color: #102344;
    font: inherit;
    text-align: left;
    cursor: pointer;
    min-width: 0;
    overflow: hidden;
    transition: background-color .15s ease, border-color .15s ease;
}
@media (max-width: 640px) {
    .sd-tool-opt-chips {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.sd-tool-opt-chip strong {
    font-size: 13px;
    font-weight: 800;
    color: #0b3d91;
}
.sd-tool-opt-chip span {
    font-size: 11px;
    color: #5b6e88;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.sd-tool-opt-chip.is-active {
    border-color: #1758ae;
    background: #edf4ff;
}
.sd-tool-opt-guide {
    padding: 12px 14px;
    border: 1px solid #e2eaf4;
    border-radius: 9px;
    background: #f9fbfe;
}
.sd-tool-opt-guide h3 {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 800;
    color: #102344;
}
.sd-tool-opt-guide ul {
    margin: 0;
    padding-left: 16px;
    color: #4b607c;
    font-size: 12px;
    line-height: 1.6;
}
.sd-tool-opt-verdict {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #d5e2f2;
    border-radius: 9px;
    background: #f5f9ff;
    color: #102344;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
}
.sd-tool-opt-table th,
.sd-tool-opt-table td {
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.sd-tool-opt-table tr.is-highlight {
    background: #f3f8ff;
}
.sd-tool-opt-bar {
    width: 100%;
    min-width: 70px;
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}
.sd-tool-opt-bar i {
    display: block;
    height: 100%;
    border-radius: 999px;
}
.sd-tool-opt-bar.is-call i {
    background: linear-gradient(90deg, #e11d48, #fb7185);
}
.sd-tool-opt-bar.is-put i {
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

/* Phase 4.2: Multi-Expiry Tabs, Quick ETF/Stock Chips, and Calculator Quote Lookup */
.sd-tool-opt-terms {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
}
.sd-tool-opt-term {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    padding: 8px 6px !important;
    text-align: center;
    border: 1px solid #d5e2f2 !important;
    border-radius: 8px !important;
    background: #f8fbff !important;
}
.sd-tool-opt-term strong {
    font-size: 13px;
    font-weight: 800;
    color: #0f2547;
    white-space: nowrap;
}
.sd-tool-opt-term span {
    font-size: 11px;
    font-weight: 600;
    color: #5b6e88;
    font-variant-numeric: tabular-nums;
}
.sd-tool-opt-term.is-active {
    border-color: #0b3d91 !important;
    background: #0b3d91 !important;
    color: #ffffff !important;
}
.sd-tool-opt-term.is-active strong,
.sd-tool-opt-term.is-active span {
    color: #ffffff;
}
@media (max-width: 420px) {
    .sd-tool-opt-terms {
        grid-template-columns: minmax(0, 1fr);
    }
    .sd-tool-opt-term {
        flex-direction: row;
        justify-content: space-between;
        padding: 8px 12px !important;
    }
}
@media (min-width: 760px) {
    .sd-tool-metrics--opt {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.sd-tool-quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}
.sd-tool-quick-chips button {
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 5px 10px !important;
    background: #f4f8ff !important;
    border-color: #d0dff3 !important;
    color: #12376b !important;
}
.sd-tool-quick-chips button:hover {
    background: #e6f0ff !important;
    border-color: #1d4ed8 !important;
}
.sd-tool-quote-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    margin: 0 0 14px;
    border: 1px solid #d5e2f2;
    border-radius: 10px;
    background: #f7faff;
    min-width: 0;
}
.sd-tool-quote-bar__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 10px;
    font-size: 12.5px;
    color: #4b607c;
}
.sd-tool-quote-bar__head strong {
    font-size: 13.5px;
    font-weight: 800;
    color: #0b3d91;
}
.sd-tool-quote-bar__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}
.sd-tool-quote-bar__controls input {
    flex: 1 1 200px;
    min-width: 0;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid #cbd9ec;
    border-radius: 8px;
    background: #fff;
    font: inherit;
    font-size: 14px;
    color: #0f172a;
}
.sd-tool-quote-bar__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}
.sd-tool-quote-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 5px 9px !important;
    font-size: 12px !important;
    border-radius: 7px !important;
    background: #fff !important;
    border: 1px solid #d2dff0 !important;
}
.sd-tool-quote-chip strong {
    color: #0f172a;
    font-weight: 750;
}
.sd-tool-quote-chip span {
    color: #475569;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   DailyStock Investment Tools — Proposal 1 (추천 1안) High-Density Workspace
   Scoped to .ds-td-shell (average-price, split-buy, leveraged-rebalance)
   ========================================================================== */

.sd-tool-detail .ds-td-shell {
  --td-card-bg: #ffffff;
  --td-surface: #f8fafc;
  --td-surface-alt: #f1f5f9;
  --td-border: #dbe4f0;
  --td-border-strong: #cbd5e1;
  --td-line: #edf2f7;
  --td-text: #0f172a;
  --td-body: #1e293b;
  --td-sub: #334155;
  --td-muted: #64748b;
  --td-navy: #0b3d91;
  --td-navy-deep: #082a66;
  --td-blue: #1d4ed8;
  --td-blue-soft: #eff4ff;
  --td-up: #b91c1c;
  --td-up-bg: #fef2f2;
  --td-up-border: #fecaca;
  --td-down: #1d4ed8;
  --td-down-bg: #eff6ff;
  --td-down-border: #bfdbfe;
  --td-r-sm: 8px;
  --td-r-md: 10px;
  --td-r-lg: 12px;

  container-type: inline-size;
  container-name: ds-td-shell;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  color: var(--td-text);
}

.sd-tool-detail .ds-td-shell *,
.sd-tool-detail .ds-td-shell *::before,
.sd-tool-detail .ds-td-shell *::after {
  box-sizing: border-box;
}

.sd-tool-detail .ds-td-shell [hidden] {
  display: none !important;
}

.sd-tool-detail .ds-td-shell .ds-td-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Color & Status Pills (Korean Financial Standard: Up = Red, Down = Blue) */
.sd-tool-detail .ds-td-shell .ds-td-up { color: var(--td-up); }
.sd-tool-detail .ds-td-shell .ds-td-down { color: var(--td-down); }
.sd-tool-detail .ds-td-shell .ds-td-navy { color: var(--td-navy); }
.sd-tool-detail .ds-td-shell .ds-td-muted { color: var(--td-muted); font-weight: 500; }

.sd-tool-detail .ds-td-shell .ds-td-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sd-tool-detail .ds-td-shell .ds-td-mini-pill {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 5px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sd-tool-detail .ds-td-shell .ds-td-pill--up {
  background: var(--td-up-bg);
  color: var(--td-up);
  border: 1px solid var(--td-up-border);
}
.sd-tool-detail .ds-td-shell .ds-td-pill--down {
  background: var(--td-down-bg);
  color: var(--td-down);
  border: 1px solid var(--td-down-border);
}
.sd-tool-detail .ds-td-shell .ds-td-pill--navy {
  background: var(--td-blue-soft);
  color: var(--td-navy);
  border: 1px solid #bfdbfe;
}
.sd-tool-detail .ds-td-shell .ds-td-pill--flat {
  background: var(--td-surface-alt);
  color: var(--td-sub);
  border: 1px solid var(--td-border);
}

/* ==========================================================================
   Unified Top Calculator Switcher & Header Card
   ========================================================================== */
.sd-tool-detail .ds-td-shell .ds-td-topbar {
  background: var(--td-card-bg);
  border: 1px solid var(--td-border);
  border-radius: var(--td-r-lg);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sd-tool-detail .ds-td-shell .ds-td-topbar__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--td-line);
}

.sd-tool-detail .ds-td-shell .ds-td-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.sd-tool-detail .ds-td-shell .ds-td-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--td-border);
  border-radius: var(--td-r-sm);
  background: #fff;
  color: var(--td-body);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.14s, border-color 0.14s, color 0.14s;
}
.sd-tool-detail .ds-td-shell .ds-td-tab.is-secondary {
  color: var(--td-muted);
}
.sd-tool-detail .ds-td-shell .ds-td-tab:hover {
  background: var(--td-surface);
  border-color: var(--td-border-strong);
  color: var(--td-navy);
}
.sd-tool-detail .ds-td-shell .ds-td-tab.is-active {
  background: var(--td-navy);
  border-color: var(--td-navy);
  color: #fff;
}

.sd-tool-detail .ds-td-shell .ds-td-topbar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.sd-tool-detail .ds-td-shell .ds-td-title-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 320px;
}

.sd-tool-detail .ds-td-shell .ds-td-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.sd-tool-detail .ds-td-shell .ds-td-title-row h1 {
  margin: 0;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 850;
  letter-spacing: -0.025em;
  color: var(--td-text);
}

.sd-tool-detail .ds-td-shell .ds-td-state-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--td-blue-soft);
  border: 1px solid #bfdbfe;
  color: var(--td-navy);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.sd-tool-detail .ds-td-shell .ds-td-state-tag.is-holding {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.sd-tool-detail .ds-td-shell .ds-td-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--td-sub);
  word-break: keep-all;
}

.sd-tool-detail .ds-td-shell .ds-td-head-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.sd-tool-detail .ds-td-shell .ds-td-btn-util {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--td-border);
  border-radius: var(--td-r-sm);
  background: #fff;
  color: var(--td-body);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.14s, border-color 0.14s, color 0.14s;
}
.sd-tool-detail .ds-td-shell .ds-td-btn-util:hover {
  background: var(--td-blue-soft);
  border-color: #93c5fd;
  color: var(--td-navy);
}
.sd-tool-detail .ds-td-shell .ds-td-btn-util--primary {
  background: var(--td-blue-soft);
  border-color: #bfdbfe;
  color: var(--td-navy);
}

/* ==========================================================================
   Left-Right Workspace Grid & Cards
   ========================================================================== */
.sd-tool-detail .ds-td-shell .ds-td-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

@container ds-td-shell (min-width: 820px) {
  .sd-tool-detail .ds-td-shell .ds-td-workspace {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  }
  .sd-tool-detail .ds-td-shell .ds-td-card--sticky {
    position: sticky;
    top: calc(var(--ds-header-h, 60px) + 14px);
  }
}

.sd-tool-detail .ds-td-shell .ds-td-card {
  background: var(--td-card-bg);
  border: 1px solid var(--td-border);
  border-radius: var(--td-r-lg);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.sd-tool-detail .ds-td-shell [data-td-result-body] {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.sd-tool-detail .ds-td-shell .ds-td-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.sd-tool-detail .ds-td-shell .ds-td-sec-head--divider {
  padding-top: 10px;
  border-top: 1px solid var(--td-line);
}
.sd-tool-detail .ds-td-shell .ds-td-sec-head h2,
.sd-tool-detail .ds-td-shell .ds-td-sec-head h3 {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.4;
  font-weight: 800;
  color: var(--td-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sd-tool-detail .ds-td-shell .ds-td-sec-head h2 i,
.sd-tool-detail .ds-td-shell .ds-td-sec-head h3 i {
  color: var(--td-navy);
}
.sd-tool-detail .ds-td-shell .ds-td-sec-sub {
  font-size: 12px;
  color: var(--td-muted);
  font-weight: 600;
}

/* Segmented Controls */
.sd-tool-detail .ds-td-shell .ds-td-seg-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.sd-tool-detail .ds-td-shell .ds-td-seg {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 8px;
  background: var(--td-surface-alt);
  border: 1px solid var(--td-border);
  gap: 2px;
}
.sd-tool-detail .ds-td-shell .ds-td-seg--wide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
}

.sd-tool-detail .ds-td-shell .ds-td-seg__btn {
  min-height: 28px;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--td-sub);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.sd-tool-detail .ds-td-shell .ds-td-seg__btn:hover {
  background: rgba(255, 255, 255, 0.55);
  color: var(--td-text);
}
.sd-tool-detail .ds-td-shell .ds-td-seg__btn.is-active {
  background: #fff;
  color: var(--td-navy);
  font-weight: 800;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

/* Compact Input Fields */
.sd-tool-detail .ds-td-shell .ds-td-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.sd-tool-detail .ds-td-shell .ds-td-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sd-tool-detail .ds-td-shell .ds-td-inp-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  margin: 0;
}
.sd-tool-detail .ds-td-shell .ds-td-inp-box > span:first-child {
  font-size: 12px;
  font-weight: 700;
  color: var(--td-sub);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  white-space: nowrap;
}

.sd-tool-detail .ds-td-shell .ds-td-inp-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}
.sd-tool-detail .ds-td-shell .ds-td-inp-wrap input,
.sd-tool-detail .ds-td-shell .ds-td-inp-wrap select {
  width: 100%;
  min-height: 36px;
  height: 36px;
  padding: 0 34px 0 10px;
  border: 1px solid var(--td-border);
  border-radius: var(--td-r-sm);
  background: var(--td-surface);
  color: var(--td-text);
  font-size: 13.5px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  min-width: 0;
}
.sd-tool-detail .ds-td-shell .ds-td-inp-wrap select.ds-td-select {
  padding-right: 26px;
}
.sd-tool-detail .ds-td-shell .ds-td-inp-wrap input:focus,
.sd-tool-detail .ds-td-shell .ds-td-inp-wrap select:focus {
  outline: 2px solid var(--td-blue);
  outline-offset: 0;
  border-color: var(--td-blue);
  background: #fff;
}
.sd-tool-detail .ds-td-shell .ds-td-inp-unit {
  position: absolute;
  right: 9px;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--td-muted);
  pointer-events: none;
  white-space: nowrap;
}

/* Quick Preset / Step Chips */
.sd-tool-detail .ds-td-shell .ds-td-chip-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
.sd-tool-detail .ds-td-shell .ds-td-qchip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  height: 28px;
  padding: 0 9px;
  border: 1px solid var(--td-border);
  border-radius: 6px;
  background: #fff;
  color: var(--td-sub);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.sd-tool-detail .ds-td-shell .ds-td-qchip:hover {
  border-color: #93c5fd;
  background: var(--td-blue-soft);
  color: var(--td-navy);
}
.sd-tool-detail .ds-td-shell .ds-td-qchip.is-active {
  background: var(--td-navy);
  border-color: var(--td-navy);
  color: #fff;
}

/* Inline Buy Stage Spreadsheet Rows */
.sd-tool-detail .ds-td-shell .ds-td-sheet {
  border: 1px solid var(--td-border);
  border-radius: var(--td-r-md);
  overflow: hidden;
  background: #fff;
}
.sd-tool-detail .ds-td-shell .ds-td-sheet__head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr) 114px 30px;
  gap: 8px;
  padding: 8px 10px;
  background: var(--td-surface);
  border-bottom: 1px solid var(--td-border);
  font-size: 11.5px;
  font-weight: 750;
  color: var(--td-muted);
}
.sd-tool-detail .ds-td-shell .ds-td-sheet__head--split {
  grid-template-columns: 52px minmax(0, 1fr) minmax(0, 0.92fr) 128px 30px;
}
.sd-tool-detail .ds-td-shell .ds-td-sheet__head .is-right {
  text-align: right;
}

.sd-tool-detail .ds-td-shell .ds-td-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr) 114px 30px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--td-line);
}
.sd-tool-detail .ds-td-shell .ds-td-row--split {
  grid-template-columns: 52px minmax(0, 1fr) minmax(0, 0.92fr) 128px 30px;
}
.sd-tool-detail .ds-td-shell .ds-td-row:last-child {
  border-bottom: 0;
}

.sd-tool-detail .ds-td-shell .ds-td-row-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 7px;
  border-radius: 5px;
  background: var(--td-blue-soft);
  color: var(--td-navy);
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}

.sd-tool-detail .ds-td-shell .ds-td-row-sub {
  text-align: right;
  font-size: 12px;
  font-weight: 750;
  color: var(--td-body);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sd-tool-detail .ds-td-shell .ds-td-row-sub small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--td-muted);
}

.sd-tool-detail .ds-td-shell .ds-td-btn-del {
  min-height: 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--td-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.sd-tool-detail .ds-td-shell .ds-td-btn-del:hover:not(:disabled) {
  background: var(--td-up-bg);
  color: var(--td-up);
  border-color: var(--td-up-border);
}
.sd-tool-detail .ds-td-shell .ds-td-btn-del:disabled {
  opacity: 0.28;
  cursor: default;
}

.sd-tool-detail .ds-td-shell .ds-td-btn-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  height: 34px;
  padding: 0 12px;
  border: 1px dashed var(--td-border-strong);
  border-radius: var(--td-r-sm);
  background: var(--td-surface);
  color: var(--td-navy);
  font-size: 12.5px;
  font-weight: 750;
  cursor: pointer;
  width: 100%;
}
.sd-tool-detail .ds-td-shell .ds-td-btn-add:hover {
  background: var(--td-blue-soft);
  border-color: #93c5fd;
}

.sd-tool-detail .ds-td-shell .ds-td-split-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.sd-tool-detail .ds-td-shell .ds-td-split-foot .ds-td-btn-add {
  flex: 1 1 200px;
}
.sd-tool-detail .ds-td-shell .ds-td-alloc-status {
  font-size: 12px;
  font-weight: 750;
  color: var(--td-sub);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sd-tool-detail .ds-td-shell .ds-td-alloc-status.is-warn {
  color: var(--td-up);
}

.sd-tool-detail .ds-td-shell .ds-td-inline-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--td-sub);
  cursor: pointer;
}
.sd-tool-detail .ds-td-shell .ds-td-inline-check input {
  width: 15px;
  height: 15px;
  accent-color: var(--td-navy);
  margin: 0;
}

/* ETF Preset Chips & Slider (Leveraged Rebalance) */
.sd-tool-detail .ds-td-shell .ds-td-etf-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.sd-tool-detail .ds-td-shell .ds-td-etf-chip {
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid var(--td-border);
  border-radius: var(--td-r-sm);
  background: var(--td-surface);
  color: var(--td-text);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}
.sd-tool-detail .ds-td-shell .ds-td-etf-chip:hover {
  border-color: #93c5fd;
  background: #f8fbff;
}
.sd-tool-detail .ds-td-shell .ds-td-etf-chip.is-active {
  border-color: var(--td-blue);
  background: var(--td-blue-soft);
  box-shadow: inset 0 0 0 1px var(--td-blue);
}
.sd-tool-detail .ds-td-shell .ds-td-etf-chip__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.sd-tool-detail .ds-td-shell .ds-td-etf-chip strong {
  font-size: 13px;
  font-weight: 850;
  color: var(--td-text);
}
.sd-tool-detail .ds-td-shell .ds-td-etf-chip.is-active strong {
  color: var(--td-navy);
}
.sd-tool-detail .ds-td-shell .ds-td-etf-chip > span:last-child {
  font-size: 11px;
  font-weight: 600;
  color: var(--td-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sd-tool-detail .ds-td-shell .ds-td-slider-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sd-tool-detail .ds-td-shell .ds-td-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 750;
  color: var(--td-sub);
}
.sd-tool-detail .ds-td-shell .ds-td-slider-head input[type="range"] {
  width: min(200px, 48%);
  accent-color: var(--td-navy);
  cursor: pointer;
}

.sd-tool-detail .ds-td-shell .ds-td-principle-box {
  padding: 10px 12px;
  border-radius: var(--td-r-sm);
  background: var(--td-surface);
  border: 1px solid var(--td-border);
  font-size: 12.5px;
  color: var(--td-sub);
  line-height: 1.55;
  word-break: keep-all;
}
.sd-tool-detail .ds-td-shell .ds-td-principle-box > strong:first-child {
  color: var(--td-navy);
}
.sd-tool-detail .ds-td-shell .ds-td-principle-box code {
  padding: 1px 5px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 12px;
  white-space: nowrap;
}

.sd-tool-detail .ds-td-shell .ds-td-form-error {
  margin: 0;
  padding: 8px 10px;
  border-radius: var(--td-r-sm);
  background: var(--td-up-bg);
  border: 1px solid var(--td-up-border);
  color: var(--td-up);
  font-size: 12.5px;
  font-weight: 700;
}

/* ==========================================================================
   Right Output Card: Hero Banner + Gauge + 4-KPI Grid + Step Table
   ========================================================================== */
.sd-tool-detail .ds-td-shell .ds-td-hero {
  padding: 14px 16px;
  border-radius: var(--td-r-md);
  background: linear-gradient(135deg, #eff5ff 0%, #f8fbff 100%);
  border: 1px solid #bfdbfe;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sd-tool-detail .ds-td-shell .ds-td-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.sd-tool-detail .ds-td-shell .ds-td-hero__label {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--td-navy);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.sd-tool-detail .ds-td-shell .ds-td-hero__main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.sd-tool-detail .ds-td-shell .ds-td-hero__val {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--td-text);
  font-variant-numeric: tabular-nums;
}
.sd-tool-detail .ds-td-shell .ds-td-hero__sub {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--td-sub);
  word-break: keep-all;
}

.sd-tool-detail .ds-td-shell .ds-td-ladder {
  padding: 10px 12px;
  border-radius: var(--td-r-sm);
  background: #fff;
  border: 1px solid var(--td-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sd-tool-detail .ds-td-shell .ds-td-ladder__labels {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--td-sub);
  font-variant-numeric: tabular-nums;
}
.sd-tool-detail .ds-td-shell .ds-td-ladder__track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.sd-tool-detail .ds-td-shell .ds-td-ladder__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb 0%, #0b3d91 100%);
  transition: width 0.2s ease;
}
.sd-tool-detail .ds-td-shell .ds-td-ladder__fill--buy {
  background: linear-gradient(90deg, #ef4444 0%, #b91c1c 100%);
}
.sd-tool-detail .ds-td-shell .ds-td-ladder__fill--sell {
  background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
}

.sd-tool-detail .ds-td-shell .ds-td-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.sd-tool-detail .ds-td-shell .ds-td-kpi {
  padding: 10px 12px;
  border-radius: var(--td-r-sm);
  background: var(--td-surface);
  border: 1px solid var(--td-border);
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.sd-tool-detail .ds-td-shell .ds-td-kpi > span {
  font-size: 11.5px;
  font-weight: 650;
  color: var(--td-muted);
}
.sd-tool-detail .ds-td-shell .ds-td-kpi > strong {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 800;
  color: var(--td-text);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.sd-tool-detail .ds-td-shell .ds-td-kpi > small {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--td-sub);
  word-break: keep-all;
}

.sd-tool-detail .ds-td-shell .ds-td-table-sec {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.sd-tool-detail .ds-td-shell .ds-td-table-wrap {
  border: 1px solid var(--td-border);
  border-radius: var(--td-r-sm);
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.sd-tool-detail .ds-td-shell .ds-td-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.sd-tool-detail .ds-td-shell .ds-td-table th,
.sd-tool-detail .ds-td-shell .ds-td-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--td-line);
  text-align: right;
  white-space: nowrap;
}
.sd-tool-detail .ds-td-shell .ds-td-table th {
  background: var(--td-surface);
  color: var(--td-sub);
  font-weight: 750;
}
.sd-tool-detail .ds-td-shell .ds-td-table th:first-child,
.sd-tool-detail .ds-td-shell .ds-td-table td:first-child {
  text-align: left;
  font-weight: 700;
}
.sd-tool-detail .ds-td-shell .ds-td-table tr:last-child td {
  border-bottom: 0;
}
.sd-tool-detail .ds-td-shell .ds-td-table tr.is-highlight {
  background: #eff6ff;
  font-weight: 800;
}

.sd-tool-detail .ds-td-shell .ds-td-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 220px;
  padding: 20px 16px;
  border-radius: var(--td-r-md);
  border: 1px dashed var(--td-border-strong);
  background: var(--td-surface);
  text-align: center;
}
.sd-tool-detail .ds-td-shell .ds-td-empty i {
  font-size: 24px;
  color: var(--td-navy);
}
.sd-tool-detail .ds-td-shell .ds-td-empty strong {
  font-size: 14.5px;
  color: var(--td-text);
}
.sd-tool-detail .ds-td-shell .ds-td-empty p {
  margin: 0;
  font-size: 13px;
  color: var(--td-sub);
  max-width: 34em;
  word-break: keep-all;
}

/* Footer Action Bar + More Save Options */
.sd-tool-detail .ds-td-shell .ds-td-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding-top: 10px;
  border-top: 1px solid var(--td-line);
}
.sd-tool-detail .ds-td-shell .ds-td-actions__group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.sd-tool-detail .ds-td-shell .ds-td-more {
  position: relative;
  margin: 0;
}
.sd-tool-detail .ds-td-shell .ds-td-more > summary {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--td-border);
  border-radius: var(--td-r-sm);
  background: #fff;
  color: var(--td-body);
  cursor: pointer;
  list-style: none;
}
.sd-tool-detail .ds-td-shell .ds-td-more > summary::-webkit-details-marker {
  display: none;
}
.sd-tool-detail .ds-td-shell .ds-td-more > summary:hover {
  background: var(--td-blue-soft);
  border-color: #93c5fd;
  color: var(--td-navy);
}
.sd-tool-detail .ds-td-shell .ds-td-more__menu {
  position: absolute;
  z-index: 30;
  bottom: calc(100% + 6px);
  right: 0;
  width: 260px;
  max-width: calc(100vw - 32px);
  padding: 12px;
  border: 1px solid var(--td-border);
  border-radius: var(--td-r-md);
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sd-tool-detail .ds-td-shell .ds-td-local-save {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--td-line);
}
.sd-tool-detail .ds-td-shell .ds-td-local-save small {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--td-muted);
  word-break: keep-all;
}

/* Comparisons Table Wrapper */
.sd-tool-detail .ds-td-shell .ds-td-comparisons {
  background: var(--td-card-bg);
  border: 1px solid var(--td-border);
  border-radius: var(--td-r-lg);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   Compact Laptop Two-Column Density (820px ~ 1020px container width)
   ========================================================================== */
@container ds-td-shell (min-width: 820px) and (max-width: 1020px) {
  .sd-tool-detail .ds-td-shell .ds-td-card {
    padding: 14px;
    gap: 12px;
  }
  .sd-tool-detail .ds-td-shell .ds-td-etf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sd-tool-detail .ds-td-shell .ds-td-sheet__head,
  .sd-tool-detail .ds-td-shell .ds-td-row {
    grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr) 96px 26px;
    gap: 6px;
    padding: 7px 8px;
  }
  .sd-tool-detail .ds-td-shell .ds-td-sheet__head--split,
  .sd-tool-detail .ds-td-shell .ds-td-row--split {
    grid-template-columns: 44px minmax(0, 1fr) minmax(0, 0.88fr) 104px 26px;
    gap: 6px;
    padding: 7px 8px;
  }
  .sd-tool-detail .ds-td-shell .ds-td-inp-wrap input {
    padding: 0 28px 0 8px;
    font-size: 13px;
  }
  .sd-tool-detail .ds-td-shell .ds-td-inp-unit {
    right: 6px;
    font-size: 11px;
  }
  .sd-tool-detail .ds-td-shell .ds-td-table th,
  .sd-tool-detail .ds-td-shell .ds-td-table td {
    padding: 7px 6px;
    font-size: 11.5px;
  }
  .sd-tool-detail .ds-td-shell .ds-td-hero__val {
    font-size: 23px;
  }
}

/* ==========================================================================
   Narrow & Mobile Container Responsiveness
   ========================================================================== */
@container ds-td-shell (max-width: 580px) {
  .sd-tool-detail .ds-td-shell .ds-td-topbar {
    padding: 12px 14px;
  }
  .sd-tool-detail .ds-td-shell .ds-td-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .sd-tool-detail .ds-td-shell .ds-td-tabs::-webkit-scrollbar {
    display: none;
  }
  .sd-tool-detail .ds-td-shell .ds-td-card {
    padding: 14px;
    gap: 12px;
  }
  .sd-tool-detail .ds-td-shell .ds-td-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .sd-tool-detail .ds-td-shell .ds-td-etf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sd-tool-detail .ds-td-shell .ds-td-sheet__head {
    display: none;
  }
  .sd-tool-detail .ds-td-shell .ds-td-row,
  .sd-tool-detail .ds-td-shell .ds-td-row--split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 28px;
    gap: 6px;
    padding: 10px;
  }
  .sd-tool-detail .ds-td-shell .ds-td-row .ds-td-row-badge {
    grid-column: 1 / 2;
    grid-row: 1;
    justify-self: start;
  }
  .sd-tool-detail .ds-td-shell .ds-td-row .ds-td-row-sub {
    grid-column: 2 / 3;
    grid-row: 1;
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 5px;
  }
  .sd-tool-detail .ds-td-shell .ds-td-row .ds-td-btn-del {
    grid-column: 3 / 4;
    grid-row: 1;
  }
  .sd-tool-detail .ds-td-shell .ds-td-row > :nth-child(2) {
    grid-column: 1 / 2;
    grid-row: 2;
  }
  .sd-tool-detail .ds-td-shell .ds-td-row > :nth-child(3) {
    grid-column: 2 / 4;
    grid-row: 2;
  }
  .sd-tool-detail .ds-td-shell .ds-td-more__menu {
    right: auto;
    left: 0;
  }
}

@media (max-width: 640px) {
  .sd-tool-detail .ds-td-shell .ds-td-inp-wrap input,
  .sd-tool-detail .ds-td-shell .ds-td-inp-wrap select {
    font-size: 16px;
  }
}

/* Phase 4.2: Desk Quote Bar & Live Underlying Preset Strip */
.sd-tool-detail .ds-td-shell .ds-td-quote-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid #d6e2f2;
  border-radius: var(--td-r-md);
  background: #f6f9ff;
  min-width: 0;
}
.sd-tool-detail .ds-td-shell .ds-td-quote-bar__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
  font-size: 12px;
  color: var(--td-muted);
}
.sd-tool-detail .ds-td-shell .ds-td-quote-bar__head strong {
  font-size: 13px;
  font-weight: 800;
  color: var(--td-navy);
}
.sd-tool-detail .ds-td-shell .ds-td-quote-bar__row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.sd-tool-detail .ds-td-shell .ds-td-quote-bar__row input {
  flex: 1 1 190px;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--td-border-strong);
  border-radius: var(--td-r-sm);
  background: #fff;
  color: var(--td-text);
  font: inherit;
  font-size: 13.5px;
}
.sd-tool-detail .ds-td-shell .ds-td-quote-bar__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}
.sd-tool-detail .ds-td-shell .ds-td-quote-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  background: #fff;
}
.sd-tool-detail .ds-td-shell .ds-td-quote-chip span {
  color: var(--td-sub);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.sd-tool-detail .ds-td-shell .ds-td-live-r {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px dashed var(--td-border);
  min-width: 0;
}
.sd-tool-detail .ds-td-shell .ds-td-live-r__label {
  font-size: 12px;
  font-weight: 750;
  color: var(--td-navy);
}

/* Overseas Tax multi-stock card rows */
.sd-tool-detail .ds-td-shell .ds-td-tax-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sd-tool-detail .ds-td-shell .ds-td-tax-item {
  padding: 12px;
  border: 1px solid var(--td-border);
  border-radius: var(--td-r-md);
  background: var(--td-surface);
}
.sd-tool-detail .ds-td-shell .ds-td-tax-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}
.sd-tool-detail .ds-td-shell .ds-td-tax-item__head .ds-td-row-sub {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--td-navy);
}
.sd-tool-detail .ds-td-shell .ds-td-tax-item__grid {
  gap: 8px;
}

/* Unified Standard Tool Wrapper (Options Max Pain, ETF Overlap, ETF Finder, etc.) */
.sd-tool-detail .ds-td-shell.ds-td-shell--standard .sd-tool-workbench {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.sd-tool-detail .ds-td-shell.ds-td-shell--standard :is(.sd-tool-panel, .sd-tool-form, .sd-tool-result) {
  border: 1px solid var(--td-border) !important;
  border-radius: var(--td-r-lg) !important;
  background: var(--td-card-bg) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .03) !important;
  padding: 16px 18px !important;
}
.sd-tool-detail .ds-td-shell.ds-td-shell--standard .sd-tool-full-card {
  margin-top: 12px;
}
.sd-tool-detail .ds-td-shell.ds-td-shell--standard .sd-tool-opt-table th,
.sd-tool-detail .ds-td-shell.ds-td-shell--standard .sd-tool-opt-table td {
  white-space: nowrap;
}
.sd-tool-detail .ds-td-shell.ds-td-shell--standard :is(.sd-tool-button-primary, .sd-tool-primary) {
  background: var(--td-navy) !important;
  border-color: var(--td-navy) !important;
  color: #fff !important;
  border-radius: var(--td-r-sm) !important;
  font-weight: 750 !important;
}

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

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


.dt3-shell {
    --dt3-ink: #0f1d35;
    --dt3-ink-2: #334563;
    --dt3-muted: #60728f;
    --dt3-line: #e1e8f2;
    --dt3-line-strong: #cbd7e8;
    --dt3-navy: #0b2d6b;
    --dt3-blue: #2563eb;
    --dt3-blue-soft: #ebf2ff;
    --dt3-red: #e11d48;
    --dt3-red-soft: #fff1f3;
    --dt3-green: #059669;
    --dt3-green-soft: #ecfdf5;
    --dt3-amber: #d97706;
    --dt3-amber-soft: #fffbeb;
    --dt3-violet: #6d28d9;
    --dt3-violet-soft: #f5f3ff;
    --dt3-shadow: 0 1px 2px rgba(15, 29, 53, 0.04), 0 8px 22px -12px rgba(15, 29, 53, 0.1);
}

.dt3-shell .sd-tool-workbench {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dt3-shell .ds-td-topbar {
    padding: 12px 15px !important;
    gap: 9px !important;
}

.dt3-shell .ds-td-topbar__nav {
    padding-bottom: 9px !important;
    gap: 6px !important;
}

.dt3-shell .ds-td-tabs {
    gap: 4px !important;
}

.dt3-shell .ds-td-tab {
    padding: 5px 8.5px !important;
    font-size: 11.5px !important;
    gap: 4px !important;
    white-space: nowrap !important;
}

.dt3-shell .ds-td-topbar__all {
    padding: 5px 9px !important;
    font-size: 11.5px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.dt3-shell .ds-td-tab.is-active {
    background: linear-gradient(180deg, #123985 0%, #0a265c 100%) !important;
    border-color: #0b2d6b !important;
    box-shadow: 0 4px 12px -4px rgba(11, 45, 107, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

.dt3-shell .ds-td-desc {
    margin: 2px 0 0 !important;
    font-size: 13px !important;
    color: var(--dt3-muted) !important;
    line-height: 1.45 !important;
    word-break: keep-all;
}

.dt3-num {
    font-variant-numeric: tabular-nums;
}

.dt3-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.dt3-card {
    background: #ffffff;
    border: 1px solid var(--dt3-line);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: var(--dt3-shadow);
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.dt3-card--flush {
    padding: 0;
    overflow: hidden;
}

.dt3-card--tight {
    padding: 12px 14px;
}

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

.dt3-card-title {
    margin: 0 !important;
    font-size: 14.5px !important;
    font-weight: 850 !important;
    color: var(--dt3-ink) !important;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.dt3-card-title i {
    color: var(--dt3-blue);
    font-size: 15px;
    flex-shrink: 0;
}

.dt3-card-sub {
    font-size: 12px;
    color: var(--dt3-muted);
    font-weight: 600;
}

.dt3-ctrl-bar {
    background: #ffffff;
    border: 1px solid var(--dt3-line);
    border-radius: 14px;
    padding: 10px 13px;
    box-shadow: var(--dt3-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.dt3-ctrl-bar__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
    min-width: 0;
}

.dt3-chip-group {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    min-width: 0;
}

.dt3-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 31px;
    padding: 4px 10px !important;
    border-radius: 9px !important;
    border: 1px solid var(--dt3-line) !important;
    background: #f8fafd !important;
    color: var(--dt3-ink-2) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    white-space: nowrap;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.14s ease;
}

.dt3-chip:hover {
    background: #eef4ff !important;
    border-color: #bfd4f7 !important;
    color: var(--dt3-navy) !important;
}

.dt3-chip.is-active,
.dt3-chip[aria-pressed="true"] {
    background: var(--dt3-blue-soft) !important;
    border-color: #93b8f8 !important;
    color: var(--dt3-navy) !important;
    font-weight: 800 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.dt3-chip small {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.78;
}

.dt3-seg {
    display: inline-flex;
    align-items: center;
    background: #eef2f8;
    padding: 3px;
    border-radius: 10px;
    border: 1px solid var(--dt3-line);
    gap: 2px;
    flex-wrap: nowrap;
    max-width: 100%;
}

.dt3-seg__btn {
    border: 0 !important;
    background: transparent !important;
    padding: 5px 10px !important;
    min-height: 28px;
    border-radius: 7px !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    color: var(--dt3-muted) !important;
    text-decoration: none !important;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.14s ease;
}

.dt3-seg__btn:hover {
    color: var(--dt3-navy) !important;
}

.dt3-seg__btn.is-active,
.dt3-seg__btn[aria-pressed="true"] {
    background: #ffffff !important;
    color: var(--dt3-navy) !important;
    box-shadow: 0 1px 3px rgba(15, 29, 53, 0.12);
}

.dt3-seg__btn small {
    font-weight: 600;
    opacity: 0.78;
    font-size: 11px;
}

.dt3-input-box {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafd;
    border: 1px solid var(--dt3-line-strong);
    border-radius: 9px;
    padding: 0 9px;
    min-height: 33px;
    min-width: 0;
    flex: 1 1 160px;
}

.dt3-input-box i {
    color: var(--dt3-muted);
    font-size: 13px;
    flex-shrink: 0;
}

.dt3-input-box input,
.dt3-input-box select {
    border: 0 !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    width: 100%;
    min-width: 0;
    min-height: 31px !important;
    padding: 3px 0 !important;
    font-size: 12.5px !important;
    color: var(--dt3-ink) !important;
}

.dt3-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 33px;
    padding: 0 12px !important;
    border-radius: 9px !important;
    border: 1px solid var(--dt3-line-strong) !important;
    background: #ffffff !important;
    color: var(--dt3-ink-2) !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.14s ease;
}

.dt3-btn:hover {
    background: #f5f8fd !important;
    border-color: #9db4d4 !important;
    color: var(--dt3-navy) !important;
}

.dt3-btn--primary {
    border-color: #0b2d6b !important;
    background: linear-gradient(180deg, #1846a3 0%, #0b2d6b 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px -4px rgba(11, 45, 107, 0.42);
}

.dt3-btn--primary:hover {
    filter: brightness(1.06);
    color: #ffffff !important;
}

.dt3-btn--sm {
    min-height: 28px;
    padding: 0 9px !important;
    font-size: 11.5px !important;
}

.dt3-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2.5px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    line-height: 1.3;
}

.dt3-badge--navy { background: #e8f0ff; color: var(--dt3-navy); }
.dt3-badge--red { background: var(--dt3-red-soft); color: #be123c; }
.dt3-badge--blue { background: var(--dt3-blue-soft); color: #1d4ed8; }
.dt3-badge--green { background: var(--dt3-green-soft); color: #047857; }
.dt3-badge--amber { background: var(--dt3-amber-soft); color: #b45309; }
.dt3-badge--violet { background: var(--dt3-violet-soft); color: #6d28d9; }
.dt3-badge--slate { background: #f1f5f9; color: #475569; }

.dt3-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.dt3-kpi-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dt3-kpi {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    border: 1px solid var(--dt3-line);
    border-radius: 13px;
    padding: 11px 12px;
    box-shadow: var(--dt3-shadow);
    min-width: 0;
}

.dt3-kpi--hero {
    background: linear-gradient(145deg, #0f357c 0%, #09214f 100%);
    border-color: #0b2d6b;
    color: #ffffff;
    box-shadow: 0 8px 18px -10px rgba(11, 45, 107, 0.52);
}

.dt3-kpi--blue {
    background: linear-gradient(180deg, #f3f8ff 0%, #ffffff 100%);
    border-color: #bfdbfe;
}

.dt3-kpi--red {
    background: linear-gradient(180deg, #fff7f8 0%, #ffffff 100%);
    border-color: #fecdd3;
}

.dt3-kpi--green {
    background: linear-gradient(180deg, #f0fdf7 0%, #ffffff 100%);
    border-color: #a7f3d0;
}

.dt3-kpi__lbl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 750;
    color: var(--dt3-muted);
    margin-bottom: 4px;
    white-space: nowrap;
}

.dt3-kpi--hero .dt3-kpi__lbl { color: #bfd4ff; }

.dt3-kpi__val {
    font-size: 18px;
    font-weight: 850;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--dt3-ink);
    font-variant-numeric: tabular-nums;
    word-break: keep-all;
}

.dt3-kpi__val--sm { font-size: 15px; }
.dt3-kpi--hero .dt3-kpi__val { color: #ffffff; }
.dt3-kpi--blue .dt3-kpi__val { color: var(--dt3-blue); }
.dt3-kpi--red .dt3-kpi__val { color: var(--dt3-red); }
.dt3-kpi--green .dt3-kpi__val { color: var(--dt3-green); }

.dt3-kpi__sub {
    margin-top: 3px;
    font-size: 11.5px;
    color: var(--dt3-muted);
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
}

.dt3-kpi--hero .dt3-kpi__sub { color: #dbeafe; }

.dt3-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.dt3-grid-2--left {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.dt3-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.dt3-verdict {
    background: linear-gradient(135deg, #f4f8ff 0%, #ffffff 100%);
    border: 1px solid #cfe0fa;
    border-left: 4px solid var(--dt3-navy);
    border-radius: 12px;
    padding: 11px 13px;
    font-size: 13px;
    color: var(--dt3-ink-2);
    line-height: 1.6;
    word-break: keep-all;
    margin: 0;
}

.dt3-verdict strong { color: var(--dt3-navy); }

.dt3-tbl-wrap {
    overflow-x: auto;
    border: 1px solid var(--dt3-line);
    border-radius: 11px;
    max-width: 100%;
    background: #ffffff;
}

.dt3-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    margin: 0;
}

.dt3-tbl th {
    background: #f7f9fd;
    color: var(--dt3-muted);
    font-weight: 750;
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid var(--dt3-line);
    white-space: nowrap;
}

.dt3-tbl td {
    padding: 8px 10px;
    border-bottom: 1px solid #eef2f8;
    vertical-align: middle;
    color: var(--dt3-ink-2);
}

.dt3-tbl tr:last-child td { border-bottom: 0; }
.dt3-tbl tr.is-hi { background: #f3f7ff; }
.dt3-tbl tr.is-click { cursor: pointer; }
.dt3-tbl tr.is-click:hover { background: #eef4ff; }
.dt3-tbl--compact th,
.dt3-tbl--compact td {
    padding: 6px 6px;
    font-size: 11.5px;
}
.dt3-r { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dt3-c { text-align: center !important; font-variant-numeric: tabular-nums; white-space: nowrap; }

.dt3-bar {
    height: 8px;
    border-radius: 999px;
    background: #edf2fa;
    overflow: hidden;
    min-width: 56px;
}

.dt3-bar i {
    display: block;
    height: 100%;
    border-radius: 999px;
}

.dt3-bar--call i { background: linear-gradient(90deg, #fb7185, #e11d48); margin-left: auto; }
.dt3-bar--put i { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.dt3-bar--navy i { background: linear-gradient(90deg, #1d4ed8, #0b2d6b); }

.dt3-svg-wrap {
    width: 100%;
    overflow: hidden;
}

.dt3-svg-wrap svg {
    display: block;
    width: 100%;
    height: auto;
}

.dt3-ruler-box {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border: 1px solid #d5e2f5;
    border-radius: 14px;
    padding: 13px 15px;
}

.dt3-ruler-legend {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    color: var(--dt3-muted);
    flex-wrap: wrap;
}

.dt3-ruler-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dt3-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dt3-ruler-wrap {
    position: relative;
    padding: 46px 14px 44px;
}

.dt3-ruler-track {
    height: 12px;
    border-radius: 999px;
    background: #e6edf7;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(15, 29, 53, 0.09);
}

.dt3-ruler-band {
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.22), rgba(11, 45, 107, 0.14), rgba(225, 29, 72, 0.22));
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.dt3-pin {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.dt3-pin__dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2.5px solid #ffffff;
    box-shadow: 0 2px 5px rgba(15, 29, 53, 0.28);
}

.dt3-pin__tag {
    position: absolute;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
}

.dt3-pin--t1 .dt3-pin__tag { bottom: 15px; }
.dt3-pin--t2 .dt3-pin__tag { bottom: 37px; }
.dt3-pin--b1 .dt3-pin__tag { top: 15px; }
.dt3-pin--b2 .dt3-pin__tag { top: 37px; }

.dt3-opt-radar-wrap {
    max-height: 256px;
    overflow-y: auto;
}

.dt3-alloc-card {
    background: #f8fafd;
    border: 1px solid var(--dt3-line);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.dt3-alloc-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
}

.dt3-alloc-card__top > :first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.dt3-alloc-card__top > button {
    flex-shrink: 0;
}

.dt3-alloc-card__name {
    font-weight: 850;
    font-size: 13.5px;
    color: var(--dt3-ink);
}

.dt3-alloc-card__meta {
    font-size: 11.5px;
    color: var(--dt3-muted);
    line-height: 1.4;
}

.dt3-slider-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dt3-slider-row input[type="range"] {
    flex: 1 1 auto;
    accent-color: var(--dt3-blue);
    min-width: 0;
}

.dt3-slider-row input[type="text"],
.dt3-slider-row input[type="number"] {
    width: 68px !important;
    min-height: 30px !important;
    padding: 3px 7px !important;
    border: 1px solid var(--dt3-line-strong) !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    text-align: right;
    font-weight: 800;
    font-size: 12.5px !important;
    font-variant-numeric: tabular-nums;
}

.dt3-exp-row {
    display: grid;
    grid-template-columns: 144px minmax(0, 1fr) 56px;
    align-items: center;
    gap: 9px;
    padding: 6px 0;
    border-bottom: 1px dashed #e7edf6;
}

.dt3-exp-row:last-child { border-bottom: 0; }

.dt3-exp-row__name {
    font-size: 12.5px;
    font-weight: 750;
    color: var(--dt3-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dt3-compare-dock {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: linear-gradient(90deg, #0b2d6b 0%, #1a4ca8 100%);
    color: #ffffff;
    padding: 9px 14px;
    border-radius: 12px;
    flex-wrap: wrap;
}

.dt3-compare-dock__text {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 750;
}

.dt3-finder-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 128px;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border: 1px solid var(--dt3-line);
    border-radius: 12px;
    background: #ffffff;
    transition: border-color 0.14s ease, background 0.14s ease;
}

.dt3-finder-card:hover {
    border-color: #adc6f0;
    background: #fbfdff;
}

.dt3-finder-card.is-picked {
    border-color: var(--dt3-blue);
    background: #f4f8ff;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.dt3-finder-card__title {
    font-weight: 800;
    font-size: 13.5px;
    color: var(--dt3-ink);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.dt3-finder-card__meta {
    font-size: 11.5px;
    color: var(--dt3-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 3px;
}

.dt3-finder-card__w {
    text-align: right;
}

.dt3-finder-card__w strong {
    display: block;
    font-size: 15.5px;
    font-weight: 850;
    color: var(--dt3-navy);
    font-variant-numeric: tabular-nums;
}

.dt3-div-sticky {
    position: sticky;
    top: 84px;
}

.dt3-grid-2--left [data-dividend-output] .dt3-kpi-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dt3-month-chart {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 5px;
    align-items: stretch;
    height: 196px;
    padding: 26px 4px 6px;
    position: relative;
    border-bottom: 1px solid var(--dt3-line);
}

.dt3-target-line {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1.5px dashed var(--dt3-red);
    pointer-events: none;
    z-index: 2;
}

.dt3-target-line span {
    position: absolute;
    right: 4px;
    top: -20px;
    font-size: 10.5px;
    font-weight: 800;
    color: var(--dt3-red);
    background: #ffffff;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid #fecdd3;
    white-space: nowrap;
}

.dt3-mcol {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    height: 100%;
    justify-content: flex-end;
    min-width: 0;
}

.dt3-mcol__wrap {
    width: 100%;
    max-width: 28px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 3px;
}

.dt3-mcol__val {
    font-size: 10px;
    font-weight: 750;
    color: var(--dt3-ink-2);
    white-space: nowrap;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.dt3-mcol__bar {
    width: 100%;
    border-radius: 5px 5px 2px 2px;
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
    min-height: 4px;
    transition: height 0.2s ease;
}

.dt3-mcol__bar.is-peak {
    background: linear-gradient(180deg, #10b981 0%, #047857 100%);
}

.dt3-mcol__bar.is-low {
    background: #cbd5e1;
}

.dt3-mcol__lbl {
    font-size: 11px;
    font-weight: 750;
    color: var(--dt3-muted);
}

.dt3-clock-hero {
    background: linear-gradient(135deg, #08204d 0%, #123a85 65%, #1e4da8 100%) !important;
    color: #ffffff !important;
    border: 1px solid #0b2d6b !important;
    border-radius: 17px !important;
    padding: 16px 18px !important;
    box-shadow: 0 12px 26px -14px rgba(11, 45, 107, 0.55) !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto !important;
    gap: 14px !important;
    align-items: center !important;
}

.dt3-clock-zone__lbl {
    font-size: 12px;
    color: #bfd4ff;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dt3-clock-hero [data-clock-time],
.dt3-clock-hero .dt3-clock-zone__time {
    display: block;
    font-size: 29px !important;
    font-weight: 850 !important;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 3px 0;
    color: #ffffff !important;
    font-variant-numeric: tabular-nums;
}

.dt3-clock-zone__date {
    font-size: 12px;
    color: #dbeafe;
}

.dt3-clock-hero__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
}

.dt3-clock-refresh {
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    background: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
    border-radius: 9px !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.dt3-clock-refresh:hover {
    background: rgba(255, 255, 255, 0.22) !important;
}

.dt3-timeline-24 {
    position: relative;
    height: 38px;
    background: #edf2f9;
    border-radius: 10px;
    border: 1px solid var(--dt3-line);
    margin: 18px 0 8px;
    overflow: visible;
}

.dt3-tseg {
    position: absolute;
    top: 4px;
    bottom: 4px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 750;
    color: #ffffff;
    overflow: hidden;
    white-space: nowrap;
    padding: 0 5px;
}

.dt3-tseg--kr { background: linear-gradient(90deg, #1d4ed8, #2563eb); }
.dt3-tseg--pre { background: linear-gradient(90deg, #f59e0b, #d97706); }
.dt3-tseg--us { background: linear-gradient(90deg, #0f2f6e, #1e40af); }

.dt3-tnow {
    position: absolute;
    top: -5px;
    bottom: -5px;
    width: 2.5px;
    background: var(--dt3-red);
    z-index: 4;
}

.dt3-tnow span {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dt3-red);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 5px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.dt3-ticks-24 {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--dt3-muted);
    font-variant-numeric: tabular-nums;
}

.dt3-ex-card {
    background: #ffffff;
    border: 1px solid var(--dt3-line);
    border-radius: 14px;
    padding: 13px 14px;
    box-shadow: var(--dt3-shadow);
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
}

.dt3-ex-card.is-open { border-top: 3px solid var(--dt3-green); }
.dt3-ex-card.is-waiting { border-top: 3px solid var(--dt3-amber); }
.dt3-ex-card.is-closed { border-top: 3px solid #94a3b8; }
.dt3-ex-card.is-warn { border-top: 3px solid var(--dt3-red); }

.dt3-ex-cd {
    background: #f5f8fd;
    border: 1px solid var(--dt3-line);
    border-radius: 10px;
    padding: 9px 11px;
}

.dt3-ex-cd__lbl {
    font-size: 11.5px;
    color: var(--dt3-muted);
    display: flex;
    justify-content: space-between;
    gap: 6px;
}

.dt3-ex-cd__val {
    font-size: 18px;
    font-weight: 850;
    color: var(--dt3-navy);
    margin-top: 3px;
    display: block;
    font-variant-numeric: tabular-nums;
}

.dt3-cal-item {
    display: grid;
    grid-template-columns: 20px 68px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
    border-bottom: 1px solid #eef2f8;
    transition: background 0.12s ease;
}

.dt3-cal-item:last-child { border-bottom: 0; }
.dt3-cal-item:hover { background: #f7faff; }
.dt3-cal-item.is-cancelled { opacity: 0.62; }

.dt3-cal-date {
    background: #f1f5fc;
    border: 1px solid #dce6f7;
    border-radius: 8px;
    padding: 4px 5px;
    text-align: center;
    line-height: 1.15;
}

.dt3-cal-date strong {
    display: block;
    font-size: 12.5px;
    color: var(--dt3-navy);
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}

.dt3-cal-date span {
    font-size: 10px;
    color: var(--dt3-muted);
    font-weight: 700;
}

.dt3-cal-title {
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
    text-align: left;
    font-weight: 750 !important;
    font-size: 13px !important;
    color: var(--dt3-ink) !important;
    line-height: 1.35;
    cursor: pointer;
    word-break: keep-all;
}

.dt3-cal-title:hover {
    color: var(--dt3-blue) !important;
    text-decoration: underline;
}

.dt3-cal-sub {
    font-size: 11.5px;
    color: var(--dt3-muted);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.dt3-radar-item {
    padding: 8px 10px;
    border: 1px solid var(--dt3-line);
    border-radius: 10px;
    background: #fbfdff;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.dt3-cal-type-row {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.dt3-search-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.dt3-search-pills button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px !important;
    border-radius: 8px !important;
    border: 1px solid #cbd7e8 !important;
    background: #f8fafd !important;
    color: var(--dt3-ink) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

.dt3-search-pills button:hover {
    background: var(--dt3-blue-soft) !important;
    border-color: #93b8f8 !important;
    color: var(--dt3-navy) !important;
}

.dt3-inline-opts {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--dt3-ink-2);
}

.dt3-inline-opts label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    cursor: pointer;
    font-weight: 650;
}

.dt3-date-pair {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dt3-date-pair input[type="date"] {
    min-height: 31px !important;
    padding: 2px 7px !important;
    border: 1px solid var(--dt3-line-strong) !important;
    border-radius: 8px !important;
    background: #f8fafd !important;
    font-size: 12px !important;
    color: var(--dt3-ink) !important;
}

.dt3-shell .sd-tool-panel.dt3-plain-form {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.dt3-shell .sd-tool-result.dt3-plain-result {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.dt3-shell .sd-tool-toolbar {
    margin: 0 !important;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid var(--dt3-line);
    border-radius: 13px;
    box-shadow: var(--dt3-shadow);
}

.dt3-guest-save-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 9px 13px;
    border-radius: 12px;
    background: linear-gradient(90deg, #eff6ff 0%, #f8fbff 100%);
    border: 1px solid #cfe0fa;
    font-size: 12.5px;
    font-weight: 700;
    color: #1e3a8a;
}

.dt3-guest-save-bar--desk {
    margin-top: 12px;
}

.dt3-guest-save-bar span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.45;
    word-break: keep-all;
}

.dt3-guest-save-bar span i {
    color: #2563eb;
    flex-shrink: 0;
}

.dt3-guest-save-bar a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 11px;
    border-radius: 8px;
    background: #0b2d6b;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
}

.dt3-guest-save-bar a:hover {
    background: #1d4ed8;
}

@media (max-width: 1024px) {
    .dt3-grid-2,
    .dt3-grid-2--left,
    .dt3-grid-3 {
        grid-template-columns: 1fr;
    }
    .dt3-div-sticky {
        position: static;
    }
    .dt3-clock-hero {
        grid-template-columns: 1fr !important;
    }
    .dt3-clock-hero__right {
        align-items: flex-start;
    }
}

@media (max-width: 680px) {
    .dt3-kpi-grid,
    .dt3-kpi-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }
    .dt3-kpi {
        padding: 9px 10px;
    }
    .dt3-kpi__val {
        font-size: 15.5px;
    }
    .dt3-kpi__val--sm {
        font-size: 13.5px;
    }
    .dt3-card {
        padding: 12px;
        border-radius: 14px;
    }
    .dt3-ctrl-bar {
        padding: 9px 10px;
    }
    .dt3-finder-card {
        grid-template-columns: auto minmax(0, 1fr);
    }
    .dt3-finder-card__w {
        grid-column: 2;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .dt3-finder-card__w .dt3-bar {
        flex: 1 1 80px;
    }
    .dt3-cal-item {
        grid-template-columns: 18px 60px minmax(0, 1fr);
        padding: 9px 10px;
    }
    .dt3-cal-item__badge {
        grid-column: 3;
    }
    .dt3-exp-row {
        grid-template-columns: 112px minmax(0, 1fr) 48px;
        gap: 6px;
    }
    .dt3-clock-hero [data-clock-time],
    .dt3-clock-hero .dt3-clock-zone__time {
        font-size: 24px !important;
    }
    .dt3-month-chart {
        gap: 3px;
        height: 178px;
    }
    .dt3-mcol__val {
        font-size: 9px;
    }
    .dt3-date-pair {
        width: 100%;
    }
    .dt3-date-pair input[type="date"] {
        flex: 1 1 0%;
        min-width: 0;
    }
    .dt3-seg {
        max-width: 100%;
        overflow-x: auto;
    }
}

/* 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;
    }
}

