:root {
  color-scheme: light;
  --ink: #0b1627;
  --navy: #07111f;
  --navy-2: #0b1c31;
  --navy-3: #11354a;
  --cyan: #20c4d7;
  --cyan-soft: #dcf8fb;
  --paper: #f3f6f8;
  --white: #ffffff;
  --muted: #6d7b8c;
  --line: #dce4eb;
  --line-soft: #eaf0f4;
  --danger: #c64255;
  --danger-soft: #fff3f5;
  --success: #0b8a70;
  --success-soft: #eff9f5;
  --warning: #b68a22;
  --warning-soft: #fff9ea;
  --shadow: 0 20px 55px rgba(7, 24, 42, .08);
  --topbar-height: 68px;
  --hero-depth: 68px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--navy); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Avenir Next", Inter, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(32, 196, 215, .24); outline-offset: 2px; }
button:disabled, input:disabled { cursor: not-allowed; opacity: .58; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.app-shell { min-height: 100vh; background: linear-gradient(180deg, var(--navy) 0 var(--hero-depth), var(--paper) var(--hero-depth) 100%); }
.app-topbar { position: relative; height: var(--topbar-height); padding: 0 max(24px, calc((100vw - 1440px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; color: white; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand, .topbar-status { display: flex; align-items: center; }
.brand { gap: 12px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: #07111f; background: linear-gradient(145deg, #6ee8ef, #20bfd3); border-radius: 10px; box-shadow: 0 8px 24px rgba(32,196,215,.22); font-family: Georgia, serif; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: Georgia, "Songti SC", serif; font-size: 19px; font-weight: 600; letter-spacing: .02em; }
.brand small { margin-top: 3px; color: #7890a7; font-size: 10px; }
.topbar-status { gap: 14px; min-width: 0; }
.admin-lock-button { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; color: #9eb0bf; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: 9px; font-size: 15px; line-height: 1; transition: color .18s, background .18s, border-color .18s; }
.admin-lock-button:hover, .admin-lock-button:focus-visible { color: white; background: rgba(255,255,255,.12); border-color: rgba(88,195,207,.6); }
.admin-lock-button.authenticated { color: #7ce7c3; background: rgba(57,217,181,.08); border-color: rgba(57,217,181,.3); }
.topbar-summary { min-width: 0; }
.topbar-summary strong, .topbar-summary small { display: block; }
.topbar-summary small[hidden] { display: none; }
.topbar-summary strong { font-size: 11px; font-weight: 700; color: #7ce7c3; }
.topbar-summary strong.busy { color: #ffd98a; }
.topbar-summary small { margin-top: 3px; color: #6f889f; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }
.signal-count.has-signal { color: #ff8794; font-weight: 750; }
.status-dot { width: 8px; height: 8px; background: #39d9b5; border-radius: 50%; box-shadow: 0 0 0 5px rgba(57,217,181,.1); }
.refresh-progress { display: flex; align-items: center; gap: 7px; color: #7fd8e2; font-size: 11px; font-weight: 750; white-space: nowrap; }
.refresh-progress[hidden] { display: none; }
.refresh-progress > span { width: 8px; height: 8px; border: 2px solid rgba(181,237,241,.4); border-top-color: #16aabc; border-radius: 50%; animation: spin .8s linear infinite; }
.refresh-progress strong { color: inherit; font-size: inherit; font-weight: inherit; }
.retry-failed.on-dark { color: #ffd28a; border-color: rgba(255,190,86,.45); }
.retry-failed.on-dark:hover { color: #ffe2ae; background: rgba(255,174,43,.12); border-color: rgba(255,190,86,.7); }
.topbar-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: rgba(255,255,255,.08); }
.topbar-progress[hidden] { display: none; }
.topbar-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #20c4d7, #7ce7c3); transition: width .4s ease; }

.page-content { width: min(1440px, calc(100% - 32px)); margin: 0 auto; padding: 18px 0 28px; }

.panel { overflow: hidden; background: var(--white); border: 1px solid #d8e1e8; border-radius: 14px; box-shadow: 0 16px 42px rgba(9, 29, 49, .065); }
.panel-heading { min-height: 62px; padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line-soft); }
.panel-heading > div { display: flex; align-items: center; gap: 12px; }
.panel-heading h2 { margin: 0; font-size: 15px; }
.panel-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.section-index { padding: 3px 7px; color: #08798b; background: #e9f8fa; border: 1px solid #ccebef; border-radius: 5px; font-family: "SFMono-Regular", Consolas, monospace; font-size: 9px; font-style: normal; font-weight: 800; letter-spacing: .08em; }

.signal-dashboard.panel { overflow: visible; }
.dashboard-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(480px, 560px); align-items: start; overflow: visible; background: white; border-radius: inherit; }
.dashboard-workspace.detail-hidden { grid-template-columns: minmax(0, 1fr); }
.dashboard-master { min-width: 0; overflow: hidden; }
.dashboard-detail-panel { position: sticky; top: 12px; align-self: start; height: calc(100vh - var(--topbar-height) - 24px); max-height: 956px; overflow-y: auto; background: #fefeff; border-left: 1px solid #dfe6ec; scrollbar-width: thin; scrollbar-color: #cbd7df transparent; }
.dashboard-detail-panel[hidden] { display: none; }
.dashboard-detail-content { min-height: 100%; }
.detail-empty-state { min-height: 420px; display: grid; place-content: center; gap: 8px; padding: 32px; color: #82919d; text-align: center; }
.detail-empty-state strong { color: #334b5d; font-size: 14px; }
.detail-empty-state span { max-width: 290px; font-size: 11px; line-height: 1.6; }

.decision-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px 20px 6px; }
.summary-card { position: relative; min-height: 74px; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; padding: 12px 16px; overflow: hidden; text-align: left; background: #f7f9fa; border: 1px solid #e2e8ed; border-radius: 10px; cursor: pointer; transition: transform .16s, border-color .16s, background .16s, box-shadow .16s; }
.summary-card:hover, .summary-card:focus-visible { background: white; border-color: #9ed9df; box-shadow: 0 7px 18px rgba(9, 29, 49, .06); outline: none; transform: translateY(-1px); }
.summary-card strong { grid-row: 1 / span 2; min-width: 40px; font-family: "SFMono-Regular", Consolas, monospace; font-size: 24px; font-weight: 800; text-align: center; }
.summary-card > span { color: #425a69; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.summary-card small { margin-top: 2px; color: #84939e; font-size: 10px; }
.summary-card.empty { opacity: .55; }
.summary-card.empty strong { color: #7a8997; }
.summary-card.action:not(.empty) strong { color: #a42437; }
.summary-card.holding:not(.empty) strong { color: #14283a; }
.summary-card.volume:not(.empty) strong { color: #14283a; }
.summary-card.risk:not(.empty) strong { color: #08705c; }
.summary-card.error:not(.empty) strong { color: #b3541e; }
.summary-card.active { background: #fafdfe; border-color: #58c3cf; box-shadow: 0 5px 14px rgba(9,91,108,.08); }
.summary-card.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background: var(--cyan); border-radius: 2px 2px 0 0; }

.modal { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(7,17,31,.45); }
.modal-panel { position: relative; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 64px); overflow-y: auto; background: white; border-radius: 14px; box-shadow: 0 24px 60px rgba(3,17,30,.28); }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 0; }
.modal-header h3 { margin: 0; font-size: 15px; }
.modal-close { width: 34px; height: 34px; display: grid; place-items: center; color: #6d7b8c; background: transparent; border: 1px solid transparent; border-radius: 8px; font-size: 13px; }
.modal-close:hover, .modal-close:focus-visible { color: #17384a; background: #f0f4f7; outline: none; }
.modal-tabs { display: flex; gap: 8px; padding: 12px 20px 0; }
.modal-tab { height: 34px; padding: 0 14px; color: #607181; background: #f4f7f8; border: 1px solid #e1e8eb; border-radius: 999px; font-size: 11px; font-weight: 750; }
.modal-tab:hover, .modal-tab:focus-visible { color: #176f80; border-color: #9ed9df; outline: none; }
.modal-tab.active { color: #fff; background: linear-gradient(110deg, #0b3148, #0c7585); border-color: transparent; }
.modal-tab-panel { padding-bottom: 4px; }
.modal-tab-panel[hidden] { display: none; }

.admin-modal-panel { width: min(340px, calc(100vw - 32px)); overflow: hidden; }
.admin-login-form { display: grid; gap: 10px; padding: 18px 20px 20px; }
.admin-login-form label { color: var(--muted); font-size: 10px; font-weight: 750; }
.admin-login-form input { width: 100%; height: 44px; padding: 0 13px; color: var(--ink); background: #fbfcfd; border: 1px solid #cad5df; border-radius: 9px; outline: 0; font-size: 13px; }
.admin-login-form input:focus { background: white; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(32,196,215,.11); }
.admin-login-form .primary { width: 100%; height: 42px; }

.add-form { padding: 14px 20px; }
.add-fields { display: grid; grid-template-columns: minmax(150px, 200px) minmax(180px, 1fr) auto; align-items: center; gap: 10px; }
.input-wrap { height: 42px; display: flex; align-items: center; overflow: hidden; background: #fbfcfd; border: 1px solid #cad5df; border-radius: 9px; transition: border-color .18s, box-shadow .18s, background .18s; }
.input-wrap:focus-within { background: white; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(32,196,215,.11); }
.input-wrap span { flex: 0 0 40px; height: 100%; display: grid; place-items: center; color: #728295; background: #f0f4f7; border-right: 1px solid #dbe3ea; font-size: 10px; font-weight: 800; }
.input-wrap input { min-width: 0; width: 100%; height: 100%; padding: 0 13px; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 13px; }
.input-wrap input::placeholder { color: #9ba7b3; }
.add-fields .primary { width: auto; height: 42px; padding: 0 18px; white-space: nowrap; }

.primary { height: 47px; color: white; background: linear-gradient(110deg, #0a2037, #0d5a70); border: 0; border-radius: 9px; box-shadow: 0 10px 22px rgba(6,48,71,.17); font-size: 11px; font-weight: 750; transition: transform .18s, filter .18s; }
.primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.primary span { margin-right: 7px; color: #65e5ec; }
.secondary { height: 34px; padding: 0 12px; color: #214254; background: white; border: 1px solid #cad5df; border-radius: 8px; font-size: 11px; font-weight: 750; white-space: nowrap; transition: color .18s, border-color .18s, background .18s; }
.secondary:hover { color: #08798b; background: #f1fbfc; border-color: #58c3cf; }
.secondary span { margin-right: 4px; color: #11aabe; }
.secondary.on-dark { color: #d7e6ee; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }
.secondary.on-dark:hover { color: white; background: rgba(255,255,255,.12); border-color: rgba(88,195,207,.6); }

.batch-panel { padding: 14px 20px; }
.batch-panel[hidden] { display: none; }
.batch-panel textarea { width: 100%; min-height: 84px; padding: 11px 13px; color: var(--ink); background: white; border: 1px solid #cad5df; border-radius: 9px; outline: 0; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; line-height: 1.7; resize: vertical; transition: border-color .18s, box-shadow .18s; }
.batch-panel textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(32,196,215,.11); }
.batch-panel textarea::placeholder { color: #9ba7b3; font-family: inherit; }
.batch-actions { margin-top: 10px; display: flex; align-items: center; gap: 10px; }
.batch-actions .primary { width: auto; height: 38px; padding: 0 16px; }
.batch-actions .secondary { height: 38px; }
.batch-actions small { margin-left: auto; color: var(--muted); font-size: 9px; }

.quote-preview { margin-top: 12px; padding: 14px; color: white; background: linear-gradient(135deg, #091d32, #103c50); border: 1px solid #23576c; border-radius: 10px; }
.quote-preview[hidden] { display: none; }
.quote-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.quote-head > div:first-child span, .quote-head > div:first-child small { display: block; }
.quote-head > div:first-child span { font-size: 12px; font-weight: 750; }
.quote-head > div:first-child small { margin-top: 3px; color: #82a2b5; font-family: "SFMono-Regular", Consolas, monospace; font-size: 9px; }
.quote-main { text-align: right; }
.quote-main strong, .quote-main span { display: block; }
.quote-main strong { font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.quote-main span { margin-top: 2px; color: #9db5c2; font-size: 9px; font-weight: 750; }
.quote-main span.positive { color: #ff8794; }
.quote-main span.negative { color: #4ed0a7; }
.quote-detail { margin-top: 11px; padding-top: 9px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.1); }
.quote-detail span { color: #7494a7; font-size: 8px; }
.quote-detail strong { display: block; margin-top: 3px; color: #dce8ee; font-size: 10px; }
.quote-preview p { margin: 9px 0 0; color: #7897a9; font-size: 8px; line-height: 1.5; }
.quote-preview.error { background: #3a2029; border-color: #70404b; }
.quote-preview.error .quote-head, .quote-preview.error .quote-detail { display: none; }
.quote-preview.error p { margin: 0; color: #f0aeba; }
.quote-preview.partial { background: linear-gradient(135deg, #282719, #37351c); border-color: #6a6632; }
.quote-preview.partial p { color: #d7d28b; }
.candidate-box p { margin: 0 0 9px; color: #7897a9; font-size: 9px; }
.candidate-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.candidate-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; color: #dce8ee; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 8px; font-size: 10px; font-weight: 750; text-align: left; transition: background .15s, border-color .15s; }
.candidate-item:hover, .candidate-item:focus-visible { background: rgba(32,196,215,.16); border-color: var(--cyan); outline: none; }
.candidate-item small { color: #82a2b5; font-family: "SFMono-Regular", Consolas, monospace; font-size: 9px; font-weight: 400; }

.attention-queues { display: flex; align-items: center; gap: 12px; padding: 12px 18px 0; border-top: 1px solid var(--line-soft); }
.etf-category-filters { display: flex; align-items: center; gap: 12px; padding: 10px 18px 0; background: #fbfcfd; border-top: 1px solid var(--line-soft); }
.etf-category-filters[hidden] { display: none; }
.etf-category-filters .filter-scroll { padding-bottom: 10px; }
.dashboard-filters { display: grid; gap: 10px; padding: 12px 18px; background: #fbfcfd; border-top: 1px solid var(--line-soft); }
.volume-verdict-filters { display: flex; align-items: center; gap: 12px; padding: 10px 18px 0; background: #fbfcfd; border-top: 1px solid var(--line-soft); }
.volume-verdict-filters[hidden] { display: none; }
.volume-verdict-filters .filter-scroll { padding-bottom: 10px; }
.filter-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.filter-row > .filter-label { width: 68px; }
.filter-row .filter-scroll { padding-bottom: 0; }
.filter-clear { flex: 0 0 auto; height: 36px; padding: 0 12px; white-space: nowrap; }
.filter-clear:disabled { opacity: .45; }
.filter-label { flex: 0 0 auto; color: #6f7e8d; font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.queue-scroll, .filter-scroll { flex: 1 1 auto; display: flex; align-items: center; gap: 7px; min-width: 0; padding-bottom: 10px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.queue-scroll::-webkit-scrollbar, .filter-scroll::-webkit-scrollbar { display: none; }
.queue-chip, .filter-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid #e1e8eb; border-radius: 999px; font-size: 11px; font-weight: 750; white-space: nowrap; cursor: pointer; transition: color .16s, background .16s, border-color .16s, box-shadow .16s; }
.queue-chip { color: #365265; background: #edf3f5; }
.queue-chip:hover, .queue-chip:focus-visible { color: #0d6979; border-color: #83ced7; outline: none; }
.queue-chip.active { color: #fff; background: linear-gradient(110deg, #10283c, #0b6677); border-color: transparent; box-shadow: 0 5px 12px rgba(9,91,108,.2); }
.filter-chip { color: #607181; background: #f4f7f8; }
.filter-chip:hover, .filter-chip:focus-visible { color: #176f80; border-color: #9ed9df; outline: none; }
.filter-chip.active { color: #fff; background: linear-gradient(110deg, #0b3148, #0c7585); border-color: transparent; box-shadow: 0 5px 12px rgba(9,91,108,.18); }
.filter-chip.active::before { content: "✓"; color: #8ff4ee; font-size: 9px; font-weight: 900; }
.volume-verdict-chip.friendly { color: #0b7a65; background: #edf9f5; border-color: #ccebe1; }
.volume-verdict-chip.caution { color: #936316; background: #fff8e5; border-color: #f1dfaa; }
.volume-verdict-chip.danger { color: #b93449; background: #fff0f2; border-color: #f4ccd3; }
.volume-verdict-chip.active { color: #fff; background: #20394a; border-color: transparent; }
.queue-chip span, .filter-chip span { min-width: 19px; padding: 2px 5px; color: #667887; background: #fff; border-radius: 999px; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; line-height: 1.25; text-align: center; }
.queue-chip.active span, .filter-chip.active span { color: #075264; background: #dff8fa; }
.filter-summary { flex: 0 0 auto; align-self: flex-start; padding-top: 8px; color: #647686; font-size: 11px; font-weight: 750; white-space: nowrap; }
.filter-summary[hidden] { display: none; }
.filter-toggle { flex: 0 0 auto; height: 36px; align-self: flex-start; }
.filter-toggle .filter-active-count { min-width: 19px; margin-left: 6px; padding: 2px 5px; color: #075264; background: #dff8fa; border-radius: 999px; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; line-height: 1.25; text-align: center; }
.filter-toggle.active { color: #08798b; background: #f1fbfc; border-color: #58c3cf; }
.industry-tag { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; color: white; background: #0c7585; border-radius: 999px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.industry-tag[hidden] { display: none; }
.industry-tag button { display: grid; place-items: center; width: 18px; height: 18px; padding: 0; color: white; background: transparent; border: 0; border-radius: 50%; font-size: 10px; }
.industry-tag button:hover, .industry-tag button:focus-visible { background: rgba(255,255,255,.22); outline: none; }
.dashboard-filters[hidden] { display: none; }
.dashboard-table-wrap { overflow-x: auto; padding: 4px 18px 18px; }
table { width: 100%; border-collapse: collapse; }
th { height: 46px; position: sticky; top: 0; z-index: 2; color: #71808e; background: #f8fafb; border-top: 1px solid #edf1f3; border-bottom: 1px solid #dfe6eb; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-align: left; white-space: nowrap; }
.th-sort { width: 100%; height: 46px; display: inline-flex; align-items: center; gap: 4px; padding: 0; color: inherit; background: none; border: 0; font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; }
.th-sort:hover { color: #46586b; }
.th-sort.active { color: #147c8d; }
.th-sort .sort-arrow { width: 8px; font-size: 9px; }
td { height: 68px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
tbody tr:last-child td { border-bottom: 0; }
.dashboard-table { min-width: 900px; table-layout: fixed; }
.dashboard-table th:nth-child(1) { width: 22%; }
.dashboard-table th:nth-child(2) { width: 10%; }
.dashboard-table th:nth-child(3) { width: 15%; }
.dashboard-table th:nth-child(4) { width: 17%; }
.dashboard-table th:nth-child(5) { width: 9%; }
.dashboard-table th:nth-child(6) { width: 27%; }
.today-heading span, .today-heading small { display: block; }
.today-heading small { margin-top: 3px; color: #91a0ad; font-size: 9px; letter-spacing: .04em; }
.today-heading .today-sort-copy { display: block; }
.today-heading .sort-arrow { display: inline-block; }
.dashboard-table th:first-child, .dashboard-table td:first-child { padding-left: 14px; }
.dashboard-table th:not(:first-child), .dashboard-table td:not(:first-child) { padding-left: 6px; }
.dashboard-table td { height: 67px; padding-right: 12px; white-space: nowrap; transition: background-color .14s ease; }
.dashboard-table tr.is-selected td { background: #f6fbfc; border-bottom-color: #c7e7eb; }
.dashboard-table tr.is-selected td:first-child { box-shadow: inset 3px 0 0 #35bfd0 !important; }
.dashboard-table tr.is-holding:not(.is-selected) td { background: #fbfdfd; }
.dashboard-table tr.is-holding:hover td { background: #eef7f9; }
.dashboard-table tr.signal-buy td:first-child { box-shadow: none; }
.dashboard-table tr.signal-buy:hover td { background: #fffafb; }
.dashboard-table tr.signal-sell td:first-child { box-shadow: none; }
.dashboard-table tr.signal-sell:hover td { background: #f7fcfa; }
.dashboard-table tr.uses-stale-data td { background: var(--warning-soft); }
.dashboard-table tr.uses-stale-data:hover td { background: #fff5df; }
.dashboard-stock strong, .dashboard-stock small { display: block; }
.dashboard-stock-code { font-family: "SFMono-Regular", Consolas, monospace; font-size: 14px; color: #132336; font-variant-numeric: tabular-nums; letter-spacing: .035em; user-select: text; cursor: text; }
.dashboard-stock-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; min-width: 0; }
.dashboard-code-line { display: flex; align-items: center; gap: 6px; }
.dashboard-code-line .dashboard-detail-button { margin: 0; }
.star-toggle { width: 36px; height: 36px; display: inline-grid; place-items: center; flex: 0 0 36px; padding: 0; color: #9aa6af; background: transparent; border: 1px solid transparent; border-radius: 7px; font-size: 20px; line-height: 1; cursor: pointer; transition: color .16s, background .16s, border-color .16s, transform .16s; }
.star-toggle:hover, .star-toggle:focus-visible { color: #b7791f; background: #fff8e5; border-color: #efd998; outline: none; }
.star-toggle.active { color: #d49300; }
.star-toggle:active { transform: scale(.92); }
.star-toggle:disabled { opacity: .55; cursor: wait; }
.copy-stock-code, .quote-page-link { width: 36px; height: 36px; display: inline-grid; place-items: center; flex: 0 0 36px; }
.copy-stock-code { padding: 0; color: #217488; background: transparent; border: 1px solid transparent; border-radius: 7px; cursor: pointer; }
.copy-stock-code:hover, .copy-stock-code:focus-visible { color: #075264; background: #dff8fa; border-color: #7dd4dc; outline: none; }
.quote-page-link { color: #738695; border: 1px solid transparent; border-radius: 7px; text-decoration: none; }
.quote-page-link:hover, .quote-page-link:focus-visible { color: #08758a; background: #edf8fa; border-color: #c9e8ec; outline: none; }
.action-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dashboard-stock small { color: #334b5d; font-size: 13px; font-weight: 750; }
.dashboard-stock-name { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.dashboard-stock-name small { margin-top: 0; }
.dashboard-heading-actions { display: flex; align-items: center; gap: 8px; }
.quote-refresh-button { white-space: nowrap; }
.stock-meta-line { display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: 1px; color: #7a8996; }
.stock-meta-tags { display: flex; align-items: center; gap: 8px; min-width: 0; }
.stock-meta-line .classification-filter-button { max-width: 130px; padding: 2px 4px; font-size: 9px; }
.today-change, .today-price { display: block; width: fit-content; font-family: "SFMono-Regular", Consolas, monospace; font-variant-numeric: tabular-nums; white-space: nowrap; }
.today-change { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.today-price { margin-top: 6px; color: #718492; font-size: 11px; font-weight: 650; }
.today-change.positive { color: #c53f52; }
.today-change.negative { color: #098064; }
.today-change.unavailable { color: #8a97a3; }
.today-cell.is-stale .today-change, .today-cell.is-stale .today-price { opacity: .72; }
.style-cell { color: #526879; }
.style-badge { display: inline-flex; align-items: center; max-width: 100%; padding: 5px 8px; overflow: hidden; color: #245167; background: #eaf4f7; border: 1px solid #d1e7ec; border-radius: 999px; font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.current-status-label, .current-status-detail { display: block; width: fit-content; max-width: 100%; }
.current-status-label { font-size: 13px; font-weight: 800; }
.current-status-detail { margin-top: 6px; overflow: hidden; color: #718492; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.current-status-label.action { color: #c53f52; }
.current-status-label.buy-watch { color: #0b8a70; }
.current-status-label.sell-watch, .current-status-label.risk { color: #b3541e; }
.current-status-label.volume-friendly { color: #0b8a70; }
.current-status-label.volume-neutral { color: #667585; }
.current-status-label.volume-caution { color: #b7791f; }
.current-status-label.volume-danger { color: #c53f52; }
.current-status-label.good { color: #0b8a70; }
.current-status-label.wait { color: #667585; }
.current-status-label.error { color: #2563a5; }
.refresh-failure-badge { display: block; width: fit-content; margin-top: 4px; padding: 3px 6px; color: #9a6114; background: #fff0cb; border: 1px solid #f3d38a; border-radius: 6px; font-size: 9px; font-weight: 800; }
.dashboard-detail-button { display: block; padding: 2px 4px; margin: 1px 0 0 -4px; color: inherit; text-align: left; background: transparent; border: 0; border-radius: 6px; cursor: pointer; }
.dashboard-detail-button:hover, .dashboard-detail-button:focus-visible { color: #0b6677; background: #edf8fa; outline: none; }
.mobile-detail-hint { display: none; }
.classification-cell { color: #5c7180; font-size: 12px; font-weight: 700; }
.classification-filter-button { max-width: 100%; padding: 5px 7px; overflow: hidden; color: inherit; background: transparent; border: 1px solid transparent; border-radius: 7px; font-size: inherit; font-weight: inherit; text-overflow: ellipsis; white-space: nowrap; }
.classification-filter-button:hover, .classification-filter-button:focus-visible { color: #08758a; background: #edf8fa; border-color: #c9e8ec; outline: none; }
.classification-filter-button.active { color: #fff; background: #0c7585; border-color: #0c7585; box-shadow: 0 4px 10px rgba(9,91,108,.16); }
.dashboard-number { color: #1c2f40; font-family: "SFMono-Regular", Consolas, monospace; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.distance-positive { color: #c53f52; font-weight: 750; }
.distance-negative { color: #098064; font-weight: 750; }
.signal-badge, .stage-badge { display: inline-flex; align-items: center; padding: 5px 8px; border: 1px solid transparent; border-radius: 999px; font-size: 11px; font-weight: 800; }
.signal-badge.buy { color: #a42437; background: var(--danger-soft); border-color: #f7d6dc; }
.signal-badge.sell { color: #08705c; background: var(--success-soft); border-color: #cfe9df; }
.signal-badge.watch { color: #8b6918; background: #fff5d8; }
.signal-badge.wait { color: #667585; background: #eff3f5; }
.signal-badge.error { color: #a12d3e; background: #ffe9ec; }
.stage-badge { color: #245167; background: #eaf4f7; }
.daily-macd-badge { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.daily-macd-badge.active { color: #9f2740; background: #ffe9ed; border: 1px solid #fecdd3; }
.trend-cell strong, .trend-cell small, .volume-cell span, .volume-cell small, .trigger-cell span, .decision-cell span { display: block; width: fit-content; }
.trend-cell strong { font-size: 13px; }
.trend-cell small { margin-top: 6px; color: #718492; font-size: 11px; }
.core-evidence-cell strong, .core-evidence-cell small { display: block; width: fit-content; max-width: 100%; }
.core-evidence-cell strong { font-size: 13px; }
.core-evidence-cell small { margin-top: 6px; overflow: hidden; color: #718492; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.volume-cell { max-width: 175px; }
.volume-cell small { width: auto; max-width: 175px; margin-top: 6px; overflow: hidden; color: #718492; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.volume-state-badge { padding: 5px 8px; border: 1px solid transparent; border-radius: 999px; font-size: 11px; font-weight: 800; }
.volume-state-badge.friendly { color: #08705c; background: #e6f7f1; border-color: #bbf7d0; }
.volume-state-badge.neutral { color: #245167; background: #eaf4f7; border-color: #d1e7ec; }
.volume-state-badge.caution { color: #8b6918; background: #fff5d8; border-color: #fde68a; }
.volume-state-badge.danger { color: #a42437; background: #ffe9ed; border-color: #fecdd3; }
.trigger-cell, .decision-cell { white-space: normal; }
.trigger-cell span + span, .decision-cell span + span { margin-top: 5px; }
.pattern-badge { color: #245167; font-size: 12px; font-weight: 750; }
.dashboard-muted { color: #91a0ad; }
.score-cell .score-badge, .score-cell .score-context { display: block; width: fit-content; }
.score-badge { display: inline-flex; align-items: center; min-width: 0; height: auto; padding: 0; font-family: "SFMono-Regular", Consolas, monospace; font-size: 18px; font-weight: 800; }
.score-badge.good { color: #c53f52; }
.score-badge.watch { color: #b68a22; }
.score-badge.sell-risk { color: #08705c; }
.score-context { margin-top: 4px; color: #718492; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; white-space: nowrap; }
.score-explanation-row[hidden] { display: none; }
.score-explanation-row td { height: auto; padding: 0 12px 14px; background: #f7fafb; }
.score-explanation { padding: 18px 20px; background: linear-gradient(135deg, #f8fcfd, #f3f7f9); border: 1px solid #d7e5ea; border-left: 3px solid var(--cyan); border-radius: 11px; white-space: normal; }
.score-explanation h3 { margin: 0; color: #17384a; font-size: 13px; }
.detail-conclusion { padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px dashed #d7e5ea; }
.detail-conclusion .score-conclusion { font-size: 14px; }
.detail-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 13px 0; }
.detail-metrics > div { min-width: 0; padding: 9px 10px; background: rgba(255,255,255,.76); border: 1px solid #e2ecef; border-radius: 8px; }
.detail-metrics span, .detail-metrics strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-metrics span { color: #83939f; font-size: 11px; font-weight: 750; }
.detail-metrics strong { margin-top: 5px; color: #253f50; font-size: 12px; }
.score-explanation ul { margin: 12px 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; list-style: none; }
.score-explanation li { position: relative; padding-left: 14px; color: #425a69; font-size: 12px; line-height: 1.65; }
.score-explanation li::before { content: ""; position: absolute; top: .62em; left: 0; width: 5px; height: 5px; background: var(--cyan); border-radius: 50%; }
.volume-context-note { margin: 0 0 12px; padding: 9px 11px; color: #6b571c; background: #fff8e6; border-left: 3px solid #e0aa33; border-radius: 7px; font-size: 11px; line-height: 1.6; }
.support-resistance-reference { margin: 0 0 13px; padding: 12px; background: rgba(255,255,255,.72); border: 1px solid #dce9ed; border-radius: 9px; }
.support-resistance-header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.support-resistance-header h4 { margin: 0; color: #274657; font-size: 12px; }
.support-resistance-header span { color: #8a99a4; font-size: 10px; }
.price-zone-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.price-zone-card { min-width: 0; padding: 9px 10px; border: 1px solid #dde8eb; border-radius: 8px; background: #f8fbfc; }
.price-zone-card.support { border-left: 3px solid #21a383; }
.price-zone-card.resistance { border-left: 3px solid #d45163; }
.price-zone-card span, .price-zone-card strong, .price-zone-card small { display: block; }
.price-zone-card span { color: #718592; font-size: 10px; font-weight: 750; }
.price-zone-card strong { margin-top: 4px; color: #213e4e; font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px; }
.price-zone-card small { margin-top: 4px; color: #718492; font-size: 10px; line-height: 1.45; }
.support-resistance-reference > p { margin: 9px 0 0; color: #7d8e99; font-size: 10px; line-height: 1.5; }
.score-conclusion { margin: 0; color: #17384a; font-size: 12px; font-weight: 750; }
.score-signal-note { margin: 8px 0 0; color: #758795; font-size: 11px; }
.score-change-block { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #d7e5ea; }
.score-change-block h4 { margin: 0; color: #274657; font-size: 12px; }
.score-change-block p { margin: 6px 0 0; color: #637785; font-size: 11px; line-height: 1.6; }
.score-change-block .score-change-list { margin-top: 8px; grid-template-columns: 1fr; }
.refresh-failure-note { margin: 9px 0 0; padding: 8px 10px; color: #8a5713; background: #fff3d8; border-left: 3px solid #e8a62d; border-radius: 6px; font-size: 11px; }
.detail-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #e1eaed; }
.detail-metadata { margin-right: auto; color: #83939f; font-size: 10px; }
.detail-quote-link { padding: 7px 9px; color: #176f80; font-size: 9px; font-weight: 750; text-decoration: none; }
.detail-quote-link:hover { text-decoration: underline; }
.clipboard-fallback { position: fixed; left: -9999px; top: 0; }

.detail-panel-content { padding: 24px 28px 20px; color: #203546; }
.detail-panel-header { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.detail-panel-identity { min-width: 0; display: flex; align-items: center; gap: 10px; }
.detail-panel-identity h3 { margin: 0; overflow: hidden; color: #102235; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.detail-panel-identity span { flex: 0 0 auto; padding: 6px 10px; color: #617180; background: #f1f4f6; border-radius: 999px; font-size: 10px; }
.detail-panel-close { min-width: 44px; height: 44px; padding: 0 8px; color: #778795; background: transparent; border: 0; border-radius: 8px; font-size: 11px; }
.detail-panel-close:hover, .detail-panel-close:focus-visible { color: #17384a; background: #f0f4f7; outline: none; }
.detail-summary { min-height: 82px; display: grid; grid-template-columns: minmax(112px, 1.2fr) repeat(3, minmax(0, 1fr)); align-items: center; gap: 14px; margin-top: 14px; }
.detail-summary > div { text-align: center; }
.detail-summary span, .detail-summary strong { display: block; }
.detail-summary > div span { color: #6e7d8b; font-size: 11px; }
.detail-summary > div strong { margin-top: 5px; color: #132437; font-family: "SFMono-Regular", Consolas, monospace; font-size: 22px; font-variant-numeric: tabular-nums; }
.detail-summary > div:first-of-type strong { color: #d33c4f; }
.detail-signal-badge { justify-self: start; padding: 10px 18px; border: 1px solid transparent; border-radius: 10px; font-size: 16px; white-space: nowrap; }
.detail-signal-badge.buy { color: #d8394c; background: #fff2f4; border-color: #e45768; }
.detail-signal-badge.sell { color: #08705c; background: #eff9f5; border-color: #8acdbb; }
.detail-signal-badge.wait { color: #5b6c79; background: #f1f4f6; border-color: #dde4e9; }
.detail-headline { margin: 0; padding: 0 0 16px; color: #22394b; border-bottom: 1px solid #dfe7ed; font-size: 14px; font-weight: 750; line-height: 1.65; }
.confirmation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 16px 0 20px; }
.confirmation-block { min-width: 0; }
.confirmation-block h4, .confirmation-block small { display: inline; }
.confirmation-block h4 { margin: 0; font-size: 13px; }
.confirmation-block.execution h4 { color: #14899a; }
.confirmation-block.failure h4 { color: #d33c4f; }
.confirmation-block small { margin-left: 8px; color: #8a97a3; font-size: 10px; }
.confirmation-block p { margin: 12px 0 0; color: #4e6272; font-size: 11px; line-height: 1.75; }
.detail-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid #dfe7ed; }
.detail-tab { position: relative; min-width: 0; height: 52px; padding: 0 6px; color: #657584; background: transparent; border: 0; font-size: 12px; font-weight: 750; white-space: nowrap; }
.detail-tab:hover, .detail-tab:focus-visible { color: #117d8d; outline: none; }
.detail-tab.active { color: #117d8d; }
.detail-tab.active::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 54px; height: 3px; background: #16a0b2; border-radius: 999px; transform: translateX(-50%); }
.detail-tab-panels { padding-top: 16px; }
.detail-tab-panel[hidden] { display: none; }
.detail-panel-content .detail-metrics { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin: 0; overflow: hidden; background: white; border: 1px solid #e0e8ed; border-radius: 9px; }
.detail-panel-content .detail-metrics > div { min-height: 68px; padding: 10px 8px; text-align: center; background: white; border: 0; border-right: 1px solid #edf1f4; border-bottom: 1px solid #edf1f4; border-radius: 0; }
.detail-panel-content .detail-metrics > div:nth-child(6n) { border-right: 0; }
.detail-panel-content .detail-metrics strong { white-space: normal; line-height: 1.35; text-overflow: clip; }
.detail-key-conclusion { padding: 16px 0 4px; }
.detail-key-conclusion h4 { margin: 0 0 8px; color: #243a4c; font-size: 12px; }
.detail-key-conclusion p { margin: 0; color: #667886; font-size: 11px; line-height: 1.65; }
.detail-strategy-note { margin-top: 14px; padding: 12px 14px; color: #748592; background: #f6f9fa; border-radius: 8px; font-size: 10px; line-height: 1.65; }
.etf-metadata-grid { margin: 14px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; background: #e6edf1; border: 1px solid #e6edf1; border-radius: 9px; }
.etf-metadata-grid > div { min-width: 0; padding: 10px 12px; background: #fbfcfd; }
.etf-metadata-grid dt, .etf-metadata-grid dd { margin: 0; }
.etf-metadata-grid dt { color: #86939d; font-size: 9px; }
.etf-metadata-grid dd { margin-top: 5px; overflow-wrap: anywhere; color: #263f50; font-size: 10px; font-weight: 750; }
.etf-score-boundary { color: #496c7a !important; background: #eaf8fa !important; border-color: #cfecef !important; }
.detail-factor-list { margin: 0; padding: 0; display: grid; gap: 8px; list-style: none; }
.detail-factor-list li { position: relative; padding-left: 14px; color: #4a5f70; font-size: 11px; line-height: 1.65; }
.detail-factor-list li::before { content: ""; position: absolute; top: .7em; left: 0; width: 5px; height: 5px; background: #20b8c8; border-radius: 50%; }
.detail-empty-copy { margin: 0; padding: 18px 0; color: #82919d; font-size: 11px; text-align: center; }
.detail-panel-content .observation-notes { display: grid; gap: 10px; }
.detail-panel-content .volume-context-note { margin: 0; }
.detail-panel-content .support-resistance-reference { margin: 0; }
.detail-panel-content .detail-actions { margin-top: 16px; }
.detail-panel-content.inline-detail { padding: 16px; }

.position-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; color: #687687; background: #f0f3f5; border: 1px solid transparent; border-radius: 999px; font-size: 8px; font-weight: 750; cursor: pointer; }
.position-toggle::before { content: ""; width: 5px; height: 5px; background: #9aa6b0; border-radius: 50%; }
.position-toggle:hover, .position-toggle:focus-visible { color: #176f80; background: #e7f5f7; border-color: #b9dfe4; outline: none; }
.position-toggle.active { color: #08725e; background: #dff3ec; }
.position-toggle.active::before { background: #10a786; }

.delete-button { padding: 7px 9px; color: #9c3947; background: transparent; border: 1px solid transparent; border-radius: 7px; font-size: 9px; font-weight: 750; }
.delete-button:hover { color: #c62f43; background: #fff1f3; border-color: #f2ced3; }
.loading-row, .empty-row { color: var(--muted); text-align: center; }

.toast[hidden] { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 20; max-width: 420px; padding: 13px 16px; color: white; background: #15364a; border-left: 4px solid #42d1d9; border-radius: 8px; box-shadow: 0 14px 40px rgba(3,17,30,.24); font-size: 10px; line-height: 1.5; }
.toast.error { background: #4e1d27; border-left-color: #f17484; }

.workspace-view-tabs { min-height: 54px; padding: 8px max(24px, calc((100vw - 1440px) / 2)); display: flex; align-items: center; gap: 12px; background: #fff; border-bottom: 1px solid #e2e8ed; }
.workspace-primary-tabs, .workspace-tools, .asset-filter-switcher { display: flex; align-items: center; gap: 8px; }
.workspace-primary-tabs { flex: 0 0 auto; }
.workspace-tools { min-width: 0; margin-left: auto; }
.workspace-view-tab { min-width: 92px; height: 34px; padding: 0 18px; color: #607181; background: #f7f9fa; border: 1px solid #dfe6eb; border-radius: 999px; font-size: 11px; font-weight: 800; }
.workspace-view-tab:hover, .workspace-view-tab:focus-visible { color: #08798b; border-color: #72ced7; outline: none; }
.workspace-view-tab.active { color: #073643; background: #dff8fa; border-color: #23bfd0; box-shadow: 0 4px 12px rgba(25, 174, 191, .09); }
.asset-filter-switcher { flex: 0 0 auto; padding: 3px; background: #edf2f4; border: 1px solid #dfe6ea; border-radius: 10px; }
.asset-filter-button { min-width: 50px; height: 30px; padding: 0 10px; color: #667887; background: transparent; border: 0; border-radius: 7px; font-size: 10px; font-weight: 800; }
.asset-filter-button:hover, .asset-filter-button:focus-visible { color: #08798b; background: rgba(255,255,255,.7); outline: none; }
.asset-filter-button.active { color: #083a47; background: #fff; box-shadow: 0 2px 7px rgba(10, 38, 55, .09); }
.workspace-search { width: min(310px, 27vw); min-width: 210px; height: 38px; display: grid; grid-template-columns: 30px minmax(0, 1fr) 32px; align-items: center; color: #788997; background: #f7f9fa; border: 1px solid #dce4e9; border-radius: 10px; transition: border-color .16s, box-shadow .16s, background .16s; }
.workspace-search:focus-within { color: #128596; background: #fff; border-color: #58c3cf; box-shadow: 0 0 0 3px rgba(32,196,215,.1); }
.workspace-search > span { text-align: center; font-size: 17px; line-height: 1; }
.workspace-search input { min-width: 0; width: 100%; height: 100%; padding: 0; color: #1e3748; background: transparent; border: 0; outline: 0; font-size: 11px; }
.workspace-search input::placeholder { color: #96a2ac; }
.workspace-search button { width: 28px; height: 28px; padding: 0; color: #7f8e99; background: transparent; border: 0; border-radius: 7px; font-size: 10px; }
.workspace-search button[hidden] { display: none; }
.workspace-search button:hover, .workspace-search button:focus-visible { color: #0c7281; background: #e8f6f8; outline: none; }

.sector-radar[hidden] { display: none; }
.sector-radar { min-height: calc(100vh - var(--topbar-height) - 54px); padding: 0 16px 20px; background: linear-gradient(180deg, #f4f7f8, #edf2f4); }
.sector-radar-heading { min-height: 64px; display: flex; align-items: center; }
.sector-radar-heading h1 { margin: 0; color: #101e2e; font-size: 20px; letter-spacing: -.02em; }
.sector-radar-heading p { margin: 5px 0 0; color: #758490; font-size: 10px; }

.sector-radar-grid { display: grid; grid-template-columns: minmax(240px, 300px) minmax(430px, 1fr) minmax(360px, 468px); gap: 14px; align-items: stretch; }
.radar-panel { min-width: 0; min-height: 704px; overflow: hidden; background: #fff; border: 1px solid #e0e7eb; border-radius: 13px; box-shadow: 0 12px 30px rgba(8, 29, 47, .055); }
.radar-panel-heading { min-height: 58px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #e9eef1; }
.radar-panel-heading > div { display: flex; align-items: center; gap: 8px; }
.radar-panel-heading span { color: #13a8ba; font-family: "SFMono-Regular", Consolas, monospace; font-size: 9px; font-weight: 800; }
.radar-panel-heading h2 { margin: 0; color: #152738; font-size: 13px; }
.radar-panel-heading small { color: #8b98a2; font-size: 9px; }
.radar-empty { margin: 0; padding: 34px 18px; color: #8996a0; font-size: 10px; text-align: center; }
.radar-empty.inline { padding: 18px 0; }

.radar-style-list { padding: 8px; display: grid; gap: 6px; }
.radar-style-item { width: 100%; min-height: 70px; padding: 11px 12px; display: grid; gap: 9px; color: #425664; text-align: left; background: #fff; border: 1px solid #e5ebef; border-radius: 9px; transition: border-color .16s, background .16s, box-shadow .16s, transform .16s; }
.radar-style-item:hover, .radar-style-item:focus-visible { background: #fbfeff; border-color: #9bdce2; box-shadow: 0 6px 16px rgba(12, 77, 91, .06); outline: none; transform: translateY(-1px); }
.radar-style-item.active { background: #e4f9fb; border-color: #20bfd0; box-shadow: inset 3px 0 #18b8c8; }
.radar-style-main, .radar-style-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.radar-style-main strong { color: #172b3b; font-size: 12px; }
.radar-style-main em { color: #80909b; font-size: 9px; font-style: normal; font-weight: 700; }
.radar-style-meta { color: #84929d; font-size: 9px; }
.radar-style-meta strong { margin-right: auto; color: #233d4d; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; }
.radar-style-meta strong.positive, .radar-industry-change.positive, .radar-stock-change.positive, .radar-metric.positive strong { color: #d83b50; }
.radar-style-meta strong.negative, .radar-industry-change.negative, .radar-stock-change.negative, .radar-metric.negative strong { color: #07856d; }
.radar-wind { display: inline-flex; align-items: center; justify-content: center; min-height: 22px; padding: 0 8px; color: #5d6f7b; background: #f0f3f5; border-radius: 999px; font-size: 8px; font-weight: 800; font-style: normal; white-space: nowrap; }
.radar-wind.strong { color: #b92f42; background: #fff0f3; }
.radar-wind.improving { color: #097a88; background: #e7f8fa; }
.radar-wind.mixed { color: #8c6912; background: #fff7df; }
.radar-wind.weak { color: #08705c; background: #eaf7f3; }

.radar-industry-columns { min-height: 34px; padding: 0 14px; display: grid; grid-template-columns: minmax(160px, 1.45fr) .72fr .78fr .62fr; align-items: center; gap: 8px; color: #91a0aa; background: #fafbfc; border-bottom: 1px solid #edf1f3; font-size: 8px; font-weight: 800; }
.radar-sort-button { min-width: 0; height: 32px; padding: 0; display: flex; align-items: center; gap: 4px; color: inherit; text-align: left; background: transparent; border: 0; font: inherit; cursor: pointer; }
.radar-sort-button:hover, .radar-sort-button:focus-visible { color: #118b9a; outline: none; }
.radar-sort-button.active { color: #087988; }
.radar-sort-state { color: #11a7b7; font-size: 10px; font-weight: 850; line-height: 1; white-space: nowrap; }
.radar-industry-list { padding: 8px; display: grid; gap: 5px; }
.radar-industry-item { width: 100%; min-height: 64px; padding: 9px 10px; display: grid; grid-template-columns: minmax(150px, 1.45fr) .72fr .78fr .62fr; align-items: center; gap: 8px; color: #344b59; text-align: left; background: #fff; border: 1px solid #e7ecef; border-radius: 8px; transition: border-color .16s, background .16s, box-shadow .16s; }
.radar-industry-item:hover, .radar-industry-item:focus-visible { border-color: #a6dfe4; box-shadow: 0 5px 14px rgba(8, 50, 63, .05); outline: none; }
.radar-industry-item.active { background: #e4f9fb; border-color: #20bfd0; box-shadow: inset 3px 0 #16b4c5; }
.radar-industry-name strong, .radar-industry-name small, .radar-industry-breadth strong, .radar-industry-breadth small, .radar-industry-score strong, .radar-industry-score small { display: block; }
.radar-industry-name strong { overflow: hidden; color: #172b3b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.radar-industry-name small, .radar-industry-breadth small, .radar-industry-score small { margin-top: 4px; color: #88969f; font-size: 8px; }
.radar-industry-change, .radar-industry-breadth strong, .radar-industry-score strong { color: #233c4c; font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; font-variant-numeric: tabular-nums; }

.radar-detail { min-height: 100%; padding: 20px; }
.radar-detail-empty { min-height: 540px; display: grid; place-content: center; gap: 8px; color: #8a98a2; text-align: center; }
.radar-detail-empty strong { color: #30495a; font-size: 13px; }
.radar-detail-empty span { max-width: 280px; font-size: 10px; line-height: 1.6; }
.radar-detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.radar-detail-eyebrow { color: #7f8f9a; font-size: 8px; font-weight: 750; }
.radar-detail-heading h2 { margin: 8px 0 0; color: #102235; font-size: 22px; letter-spacing: -.02em; }
.radar-detail-heading p { margin: 6px 0 0; color: #81909a; font-size: 9px; }
.radar-detail-heading > .radar-wind { margin-top: 3px; }
.radar-detail-metrics { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.radar-metric { min-height: 72px; padding: 12px; display: grid; align-content: center; gap: 7px; background: #f6f8f9; border: 1px solid #edf1f3; border-radius: 9px; }
.radar-metric span { color: #81909b; font-size: 9px; }
.radar-metric strong { color: #162b3b; font-family: "SFMono-Regular", Consolas, monospace; font-size: 20px; font-variant-numeric: tabular-nums; }
.radar-trend-block, .radar-stock-block { margin-top: 20px; padding-top: 17px; border-top: 1px solid #e6ecef; }
.radar-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.radar-section-heading h3 { margin: 0; color: #223849; font-size: 11px; }
.radar-section-heading small { color: #8b98a2; font-size: 8px; }
.radar-trend-chart { width: 100%; height: 120px; margin-top: 12px; display: block; background: #f7f9fa; border: 1px solid #edf1f3; border-radius: 9px; }
.radar-trend-values { margin-top: 12px; padding: 11px; display: grid; grid-template-columns: repeat(auto-fit, minmax(48px, 1fr)); gap: 6px; background: #f6f8f9; border-radius: 9px; }
.radar-trend-values > span { min-width: 0; text-align: center; }
.radar-trend-values strong, .radar-trend-values small { display: block; }
.radar-trend-values strong { color: #15394a; font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; }
.radar-trend-values small { margin-top: 5px; overflow: hidden; color: #8b98a2; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.radar-stock-list { margin-top: 10px; display: grid; gap: 6px; }
.radar-stock-item { width: 100%; min-height: 56px; padding: 9px 10px; display: grid; grid-template-columns: minmax(0, 1fr) 82px 60px; align-items: center; gap: 8px; color: #2e4656; text-align: left; background: #fff; border: 1px solid #e4eaee; border-radius: 8px; }
.radar-stock-item:hover, .radar-stock-item:focus-visible { background: #f9fdfe; border-color: #92d7de; outline: none; }
.radar-stock-name strong, .radar-stock-name small, .radar-stock-state strong, .radar-stock-state small { display: block; }
.radar-stock-name strong { overflow: hidden; color: #192f3f; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.radar-stock-name small, .radar-stock-state small { margin-top: 4px; color: #8b98a2; font-size: 8px; }
.radar-stock-state { min-width: 0; text-align: right; }
.radar-stock-state strong { color: #304b5c; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; }
.radar-stock-state small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.radar-stock-change { text-align: right; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; }

.radar-category-filters { margin: 0 0 12px; padding: 0; background: transparent; border-top: 0; }
.etf-radar-panel { min-height: 0; }
.etf-radar-columns, .etf-radar-row { display: grid; grid-template-columns: minmax(190px, 1.35fr) minmax(180px, 1.15fr) 90px 90px 90px 64px; align-items: center; gap: 12px; }
.etf-radar-columns { min-height: 38px; padding: 0 16px; color: #8b99a3; background: #fafbfc; border-bottom: 1px solid #edf1f3; font-size: 9px; font-weight: 800; }
.etf-radar-list { padding: 8px; display: grid; gap: 6px; }
.etf-radar-row { width: 100%; min-height: 70px; padding: 10px 12px; color: #304958; text-align: left; background: #fff; border: 1px solid #e5ebef; border-radius: 9px; transition: border-color .16s, background .16s, box-shadow .16s; }
.etf-radar-row:hover, .etf-radar-row:focus-visible { background: #fbfeff; border-color: #8fd6de; box-shadow: 0 6px 16px rgba(12,77,91,.06); outline: none; }
.etf-target-identity, .etf-representative, .etf-radar-score { min-width: 0; }
.etf-target-identity strong, .etf-target-identity small, .etf-representative strong, .etf-representative small, .etf-radar-score strong, .etf-radar-score small { display: block; }
.etf-target-identity strong, .etf-representative strong { overflow: hidden; color: #172b3b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.etf-target-identity small, .etf-representative small, .etf-radar-score small { margin-top: 5px; color: #8997a1; font-size: 8px; }
.etf-radar-change, .etf-radar-score strong { color: #203c4d; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; font-variant-numeric: tabular-nums; }
.etf-radar-change.positive { color: #d83b50; }
.etf-radar-change.negative { color: #07856d; }
.etf-radar-signal, .etf-product-count { justify-self: start; padding: 5px 8px; color: #44606f; background: #f0f4f6; border-radius: 999px; font-size: 9px; font-weight: 800; white-space: nowrap; }

@media (max-width: 860px) {
  .app-topbar { padding: 0 20px; }
  .workspace-view-tabs { padding: 8px 20px; flex-wrap: wrap; }
  .workspace-primary-tabs, .workspace-tools { width: 100%; }
  .workspace-primary-tabs { overflow-x: auto; scrollbar-width: none; }
  .workspace-tools { display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .workspace-search { width: 100%; min-width: 0; }
  .page-content { width: min(100% - 24px, 720px); padding-top: 16px; }
  .add-fields { grid-template-columns: 1fr 1fr; }
  .batch-actions { flex-wrap: wrap; }
  .batch-actions small { width: 100%; margin-left: 0; }
  .sector-radar { padding-left: 0; padding-right: 0; }
  .sector-radar-grid { grid-template-columns: minmax(220px, .72fr) minmax(420px, 1.28fr); }
  .radar-detail-panel { grid-column: 1 / -1; min-height: 0; }
  .radar-detail-empty { min-height: 0; padding: 90px 0; }
}

@media (max-width: 1120px) {
  .page-content { width: min(100% - 24px, 980px); }
  .signal-dashboard.panel { overflow: hidden; }
  .dashboard-workspace { display: block; overflow: hidden; }
  .dashboard-detail-panel { display: none; }
  .detail-metrics, .detail-panel-content .detail-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1121px) {
  .page-content { width: min(1440px, 100%); padding-top: 0; }
  .signal-dashboard.panel { border: 0; border-radius: 0; box-shadow: none; }
  .score-explanation-row { display: none !important; }
  .dashboard-workspace:not(.detail-hidden) .dashboard-table { min-width: 760px; }
  .dashboard-workspace:not(.detail-hidden) .dashboard-table td { padding-right: 8px; }
  .dashboard-workspace:not(.detail-hidden) .dashboard-code-line { gap: 3px; }
  .dashboard-workspace:not(.detail-hidden) .star-toggle,
  .dashboard-workspace:not(.detail-hidden) .copy-stock-code,
  .dashboard-workspace:not(.detail-hidden) .quote-page-link { width: 28px; height: 28px; flex-basis: 28px; }
  .dashboard-workspace:not(.detail-hidden) .today-change { font-size: 14px; }
  .dashboard-workspace:not(.detail-hidden) .today-price,
  .dashboard-workspace:not(.detail-hidden) .current-status-detail,
  .dashboard-workspace:not(.detail-hidden) .core-evidence-cell small { font-size: 10px; }
}

@media (max-width: 720px) {
  .app-topbar { padding: 0 14px; gap: 8px; }
  .workspace-view-tabs { height: auto; min-height: 104px; padding: 8px 12px; overflow: visible; }
  .workspace-primary-tabs { gap: 6px; }
  .workspace-view-tab { min-width: 98px; height: 44px; padding: 0 12px; }
  .asset-filter-switcher { gap: 2px; }
  .asset-filter-button { min-width: 48px; height: 44px; }
  .workspace-search { height: 46px; }
  .workspace-search button { width: 36px; height: 36px; }
  .brand { gap: 8px; }
  .brand strong { font-size: 15px; }
  .topbar-status { margin-left: auto; gap: 7px; }
  .topbar-summary, .refresh-progress { display: none; }
  .admin-lock-button { width: 44px; height: 44px; }
  .refresh-progress[hidden] { display: none; }
  .secondary.on-dark { width: 44px; height: 44px; padding: 0; }
  #refresh-button { font-size: 0; }
  #refresh-button span { margin: 0; font-size: 18px; }
  .retry-failed.on-dark { font-size: 0; }
  .retry-failed.on-dark::before { content: "重试"; font-size: 10px; }

  .page-content { width: calc(100% - 16px); padding-top: 14px; }
  .sector-radar { padding: 0 0 12px; }
  .sector-radar-heading { min-height: 58px; padding: 0 4px 8px; align-items: center; }
  .sector-radar-heading h1 { font-size: 18px; }
  .sector-radar-heading p { max-width: 220px; line-height: 1.5; }
  .sector-radar-grid { grid-template-columns: 1fr; gap: 10px; }
  .radar-panel, .radar-detail-panel { min-height: 0; grid-column: auto; }
  .radar-panel-heading { min-height: 54px; }
  .radar-style-list { display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .radar-style-item { flex: 0 0 220px; min-height: 76px; scroll-snap-align: start; }
  .radar-industry-columns { min-height: 40px; padding: 0 10px; grid-template-columns: minmax(120px, 1.25fr) .75fr .72fr .62fr; }
  .radar-sort-button { height: 38px; }
  .radar-industry-item { min-height: 72px; grid-template-columns: minmax(120px, 1.25fr) .75fr .72fr .62fr; }
  .radar-detail { padding: 18px 14px; }
  .radar-detail-heading h2 { font-size: 20px; }
  .radar-detail-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .radar-stock-item { min-height: 60px; grid-template-columns: minmax(0, 1fr) 74px 60px; }
  .radar-style-item, .radar-industry-item, .radar-stock-item { touch-action: manipulation; }
  .panel-heading { min-height: 58px; }
  .dashboard-heading-actions { gap: 6px; }
  .panel-heading > .secondary, .dashboard-heading-actions .secondary, .filter-toggle { height: 44px; }
  .dashboard-stock-main { gap: 2px; }
  .decision-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px 12px 2px; }
  .modal { place-items: end stretch; }
  .modal-panel { width: 100%; max-height: 85vh; border-radius: 14px 14px 0 0; }
  .admin-modal { place-items: center; padding: 16px; }
  .admin-modal-panel { width: min(340px, 100%); border-radius: 14px; }
  .dashboard-summary-row.signal-buy { border-left: 3px solid #c53f52; }
  .dashboard-summary-row.signal-sell { border-left: 3px solid #0b8a70; }
  .dashboard-table .dashboard-summary-row.signal-buy td:first-child,
  .dashboard-table .dashboard-summary-row.signal-sell td:first-child { box-shadow: none; }

  .attention-queues, .dashboard-filters, .volume-verdict-filters, .etf-category-filters { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .queue-chip, .filter-chip { height: 44px; }
  .filter-clear { height: 44px; }
  .filter-summary { display: none; }

  .dashboard-table-wrap { overflow: visible; padding: 2px 10px 14px; }
  .dashboard-table { min-width: 0; display: block; table-layout: auto; }
  .dashboard-table thead { display: none; }
  .dashboard-table tbody { display: block; }
  .dashboard-summary-row { width: 100%; margin-bottom: 8px; padding: 10px 12px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 8px; background: #fff; border: 1px solid #dfe8ed; border-radius: 11px; box-shadow: 0 4px 14px rgba(7, 24, 42, .04); }
  .dashboard-summary-row.is-holding { background: #f2faf7; border-color: #d7ebe3; }
  .dashboard-summary-row.uses-stale-data { background: #fffaf0; border-color: #f1dfb7; }
  .dashboard-summary-row > td { height: auto; min-width: 0; padding: 0; white-space: normal; background: transparent !important; border: 0; }
  .dashboard-table .dashboard-summary-row > td { padding-left: 0; padding-right: 0; }
  .dashboard-stock { grid-column: 1 / -1; grid-row: 1; display: block; min-width: 0; }
  .style-cell { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; gap: 8px; margin-top: 8px; }
  .today-cell { grid-column: 1 / span 4; grid-row: 3; align-self: start; }
  .current-status-cell { grid-column: 5 / span 5; grid-row: 3; align-self: start; }
  .score-cell { grid-column: 10 / -1; grid-row: 3; align-self: start; justify-self: end; }
  .today-cell, .current-status-cell, .score-cell { margin-top: 8px; padding-top: 8px !important; border-top: 1px solid #e8eef1 !important; }
  .core-evidence-cell { order: 2; grid-column: 1 / -1; grid-row: 4; margin-top: 8px; padding-top: 8px !important; border-top: 1px solid #e8eef1 !important; }
  .core-evidence-cell::before { content: attr(data-mobile-label); display: block; margin-bottom: 6px; color: #84939e; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
  .classification-filter-button { min-height: 44px; }
  .dashboard-code-line { min-width: 0; gap: 6px; }
  .dashboard-stock-code { font-size: 12px; }
  .dashboard-code-line .quote-page-link { display: none; }
  .star-toggle,
  .copy-stock-code, .quote-page-link { width: 44px; height: 44px; flex-basis: 44px; }
  .dashboard-detail-button { min-width: 0; min-height: 44px; margin-top: 0; display: flex; align-items: center; }
  .dashboard-detail-button small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dashboard-stock-name { min-width: 0; margin-top: 0; }
  .position-toggle { min-height: 44px; flex: 0 0 auto; white-space: nowrap; }
  .mobile-detail-hint { display: none; }

  .today-cell, .current-status-cell, .score-cell { order: 1; }
  .trend-cell, .volume-cell, .trigger-cell { order: 2; grid-column: 1 / -1; display: grid; grid-template-columns: 70px minmax(0, 1fr); column-gap: 8px; row-gap: 2px; align-items: center; padding-top: 8px !important; margin-top: 8px; border-top: 1px solid #e8eef1 !important; }
  .unavailable-cell { order: 2; grid-column: 1 / -1; grid-row: 4; margin-top: 8px; padding-top: 8px !important; border-top: 1px solid #e8eef1 !important; }
  .dashboard-summary-row > td[data-mobile-label]::before { content: attr(data-mobile-label); display: block; margin-bottom: 6px; color: #84939e; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
  .style-cell::before { margin-bottom: 0 !important; }
  .trend-cell::before, .volume-cell::before, .trigger-cell::before { grid-column: 1; grid-row: 1 / span 2; align-self: start; margin: 3px 0 0; }
  .trend-cell > *, .volume-cell > *, .trigger-cell > * { grid-column: 2; }
  .price-cell { color: #273f4f; font-size: 14px; font-weight: 800; }
  .trend-cell strong, .trend-cell small, .volume-cell span, .volume-cell small, .trigger-cell span { max-width: 100%; white-space: normal; }
  .trend-cell small, .volume-cell small { margin-top: 0; }
  .volume-cell { max-width: none; }
  .volume-cell small { width: auto; max-width: none; overflow: visible; text-overflow: clip; }

  .score-explanation-row:not([hidden]) { margin: -8px 0 8px; display: block; }
  .score-explanation-row td { display: block; padding: 0; }
  .score-explanation { padding: 16px 14px; border-radius: 0 0 12px 12px; }
  .detail-metrics, .detail-panel-content .detail-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-height: 0; }
  .detail-signal-badge { grid-column: 1 / -1; justify-self: start; }
  .detail-summary > div strong { font-size: 18px; }
  .price-zone-grid { grid-template-columns: 1fr; }
  .detail-actions { justify-content: flex-start; flex-wrap: wrap; }
  .detail-metadata { width: 100%; margin-right: 0; line-height: 1.55; }
  .detail-quote-link, .delete-button { min-height: 44px; display: inline-flex; align-items: center; }
  .etf-radar-columns { display: none; }
  .etf-radar-row { min-height: 112px; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto; gap: 8px 12px; }
  .etf-target-identity { grid-column: 1; grid-row: 1; }
  .etf-representative { grid-column: 1; grid-row: 2; }
  .etf-radar-change { grid-column: 2; grid-row: 1; text-align: right; }
  .etf-radar-score { grid-column: 2; grid-row: 2; text-align: right; }
  .etf-radar-signal { grid-column: 1; grid-row: 3; }
  .etf-product-count { grid-column: 2; grid-row: 3; justify-self: end; }
}

@media (max-width: 540px) {
  .brand small { display: none; }
  .topbar-status { gap: 8px; }
  .page-content { width: calc(100% - 18px); }
  .panel-heading { padding: 15px 16px; }
  .panel-heading p { display: none; }
  .add-form { padding: 12px 16px; }
  .add-fields { grid-template-columns: 1fr; }
  .dashboard-table-wrap { padding: 0 12px 14px; }
  .attention-queues, .dashboard-filters { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .filter-label { display: none; }
  .etf-metadata-grid { grid-template-columns: 1fr; }
  .confirmation-grid { grid-template-columns: 1fr; min-height: 0; gap: 12px; }
  .score-explanation ul { grid-template-columns: 1fr; }
  .score-explanation { padding: 16px; }
  .toast { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
