:root {
  color-scheme: dark;
  --bg: #080d13;
  --sidebar: #0a1119;
  --surface: #111923;
  --surface-hover: #16212d;
  --surface-selected: #21191a;
  --line: #27323e;
  --line-strong: #3c4957;
  --text: #f0f3f5;
  --text-2: #c1c9d1;
  --muted: #8f9ba8;
  --accent: #ff6848;
  --positive: #ff5f65;
  --negative: #58bf79;
  --warning: #f2a331;
  --blue: #77a9e6;
  --radius: 7px;
  --sidebar-width: 246px;
  --font: "Segoe UI Variable", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { min-width: 1180px; min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--font);
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:not(:disabled) { cursor: pointer; }
button:disabled { cursor: default; opacity: .62; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.positive { color: var(--positive) !important; }
.negative { color: var(--negative) !important; }

.tracking-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.watchlist {
  position: sticky;
  top: 0;
  height: 100vh;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 25px 10px 18px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
}
.watchlist-top { padding: 0 9px; }
.watchlist-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 15px;
}
.watchlist h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.refresh-all {
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #121a23;
  color: var(--text-2);
  padding: 4px 7px;
  font-size: 11px;
  white-space: nowrap;
}
.refresh-all:hover:not(:disabled) { border-color: #704536; color: #ff937c; }
.refresh-all svg { width: 14px; height: 14px; }
.refresh-all.refreshing svg { animation: refresh-spin 850ms linear infinite; }
@keyframes refresh-spin { to { transform: rotate(360deg); } }
.shared-account {
  min-height: 50px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  border: 1px solid #26333f;
  border-radius: 6px;
  background: #0f1720;
  padding: 7px 8px;
}
.shared-account.signed-in { border-color: #31513e; background: #101c17; }
.shared-account-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #192531;
  color: #93a4b4;
}
.shared-account.signed-in .shared-account-icon { background: #183024; color: #67c689; }
.shared-account-icon svg { width: 16px; height: 16px; }
.shared-account-copy { min-width: 0; display: grid; gap: 2px; }
.shared-account-copy strong,
.shared-account-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shared-account-copy strong { color: var(--text-2); font-size: 11px; }
.shared-account-copy small { color: #6f7d8c; font-size: 9px; }
.shared-account > button {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #3a4855;
  border-radius: 4px;
  background: #17212c;
  color: #b4c0cb;
  padding: 3px 7px;
  font-size: 10px;
}
.shared-account > button:hover:not(:disabled) { border-color: #744737; color: #ff9178; }
.shared-account > button svg { width: 12px; height: 12px; }

.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: rgba(3, 7, 11, .8);
  padding: 20px;
  backdrop-filter: blur(5px);
}
.auth-modal {
  position: relative;
  width: min(420px, 100%);
  overflow: hidden;
  border: 1px solid #344250;
  border-top-color: #7b4939;
  border-radius: 9px;
  background: #0d141c;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .48);
  padding: 24px;
}
.auth-modal::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: #ff6848;
}
.auth-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #7f8d9a;
  padding: 6px;
}
.auth-modal-close:hover { border-color: #3d4a57; background: #17212b; color: var(--text); }
.auth-modal-close svg { width: 16px; height: 16px; }
.auth-modal-heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding-right: 30px;
}
.auth-modal-heading > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #4a382f;
  border-radius: 7px;
  background: #211a18;
  color: #d9a180;
}
.auth-modal-heading svg { width: 23px; height: 23px; }
.auth-modal-heading p { margin: 0; color: #c57958; font: 700 9px/1.2 var(--mono); letter-spacing: .14em; }
.auth-modal-heading h2 { margin: 4px 0 0; font-size: 21px; letter-spacing: -.02em; }
.auth-modal-heading small { display: block; margin-top: 4px; color: #7f8d9b; font-size: 11px; }
.auth-service-note {
  display: grid;
  gap: 5px;
  margin-top: 17px;
  border: 1px solid #3b4652;
  border-radius: 5px;
  background: #131c25;
  padding: 10px 12px;
}
.auth-service-note strong { color: #bdc7d0; font-size: 11px; }
.auth-service-note span { color: #7f8d9b; font-size: 10px; line-height: 1.45; }
.auth-service-note a { width: fit-content; color: #e38b66; font-size: 10px; text-decoration: none; }
.auth-form { display: grid; gap: 12px; margin-top: 20px; }
.auth-form label { display: grid; gap: 6px; }
.auth-form label > span { color: #9ba8b5; font-size: 11px; font-weight: 700; }
.auth-form input {
  width: 100%;
  height: 42px;
  border: 1px solid #354352;
  border-radius: 5px;
  background: #111a23;
  color: var(--text);
  padding: 0 11px;
  font-size: 13px;
}
.auth-form input::placeholder { color: #637180; }
.auth-form input:hover { border-color: #4a5968; }
.auth-form-message { margin: -2px 0 0; color: #e8a079; font-size: 11px; line-height: 1.45; }
.auth-submit {
  min-height: 42px;
  border: 1px solid #8a4936;
  border-radius: 5px;
  background: #34201b;
  color: #ff9a81;
  font-weight: 750;
}
.auth-submit:hover:not(:disabled) { border-color: #b75c42; background: #42251d; color: #ffb09d; }
.auth-modal-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 15px;
  color: #758391;
  font-size: 11px;
}
.auth-modal-switch button {
  border: 0;
  background: transparent;
  color: #e38b66;
  padding: 2px;
  font-size: 11px;
}
.auth-session-note { margin: 16px 0 0; border-top: 1px solid #27323d; color: #657381; padding-top: 12px; font-size: 10px; text-align: center; }
.market-tools {
  display: grid;
  gap: 6px;
  margin-bottom: 15px;
}
.market-tool {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111923;
  padding: 8px 9px;
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease;
}
.market-tool:hover { border-color: var(--line-strong); background: var(--surface-hover); }
.market-tool.selected { border-color: #784332; background: var(--surface-selected); }
.market-tool-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #1b2632;
  color: #d0af87;
}
.market-tool.selected .market-tool-icon { background: #32211d; color: #ff896f; }
.market-tool-daily .market-tool-icon { border: 1px solid #514325; background: #211d14; color: #e2bc67; }
.market-tool-daily.selected .market-tool-icon { border-color: #765326; background: #302317; color: #ffd17a; }
.market-tool-icon svg { width: 19px; height: 19px; }
.market-tool strong, .market-tool small { display: block; }
.market-tool strong { font-size: 14px; }
.market-tool small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.market-tool-arrow { color: var(--muted); font: 23px/1 var(--font); }

.stock-search {
  position: relative;
  display: block;
}
.stock-search svg {
  position: absolute;
  top: 50%;
  left: 11px;
  width: 17px;
  height: 17px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}
.stock-search input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #141b24;
  color: var(--text);
  padding: 0 12px 0 37px;
  font-size: 13px;
}
.stock-search input::placeholder { color: #9ca6b1; opacity: 1; }
.stock-search input:hover { border-color: var(--line-strong); }
.watchlist-label {
  margin: 14px 9px 5px;
  color: #697887;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}
.watchlist-items {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  scrollbar-color: #344150 transparent;
  scrollbar-width: thin;
}
.watchlist-item {
  position: relative;
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 27px;
  align-items: center;
  gap: 2px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  padding: 3px 5px 3px 8px;
  text-align: left;
  transition: background 150ms ease, border-color 150ms ease;
}
.watchlist-item::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: transparent;
}
.watchlist-item:hover { background: var(--surface); border-color: var(--line); }
.watchlist-item.selected { background: var(--surface-selected); border-color: #44312f; }
.watchlist-item.selected::before { background: var(--accent); }
.watchlist-select {
  min-width: 0;
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 25px;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  padding: 6px 4px 6px 9px;
  text-align: left;
}
.watchlist-manage {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #738190;
  padding: 5px;
  opacity: 0;
  transition: opacity 140ms ease, border-color 140ms ease, background 140ms ease, color 140ms ease;
}
.watchlist-item:hover .watchlist-manage,
.watchlist-manage:focus-visible { opacity: 1; }
.watchlist-all-filter { grid-template-columns: minmax(0, 1fr); }
.watchlist-all-filter .stock-identity small { white-space: normal; }
.watchlist-manage:hover { border-color: #4a5663; background: #18222d; color: var(--text); }
.watchlist-manage.remove:hover { border-color: #5c3338; background: #2a191d; color: #ff8187; }
.watchlist-manage.add { opacity: 1; color: #d09b74; }
.watchlist-manage svg { width: 15px; height: 15px; }
.stock-identity { min-width: 0; }
.stock-identity strong, .stock-identity small { display: block; }
.stock-identity strong {
  overflow: hidden;
  font-size: 15px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stock-identity small {
  margin-top: 3px;
  color: var(--muted);
  font: 12px/1 var(--mono);
}
.stock-change { font: 700 13px/1 var(--mono); }
.stock-change.unavailable {
  max-width: 54px;
  overflow: hidden;
  color: var(--muted);
  font: 10px/1.2 var(--font);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stock-unread, .board-unread {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ef3744;
  color: #fff;
  font: 700 12px/1 var(--mono);
}
.stock-unread { width: 24px; height: 24px; }
.stock-unread.zero, .board-unread.zero { background: #202a35; color: var(--muted); }
.watchlist-empty {
  min-height: 110px;
  display: grid;
  place-content: center;
  gap: 4px;
  color: var(--muted);
  text-align: center;
}
.watchlist-empty strong { color: var(--text-2); }
.search-result-note {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}
.refresh-notice {
  margin: 8px 9px 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #101821;
  color: var(--muted);
  padding: 7px 8px;
  font-size: 10px;
  line-height: 1.4;
}
.last-updated {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding: 10px 10px 0;
  color: var(--muted);
  font-size: 11px;
}
.last-updated svg { width: 16px; height: 16px; }
.last-updated > span { min-width: 0; display: grid; gap: 2px; }
.last-updated b { color: #9ba8b5; font-size: 11px; font-weight: 600; }
.last-updated small { color: #6f7d8c; font-size: 10px; }

.tracking-main {
  min-width: 0;
  padding: 27px 28px 20px;
}
.position-header {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
  column-gap: 34px;
  row-gap: 14px;
  min-height: 128px;
  padding-bottom: 20px;
}
.quote-block { min-width: 0; }
.quote-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.quote-title h2 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -.025em;
}
.quote-title > span { color: var(--text-2); font: 19px/1 var(--mono); }
.quote-title .market-badge {
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid #4a3429;
  border-radius: 4px;
  background: #261b16;
  color: #d58a53;
  font: 700 11px/1 var(--font);
}
.market-badge i { width: 5px; height: 5px; border-radius: 50%; background: #d58a53; }
.quote-title .market-badge.static-data { border-color: #354453; background: #18222c; color: #91a6ba; }
.market-badge.static-data i { background: #7891a7; }
.header-watchlist-action {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #3b4856;
  border-radius: 4px;
  background: #151e28;
  color: #9eacba;
  padding: 3px 7px;
  font-size: 11px;
}
.header-watchlist-action:hover { border-color: #77503e; color: #ff957d; }
.header-watchlist-action.remove:hover { border-color: #5c3338; background: #29191c; color: #ff8187; }
.header-watchlist-action svg { width: 13px; height: 13px; }
.quote-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 12px;
  font-family: var(--mono);
}
.quote-price strong { font-size: 39px; line-height: 1; letter-spacing: -.035em; }
.quote-price span { font-size: 17px; font-weight: 700; }
.quote-price .quote-unavailable { color: var(--muted); font: 12px/1 var(--font); }
.position-return { margin-top: 8px; color: var(--muted); font-size: 12px; }
.position-return strong { margin-left: 5px; font-family: var(--mono); }
.quote-updated-at {
  margin-left: 13px;
  border-left: 1px solid #34404d;
  color: #788695;
  padding-left: 13px;
  font: 10px/1.2 var(--font);
}
.position-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(82px, 1fr));
  gap: 8px 17px;
  align-content: start;
  margin: 13px 0 0;
}
.position-metrics > div { min-width: 0; }
.position-metrics dt { margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.position-metrics dd { margin: 0; color: var(--text); font-size: 15px; font-weight: 700; }
.editable-metric { position: relative; }
.editable-metric:not(.editing) { padding-right: 23px; }
.edit-button {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  padding: 3px;
}
.editable-metric > .edit-button { position: absolute; right: 0; bottom: 0; }
.edit-button:hover { background: #202a35; color: var(--accent); }
.edit-button svg { width: 15px; height: 15px; }
.editable-metric input, .buy-logic-content textarea {
  width: 100%;
  border: 1px solid #536170;
  border-radius: 4px;
  background: #0d141c;
  color: var(--text);
  padding: 5px 7px;
}
.editable-metric input { height: 32px; font: 14px/1 var(--mono); }
.buy-logic-content textarea { min-height: 54px; resize: vertical; font-size: 14px; line-height: 1.5; }
.edit-actions { display: flex; gap: 6px; margin-top: 6px; }
.edit-actions button {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #18222d;
  padding: 3px 9px;
  font-size: 11px;
}
.edit-actions button:first-child { border-color: #764432; background: #2a1b18; color: #ff947d; }
.edit-error { display: block; margin-top: 4px; color: #ff8d89; font-size: 11px; }
.account-save-state {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6f7d8e;
  font-size: 11px;
}
.account-save-state span { width: 6px; height: 6px; border-radius: 50%; background: #6f7d8e; }
.account-save-state span.signed-in { background: #58bf79; }
.buy-logic-row {
  grid-column: 1 / -1;
  min-width: 0;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  border-top: 1px solid #202a34;
  padding-top: 13px;
}
.buy-logic-title { display: grid; gap: 3px; }
.buy-logic-title strong { font-size: 13px; }
.buy-logic-title small { color: var(--muted); font-size: 10px; }
.buy-logic-content { min-width: 0; }
.buy-logic-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.buy-logic-list li {
  min-width: 0;
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}
.buy-logic-list li > span {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border: 1px solid #384452;
  border-radius: 4px;
  background: #151e28;
  color: #92a1b0;
  font: 700 10px/1 var(--mono);
}
.buy-logic-list p {
  margin: 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.5;
}
.buy-logic-tools { display: flex; align-items: center; gap: 5px; }
.add-reason-button {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid #704536;
  border-radius: 4px;
  background: #2a1d1a;
  color: #ff937c;
  padding: 0;
}
.add-reason-button:hover { border-color: var(--accent); background: #35201d; }
.add-reason-button span { font: 500 20px/1 var(--font); transform: translateY(-1px); }
.buy-logic-row.editing, .buy-logic-row.adding { grid-template-columns: 100px minmax(0, 1fr); }
.buy-logic-composer {
  margin-top: 9px;
  border-left: 2px solid #704536;
  padding-left: 12px;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.info-board {
  min-width: 0;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #111923 0%, #101720 100%);
  padding: 12px;
  text-align: left;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.info-board:hover { border-color: var(--line-strong); background: #151f2a; transform: translateY(-1px); }
.info-board.selected { border-color: var(--accent); background: #21191a; box-shadow: inset 0 0 0 1px rgba(255, 104, 72, .08); }
.board-primary, .board-secondary { grid-column: span 1; }
.board-line {
  min-width: 0;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}
.board-icon { width: 26px; height: 26px; display: grid; place-items: center; color: #d0af87; }
.info-board.selected .board-icon { color: #ff866a; }
.board-icon svg { width: 23px; height: 23px; stroke-width: 1.7; }
.board-title { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
.board-title strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.board-title em {
  flex: 0 0 auto;
  border: 1px solid #3b4652;
  border-radius: 4px;
  background: #1b232d;
  color: #a7b2bd;
  padding: 2px 4px;
  font-size: 9px;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.board-unread { width: 23px; height: 23px; font-size: 10px; }
.board-meta {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding-left: 0;
  color: #748190;
  font-size: 10px;
}
.board-meta time { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-risk-summary { min-width: 0; display: flex; align-items: center; flex-wrap: nowrap; gap: 4px; }
.board-risk-count {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.board-risk-count span { font-size: 9px; font-weight: 600; opacity: .85; }
.board-risk-count.risk-高 { border-color: #572d32; background: #321b20; color: #ff777b; }
.board-risk-count.risk-中 { border-color: #35414e; background: #202a35; color: #b1bcc7; }
.board-risk-count.risk-低 { border-color: #274333; background: #172a20; color: #58bf79; }

.message-header {
  min-height: 64px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 0 3px 9px;
  border-bottom: 1px solid var(--line);
}
.message-header > div { min-width: 0; display: flex; align-items: baseline; gap: 7px; }
.message-header strong { font-size: 18px; }
.message-header span { color: var(--muted); font-size: 14px; }
.message-header-title button {
  margin-left: 9px;
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 2px;
  font-size: 12px;
}
.message-header-tools { justify-content: flex-end; }
.message-header-tools .dynamic-update-stamp {
  border-right: 1px solid #34404d;
  padding-right: 12px;
  color: #748292;
  font: 10px/1.2 var(--font);
  white-space: nowrap;
}
.mark-read {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--text-2);
  padding: 4px 0;
  font-size: 13px;
  white-space: nowrap;
}
.mark-read:hover:not(:disabled) { color: var(--accent); }
.mark-read svg { width: 18px; height: 18px; }

.message-filters {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 12px 3px;
  border-bottom: 1px solid #202a34;
}
.filter-group {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-group > span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.filter-options { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.filter-options button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #121a23;
  color: var(--text-2);
  padding: 4px 9px;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}
.filter-options button:hover { border-color: var(--line-strong); background: #18232f; }
.filter-options button.selected {
  border-color: #704536;
  background: #2a1d1a;
  color: #ff937c;
  box-shadow: inset 0 0 0 1px rgba(255, 147, 124, .1);
}
.filter-options button[data-filter-value="all"],
.filter-options button[data-filter-value="all"]:hover,
.filter-options button[data-filter-value="all"].selected {
  border-color: #46515e;
  background: #202833;
  color: #f3f6f8;
  box-shadow: none;
}
.filter-options button[data-filter-value="all"].selected {
  border-color: #647180;
  background: #28323d;
  box-shadow: inset 0 0 0 1px rgba(243, 246, 248, .08);
}
.filter-group[data-filter-group="sentiment"] button[data-filter-value="利空"] {
  border-color: #274333;
  background: #142a21;
  color: #58bf79;
}
.filter-group[data-filter-group="sentiment"] button[data-filter-value="利好"] {
  border-color: #512d34;
  background: #301b20;
  color: #ff7f86;
}
.filter-group[data-filter-group="sentiment"] button[data-filter-value="中性"] {
  border-color: #35414e;
  background: #202a35;
  color: #b1bcc7;
}
.filter-options button.selected:not([data-filter-value="all"]) {
  filter: brightness(1.15);
  box-shadow: inset 0 0 0 1px currentColor;
}
.clear-filters {
  position: absolute;
  top: 16px;
  right: 3px;
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 5px;
  font-size: 12px;
}

.message-timeline { min-width: 0; }
.sentiment-columns {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 12px;
}
.sentiment-columns-1 { grid-template-columns: minmax(0, 1fr); }
.sentiment-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sentiment-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sentiment-column {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0e151d;
}
.sentiment-column-header {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 10px 13px;
}
.sentiment-column-header strong { font-size: 15px; }
.sentiment-column-header span {
  min-width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 1px solid #35414e;
  border-radius: 4px;
  background: #202a35;
  color: #b1bcc7;
  font: 700 11px/1 var(--mono);
}
.sentiment-column-positive .sentiment-column-header { box-shadow: inset 3px 0 0 #ff7f86; }
.sentiment-column-negative .sentiment-column-header { box-shadow: inset 3px 0 0 #58bf79; }
.sentiment-column-neutral .sentiment-column-header { box-shadow: inset 3px 0 0 #8794a2; }
.sentiment-column-positive .sentiment-column-header strong { color: #ff7f86; }
.sentiment-column-negative .sentiment-column-header strong { color: #58bf79; }
.sentiment-column-neutral .sentiment-column-header strong { color: #b1bcc7; }
.sentiment-column > .message-timeline { padding: 0 10px; }
.sentiment-column .message-row {
  display: grid;
  grid-template-columns: 102px 18px minmax(0, 1fr);
}
.sentiment-column .message-time-cell {
  padding: 14px 5px 12px 0;
  font-size: 10px;
}
.sentiment-column .timeline-track { display: block; }
.sentiment-column .timeline-track::before {
  top: 18px;
  left: 4px;
  width: 7px;
  height: 7px;
}
.sentiment-column .timeline-track::after {
  top: 23px;
  left: 7px;
}
.sentiment-column .message-body { padding: 11px 0 12px; }
.sentiment-column .message-main { flex-wrap: wrap; gap: 7px; }
.sentiment-column .message-heading { align-items: flex-start; gap: 6px; }
.sentiment-column .message-heading > strong {
  max-width: 100%;
  flex-basis: auto;
  font-size: 14px;
  white-space: normal;
}
.sentiment-column .message-badges { gap: 5px; }
.sentiment-column .message-source-link { margin-left: auto; font-size: 11px; }
.sentiment-column .timeline-empty { min-height: 126px; padding: 24px 12px; }
.message-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 126px 26px minmax(0, 1fr);
  border-bottom: 1px solid #202a34;
}
.message-row:last-child { border-bottom: 0; }
.message-time-cell {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  padding: 19px 8px 16px 0;
  color: var(--muted);
  font: 13px/1.4 var(--mono);
  white-space: nowrap;
}
.message-time-cell time { min-width: 0; }
.message-read-check {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #465462;
  border-radius: 4px;
  background: #111923;
  color: transparent;
  padding: 0;
}
.message-read-check:hover { border-color: #779eca; background: #172331; }
.message-read-check.checked {
  border-color: #496682;
  background: #1a2a39;
  color: #8eb8e1;
}
.message-read-check svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.timeline-track { position: relative; display: block; }
.timeline-track::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 9px;
  z-index: 1;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #6f7d8e;
}
.message-row.unread .timeline-track::before { background: #ff5f65; }
.timeline-track::after {
  content: "";
  position: absolute;
  top: 29px;
  bottom: -1px;
  left: 13px;
  width: 1px;
  background: #2f3945;
}
.message-row:last-child .timeline-track::after { display: none; }
.message-body { min-width: 0; padding: 12px 0 13px; }
.message-main {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.message-heading {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px 10px;
}
.message-heading > strong {
  flex: 1 1 240px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.4;
  text-wrap: pretty;
  white-space: normal;
}
.message-row.read .message-heading > strong { color: var(--text-2); }
.message-badges { flex: 0 0 auto; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.message-read-icon {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #496682;
  border-radius: 4px;
  background: #1a2a39;
  color: #8eb8e1;
}
.message-read-icon svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.message-tag {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.message-stock-link {
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #334657;
  border-radius: 4px;
  background: #172431;
  color: #b9d2e5;
  padding: 5px 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.message-stock-link b { color: #e4f1fb; font-size: 14px; font-weight: 800; }
.message-stock-link span { color: #71889b; font-family: var(--mono); font-size: 10px; font-weight: 500; }
.message-stock-link:hover { border-color: #54718a; background: #1b2d3d; color: #e1f0fb; }
.evidence-事实 { border-color: #24394f; background: #172432; color: var(--blue); }
.evidence-推断 { border-color: #463a24; background: #2b2417; color: var(--warning); }
.evidence-传闻 { border-color: #512d34; background: #301b20; color: #ff7f86; }
.sentiment-利好 { border-color: #512d34; background: #301b20; color: #ff7f86; }
.sentiment-利空 { border-color: #274333; background: #142a21; color: #58bf79; }
.sentiment-中性 { border-color: #35414e; background: #202a35; color: #b1bcc7; }
.event-kind-calendar { border-color: #2d4560; background: #172638; color: #83b8ef; }
.event-kind-reminder { border-color: #554529; background: #2c2518; color: #f1b45a; }
.event-kind-block-trade { border-color: #493b62; background: #261f36; color: #b9a1ec; }
.message-source-link {
  flex: 0 0 auto;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-top: 3px;
  color: #8aadd4;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}
.message-source-link:hover { color: #b3d0ed; text-decoration: underline; }
.message-source-link svg { width: 13px; height: 13px; }
.timeline-empty {
  min-height: 170px;
  display: grid;
  place-content: center;
  gap: 4px;
  color: var(--muted);
  text-align: center;
}
.timeline-empty strong { color: var(--text-2); font-size: 15px; }

.global-view { min-width: 0; }
.global-header {
  min-height: 130px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 6px 4px 22px;
}
.global-title-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #554033;
  border-radius: 9px;
  background: #201a18;
  color: #d6b28a;
}
.global-title-icon svg { width: 27px; height: 27px; }
.global-header p { margin: 0 0 3px; color: #d18d65; font-size: 11px; font-weight: 700; letter-spacing: .07em; }
.global-header h2 { margin: 0; font-size: 27px; letter-spacing: -.02em; }
.global-header > div:nth-child(2) > span { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; }
.demo-source {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #111923;
  color: var(--muted);
  padding: 7px 10px;
  font-size: 11px;
}
.daily-digest-summary {
  min-width: 260px;
  display: grid;
  grid-template-columns: repeat(3, minmax(62px, 1fr));
  gap: 6px;
}
.daily-digest-summary > span {
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #101923;
  color: var(--muted);
  font-size: 10px;
}
.daily-digest-summary b { margin-bottom: 3px; font: 700 17px/1 var(--mono); }
.daily-digest-summary .positive b { color: var(--positive); }
.daily-digest-summary .negative b { color: var(--negative); }
.daily-digest-summary .neutral b { color: #b1bcc7; }
.daily-digest-summary small {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  text-align: right;
  font-size: 10px;
}
.daily-digest-summary small b {
  margin: 0;
  color: #cbd6df;
  font: 700 10px/1.2 var(--mono);
  white-space: nowrap;
}
.daily-digest-summary small span { min-width: 0; }
.daily-digest-section { min-width: 0; padding-top: 16px; }
.daily-digest-section + .daily-digest-section {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.daily-digest-section-header {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.daily-digest-section-header > div {
  min-width: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 10px;
}
.daily-digest-section-header strong { color: var(--text); font-size: 17px; }
.daily-digest-section-header span { color: var(--muted); font-size: 12px; }
.daily-digest-section-header > b {
  flex: 0 0 auto;
  border: 1px solid #35414e;
  border-radius: 4px;
  background: #17212c;
  color: #c1ccd5;
  padding: 5px 8px;
  font: 700 11px/1 var(--mono);
}
.daily-digest-section-catch-up .daily-digest-section-header strong { color: #d5b47a; }
.daily-stock-filter-row {
  flex: 1 0 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
  align-items: start;
  gap: 10px 14px;
  padding-right: 72px;
}
.daily-stock-search {
  min-width: 0;
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #111923;
  padding: 0 10px;
}
.daily-stock-search:focus-within { border-color: #536171; box-shadow: inset 0 0 0 1px rgba(169, 184, 198, .08); }
.daily-stock-search svg { flex: 0 0 auto; width: 15px; height: 15px; color: var(--muted); }
.daily-stock-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}
.daily-stock-search input::placeholder { color: #6f7d8c; }
.daily-stock-filter-chips { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.daily-stock-filter {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #121a23;
  color: var(--text-2);
  padding: 5px 9px;
  white-space: nowrap;
}
.daily-stock-filter:hover { border-color: var(--line-strong); background: #18232f; }
.daily-stock-filter.selected { border-color: #76503e; background: #2a201d; color: #ff9a7f; }
.daily-stock-filter b { font-size: 12px; font-weight: 650; }
.daily-stock-filter span { color: var(--muted); font: 10px/1 var(--mono); }
.daily-stock-groups { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 12px; }
.daily-stock-group {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0e151e;
}
.daily-stock-group-header {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  background: #111a24;
  padding: 11px 14px;
}
.daily-stock-group-title { min-width: 0; display: flex; align-items: baseline; gap: 9px; }
.daily-stock-group-title h4 { margin: 0; color: var(--text); font-size: 18px; line-height: 1.2; }
.daily-stock-group-title span { color: #8da0b3; font: 700 11px/1 var(--mono); }
.daily-stock-group-counts { min-width: 0; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.daily-stock-group-counts b,
.daily-stock-group-counts span { border-radius: 3px; padding: 4px 6px; font: 700 10px/1 var(--mono); }
.daily-stock-group-counts b { border: 1px solid #344151; background: #18232f; color: #c8d2dc; }
.daily-stock-group-counts .positive { background: rgba(255, 82, 92, .12); color: var(--positive); }
.daily-stock-group-counts .negative { background: rgba(45, 174, 93, .12); color: var(--negative); }
.daily-stock-group-counts .neutral { background: #202a35; color: #b1bcc7; }
.daily-stock-group .message-timeline { border: 0; border-radius: 0; background: transparent; }
.daily-stock-group .message-row:last-child { border-bottom: 0; }
.calendar-month-board {
  min-width: 0;
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0c131b;
}
.calendar-month-heading {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: #111a24;
  padding: 13px 18px;
}
.calendar-month-heading > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.calendar-month-heading > div:first-child span { color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.calendar-month-heading strong { color: var(--text); font: 700 22px/1.1 var(--mono); }
.calendar-month-legend { display: flex; align-items: center; gap: 14px; }
.calendar-month-legend span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.calendar-month-legend i { width: 7px; height: 7px; border-radius: 50%; background: #5d6d7e; }
.calendar-month-legend i.unread { background: var(--positive); box-shadow: 0 0 0 3px rgba(255, 82, 92, .1); }
.calendar-weekdays,
.calendar-month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-weekdays {
  border-bottom: 1px solid var(--line);
  background: #0f1720;
}
.calendar-weekdays span {
  border-right: 1px solid rgba(42, 54, 66, .7);
  color: #8391a0;
  padding: 8px 10px;
  font: 700 10px/1 var(--mono);
  text-align: center;
}
.calendar-weekdays span:last-child { border-right: 0; }
.calendar-month-grid { gap: 1px; background: var(--line); }
.calendar-day {
  min-width: 0;
  min-height: 152px;
  background: #0f1720;
  padding: 10px;
}
.calendar-day-outside { background: #0a1017; }
.calendar-day.past { background: #0c131b; }
.calendar-day.today { position: relative; background: #121c27; box-shadow: inset 0 0 0 1px rgba(255, 122, 90, .62); }
.calendar-day-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.calendar-day-header time { display: inline-flex; align-items: baseline; gap: 5px; color: #a9b7c4; font-family: var(--mono); }
.calendar-day-header time b { color: var(--text); font-size: 16px; }
.calendar-day-header time span { display: none; color: var(--muted); font-size: 10px; }
.calendar-day.past .calendar-day-header time b { color: #596675; }
.calendar-today-label {
  border: 1px solid rgba(255, 122, 90, .4);
  border-radius: 3px;
  background: rgba(255, 100, 73, .1);
  color: #ff987c;
  padding: 3px 5px;
  font: 700 9px/1 var(--mono);
}
.calendar-day-events { min-width: 0; display: grid; gap: 7px; margin-top: 9px; }
.calendar-day-empty-state { color: #3d4855; font: 12px/1 var(--mono); }
.calendar-event {
  min-width: 0;
  border: 1px solid #293746;
  border-left: 2px solid #5d6d7e;
  border-radius: 4px;
  background: #131e29;
  padding: 7px 8px 8px;
  transition: border-color .16s ease, background-color .16s ease;
}
.calendar-event.unread { border-left-color: var(--positive); }
.calendar-event:hover { border-color: #455668; background: #172431; }
.calendar-event-meta { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.calendar-event-stock {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--text-2);
  padding: 0;
  text-align: left;
}
.calendar-event-stock:hover b { color: #ff9a7f; }
.calendar-event-stock i { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: #5d6d7e; }
.calendar-event.unread .calendar-event-stock i { background: var(--positive); }
.calendar-event-stock b { min-width: 0; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event-stock span { flex: 0 0 auto; color: #718195; font: 700 9px/1 var(--mono); }
.calendar-event-read {
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 1px solid #344657;
  border-radius: 4px;
  background: #111a23;
  color: transparent;
  padding: 0;
}
.calendar-event-read svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.calendar-event-read:hover { border-color: #65809a; }
.calendar-event-read.checked { border-color: #416782; background: #183047; color: #9ecbf1; }
.calendar-event-title {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: #d8e1e8;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.market-index-header { border-bottom: 1px solid var(--line); }
.market-index-quote { display: flex; flex-direction: column; align-items: end; font-family: var(--mono); }
.market-index-quote strong { font-size: 31px; line-height: 1.1; }
.market-index-quote span { margin-top: 6px; font-size: 13px; font-weight: 700; }
.technical-conclusion {
  min-height: 70px;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}
.technical-conclusion span { color: var(--muted); font-size: 12px; }
.technical-conclusion strong { color: var(--text-2); font-size: 14px; font-weight: 600; }
.market-chart-panel {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0e151e;
  padding: 15px 18px 8px;
}
.panel-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.panel-heading strong { font-size: 16px; }
.panel-heading span { color: var(--muted); font-size: 11px; }
.market-chart { width: 100%; height: 218px; margin-top: 4px; }
.market-chart svg { width: 100%; height: 100%; overflow: visible; }
.market-chart text { fill: #748190; stroke: none; font: 11px var(--mono); }
.chart-grid { fill: none; stroke: #24303b; stroke-width: 1; stroke-dasharray: 3 5; }
.chart-line { fill: none; stroke: var(--positive); stroke-width: 2.5; }
.chart-point { fill: #0e151e; stroke: var(--positive); stroke-width: 2; }
.indicator-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.indicator-card {
  min-width: 0;
  min-height: 105px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px 17px;
}
.indicator-card > span { color: var(--muted); font-size: 12px; }
.indicator-card strong { margin-top: 5px; font-size: 18px; }
.indicator-card small { margin-top: 5px; overflow: hidden; color: var(--text-2); text-overflow: ellipsis; white-space: nowrap; }
.indicator-positive { color: var(--positive); }
.indicator-warning { color: var(--warning); }
.indicator-neutral { color: #aeb9c4; }

@media (max-width: 1280px) {
  :root { --sidebar-width: 232px; }
  .refresh-all span { display: none; }
  .refresh-all { width: 30px; justify-content: center; padding-right: 0; padding-left: 0; }
  .tracking-main { padding-right: 20px; padding-left: 20px; }
  .position-header { grid-template-columns: minmax(260px, 290px) minmax(0, 1fr); column-gap: 22px; row-gap: 14px; }
  .position-metrics { grid-template-columns: repeat(4, minmax(74px, 1fr)); gap: 8px 12px; }
  .info-board { padding-right: 10px; padding-left: 10px; }
  .board-line { gap: 7px; }
  .board-line strong { font-size: 13px; }
  .board-meta { padding-left: 0; }
  .message-row { grid-template-columns: 121px 24px minmax(0, 1fr); }
  .message-heading { gap: 10px; }
  .message-badges { gap: 5px; }
  .message-tag { padding-right: 6px; padding-left: 6px; font-size: 11px; }
}

@media (max-width: 980px) {
  html { min-width: 0; }
  .tracking-layout { display: block; }
  .watchlist { position: static; width: 100%; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .market-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .watchlist-items { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); }
  .watchlist-manage { opacity: 1; }
  .last-updated { margin-top: 10px; }
  .position-header { grid-template-columns: 1fr; gap: 8px; }
  .position-metrics { grid-template-columns: repeat(4, minmax(90px, 1fr)); }
  .board-grid { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; }
  .sentiment-columns { grid-template-columns: 1fr; }
  .daily-digest-header { grid-template-columns: 50px minmax(0, 1fr); }
  .daily-digest-summary { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 620px) {
  .watchlist { padding-top: 18px; }
  .market-tools { grid-template-columns: 1fr; }
  .watchlist-items { grid-template-columns: 1fr; }
  .position-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .position-return { display: flex; flex-wrap: wrap; gap: 5px; }
  .quote-updated-at { width: 100%; margin: 2px 0 0; border-left: 0; padding-left: 0; }
  .message-header { align-items: start; flex-direction: column; gap: 7px; padding-top: 16px; }
  .message-header-title { flex-wrap: wrap; }
  .message-header-tools {
    width: 100%;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center !important;
    gap: 8px !important;
  }
  .message-header-tools .dynamic-update-stamp {
    min-width: 0;
    white-space: normal;
  }
  .daily-digest-summary small { align-items: flex-start; flex-direction: column; }
  .daily-digest-section-header { align-items: flex-start; }
  .daily-stock-filter-row { grid-template-columns: minmax(0, 1fr); padding-right: 0; }
  .daily-stock-filter-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
  .daily-stock-filter { flex: 0 0 auto; }
  .daily-stock-group-header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .daily-stock-group-counts { justify-content: flex-start; }
  .calendar-month-board { margin-top: 14px; }
  .calendar-month-heading { min-height: 62px; padding: 11px 13px; }
  .calendar-month-heading strong { font-size: 19px; }
  .calendar-month-legend { gap: 9px; }
  .calendar-weekdays { display: none; }
  .calendar-month-grid { display: block; background: transparent; }
  .calendar-day {
    min-height: 0;
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 10px;
    border-bottom: 1px solid var(--line);
    padding: 12px;
  }
  .calendar-day:last-child { border-bottom: 0; }
  .calendar-day-outside,
  .calendar-day:not(.has-events):not(.today) { display: none; }
  .calendar-day.today { box-shadow: inset 2px 0 0 #ff7a5a; }
  .calendar-day-header { align-items: flex-start; justify-content: flex-start; flex-direction: column; gap: 5px; }
  .calendar-day-header time { align-items: flex-start; flex-direction: column; gap: 3px; }
  .calendar-day-header time b { font-size: 23px; line-height: 1; }
  .calendar-day-header time span { display: block; }
  .calendar-day-events { margin-top: 0; }
  .calendar-event { padding: 9px 10px; }
  .calendar-event-title { -webkit-line-clamp: 4; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Finance control deck visual system — reference-led 2026-08-08 */
:root {
  --canvas: #e9e9e6;
  --bg: #17191e;
  --sidebar: #2b2d33;
  --surface: #303239;
  --surface-hover: #383a41;
  --surface-selected: var(--accent);
  --line: #3a3d44;
  --line-strong: #54575f;
  --text: #f7f7f3;
  --text-2: #d5d6d2;
  --muted: #999ba2;
  --accent: #7c95be;
  --accent-ink: #171a16;
  --refresh-accent: #a8f36f;
  --refresh-accent-hover: #b7fa82;
  --positive: #ff626d;
  --negative: #91e76d;
  --warning: #f3b04a;
  --blue: #9dc4ef;
  --radius: 18px;
  --sidebar-width: 260px;
  --font: "Aptos", "Segoe UI Variable", "Microsoft YaHei UI", sans-serif;
  --display: "Aptos Display", "Segoe UI Variable Display", "Microsoft YaHei UI", sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

html {
  min-width: 1180px;
  background: var(--bg);
}

body {
  min-height: 100vh;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  letter-spacing: -.01em;
}

#app {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
}

.tracking-layout {
  grid-template-areas:
    "workspace workspace"
    "watchlist main";
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  background: var(--bg);
  padding: 18px;
  box-shadow: none;
}

.workspace-nav {
  grid-area: workspace;
  min-width: 0;
  min-height: 64px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, .035);
  border-radius: 22px;
  background: #2b2d33;
  padding: 9px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.workspace-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 15px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0;
  box-shadow: 0 8px 18px rgba(124, 149, 190, .14);
}
.workspace-mark:hover { transform: translateY(-1px); }
.workspace-mark:active { transform: translateY(0); }
.workspace-mark svg { width: 21px; height: 21px; stroke-width: 2; }

.workspace-tabs {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}
.workspace-tabs::-webkit-scrollbar { display: none; }

.workspace-tab {
  flex: 0 0 auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #32343a;
  color: #c6c7c5;
  padding: 0 14px;
  font-size: 12px;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.workspace-tab svg { width: 16px; height: 16px; color: #a9abb0; }
.workspace-tab:hover { background: #3a3c43; color: var(--text); transform: translateY(-1px); }
.workspace-tab.selected {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 5px 14px rgba(124, 149, 190, .14);
}
.workspace-tab.selected svg { color: var(--accent-ink); }

.workspace-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.workspace-account {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: #202126;
  color: #f4f4f1;
}
.workspace-account svg { width: 20px; height: 20px; }
.workspace-refresh {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--refresh-accent);
  color: var(--accent-ink);
  padding: 0 18px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(168, 243, 111, .13);
}
.workspace-refresh:hover:not(:disabled) { background: var(--refresh-accent-hover); transform: translateY(-1px); }
.workspace-refresh svg { width: 16px; height: 16px; }
.workspace-refresh.refreshing svg { animation: refresh-spin 850ms linear infinite; }

.watchlist {
  grid-area: watchlist;
  top: 18px;
  height: calc(100vh - 156px);
  min-height: 640px;
  border: 0;
  border-radius: 24px;
  background: var(--sidebar);
  padding: 18px 12px 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}
.watchlist-top { padding: 0 4px; }
.watchlist-heading { margin-bottom: 12px; }
.watchlist h1 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -.045em;
}
.refresh-all { display: none; }
.market-tools { display: none; }

.shared-account {
  min-height: 56px;
  margin-bottom: 12px;
  border: 1px solid #404249;
  border-radius: 16px;
  background: #32343a;
  padding: 8px 9px;
}
.shared-account.signed-in {
  border-color: rgba(124, 149, 190, .3);
  background: #30372f;
}
.shared-account-icon {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: #3b3d44;
  color: #c9cbc9;
}
.shared-account.signed-in .shared-account-icon { background: var(--accent); color: var(--accent-ink); }
.shared-account-copy strong { color: #f2f2ef; font-size: 11px; }
.shared-account-copy small { color: #92949a; font-size: 9px; }
.shared-account > button {
  border: 0;
  border-radius: 999px;
  background: #44464d;
  color: #f1f1ee;
  padding: 5px 10px;
}
.shared-account > button:hover { background: #53555d; }

.stock-search input {
  height: 43px;
  border-color: #41444b;
  border-radius: 14px;
  background: #34363c;
  color: #f5f5f2;
  padding-left: 39px;
}
.stock-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 149, 190, .08); }
.stock-search input::placeholder { color: #a0a2a7; }
.watchlist-label { margin: 14px 7px 7px; color: #8f9198; }
.watchlist-items { gap: 7px; padding-right: 2px; scrollbar-color: #555860 transparent; }
.watchlist-item {
  min-height: 64px;
  border: 1px solid transparent;
  border-radius: 17px;
  background: #303239;
  padding: 2px 5px 2px 7px;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.watchlist-item::before { display: none; }
.watchlist-item:hover { border-color: #4a4d55; background: #383a41; transform: translateY(-1px); }
.watchlist-item.selected {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 8px 22px rgba(124, 149, 190, .12);
}
.watchlist-item.selected .stock-identity strong { color: var(--accent-ink); }
.watchlist-item.selected .stock-identity small { color: #43513c; }
.watchlist-item.selected .watchlist-manage { color: #44513d; }
.watchlist-item.selected .negative { color: #195d30 !important; }
.watchlist-select { min-height: 58px; }
.stock-identity strong { font-size: 14px; }
.stock-identity small { color: #8d9097; }
.stock-unread {
  min-width: 25px;
  height: 25px;
  border: 0;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
}
.stock-unread.zero { background: #41434a; color: #a9abb0; }
.watchlist-manage { border-radius: 9px; }
.watchlist-manage:hover { background: #474951; }
.last-updated {
  margin: 12px 6px 0;
  color: #a2a5aa;
}
.refresh-notice {
  margin: 10px 5px 0;
  border-color: #454850;
  border-radius: 12px;
  background: #303239;
}

.tracking-main {
  grid-area: main;
  min-width: 0;
  padding: 0 2px 20px 0;
}

.position-header {
  grid-template-columns: minmax(300px, .9fr) minmax(0, 1.35fr);
  gap: 14px;
  min-height: 0;
  border: 0;
  border-radius: 24px;
  background: #2c2e34;
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}
.quote-block {
  min-width: 0;
  min-height: 150px;
  border-radius: 21px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  padding: 16px 18px;
  box-shadow: 0 9px 24px rgba(0, 0, 0, .13);
}
.quote-title { gap: 9px; }
.quote-title h2 { color: var(--accent-ink); font-family: var(--display); font-size: 25px; letter-spacing: -.045em; }
.quote-title > span:not(.market-badge) { color: #44513d; }
.market-badge {
  border: 0;
  border-radius: 999px;
  background: #e7f9d9;
  color: #3a5d27;
  padding: 4px 9px;
}
.market-badge i { background: #6dbc3f; }
.header-watchlist-action {
  border-color: rgba(23, 26, 22, .35);
  border-radius: 999px;
  background: rgba(23, 26, 22, .08);
  color: var(--accent-ink);
}
.header-watchlist-action:hover { border-color: rgba(23, 26, 22, .55); background: rgba(23, 26, 22, .14); color: var(--accent-ink); }
.quote-price { margin-top: 10px; }
.quote-price strong { font-family: var(--display); font-size: 43px; font-weight: 650; letter-spacing: -.045em; }
.quote-block .position-return { color: #3f4a39; }
.quote-block .negative { color: #195d30 !important; }
.quote-block .quote-updated-at { border-left-color: rgba(23, 26, 22, .22); color: #4c5846; }

.position-metrics {
  grid-template-columns: repeat(4, minmax(88px, 1fr));
  gap: 10px;
  margin: 0;
}
.position-metrics > div:not(.account-save-state) {
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .035);
  border-radius: 18px;
  background: #373940;
  padding: 12px 13px;
}
.position-metrics dt { margin-bottom: 7px; color: #9ea0a6; font-size: 11px; }
.position-metrics dd { color: #f6f6f3; font: 650 16px/1.2 var(--display); }
.account-save-state {
  grid-column: 1 / -1;
  margin: 0 4px;
  color: #96989e;
}
.account-save-state > span.signed-in { background: var(--accent); }
.edit-button { border-radius: 8px; color: #aeb0b5; }
.edit-button:hover { background: #484a52; color: var(--accent); }

.buy-logic-row {
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 13px;
  border: 1px solid rgba(255, 255, 255, .035);
  border-radius: 18px;
  background: #373940;
  padding: 13px 15px;
}
.buy-logic-title small { color: #8f9197; }
.buy-logic-list li > span {
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
}
.buy-logic-list p { color: #e1e2df; }
.add-reason-button {
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
}
.add-reason-button:hover { background: #91a8cb; }

.board-grid { gap: 12px; margin-top: 14px; }
.info-board {
  min-height: 124px;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, .035);
  border-radius: 20px;
  background: #303239;
  padding: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}
.info-board:hover { border-color: #555860; background: #383a41; transform: translateY(-2px); }
.info-board.selected {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 24px rgba(124, 149, 190, .12);
}
.board-line { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; }
.board-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #3c3e45;
  color: var(--accent);
}
.board-icon svg { width: 18px; height: 18px; }
.info-board.selected .board-icon { background: rgba(23, 26, 22, .12); color: var(--accent-ink); }
.board-title strong { font-family: var(--display); font-size: 14px; font-weight: 650; }
.info-board.selected .board-title strong { color: var(--accent-ink); }
.board-title em { border: 0; border-radius: 999px; background: #42444b; color: #c6c8c6; }
.info-board.selected .board-title em { background: rgba(23, 26, 22, .12); color: #384331; }
.board-unread {
  border: 0;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
}
.board-unread.zero { background: #41434a; color: #a0a2a7; }
.info-board.selected .board-unread { background: var(--accent-ink); color: var(--accent); }
.info-board.selected .board-unread.zero { background: rgba(23, 26, 22, .12); color: #4b5844; }
.board-meta { padding-left: 44px; }
.info-board.selected .board-meta time { color: #4b5844; }
.board-risk-count { border: 0; border-radius: 7px; }

.message-header {
  min-height: 70px;
  margin-top: 13px;
  border: 0;
  padding: 0 4px 9px;
}
.message-header strong { font-family: var(--display); font-size: 20px; font-weight: 650; letter-spacing: -.035em; }
.message-header-tools .dynamic-update-stamp { border-right-color: #45474e; color: #909299; }
.mark-read { color: #d6d7d3; }
.mark-read:hover:not(:disabled) { color: var(--accent); }

.message-filters {
  gap: 10px 22px;
  border: 1px solid rgba(255, 255, 255, .035);
  border-radius: 17px;
  background: #2c2e34;
  padding: 10px 12px;
}
.filter-group > span { color: #9fa1a7; }
.filter-options button {
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: #3a3c43;
  color: #d0d1ce;
  padding: 5px 12px;
}
.filter-options button:hover { background: #484a51; }
.filter-options button.selected {
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 5px 12px rgba(124, 149, 190, .1);
}

.sentiment-columns { gap: 12px; padding-top: 14px; }
.sentiment-column {
  border: 1px solid rgba(255, 255, 255, .035);
  border-radius: 21px;
  background: #2d2f35;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}
.sentiment-column-header {
  min-height: 52px;
  border-bottom-color: #41434a;
  padding: 11px 15px;
}
.sentiment-column-header strong { font-family: var(--display); font-size: 16px; }
.sentiment-column-header span { border: 0; border-radius: 9px; background: #41434a; }
.sentiment-column-positive .sentiment-column-header { box-shadow: inset 4px 0 0 var(--positive); }
.sentiment-column-negative .sentiment-column-header { box-shadow: inset 4px 0 0 var(--negative); }
.sentiment-column-neutral .sentiment-column-header { box-shadow: inset 4px 0 0 #aeb0b5; }
.sentiment-column > .message-timeline { padding: 0 13px; }
.message-row { border-bottom-color: #41434a; }
.message-row.unread .timeline-track::before { background: var(--accent); }
.timeline-track::after { background: #484a51; }
.message-heading > strong { color: #f2f2ef; }
.message-row.read .message-heading > strong { color: #c0c2c0; }
.message-source-link { color: #b9ed97; }
.message-source-link:hover { color: var(--accent); }
.message-read-toggle { border-radius: 8px; background: #35373d; }
.message-read-toggle.checked { border-color: rgba(124, 149, 190, .45); background: #2f3b4d; color: var(--accent); }
.message-tag { border: 0; border-radius: 8px; }

.global-header {
  min-height: 128px;
  border: 1px solid rgba(255, 255, 255, .035);
  border-radius: 24px;
  background: #2c2e34;
  padding: 17px 19px;
}
.global-title-icon { border: 0; border-radius: 16px; background: var(--accent); color: var(--accent-ink); }
.global-header p { color: #b4ee91; }
.global-header h2 { font-family: var(--display); font-weight: 650; letter-spacing: -.045em; }
.daily-digest-summary > span {
  border: 1px solid rgba(255, 255, 255, .04);
  border-radius: 14px;
  background: #393b42;
}
.daily-digest-section-header > b { border: 0; border-radius: 9px; background: #3d3f46; }
.daily-stock-search,
.daily-stock-filter,
.daily-stock-group,
.calendar-month-board,
.market-chart-panel,
.indicator-card {
  border-color: rgba(255, 255, 255, .045);
  background: #303239;
}
.daily-stock-search,
.daily-stock-filter { border-radius: 12px; }
.daily-stock-filter.selected { border-color: transparent; background: var(--accent); color: var(--accent-ink); }
.daily-stock-group,
.calendar-month-board,
.market-chart-panel,
.indicator-card { border-radius: 20px; }
.daily-stock-group-header,
.calendar-month-heading { border-bottom-color: #42444b; background: #36383f; }
.calendar-weekdays { border-bottom-color: #42444b; background: #303239; }
.calendar-month-grid { background: #42444b; }
.calendar-day { background: #303239; }
.calendar-day-outside,
.calendar-day.past { background: #292b30; }
.calendar-day.today { background: #303744; box-shadow: inset 0 0 0 1px rgba(124, 149, 190, .6); }
.calendar-today-label { border: 0; border-radius: 7px; background: var(--accent); color: var(--accent-ink); }
.calendar-event { border-color: #4b4e56; border-radius: 12px; background: #393b42; }
.calendar-event.unread { border-left-color: var(--accent); }
.calendar-event-read.checked { border-color: rgba(124, 149, 190, .45); background: #2f3b4d; color: var(--accent); }

.auth-modal-backdrop { background: rgba(21, 22, 25, .72); }
.auth-modal { border: 1px solid #45474e; border-radius: 24px; background: #2b2d33; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.auth-modal-heading > span { border: 0; border-radius: 14px; background: var(--accent); color: var(--accent-ink); }
.auth-submit { border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }

@media (max-width: 1280px) {
  body { padding: 0; }
  :root { --sidebar-width: 238px; }
  .tracking-layout { min-height: 100vh; padding: 14px; gap: 14px; }
  .workspace-tab { padding-right: 11px; padding-left: 11px; }
  .workspace-tab span { font-size: 11px; }
  .workspace-refresh { padding-right: 14px; padding-left: 14px; }
  .tracking-main { padding: 0 0 16px; }
  .position-header { grid-template-columns: minmax(280px, .85fr) minmax(0, 1.25fr); }
  .position-metrics { gap: 8px; }
  .info-board { padding: 13px 11px; }
  .board-line { grid-template-columns: 31px minmax(0, 1fr) auto; gap: 7px; }
  .board-icon { width: 31px; height: 31px; }
  .board-meta { padding-left: 38px; }
}

@media (max-width: 980px) {
  html { min-width: 0; background: var(--bg); }
  body { padding: 0; background: var(--bg); }
  .tracking-layout {
    display: grid;
    grid-template-areas: "workspace" "watchlist" "main";
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 0;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }
  .workspace-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    border-width: 0 0 1px;
    border-radius: 0;
    padding: 9px 14px;
  }
  .watchlist {
    position: static;
    width: 100%;
    height: auto;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: #27292f;
    padding: 18px 16px;
  }
  .watchlist-items { grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 8px; }
  .tracking-main { padding: 18px 16px 30px; }
  .position-header { grid-template-columns: minmax(0, 1fr); }
  .board-grid { grid-template-columns: repeat(5, minmax(190px, 1fr)); gap: 10px; padding-bottom: 4px; }
  .sentiment-columns { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  .workspace-nav { grid-template-columns: 40px minmax(0, 1fr) 42px; gap: 8px; padding: 8px 10px; }
  .workspace-tabs {
    padding-bottom: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .24) transparent;
    scroll-snap-type: x proximity;
  }
  .workspace-tabs::-webkit-scrollbar { display: block; height: 2px; }
  .workspace-tabs::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(255, 255, 255, .24); }
  .workspace-mark { width: 40px; height: 40px; border-radius: 13px; }
  .workspace-tab { min-height: 38px; padding: 0 12px; scroll-snap-align: center; }
  .workspace-tab svg { width: 15px; height: 15px; }
  .workspace-account { display: none; }
  .workspace-refresh { width: 42px; min-height: 40px; justify-content: center; padding: 0; }
  .workspace-refresh span { display: none; }
  .watchlist { padding: 16px 12px 18px; }
  .watchlist h1 { font-size: 21px; }
  .shared-account { border-radius: 14px; }
  .watchlist-items { grid-template-columns: minmax(0, 1fr); }
  .tracking-main { padding: 14px 10px 28px; }
  .position-header { border-radius: 21px; padding: 10px; }
  .quote-block { min-height: 142px; border-radius: 18px; padding: 15px; }
  .quote-title h2 { font-size: 23px; }
  .quote-price strong { font-size: 39px; }
  .position-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .position-metrics > div:not(.account-save-state) { min-height: 72px; }
  .buy-logic-row { grid-template-columns: minmax(0, 1fr) auto; }
  .buy-logic-title { grid-column: 1 / -1; }
  .board-grid { grid-template-columns: repeat(5, minmax(180px, 1fr)); }
  .info-board { min-height: 116px; border-radius: 18px; }
  .message-header { min-height: 64px; }
  .message-filters { border-radius: 15px; padding: 9px; }
  .sentiment-column { border-radius: 18px; }
  .global-header { border-radius: 21px; padding: 14px; }
  .calendar-day.today { box-shadow: inset 3px 0 0 var(--accent); }
}

/* Markets-inspired graphite palette — reference-led 2026-08-10 */
:root {
  --bg: #333333;
  --sidebar: #1f1f1f;
  --surface: #1f1f1f;
  --surface-hover: #484848;
  --surface-selected: #484848;
  --line: #414141;
  --line-strong: #5a5a5a;
  --accent: #484848;
  --accent-ink: #f7f7f3;
}

html,
body,
.tracking-layout { background: var(--bg); }

.workspace-nav,
.watchlist,
.shared-account,
.shared-account.signed-in,
.stock-search input,
.watchlist-item,
.quote-block,
.position-metrics > div:not(.account-save-state),
.buy-logic-row,
.info-board,
.message-filters,
.sentiment-column,
.global-header,
.daily-digest-summary > span,
.daily-stock-search,
.daily-stock-filter,
.daily-stock-group,
.calendar-month-board,
.market-chart-panel,
.indicator-card,
.calendar-event,
.auth-modal { background: var(--surface); }

.position-header { background: transparent; box-shadow: none; }
.workspace-tab,
.filter-options button { background: var(--surface); }

.workspace-mark,
.workspace-tab:hover,
.workspace-tab.selected,
.watchlist-item:hover,
.watchlist-item.selected,
.info-board:hover,
.info-board.selected,
.filter-options button:hover,
.filter-options button.selected,
.daily-stock-filter:hover,
.daily-stock-filter.selected,
.calendar-event:hover { background: var(--surface-hover); }

.workspace-tab.selected,
.watchlist-item.selected,
.info-board.selected,
.filter-options button.selected,
.daily-stock-filter.selected {
  border-color: #606060;
  color: var(--text);
  box-shadow: none;
}

.workspace-tab.selected svg,
.watchlist-item.selected .stock-identity strong,
.info-board.selected .board-title strong { color: var(--text); }
.watchlist-item.selected .stock-identity small,
.watchlist-item.selected .watchlist-manage,
.info-board.selected .board-meta time { color: var(--muted); }
.watchlist-item.selected .negative { color: var(--negative) !important; }
.info-board.selected .board-icon { background: #383838; color: var(--text-2); }
.info-board.selected .board-title em,
.info-board.selected .board-unread.zero { background: #383838; color: var(--text-2); }
.info-board.selected .board-unread { background: #1f1f1f; color: var(--text); }

.quote-title h2,
.quote-title > span:not(.market-badge),
.quote-block .position-return,
.quote-block .quote-updated-at { color: var(--text-2); }
.quote-block .quote-updated-at { border-left-color: #484848; }
.header-watchlist-action { border-color: #555; background: #292929; color: var(--text-2); }
.header-watchlist-action:hover { border-color: #6a6a6a; background: #484848; color: var(--text); }

.daily-stock-group-header,
.calendar-month-heading,
.calendar-weekdays { border-bottom-color: #414141; background: #1f1f1f; }
.calendar-month-grid { background: #414141; }
.calendar-day { background: #333333; }
.calendar-day-outside,
.calendar-day.past { background: #292929; }
.calendar-day.today { background: #484848; box-shadow: inset 0 0 0 1px #696969; }
.calendar-event { border-color: #3d3d3d; }
.calendar-event:hover { border-color: #606060; }
.calendar-event.unread { border-left-color: #777; }

.workspace-refresh,
.workspace-refresh:hover:not(:disabled) {
  background: var(--refresh-accent);
  color: #171a16;
}
.workspace-refresh:hover:not(:disabled) { background: var(--refresh-accent-hover); }

/* AI stock selection — institutional disclosure workspace */
.ai-selection-page {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.ai-selection-header {
  min-width: 0;
  min-height: 128px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  border: 1px solid #414141;
  border-radius: 20px;
  background: #1f1f1f;
  padding: 20px;
}

.ai-selection-title-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #484848;
  color: #f7f7f3;
}
.ai-selection-title-mark svg { width: 28px; height: 28px; stroke-width: 1.75; }
.ai-selection-title { min-width: 0; }
.ai-selection-title h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -.035em;
}
.ai-selection-title p { margin: 2px 0 0; color: #b4ee91; font-size: 12px; font-weight: 700; }
.ai-selection-title > span { display: block; margin-top: 7px; color: var(--muted); font-size: 13px; }
.ai-selection-header-action { display: grid; justify-items: end; gap: 10px; }

.ai-job-chip {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #484848;
  border-radius: 999px;
  background: #292929;
  color: var(--text-2);
  padding: 0 10px;
  font-size: 11px;
  white-space: nowrap;
}
.ai-job-chip i { width: 7px; height: 7px; border-radius: 50%; background: #919191; }
.ai-job-chip.phase-ready i { background: var(--negative); }
.ai-job-chip.phase-refreshing i { background: var(--warning); animation: ai-status-pulse 1.25s ease-out infinite; }
.ai-job-chip.phase-error i { background: var(--positive); }

.ai-refresh-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  background: var(--refresh-accent);
  color: #171a16;
  padding: 0 18px;
  font-size: 12px;
  font-weight: 750;
  transition: background-color .18s ease, transform .18s ease;
}
.ai-refresh-button:hover:not(:disabled) { background: var(--refresh-accent-hover); transform: translateY(-1px); }
.ai-refresh-button svg { width: 17px; height: 17px; }
.ai-refresh-button.refreshing svg { animation: refresh-spin 850ms linear infinite; }

.ai-job-progress {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(220px, .65fr) minmax(220px, 1fr) 48px;
  align-items: center;
  gap: 16px;
  border: 1px solid #4c4c4c;
  border-radius: 16px;
  background: #292929;
  padding: 14px 16px;
}
.ai-job-progress-copy { min-width: 0; display: grid; gap: 3px; }
.ai-job-progress-copy strong { color: var(--text); font-size: 13px; }
.ai-job-progress-copy span { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.ai-job-progress-meter,
.ai-coverage-track { overflow: hidden; background: #3b3b3b; }
.ai-job-progress-meter { height: 7px; border-radius: 999px; }
.ai-job-progress-meter > span { display: block; height: 100%; border-radius: inherit; background: var(--refresh-accent); }
.ai-job-progress > b { color: var(--text-2); font: 12px/1 var(--mono); text-align: right; }

.ai-data-notice {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #515151;
  border-radius: 14px;
  background: #292929;
  padding: 11px 14px;
  color: var(--text-2);
  font-size: 12px;
}
.ai-data-notice strong { color: var(--text); }
.ai-data-notice span { min-width: 0; color: var(--muted); }
.ai-data-notice.error { border-color: rgba(255, 98, 109, .45); }
.ai-data-notice.warning { border-color: rgba(243, 176, 74, .42); }
.ai-data-notice button,
.ai-selection-state button {
  min-height: 32px;
  margin-left: auto;
  border: 1px solid #606060;
  border-radius: 999px;
  background: #383838;
  color: var(--text);
  padding: 0 12px;
  font-size: 11px;
  white-space: nowrap;
}
.ai-data-notice button:hover,
.ai-selection-state button:hover { background: #484848; }

.ai-snapshot-meta {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #414141;
  border-radius: 16px;
  background: #1f1f1f;
  padding: 0 16px;
}
.ai-snapshot-meta > div { min-width: 0; padding: 14px 12px; }
.ai-snapshot-meta > div + div { border-left: 1px solid #414141; }
.ai-snapshot-meta span { display: block; color: var(--muted); font-size: 10px; }
.ai-snapshot-meta strong { display: block; overflow: hidden; margin-top: 4px; color: var(--text-2); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ai-snapshot-meta p {
  grid-column: 1 / -1;
  margin: 0;
  border-top: 1px solid #414141;
  color: #aaa;
  padding: 11px 12px 13px;
  font-size: 11px;
  line-height: 1.6;
}
.ai-snapshot-meta p b { color: var(--warning); }

.ai-summary-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.ai-summary-grid article {
  min-width: 0;
  min-height: 116px;
  display: grid;
  align-content: center;
  border: 1px solid #414141;
  border-radius: 16px;
  background: #1f1f1f;
  padding: 16px;
}
.ai-summary-grid span { color: var(--muted); font-size: 11px; }
.ai-summary-grid strong { margin-top: 2px; color: var(--text); font: 650 29px/1.15 var(--display); letter-spacing: -.03em; }
.ai-summary-grid small { overflow: hidden; margin-top: 6px; color: #aaa; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.ai-coverage-section,
.ai-results-section {
  min-width: 0;
  border: 1px solid #414141;
  border-radius: 18px;
  background: #1f1f1f;
  padding: 18px;
}
.ai-section-heading,
.ai-results-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.ai-section-heading h3,
.ai-results-heading h3 { margin: 0; font-family: var(--display); font-size: 19px; letter-spacing: -.025em; }
.ai-section-heading p,
.ai-results-heading p { max-width: 75ch; margin: 5px 0 0; color: var(--muted); font-size: 11px; }

.ai-coverage-list { display: grid; gap: 2px; margin-top: 15px; }
.ai-coverage-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 142px minmax(160px, 1fr) 152px;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  border-top: 1px solid #383838;
}
.ai-coverage-row:first-child { border-top: 0; }
.ai-coverage-label { min-width: 0; display: flex; align-items: baseline; gap: 7px; }
.ai-coverage-label strong { overflow: hidden; color: var(--text-2); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ai-coverage-label span { color: var(--muted); font-size: 9px; }
.ai-coverage-track { height: 5px; border-radius: 999px; }
.ai-coverage-track > span { display: block; height: 100%; border-radius: inherit; background: #8ba6d1; }
.ai-coverage-value { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 51px; align-items: center; gap: 6px; text-align: right; }
.ai-coverage-value b { overflow: hidden; color: var(--text-2); font: 11px/1 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.ai-coverage-value small { color: #b4ee91; font: 10px/1 var(--mono); }

.ai-results-section { padding-bottom: 14px; }
.ai-results-heading { align-items: center; }
.ai-results-tabs { flex: 0 0 auto; display: inline-flex; gap: 4px; border-radius: 13px; background: #292929; padding: 4px; }
.ai-results-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #aaa;
  padding: 0 12px;
  font-size: 11px;
}
.ai-results-tabs button:hover { color: var(--text); }
.ai-results-tabs button.selected { background: #484848; color: var(--text); }
.ai-results-tabs b { margin-left: 5px; color: #b4ee91; font: 10px/1 var(--mono); }

.ai-results-table-wrap {
  min-width: 0;
  overflow-x: auto;
  margin-top: 15px;
  border: 1px solid #393939;
  border-radius: 14px;
  outline: none;
  scrollbar-color: #606060 #292929;
}
.ai-results-table-wrap:focus-visible { outline: 2px solid var(--refresh-accent); outline-offset: 2px; }
.ai-results-table { width: 100%; min-width: 1120px; border-collapse: collapse; background: #252525; }
.ai-results-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ai-results-table th,
.ai-results-table td { height: 56px; border-bottom: 1px solid #3c3c3c; padding: 9px 11px; text-align: left; vertical-align: middle; }
.ai-results-table thead th { height: 40px; background: #292929; color: #999; font-size: 10px; font-weight: 650; white-space: nowrap; }
.ai-results-table tbody tr:last-child > * { border-bottom: 0; }
.ai-results-table tbody tr:hover > * { background: #303030; }
.ai-results-table tbody th { position: relative; min-width: 136px; font-weight: 400; }
.ai-number { font: 11px/1.3 var(--mono); white-space: nowrap; }
.ai-stock-link { display: grid; width: fit-content; color: inherit; text-decoration: none; }
.ai-stock-link:hover span { color: #b4ee91; }
.ai-stock-link span { color: var(--text); font-size: 12px; font-weight: 700; }
.ai-stock-link small { color: var(--muted); font: 10px/1.3 var(--mono); }
.ai-new-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-top: 5px;
  border-radius: 999px;
  background: #435a32;
  color: #c9f4ab;
  padding: 0 7px;
  font-size: 9px;
  font-weight: 700;
}
.ai-category-count {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #3b3b3b;
  color: var(--text);
  font: 10px/1 var(--mono);
}
.ai-category-names,
.ai-evidence { display: block; max-width: 142px; overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.ai-screening-status { display: inline-flex; min-height: 23px; align-items: center; border-radius: 8px; padding: 0 8px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.ai-screening-status.passed { background: #35482b; color: #c3eaaa; }
.ai-screening-status.review { background: #514127; color: #f2cb7c; }
.ai-screening-status.excluded { background: #512f32; color: #ffafb5; }

.ai-selection-state {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid #414141;
  border-radius: 18px;
  background: #1f1f1f;
  padding: 28px;
  text-align: center;
}
.ai-selection-state strong { color: var(--text); font-family: var(--display); font-size: 17px; }
.ai-selection-state p { max-width: 62ch; margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.ai-selection-state button { margin: 14px 0 0; }
.ai-selection-state-compact { min-height: 120px; margin-top: 14px; }
.ai-selection-state-empty { min-height: 190px; margin-top: 15px; }
.ai-selection-state-error { border-color: rgba(255, 98, 109, .45); }
.ai-loading-mark { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 14px; background: #484848; color: var(--text); }
.ai-loading-mark svg { width: 24px; height: 24px; animation: ai-loading-breathe 1.35s ease-in-out infinite; }

@keyframes ai-status-pulse {
  0%, 100% { opacity: .45; transform: scale(.8); }
  45% { opacity: 1; transform: scale(1); }
}
@keyframes ai-loading-breathe {
  0%, 100% { opacity: .55; transform: scale(.9); }
  50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 1280px) {
  .ai-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-selection-header { padding: 17px; }
  .ai-coverage-row { grid-template-columns: 124px minmax(140px, 1fr) 136px; gap: 12px; }
}

@media (max-width: 980px) {
  .ai-selection-header { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .ai-selection-title-mark { width: 48px; height: 48px; }
  .ai-selection-layout { grid-template-areas: "workspace" "main"; }
  .ai-selection-layout .watchlist { display: none; }
  .ai-snapshot-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-snapshot-meta > div:nth-child(3) { border-left: 0; border-top: 1px solid #414141; }
  .ai-snapshot-meta > div:nth-child(4) { border-top: 1px solid #414141; }
}

@media (max-width: 620px) {
  .ai-selection-page { gap: 12px; }
  .ai-selection-header {
    min-height: 0;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px;
    border-radius: 17px;
    padding: 14px;
  }
  .ai-selection-title-mark { width: 42px; height: 42px; border-radius: 13px; }
  .ai-selection-title-mark svg { width: 23px; height: 23px; }
  .ai-selection-title h2 { font-size: 24px; }
  .ai-selection-title p { font-size: 11px; }
  .ai-selection-title > span { font-size: 10px; line-height: 1.45; }
  .ai-selection-header-action {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-items: start;
    width: 100%;
    border-top: 1px solid #414141;
    padding-top: 12px;
  }
  .ai-refresh-button { min-height: 40px; padding: 0 14px; }
  .ai-job-progress { grid-template-columns: minmax(0, 1fr) 40px; gap: 9px; border-radius: 14px; padding: 12px; }
  .ai-job-progress-copy { grid-column: 1 / -1; }
  .ai-job-progress-copy span { white-space: normal; }
  .ai-data-notice { align-items: start; flex-wrap: wrap; border-radius: 13px; }
  .ai-data-notice button { margin-left: 0; }
  .ai-snapshot-meta { grid-template-columns: minmax(0, 1fr); padding: 0 13px; }
  .ai-snapshot-meta > div { padding: 11px 4px; }
  .ai-snapshot-meta > div + div { border-top: 1px solid #414141; border-left: 0; }
  .ai-snapshot-meta p { padding-right: 4px; padding-left: 4px; }
  .ai-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ai-summary-grid article { min-height: 102px; padding: 13px; }
  .ai-summary-grid strong { font-size: 24px; }
  .ai-summary-grid small { white-space: normal; }
  .ai-coverage-section,
  .ai-results-section { border-radius: 16px; padding: 14px; }
  .ai-coverage-row { grid-template-columns: minmax(0, 1fr) 145px; gap: 8px 10px; padding: 10px 0; }
  .ai-coverage-label { align-items: center; }
  .ai-coverage-track { grid-column: 1 / -1; grid-row: 2; }
  .ai-coverage-value { grid-column: 2; grid-row: 1; }
  .ai-section-heading p,
  .ai-results-heading p { font-size: 10px; }
  .ai-results-heading { align-items: stretch; flex-direction: column; }
  .ai-results-tabs { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-results-tabs button { padding: 0 8px; }
  .ai-results-table-wrap { border-radius: 12px; }
  .ai-selection-state { min-height: 220px; border-radius: 16px; padding: 22px 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-job-chip.phase-refreshing i,
  .ai-loading-mark svg { animation: none; }
  .ai-job-progress-meter > span { transition: none; }
}

/* Technical-analysis atmosphere shared by the remaining dashboard views */
.tracking-layout:not(:has(.technical-main)) {
  --sidebar: #070809;
  --surface: #08090b;
  --surface-hover: #15171d;
  --surface-selected: #171a25;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --accent: #7891ff;
  --accent-ink: #f7f8ff;
  background:
    radial-gradient(circle at 87% 19%, rgba(71, 145, 255, .28), transparent 30%),
    radial-gradient(circle at 61% 5%, rgba(111, 78, 224, .23), transparent 27%),
    radial-gradient(circle at 77% 88%, rgba(40, 216, 189, .16), transparent 30%),
    #2b292d;
}

.tracking-layout:not(:has(.technical-main)):has(.position-header),
.tracking-layout:not(:has(.technical-main)):has(.daily-digest-view:not(.calendar-view)) {
  background: #333333;
}

.tracking-layout:not(:has(.technical-main)) :is(
  .workspace-nav,
  .watchlist,
  .quote-block,
  .position-metrics > div:not(.account-save-state),
  .buy-logic-row,
  .info-board,
  .message-filters,
  .sentiment-column,
  .global-header,
  .daily-stock-group,
  .calendar-month-board,
  .market-chart-panel,
  .indicator-card,
  .ai-selection-header,
  .ai-snapshot-meta,
  .ai-summary-grid article,
  .ai-coverage-section,
  .ai-results-section,
  .ai-selection-state
) {
  border-color: var(--line);
  background: linear-gradient(180deg, rgba(8, 9, 11, .99), rgba(3, 4, 5, .985));
  box-shadow: 0 18px 42px rgba(0, 0, 0, .2);
}

.tracking-layout:not(:has(.technical-main)) :is(
  .shared-account,
  .shared-account.signed-in,
  .stock-search input,
  .watchlist-item,
  .workspace-tab,
  .daily-digest-summary > span,
  .daily-stock-search,
  .daily-stock-filter,
  .calendar-event,
  .ai-job-progress,
  .ai-data-notice,
  .ai-results-tabs,
  .ai-results-table-wrap
) {
  border-color: var(--line);
  background: rgba(255, 255, 255, .035);
}

.tracking-layout:not(:has(.technical-main)) .workspace-mark,
.tracking-layout:not(:has(.technical-main)) .global-title-icon,
.tracking-layout:not(:has(.technical-main)) .ai-selection-title-mark {
  background: linear-gradient(145deg, #6e68f5, #5ba7ef);
  color: #fff;
  box-shadow: 0 8px 22px rgba(82, 112, 255, .22);
}

.tracking-layout:not(:has(.technical-main)) :is(
  .workspace-tab:hover,
  .watchlist-item:hover,
  .info-board:hover,
  .filter-options button:hover,
  .daily-stock-filter:hover,
  .calendar-event:hover,
  .ai-results-tabs button:hover
) { background: rgba(255, 255, 255, .075); }

.tracking-layout:not(:has(.technical-main)) :is(
  .workspace-tab.selected,
  .watchlist-item.selected,
  .info-board.selected,
  .filter-options button.selected,
  .daily-stock-filter.selected,
  .ai-results-tabs button.selected
) {
  border-color: rgba(120, 145, 255, .42);
  background: rgba(120, 145, 255, .14);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(120, 145, 255, .08);
}

.tracking-layout:not(:has(.technical-main)) .workspace-tab.selected svg,
.tracking-layout:not(:has(.technical-main)) .watchlist-item.selected .stock-identity strong,
.tracking-layout:not(:has(.technical-main)) .info-board.selected .board-title strong { color: var(--text); }
.tracking-layout:not(:has(.technical-main)) .watchlist-item.selected .stock-identity small,
.tracking-layout:not(:has(.technical-main)) .watchlist-item.selected .watchlist-manage,
.tracking-layout:not(:has(.technical-main)) .info-board.selected .board-meta time { color: var(--muted); }
.tracking-layout:not(:has(.technical-main)) .info-board.selected .board-icon,
.tracking-layout:not(:has(.technical-main)) .info-board.selected .board-title em,
.tracking-layout:not(:has(.technical-main)) .info-board.selected .board-unread.zero { background: rgba(255, 255, 255, .07); color: var(--text-2); }

.tracking-layout:not(:has(.technical-main)) .daily-stock-group-header,
.tracking-layout:not(:has(.technical-main)) .calendar-month-heading,
.tracking-layout:not(:has(.technical-main)) .calendar-weekdays,
.tracking-layout:not(:has(.technical-main)) .ai-results-table thead th { background: rgba(255, 255, 255, .035); border-color: var(--line); }
.tracking-layout:not(:has(.technical-main)) .calendar-month-grid { background: var(--line); }
.tracking-layout:not(:has(.technical-main)) .calendar-day { background: #0d0f12; }
.tracking-layout:not(:has(.technical-main)) .calendar-day-outside,
.tracking-layout:not(:has(.technical-main)) .calendar-day.past { background: #08090b; }
.tracking-layout:not(:has(.technical-main)) .calendar-day.today { background: rgba(120, 145, 255, .13); box-shadow: inset 0 0 0 1px rgba(120, 145, 255, .5); }
.tracking-layout:not(:has(.technical-main)) .calendar-today-label { background: rgba(120, 145, 255, .18); color: #dce3ff; }
.tracking-layout:not(:has(.technical-main)) .ai-results-table { background: #070809; }
.tracking-layout:not(:has(.technical-main)) .ai-results-table tbody tr:hover > * { background: rgba(120, 145, 255, .07); }

@media (max-width: 980px) {
  .tracking-layout:not(:has(.technical-main)) .watchlist { background: linear-gradient(180deg, rgba(8, 9, 11, .99), rgba(3, 4, 5, .985)); }
}

/* The daily radar shows only material changes first; unchanged stocks stay behind progressive disclosure. */
.daily-research-overview {
  min-width: 260px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.daily-research-overview > span {
  min-height: 52px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
  color: var(--muted);
  padding: 12px;
  font-size: 12px;
}
.daily-research-overview b { color: var(--text); font: 700 20px/1 var(--mono); }
.daily-research-overview small { grid-column: 1 / -1; color: var(--muted); text-align: right; font-size: 11px; }
.daily-digest-view {
  min-width: 0;
  display: grid;
  gap: 18px;
}
.daily-page-section {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(8, 9, 11, .99), rgba(3, 4, 5, .985));
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
  overflow: hidden;
}
.daily-page-section-header {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 18px;
}
.daily-page-section-header h2 { margin: 0; color: var(--text); font: 650 27px/1.2 var(--display); letter-spacing: -.035em; }
.daily-page-section-header p { margin: 6px 0 0; color: #aeb2bb; font-size: 14px; line-height: 1.5; }
.daily-page-section-header time { flex: 0 0 auto; color: #a8acb5; font: 13px/1.4 var(--mono); }
.daily-page-section-tools {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.daily-page-section-tools > span { color: #a8acb5; font: 12px/1.4 var(--mono); white-space: nowrap; }
.daily-page-section-tools .mark-read { min-height: 34px; }
.daily-major-news-section > .message-timeline {
  border-top: 1px solid var(--line);
  padding: 0 22px 8px;
}
.daily-major-news-section .message-row { grid-template-columns: 146px 24px minmax(0, 1fr); }
.daily-major-news-section .timeline-empty { min-height: 132px; }
.daily-message-origin {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}
.daily-message-origin svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.daily-message-origin-today { background: rgba(255, 118, 127, .14); color: #ff8a93; }
.daily-message-origin-catch-up { background: rgba(230, 196, 109, .13); color: #e6c46d; }
.daily-research-report { --research-tone: #85a8ff; border-top: 1px solid var(--line); padding: 22px; }
.daily-research-opportunity { --research-tone: #72d69e; }
.daily-research-risk { --research-tone: #ff767f; }
.daily-research-financing { --research-tone: #e6c46d; }
.daily-research-neutral { --research-tone: #85a8ff; }
.daily-research-lead { max-width: 1120px; }
.daily-research-identity { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.daily-research-identity h3 { margin: 0; color: var(--text); font: 650 30px/1.08 var(--display); letter-spacing: -.04em; }
.daily-research-identity > div:first-child > span { display: block; margin-top: 7px; color: var(--muted); font: 11px/1.3 var(--mono); }
.daily-research-badges { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.daily-research-badges span { border-radius: 9px; padding: 6px 9px; font: 700 11px/1 var(--mono); }
.daily-research-sentiment { background: color-mix(in srgb, var(--research-tone) 17%, transparent); color: var(--research-tone); }
.daily-research-change-state { background: rgba(255, 255, 255, .06); color: #c8cbd1; }
.daily-research-price-strip {
  display: grid;
  grid-template-columns: .75fr .75fr 1.45fr 1.3fr 1.15fr;
  gap: 0;
  margin-top: 20px;
  border-block: 1px solid var(--line);
}
.daily-research-price-strip > span { min-width: 0; padding: 14px 16px; }
.daily-research-price-strip > span + span { border-left: 1px solid var(--line); }
.daily-research-price-strip small { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; }
.daily-research-price-strip b { display: block; overflow-wrap: anywhere; color: var(--text); font: 700 13px/1.35 var(--mono); }
.daily-research-price-strip .primary b { font-size: 20px; }
.daily-research-price-strip .up b { color: #ff6f79; }
.daily-research-price-strip .down b { color: #65d494; }
.daily-research-headline { max-width: 78ch; padding: 24px 0 4px; }
.daily-research-headline h4 { margin: 0; color: var(--text); font: 650 24px/1.35 var(--display); letter-spacing: -.025em; text-wrap: balance; }
.daily-research-headline p { margin: 9px 0 0; color: var(--research-tone); font-size: 14px; font-weight: 650; }
.daily-research-headline span { display: block; margin-top: 9px; color: var(--muted); font-size: 12px; }
.daily-research-reading-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; margin-top: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.daily-research-reading-grid section { min-width: 0; }
.daily-research-reading-grid h4,
.daily-research-levels h4 { margin: 0 0 12px; color: var(--text); font: 650 16px/1.3 var(--display); }
.daily-research-reading-grid p { max-width: 72ch; margin: 0; color: #d4d6da; font-size: 14px; line-height: 1.8; }
.daily-research-reading-grid p + p { margin-top: 14px; }
.daily-research-levels { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 24px; }
.daily-research-levels dl { margin: 0; }
.daily-research-levels dl > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; border-top: 1px solid rgba(255, 255, 255, .06); padding: 12px 0; }
.daily-research-levels dl > div:first-child { border-top: 0; }
.daily-research-levels dt { color: #aeb1b8; font-size: 12px; font-weight: 700; }
.daily-research-levels dd { margin: 0; color: #d7d9dd; font-size: 13px; line-height: 1.65; }
.daily-research-levels .bullish dt { color: #72d69e; }
.daily-research-levels .bearish dt { color: #ff767f; }
.daily-research-sources { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.daily-research-sources summary { width: fit-content; color: #aeb7ca; cursor: pointer; font-size: 12px; }
.daily-research-sources ul { display: grid; gap: 9px; margin: 14px 0 0; padding: 0; list-style: none; }
.daily-research-sources li { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.daily-research-sources a { color: #b8c6ff; font-size: 12px; text-decoration: none; }
.daily-research-sources a:hover { color: #dce3ff; text-decoration: underline; }
.daily-research-sources span { flex: 0 0 auto; color: var(--muted); font-size: 10px; }
.daily-research-empty { border-top: 1px solid var(--line); padding: 34px 22px; }
.daily-research-empty strong { display: block; color: var(--text); font-size: 16px; }
.daily-research-empty span { display: block; max-width: 68ch; margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.daily-radar-priority { display: grid; gap: 1px; border-top: 1px solid var(--line); background: var(--line); }
.daily-radar-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 32px 120px minmax(240px, 1fr) minmax(180px, .65fr);
  align-items: center;
  gap: 14px;
  border: 0;
  background: #08090b;
  color: var(--text-2);
  padding: 14px 22px;
  text-align: left;
}
.daily-radar-item > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(230, 196, 109, .12); color: #e6c46d; font: 700 11px/1 var(--mono); }
.daily-radar-item b { font-size: 15px; line-height: 1.4; }
.daily-radar-item strong { overflow-wrap: anywhere; color: var(--text); font-size: 16px; line-height: 1.5; }
.daily-radar-item small { color: var(--muted); font-size: 14px; line-height: 1.5; }
.daily-radar-clear { margin: 0; background: #08090b; color: var(--text-2); padding: 18px 22px; }
.daily-radar-lead { padding-bottom: 4px; }
.daily-radar-facts { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 22px; }
.daily-radar-facts h4,
.daily-radar-next h4,
.daily-radar-valuation h4 { margin: 0 0 10px; color: var(--text); font: 650 16px/1.3 var(--display); }
.daily-radar-facts h4 span,
.daily-radar-analysis h4 span,
.daily-radar-valuation h4 span { color: var(--muted); font: 700 10px/1 var(--mono); }
.daily-radar-facts ul { margin: 0; padding: 0; list-style: none; }
.daily-radar-facts li { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .06); }
.daily-radar-facts li:first-child { border-top: 0; }
.daily-radar-facts small { color: #aeb1b8; font: 700 10px/1.4 var(--mono); }
.daily-radar-facts p { max-width: 78ch; margin: 6px 0 0; color: #e0e2e5; font-size: 14px; line-height: 1.7; }
.daily-radar-analysis { margin-top: 16px; padding-top: 22px; }
.daily-radar-analysis dl { margin: 0; }
.daily-radar-analysis dl > div { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; padding: 7px 0; }
.daily-radar-analysis dt { color: var(--muted); font-size: 11px; font-weight: 700; }
.daily-radar-analysis dd { margin: 0; color: #d4d6da; font-size: 13px; line-height: 1.65; }
.daily-radar-next { margin-top: 22px; background: rgba(255, 255, 255, .035); border-radius: 13px; padding: 14px 16px; }
.daily-radar-next p,
.daily-radar-valuation p { max-width: 76ch; margin: 0; color: #d8dade; font-size: 13px; line-height: 1.7; }
.daily-radar-valuation { margin-top: 22px; }
.daily-research-steady { padding-block: 22px; }
.daily-research-no-change { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 20px; }
.daily-research-no-change h4 { margin: 0; color: var(--text); font: 650 20px/1.35 var(--display); }
.daily-research-no-change p { margin: 8px 0 0; color: #cdd0d5; font-size: 14px; }
.daily-research-no-change small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.daily-traffic-report { border-top: 1px solid var(--line); padding: 0 22px 18px; }
.daily-traffic-table {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 15px;
  background: #07090b;
}
.daily-traffic-row {
  --traffic-tone: #e6c46d;
  --traffic-soft: rgba(230, 196, 109, .13);
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(150px, .72fr) minmax(190px, .9fr) minmax(140px, .66fr) minmax(260px, 2fr);
  align-items: stretch;
  border-top: 1px solid var(--line);
}
.daily-traffic-row > * {
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 16px 18px;
}
.daily-traffic-row > * + * { border-left: 1px solid var(--line); }
.daily-traffic-positive { --traffic-tone: #72d69e; --traffic-soft: rgba(114, 214, 158, .13); }
.daily-traffic-negative { --traffic-tone: #ff767f; --traffic-soft: rgba(255, 118, 127, .13); }
.daily-traffic-neutral { --traffic-tone: #e6c46d; --traffic-soft: rgba(230, 196, 109, .13); }
.daily-traffic-head {
  min-height: 46px;
  border-top: 0;
  background: rgba(255, 255, 255, .035);
}
.daily-traffic-head > span { color: #aeb2bb; font: 750 12px/1.2 var(--mono); letter-spacing: .04em; }
.daily-traffic-row:not(.daily-traffic-head) { min-height: 76px; }
.daily-traffic-dimension { gap: 12px; }
.daily-traffic-dimension > span {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(230, 196, 109, .22);
  border-radius: 12px;
  background: rgba(230, 196, 109, .08);
  color: #d8bd79;
}
.daily-traffic-dimension svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; }
.daily-traffic-dimension strong { color: var(--text); font: 720 18px/1.3 var(--display); }
.daily-traffic-rating { gap: 12px; color: var(--traffic-tone); }
.daily-traffic-rating-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--traffic-tone) 54%, transparent);
  border-radius: 50%;
  background: var(--traffic-soft);
  box-shadow: 0 0 17px color-mix(in srgb, var(--traffic-tone) 30%, transparent);
}
.daily-traffic-rating-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.daily-traffic-rating strong { color: var(--traffic-tone); font: 750 18px/1.3 var(--display); }
.daily-traffic-comparison { flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; }
.daily-traffic-comparison small,
.daily-traffic-evidence small { display: none; color: var(--muted); font: 700 10px/1.2 var(--mono); }
.daily-traffic-comparison strong { color: #dfe1e5; font: 700 15px/1.4 var(--display); }
.daily-traffic-comparison-improved strong { color: #72d69e; }
.daily-traffic-comparison-weakened strong { color: #ff767f; }
.daily-traffic-evidence { overflow-wrap: anywhere; color: #e4e6e9; font-size: 15px; line-height: 1.62; }
.daily-traffic-evidence span { min-width: 0; }
.daily-traffic-overall {
  position: relative;
  background: color-mix(in srgb, var(--traffic-tone) 5%, #07090b);
  box-shadow: inset 3px 0 0 var(--traffic-tone);
}
.daily-traffic-overall .daily-traffic-dimension > span { border-color: color-mix(in srgb, var(--traffic-tone) 45%, transparent); color: var(--traffic-tone); }
.daily-traffic-overall .daily-traffic-dimension strong { font-size: 20px; }
.daily-traffic-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 2px 0;
}
.daily-traffic-footer > div { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.daily-traffic-footer > div span { display: inline-flex; align-items: center; gap: 6px; color: #b9bdc5; font-size: 11px; }
.daily-traffic-footer > div span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 9px currentColor; }
.daily-traffic-footer .positive { color: #72d69e; }
.daily-traffic-footer .neutral { color: #e6c46d; }
.daily-traffic-footer .negative { color: #ff767f; }
.daily-traffic-footer small { max-width: 76ch; color: var(--muted); font-size: 11px; line-height: 1.5; text-align: right; }

@media (max-width: 980px) {
  .daily-research-overview { grid-column: 1 / -1; width: 100%; }
  .daily-radar-item { grid-template-columns: 32px 110px minmax(220px, 1fr); }
  .daily-radar-item small { grid-column: 3; }
  .daily-research-price-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .daily-research-price-strip > span:nth-child(4) { border-left: 0; border-top: 1px solid var(--line); }
  .daily-research-price-strip > span:nth-child(5) { border-top: 1px solid var(--line); }
  .daily-traffic-row { grid-template-columns: minmax(138px, .75fr) minmax(172px, .9fr) minmax(126px, .65fr) minmax(230px, 1.75fr); }
  .daily-traffic-row > * { padding-inline: 14px; }
  .daily-traffic-evidence { font-size: 14px; }
}

@media (max-width: 620px) {
  .tracking-layout:has(.daily-digest-view:not(.calendar-view)) .watchlist {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    border: 0;
    border-radius: 0;
    padding: 10px 12px 12px;
  }
  .tracking-layout:has(.daily-digest-view:not(.calendar-view)) .watchlist-top,
  .tracking-layout:has(.daily-digest-view:not(.calendar-view)) .watchlist-label,
  .tracking-layout:has(.daily-digest-view:not(.calendar-view)) .last-updated,
  .tracking-layout:has(.daily-digest-view:not(.calendar-view)) .refresh-notice { display: none; }
  .tracking-layout:has(.daily-digest-view:not(.calendar-view)) .watchlist-items {
    display: flex;
    flex-flow: row nowrap;
    gap: 7px;
    overflow-x: auto;
    padding: 0 0 3px;
  }
  .tracking-layout:has(.daily-digest-view:not(.calendar-view)) .watchlist-item {
    flex: 0 0 148px;
    min-height: 52px;
    grid-template-columns: minmax(0, 1fr);
    border-radius: 13px;
  }
  .tracking-layout:has(.daily-digest-view:not(.calendar-view)) .watchlist-select {
    min-height: 48px;
    grid-template-columns: minmax(0, 1fr) 25px;
  }
  .tracking-layout:has(.daily-digest-view:not(.calendar-view)) .watchlist-manage,
  .tracking-layout:has(.daily-digest-view:not(.calendar-view)) .stock-change { display: none; }
  .daily-digest-view { gap: 12px; }
  .daily-page-section { border-radius: 16px; }
  .daily-page-section-header { align-items: flex-start; flex-direction: column; gap: 10px; padding: 17px 16px 14px; }
  .daily-page-section-header h2 { font-size: 22px; }
  .daily-page-section-header time { white-space: normal; }
  .daily-page-section-tools { width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .daily-major-news-section > .message-timeline { padding: 0 16px 6px; }
  .daily-major-news-section .message-row { grid-template-columns: 96px 18px minmax(0, 1fr); }
  .daily-major-news-section .message-time-cell { align-items: flex-start; flex-direction: column; padding-top: 14px; font-size: 11px; }
  .daily-major-news-section .message-time-cell time { white-space: normal; }
  .daily-radar-priority { gap: 0; border-top: 1px solid var(--line); background: transparent; padding: 0; }
  .daily-radar-item { grid-template-columns: 30px minmax(0, 1fr); gap: 6px 10px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 16px; }
  .daily-radar-item:last-child { border-bottom: 0; }
  .daily-radar-item b { align-self: center; }
  .daily-radar-item strong,
  .daily-radar-item small { grid-column: 2; }
  .daily-research-report { padding: 18px 16px; }
  .daily-research-identity { flex-direction: column; gap: 12px; }
  .daily-research-identity h3 { font-size: 27px; }
  .daily-research-badges { justify-content: flex-start; }
  .daily-research-price-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .daily-research-price-strip > span { border-top: 1px solid var(--line); padding: 12px 10px; }
  .daily-research-price-strip > span:first-child,
  .daily-research-price-strip > span:nth-child(2) { border-top: 0; }
  .daily-research-price-strip > span:nth-child(odd) { border-left: 0; }
  .daily-research-headline { padding-top: 20px; }
  .daily-research-headline h4 { font-size: 21px; }
  .daily-research-reading-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 20px; padding-top: 20px; }
  .daily-research-reading-grid p { font-size: 13px; line-height: 1.75; }
  .daily-radar-analysis dl > div { grid-template-columns: 48px minmax(0, 1fr); }
  .daily-research-levels dl > div { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .daily-research-sources li { align-items: flex-start; flex-direction: column; gap: 3px; }
  .daily-research-sources span { flex: none; }
  .daily-traffic-report { padding: 0 12px 14px; }
  .daily-traffic-table { border-radius: 13px; }
  .daily-traffic-head { display: none; }
  .daily-traffic-row:not(.daily-traffic-head) {
    grid-template-columns: minmax(0, 1fr) minmax(132px, auto);
    gap: 10px 14px;
    min-height: 0;
    padding: 15px 14px;
  }
  .daily-traffic-row > * { border-left: 0 !important; padding: 0; }
  .daily-traffic-dimension { align-self: center; }
  .daily-traffic-dimension > span { width: 34px; height: 34px; border-radius: 11px; }
  .daily-traffic-dimension svg { width: 18px; height: 18px; }
  .daily-traffic-dimension strong { font-size: 17px; }
  .daily-traffic-rating { justify-content: flex-end; }
  .daily-traffic-rating-icon { width: 30px; height: 30px; }
  .daily-traffic-rating-icon svg { width: 17px; height: 17px; }
  .daily-traffic-rating strong { font-size: 16px; }
  .daily-traffic-comparison,
  .daily-traffic-evidence { grid-column: 1 / -1; display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 9px; }
  .daily-traffic-comparison small,
  .daily-traffic-evidence small { display: block; padding-top: 3px; }
  .daily-traffic-comparison strong { font-size: 14px; }
  .daily-traffic-evidence { font-size: 14px; line-height: 1.55; }
  .daily-traffic-overall { box-shadow: inset 3px 0 0 var(--traffic-tone); }
  .daily-traffic-overall .daily-traffic-dimension strong { font-size: 18px; }
  .daily-traffic-footer { align-items: flex-start; flex-direction: column; gap: 8px; padding-top: 10px; }
  .daily-traffic-footer small { text-align: left; }
}

/* Stock identity and the four stock-analysis destinations share one compact control row. */
.position-header { display: block; }
.quote-block { width: 100%; }
.tracking-layout:not(:has(.technical-main)):has(.position-header) .position-header { padding: 0; }
.tracking-layout:not(:has(.technical-main)):has(.position-header) .message-header {
  min-height: 54px;
  margin-top: 4px;
}
.tracking-layout:not(:has(.technical-main)):has(.position-header) .quote-block .negative {
  color: var(--negative) !important;
}
.quote-title {
  min-width: 0;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: none;
}
.quote-title::-webkit-scrollbar { display: none; }
.quote-stock-identity {
  min-height: 42px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 9px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  padding: 0 4px;
  text-align: left;
}
.quote-stock-identity:hover,
.quote-stock-identity:focus-visible { background: rgba(255, 255, 255, .07); }
.quote-stock-identity h2 { margin: 0; }
.quote-stock-identity > span { color: var(--text-2); font: 18px/1 var(--mono); }
.quote-group-tabs { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }
.quote-group-tab {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
  color: var(--text-2);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 680;
  white-space: nowrap;
}
.quote-group-tab:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .08); color: var(--text); }
.quote-group-tab.selected { border-color: rgba(120, 145, 255, .5); background: rgba(120, 145, 255, .14); color: #dce3ff; }
.quote-group-icon { display: grid; place-items: center; color: #8da2ff; }
.quote-group-icon svg { width: 15px; height: 15px; }
.quote-group-count {
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #7891ff;
  color: #fff;
  font: 700 10px/1 var(--mono);
}
.quote-group-count.zero { background: rgba(255, 255, 255, .09); color: var(--muted); }
.quote-title-actions { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; }

@media (max-width: 620px) {
  .quote-title { gap: 8px; }
  .quote-stock-identity { min-height: 38px; }
  .quote-stock-identity h2 { font-size: 22px; }
  .quote-stock-identity > span { font-size: 15px; }
  .quote-group-tab { min-height: 36px; padding: 0 9px; }
}

@media (min-width: 981px) {
  .watchlist .market-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 10px 4px 12px;
  }
  .watchlist .market-tool { display: none; }
  .watchlist .market-tool-market,
  .watchlist .market-tool-ai-selection {
    min-height: 43px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 7px;
    border-color: #414141;
    border-radius: 12px;
    background: #292929;
    padding: 6px 7px;
  }
  .watchlist .market-tool-market.selected,
  .watchlist .market-tool-ai-selection.selected { border-color: #606060; background: #484848; }
  .watchlist .market-tool-icon { width: 24px; height: 24px; border-radius: 7px; background: #383838; }
  .watchlist .market-tool-icon svg { width: 15px; height: 15px; }
  .watchlist .market-tool strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .watchlist .market-tool small,
  .watchlist .market-tool-arrow { display: none; }
}

.ai-refresh-button:focus-visible,
.ai-data-notice button:focus-visible,
.ai-selection-state button:focus-visible,
.ai-results-tabs button:focus-visible,
.ai-stock-link:focus-visible,
.ai-results-table-wrap:focus-visible {
  outline: 2px solid #b4ee91;
  outline-offset: 2px;
}

/* Keep each stock visually recognizable throughout the calendar. */
.tracking-layout:not(:has(.technical-main)) .calendar-event[class*="stock-tone-"] {
  border-color: var(--calendar-stock-border);
  border-left-width: 1px;
  background: var(--calendar-stock-bg);
}
.tracking-layout:not(:has(.technical-main)) .calendar-event[class*="stock-tone-"]:hover {
  border-color: var(--calendar-stock-border-hover);
  background: var(--calendar-stock-bg-hover);
}
.tracking-layout:not(:has(.technical-main)) .calendar-event[class*="stock-tone-"] .calendar-event-stock i,
.tracking-layout:not(:has(.technical-main)) .calendar-event[class*="stock-tone-"].unread .calendar-event-stock i { background: var(--calendar-stock-accent); }
.calendar-event.stock-tone-0 { --calendar-stock-bg: #20283c; --calendar-stock-bg-hover: #28334d; --calendar-stock-border: #3f527e; --calendar-stock-border-hover: #657db3; --calendar-stock-accent: #8ea7ff; }
.calendar-event.stock-tone-1 { --calendar-stock-bg: #2c2238; --calendar-stock-bg-hover: #382b48; --calendar-stock-border: #60487a; --calendar-stock-border-hover: #8867aa; --calendar-stock-accent: #c09af2; }
.calendar-event.stock-tone-2 { --calendar-stock-bg: #18322d; --calendar-stock-bg-hover: #204039; --calendar-stock-border: #32695c; --calendar-stock-border-hover: #4d8f7f; --calendar-stock-accent: #63d9bc; }
.calendar-event.stock-tone-3 { --calendar-stock-bg: #382b1d; --calendar-stock-bg-hover: #463724; --calendar-stock-border: #725936; --calendar-stock-border-hover: #9c7847; --calendar-stock-accent: #f0bd6a; }
.calendar-event.stock-tone-4 { --calendar-stock-bg: #382126; --calendar-stock-bg-hover: #472a31; --calendar-stock-border: #76434e; --calendar-stock-border-hover: #a65f6d; --calendar-stock-accent: #ff8b9c; }
.calendar-event.stock-tone-5 { --calendar-stock-bg: #19313a; --calendar-stock-bg-hover: #20404b; --calendar-stock-border: #356674; --calendar-stock-border-hover: #4f8b9a; --calendar-stock-accent: #69ccdf; }
