:root {
  color-scheme: light;
  font-family: "Microsoft JhengHei", "PingFang TC", Arial, sans-serif;
  background: #eef2f5;
  color: #17212b;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

.site-menu-button {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 80;
  display: inline-grid;
  gap: 5px;
  place-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(214, 166, 63, 0.72);
  border-radius: 8px;
  background: rgba(54, 38, 18, 0.92);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.site-menu-button span {
  display: block;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: #f2c84b;
}

.site-menu-panel {
  position: fixed;
  top: 78px;
  right: 16px;
  z-index: 90;
  display: grid;
  width: min(280px, calc(100vw - 32px));
  border: 1px solid rgba(214, 166, 63, 0.45);
  border-radius: 8px;
  padding: 14px;
  background: rgba(15, 19, 34, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

.site-menu-panel a,
.site-menu-panel button {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(214, 166, 63, 0.18);
  border-radius: 0;
  padding: 16px 10px;
  background: transparent;
  color: #f7f0dc;
  text-align: left;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
}

.site-menu-panel a:last-child,
.site-menu-panel button:last-child {
  border-bottom: 0;
}

.site-menu-panel a:hover,
.site-menu-panel button:hover {
  color: #f2c84b;
}

.site-menu-panel .site-menu-admin-item {
  margin-top: 6px;
  border-top: 1px solid rgba(242, 200, 75, 0.42);
  color: #f2c84b;
}

.site-menu-panel .site-menu-admin-item + .site-menu-admin-item {
  margin-top: 0;
  border-top: 0;
}

.site-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(4, 8, 18, 0.28);
}

button,
input,
textarea {
  font: inherit;
}

.app-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 40px auto;
}

.panel {
  background: #fff;
  border: 1px solid #d7dde3;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(30, 48, 66, 0.08);
  padding: 28px;
}

.auth-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 370px);
  gap: 28px;
  align-items: start;
}

.brand-login {
  padding: clamp(22px, 4vw, 40px);
  background:
    linear-gradient(135deg, rgba(255, 247, 228, 0.9), rgba(248, 252, 251, 0.94)),
    #fff;
}

.market-verdict-hero {
  position: relative;
  grid-column: 1 / -1;
  min-height: 0;
  display: grid;
  gap: 18px;
  border: 1px solid rgba(214, 166, 63, 0.38);
  border-radius: 18px;
  padding: clamp(28px, 4vw, 46px);
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 209, 102, 0.2), transparent 38%),
    linear-gradient(145deg, #102231, #172f3d 58%, #183843);
  color: #fff;
  box-shadow: 0 24px 60px rgba(20, 42, 55, 0.2);
}

.market-verdict-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.market-verdict-market {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.market-verdict-market > span {
  margin: 0;
  color: #eef4f6;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 1000;
}

.market-verdict-market .market-pulse-index {
  white-space: nowrap;
}

.market-verdict-date {
  position: absolute;
  right: clamp(28px, 4vw, 46px);
  bottom: clamp(28px, 4vw, 46px);
  text-align: right;
}

.market-verdict-hero h1 {
  margin: 0;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #f4f7f9;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 1000;
  line-height: 1.1;
  letter-spacing: 0;
}

.market-verdict-hero h1[data-tone="bullish"] { color: #ff8f82; box-shadow: 0 0 18px rgba(255, 143, 130, 0.18); }
.market-verdict-hero h1[data-tone="bearish"] { color: #72d7b0; box-shadow: 0 0 18px rgba(114, 215, 176, 0.2); }
.market-verdict-hero h1[data-tone="neutral"] { color: #f3c969; }

.market-verdict-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.market-verdict-stat {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(220, 233, 238, 0.16);
  border-radius: 13px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.055);
}

.market-verdict-stat span {
  color: #c6d4da;
  font-size: 14px;
  font-weight: 850;
}

.market-verdict-stat strong {
  color: #fff;
  font-size: clamp(21px, 4vw, 34px);
  line-height: 1.05;
}

.market-verdict-stat strong b {
  font-size: 1.45em;
}

.market-verdict-stat.bullish strong { color: #ff9b90; }
.market-verdict-stat.bearish strong { color: #72d7b0; }

.market-verdict-volume-note {
  margin: -3px 0 0;
  color: #9fb1ba;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
}

.market-verdict-copy {
  display: grid;
  gap: 4px;
}

.market-verdict-reason {
  margin: 0;
  color: #dbe6eb;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 800;
  line-height: 1.4;
}

.market-verdict-ratio {
  margin: 0;
  color: #aebfc7;
  font-size: 14px;
  font-weight: 750;
}

.market-pulse-low-volume-note {
  display: block;
  margin-top: 7px;
  color: #72828d;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.market-verdict-action {
  justify-self: start;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 9px 16px;
  background: rgba(243, 201, 105, 0.12);
  color: #f3c969;
  font-size: 15px;
  font-weight: 1000;
  box-shadow: none;
}

.market-verdict-action:hover,
.market-verdict-action:focus-visible {
  background: rgba(243, 201, 105, 0.22);
  transform: translateY(-1px);
}

.brand-copy {
  display: grid;
  gap: 16px;
  align-content: start;
}

.mobile-use-flow {
  display: none;
}

.brand-copy > .eyebrow {
  color: #296f77;
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 1000;
  letter-spacing: 0.02em;
}

.brand-copy h1 {
  max-width: 760px;
  color: #9c2f24;
  font-size: clamp(34px, 7vw, 70px);
  line-height: 1.06;
  text-shadow: 0 2px 0 #ffd166, 0 14px 34px rgba(156, 47, 36, 0.16);
}

.brand-copy h1 > span {
  display: inline;
}

.query-title-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.05em;
  height: 1.05em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.14em;
}

.cover-query-heading h2,
.stock-lookup-heading strong {
  align-items: center;
  gap: 0.38em;
}

.cover-query-heading h2 {
  display: flex;
}

.stock-lookup-heading strong.query-title {
  display: inline-flex;
}

.brand-subtitle {
  margin: 0;
  color: #296f77;
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 900;
}

.brand-slogan {
  margin: 0;
  color: #17212b;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.6;
}

.brand-description {
  margin: 0;
  max-width: 760px;
  color: #41505f;
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 800;
  line-height: 1.65;
}

.brand-value-line {
  margin: -4px 0 0;
  color: #8a4f20;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.6;
}

@media (max-width: 920px) and (orientation: landscape) {
  #loginView .hero-entry-card {
    position: static;
    width: auto;
    max-height: none;
    overflow: visible;
    transform: none;
  }
}

.learn-more-link {
  width: fit-content;
  color: #296f77;
  font-weight: 900;
  line-height: 1.5;
  text-underline-offset: 4px;
}

.popular-stocks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.popular-stocks > span {
  color: #607080;
  font-size: 13px;
  font-weight: 900;
}

.popular-stocks button {
  min-height: 34px;
  border: 1px solid #bfd2d6;
  border-radius: 999px;
  padding: 6px 11px;
  background: #f4f8f9;
  color: #296f77;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.popular-stocks button:hover,
.popular-stocks button:focus-visible {
  border-color: #296f77;
  background: #e7f2f3;
}

.query-examples {
  margin: 10px 0 0;
}

.first-use-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  max-width: 900px;
  border: 2px solid rgba(178, 58, 72, 0.28);
  border-radius: 12px;
  padding: 18px;
  background: linear-gradient(135deg, #fff8e8, #fff);
  box-shadow: 0 16px 34px rgba(156, 47, 36, 0.12);
}

.first-use-card h2 {
  margin: 4px 0 6px;
  color: #9c2f24;
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.18;
}

.first-use-card p {
  margin: 0;
  color: #41505f;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.6;
}

.first-use-actions {
  display: grid;
  gap: 10px;
  min-width: 168px;
}

.first-use-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid rgba(41, 111, 119, 0.28);
  border-radius: 10px;
  padding: 10px 14px;
  background: #fff;
  color: #296f77;
  font-size: 15px;
  font-weight: 1000;
  text-align: center;
  text-decoration: none;
}

.first-use-actions .first-use-primary {
  border-color: #b23a48;
  background: #b23a48;
  color: #fff;
}

.first-use-actions a:hover,
.first-use-actions a:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(30, 48, 66, 0.13);
}

.full-selection-entry {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(41, 111, 119, 0.28);
  border-radius: 10px;
  padding: 15px 17px;
  background: linear-gradient(135deg, #f2f8f8, #fffdf8);
}

.full-selection-entry h2 {
  margin: 0 0 4px;
  color: #243745;
  font-size: clamp(19px, 2.3vw, 25px);
}

.full-selection-entry p {
  margin: 0;
  color: #607080;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.full-selection-entry button {
  min-width: 132px;
  min-height: 44px;
  border: 1px solid #296f77;
  border-radius: 9px;
  padding: 9px 15px;
  background: #296f77;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.full-selection-entry button:hover,
.full-selection-entry button:focus-visible {
  background: #235f66;
  box-shadow: 0 8px 18px rgba(41, 111, 119, 0.18);
}

.live-market-strip {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  min-height: 36px;
  margin: -14px -14px 0;
  border: 1px solid rgba(41, 111, 119, 0.16);
  border-radius: 8px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.72);
  color: #526474;
  font-size: 12px;
  line-height: 1.35;
}

.live-market-strip > div { display: inline-flex; gap: 5px; align-items: center; min-width: 0; }
.live-market-strip span { font-weight: 800; }
.live-market-strip strong { color: #24313d; font-size: 12px; }
.live-market-strip b { color: #9c2f24; font-size: 13px; }
.announcement-divider { color: #b8c3cc; font-weight: 400; }

.intraday-alert {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: min(390px, calc(100vw - 40px));
  height: 96px;
  border: 1px solid rgba(239, 167, 36, 0.72);
  border-radius: 13px;
  padding: 13px 40px 10px 15px;
  overflow: hidden;
  background: rgba(12, 18, 23, 0.97);
  box-shadow: 0 14px 34px rgba(23, 33, 43, 0.22);
  color: #f7f9fa;
  backdrop-filter: blur(10px);
  cursor: pointer;
  animation: intraday-alert-enter 220ms ease-out;
}

.intraday-alert:not([data-mode="close"]) {
  height: 108px;
}

.intraday-alert-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  min-height: 30px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: #d8dde1;
  font-size: 23px;
  line-height: 1;
  box-shadow: none;
}

.intraday-alert-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: none;
}

.intraday-alert-content {
  align-self: center;
  min-width: 0;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease;
}

.intraday-alert.is-changing .intraday-alert-content {
  opacity: 0;
  transform: translateY(2px);
}

.intraday-alert-session-title {
  display: none;
  margin: 0 0 2px;
  color: #ffb52e;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-align: center;
  transform: translateX(12px);
}

.intraday-alert:not([data-mode="close"]) .intraday-alert-session-title {
  display: block;
}

.intraday-alert-headline {
  display: flex;
  align-items: baseline;
  min-width: 0;
  white-space: nowrap;
}

.intraday-alert-title,
.intraday-alert-stock {
  min-width: 0;
  min-height: 0;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  line-height: 1.4;
}

.intraday-alert-title {
  flex: 0 0 auto;
  color: #ffb52e;
  font-size: 16px;
  font-weight: 900;
}

.intraday-alert-divider {
  flex: 0 0 auto;
  margin: 0 3px;
  color: #88939c;
}

.intraday-alert-stock {
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.intraday-alert-title:hover,
.intraday-alert-stock:hover {
  background: transparent;
  color: #ffca67;
  transform: none;
}

.intraday-alert-meta {
  margin: 5px 0 0;
  color: #d6dde2;
  font-size: 13px;
  font-weight: 800;
}

.intraday-alert[data-mode="close"] .intraday-alert-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.intraday-summary-count {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  min-height: 0;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: #d6dde2;
  font: inherit;
}

.intraday-summary-count strong {
  font-size: 17px;
  line-height: 1;
}

.intraday-summary-high strong {
  color: #ff6b61;
}

.intraday-summary-low strong {
  color: #68a9ff;
}

.intraday-summary-count:hover {
  background: transparent;
  color: #fff;
  transform: none;
}

.intraday-summary-separator {
  color: #667785;
}

.intraday-alert-status {
  align-self: end;
  color: #aeb9c1;
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
}

.intraday-alert[data-status="error"],
.intraday-alert[data-status="source_incomplete"] {
  border-color: rgba(180, 108, 18, 0.5);
  background: rgba(37, 27, 13, 0.98);
}

.intraday-alert[data-mode="close"] {
  border-color: rgba(76, 139, 232, 0.68);
  background: rgba(12, 18, 27, 0.97);
}

.intraday-alert[data-mode="close"] .intraday-alert-title {
  color: #79adff;
}

.intraday-alert[data-mode="close"] .intraday-alert-divider,
.intraday-alert[data-mode="close"] .intraday-alert-stock {
  display: none;
}

.intraday-alert[data-mode="close"] .intraday-alert-content {
  cursor: pointer;
}

.intraday-alert[data-mode="close"] .intraday-alert-title,
.intraday-alert[data-mode="close"] .intraday-alert-meta,
.intraday-alert[data-mode="close"] .intraday-alert-status {
  line-height: 1.25;
  white-space: nowrap;
}

.intraday-alert-collapsed {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 72px;
  height: 44px;
  border: 1px solid rgba(239, 167, 36, 0.68);
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(12, 18, 23, 0.97);
  color: #ffbd43;
  box-shadow: 0 10px 25px rgba(23, 33, 43, 0.2);
  font-size: 16px;
  animation: intraday-alert-enter 200ms ease-out;
}

@keyframes intraday-alert-enter {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-panel.intraday-list-modal {
  width: min(920px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  overflow: hidden;
}

.modal-panel.intraday-list-modal.is-summary-list {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.intraday-list-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.intraday-list-heading h2,
.intraday-list-heading p {
  margin-top: 0;
}

.intraday-list-heading .section-note {
  margin-bottom: 0;
}

.intraday-close-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px;
  border-radius: 10px;
  background: #eef3f4;
}

.intraday-close-tabs button {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  background: transparent;
  color: #526474;
  box-shadow: none;
  font-weight: 900;
}

.intraday-close-tabs button.is-active {
  background: #fff;
  color: #276c61;
  box-shadow: 0 2px 8px rgba(23, 33, 43, 0.1);
}

.intraday-list-wrap {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  border: 1px solid #dce3e8;
  border-radius: 10px;
}

.intraday-list-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.intraday-list-table th,
.intraday-list-table td {
  border-bottom: 1px solid #e1e7eb;
  padding: 11px 12px;
  text-align: left;
  white-space: nowrap;
}

.intraday-list-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f1f5f7;
  color: #3c4b58;
  font-size: 13px;
}

.intraday-list-table.is-close-mode td {
  padding: 0;
}

.intraday-list-table.is-close-mode {
  width: 100%;
  table-layout: fixed;
}

.intraday-close-stock {
  display: flex;
  align-items: baseline;
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 14px 16px;
  overflow: hidden;
  background: #fff;
  color: #24313d;
  box-shadow: none;
  font-size: 15px;
  text-decoration: none;
  text-align: left;
  white-space: nowrap;
}

.intraday-close-stock > * {
  flex: 0 0 auto;
}

body.intraday-list-open {
  overflow: hidden;
}

.intraday-close-stock strong {
  color: #236c73;
}

.intraday-close-stock span[aria-hidden="true"] {
  margin: 0 7px;
  color: #aeb8bf;
}

.intraday-close-stock:hover {
  background: #f5faf8;
  color: #8d231c;
  transform: none;
}

.intraday-list-stock {
  border: 0;
  padding: 0;
  background: transparent;
  color: #236c73;
  box-shadow: none;
  font-weight: 900;
  text-decoration: none;
  text-align: left;
}

.intraday-list-stock:hover {
  background: transparent;
  color: #8d231c;
  transform: none;
}

.intraday-list-period {
  color: #9c2f24;
  font-weight: 900;
}

.intraday-list-state {
  font-weight: 800;
}

.intraday-list-state.is-confirmed {
  color: #16794c;
}

.intraday-list-state.is-not-held {
  color: #9c2f24;
}

.intraday-list-note {
  margin: 0;
  color: #697782;
  font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .intraday-alert-content {
    transition: none;
  }
}

@media (max-width: 700px) {
  .intraday-alert {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    left: 12px;
    width: auto;
    height: 88px;
    border-radius: 13px;
    padding: 11px 36px 8px 13px;
  }

  .intraday-alert:not([data-mode="close"]) {
    height: 104px;
  }

  .intraday-alert-title,
  .intraday-alert-stock {
    font-size: 14px;
  }

  .intraday-alert-meta {
    margin-top: 5px;
    font-size: 12px;
  }

  .intraday-alert-status {
    font-size: 10px;
  }

  .intraday-alert[data-mode="close"] {
    height: 82px;
    padding-top: 9px;
    padding-bottom: 8px;
  }

  .intraday-alert[data-mode="close"] .intraday-alert-meta {
    margin-top: 2px;
    gap: 4px;
  }

  .intraday-summary-count {
    gap: 3px;
  }

  .intraday-summary-count strong {
    font-size: 15px;
  }

  .intraday-alert-collapsed {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    min-width: 66px;
    height: 42px;
    padding: 0 14px;
  }

  .modal-panel.intraday-list-modal {
    width: 100%;
    height: calc(100dvh - 24px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 15px;
    overflow: hidden;
  }

  .intraday-list-table th,
  .intraday-list-table td {
    padding: 9px 10px;
    font-size: 12px;
  }

  .intraday-close-stock {
    padding: 12px 10px;
    font-size: 13px;
  }
}

.trend-score-intro {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.4fr);
  gap: 22px;
  border: 1px solid rgba(156, 47, 36, 0.18);
  border-radius: 12px;
  padding: 22px;
  background: linear-gradient(135deg, #fff8e8, #fff);
}

.trend-score-intro > summary {
  position: relative;
  list-style: none;
  cursor: pointer;
}

.trend-score-intro > summary::-webkit-details-marker {
  display: none;
}

.trend-score-intro > summary::after {
  content: "−";
  position: absolute;
  top: 0;
  right: 0;
  color: #296f77;
  font-size: 24px;
  font-weight: 900;
}

.trend-score-intro:not([open]) > summary::after {
  content: "+";
}

.trend-score-heading h2 { margin: 4px 0 9px; color: #9c2f24; font-size: clamp(23px, 3vw, 32px); }
.trend-score-heading > p:last-child { margin: 0; color: #41505f; font-weight: 800; line-height: 1.65; }
.score-factor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.score-factor-grid > div { display: grid; grid-template-columns: auto 1fr; gap: 3px 9px; align-content: center; border: 1px solid #e3e8ed; border-radius: 9px; padding: 13px; background: rgba(255, 255, 255, 0.84); }
.score-factor-grid b { grid-row: 1 / 3; color: #d6a63f; font-size: 20px; }
.score-factor-grid strong { color: #17212b; }
.score-factor-grid span { color: #607080; font-size: 13px; line-height: 1.45; }

.site-footer { margin-top: 18px; border-top: 1px solid #ccd4dc; padding: 20px 8px 8px; color: #607080; font-size: 13px; line-height: 1.65; }
.site-footer strong { color: #41505f; }
.site-footer p { margin: 7px 0 0; }

.brand-guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.brand-guide-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid #bfd2d6;
  border-radius: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.74);
  color: #296f77;
  font-weight: 900;
  text-decoration: none;
}

.brand-guide-links a:hover {
  border-color: #296f77;
  background: #f4f8f9;
}

.quick-start-link {
  margin-top: -2px;
}

.quick-start-link a {
  min-height: 38px;
  border-style: dashed;
  background: rgba(255, 255, 255, 0.52);
  color: #41505f;
  font-size: 14px;
}

.quick-start-link a:hover {
  color: #296f77;
}

.cover-market-section {
  grid-column: 1 / -1;
  display: grid;
  gap: 18px;
  border: 1px solid #d7dde3;
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.82);
}

.cover-market-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.cover-market-heading h2 {
  margin: 0;
  color: #17212b;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.25;
}

.cover-market-heading p {
  margin: 0;
  max-width: 360px;
  color: #607080;
  font-weight: 900;
  line-height: 1.6;
}

.cover-top-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 12px;
}

.trend-radar-section {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
  border: 1px solid rgba(41, 111, 119, 0.28);
  border-radius: 12px;
  padding: 20px;
  background: linear-gradient(145deg, #f1f8f8, #fffdf7);
}

@media (max-width: 720px) {
  #loginView > .market-verdict-hero { order: 1; }
  #loginView > .brand-copy { order: 2; }
  #loginView > .hero-entry-card { order: 3; }
  #loginView > .full-selection-entry { order: 4; }
  #loginView > #trendRadarSection { order: 5; }
  #loginView > .market-explanation-section { order: 6; }
  #loginView > .live-market-strip { order: 7; }
  #loginView > .trend-score-intro { order: 10; }
}

.trend-radar-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.trend-radar-heading h2 { margin: 2px 0 5px; color: #17212b; font-size: clamp(24px, 3vw, 34px); }
.trend-radar-heading p { margin: 0; color: #607080; font-weight: 800; line-height: 1.5; }
.trend-radar-date { text-align: right; font-size: 13px; }

.trend-radar-gap-notice {
  border: 1px solid #e1c97b;
  border-radius: 9px;
  padding: 11px 13px;
  background: #fff8dc;
  color: #6f5610;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.55;
}

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

.radar-temperature > div,
.radar-temperature > button {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  gap: 2px 7px;
  border: 1px solid #d8e5e6;
  border-radius: 9px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.88);
  color: inherit;
  font: inherit;
  text-align: left;
}
.radar-temperature > button { cursor: pointer; }
.radar-temperature > button:hover,
.radar-temperature > button:focus-visible { border-color: #296f77; outline: none; background: #fff; }

.radar-temperature span { grid-column: 1 / -1; color: #607080; font-size: 12px; font-weight: 900; }
.radar-temperature strong { color: #9c2f24; font-size: 25px; }
.radar-temperature em { align-self: end; padding-bottom: 3px; color: #607080; font-size: 12px; font-style: normal; font-weight: 900; }
.trend-radar-message { margin: -4px 0 0; color: #607080; font-size: 12px; font-weight: 800; }

.trend-radar-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.trend-radar-card { min-width: 0; border: 1px solid #d9e1e7; border-radius: 10px; padding: 13px; background: #fff; }
.trend-radar-card.strongest { border-color: rgba(214, 166, 63, 0.7); }
.market-pulse-summary {
  margin-top: 22px;
  border: 1px solid #3b4c59;
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(31, 44, 55, 0.96), rgba(20, 31, 40, 0.98));
  box-shadow: 0 12px 30px rgba(8, 15, 21, 0.2);
}
.market-pulse-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}
.market-pulse-heading h3 { margin: 2px 0 0; color: #fff; font-size: 23px; }
.market-pulse-title-line { display: flex; align-items: center; gap: 10px; }
.market-pulse-verdict {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 14px;
  line-height: 1;
}
.market-pulse-verdict[data-tone="bullish"] { color: #ff8f82; }
.market-pulse-verdict[data-tone="bearish"] { color: #72d7b0; }
.market-pulse-verdict[data-tone="neutral"] { color: #f3c969; }
.market-pulse-index { margin: 0; color: #e9f0f4; font-size: 14px; font-weight: 900; }
.market-pulse-index[data-tone="up"] { color: #ff857c; }
.market-pulse-index[data-tone="down"] { color: #71dca3; }
.market-pulse-date { margin: 0; color: #9fb0bc; font-size: 12px; font-weight: 800; }
.market-pulse-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.market-pulse-side {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
}
.market-pulse-label { display: inline-block; margin-bottom: 8px; font-size: 14px; font-weight: 1000; }
.market-pulse-side.bullish .market-pulse-label { color: #ff857c; }
.market-pulse-side.bearish .market-pulse-label { color: #71dca3; }
.market-pulse-side > p { margin: 0 0 2px; color: #c7d1d8; font-size: 12px; font-weight: 800; }
.market-pulse-side > strong { display: block; color: #fff; font-size: 16px; }
.market-pulse-side > strong b { font-size: 34px; line-height: 1.15; }
.market-pulse-meter {
  height: 9px;
  overflow: hidden;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}
.market-pulse-meter i { display: block; width: 0; height: 100%; border-radius: inherit; transition: width 300ms ease; }
.market-pulse-side.bullish .market-pulse-meter i { background: linear-gradient(90deg, #ff5f55, #ff9d7c); }
.market-pulse-side.bearish .market-pulse-meter i { background: linear-gradient(90deg, #39b879, #72dba4); }
.market-pulse-extra { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 11px; color: #aebdc7; font-size: 11px; font-weight: 800; }
.market-pulse-extra b { color: #e8f1f5; font-size: 13px; }
.market-pulse-note { margin: 12px 0 0; color: #91a5b2; font-size: 11px; font-weight: 700; text-align: center; }
.market-breadth-panel { margin-top: 18px; border-top: 1px solid #d9e1e7; padding-top: 18px; }
.market-breadth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 34px 0 8px;
  color: #718090;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.market-breadth-divider::before,
.market-breadth-divider::after {
  content: "";
  flex: 1;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #9aabb7);
}
.market-breadth-divider::after {
  background: linear-gradient(90deg, #9aabb7, transparent);
}
.bearish-breadth-panel { margin-top: 8px; border-top: 0; }
.breadth-fullscreen-close { display: none; }
.market-breadth-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.market-breadth-heading h3 { margin: 2px 0 5px; color: #17212b; font-size: 22px; }
.market-breadth-heading p { margin: 0; color: #607080; font-weight: 700; line-height: 1.5; }
.breadth-info {
  position: relative;
  z-index: 8;
  margin: 0;
}
.breadth-info summary {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #b9cbd0;
  border-radius: 50%;
  padding: 0;
  background: #f4f9f9;
  color: #296f77;
  font-size: 19px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}
.breadth-info summary::-webkit-details-marker { display: none; }
.breadth-info summary:hover,
.breadth-info summary:focus-visible {
  border-color: #296f77;
  outline: none;
  background: #fff;
}
.breadth-info[open] summary {
  background: #296f77;
  color: #fff;
}
.breadth-info > div {
  position: absolute;
  top: 40px;
  right: 0;
  width: min(520px, calc(100vw - 48px));
  max-height: min(420px, 65vh);
  overflow: auto;
  margin-top: 9px;
  border: 1px solid #d8e3e6;
  border-radius: 12px;
  padding: 12px 14px;
  background: #f8fbfb;
  box-shadow: 0 8px 20px rgba(23, 33, 43, 0.08);
}
.breadth-info > div p {
  margin: 0 0 7px;
  color: #425466;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}
.breadth-info > div p:last-child { margin-bottom: 0; }
.breadth-info > div strong { color: #17212b; }
.breadth-info .breadth-info-risk {
  border-top: 1px solid #d8e3e6;
  padding-top: 8px;
  color: #7a5a16;
  font-weight: 900;
}
.market-breadth-latest { text-align: right; font-size: 13px; white-space: nowrap; }
.market-breadth-controls { position: relative; display: grid; justify-items: end; gap: 7px; }
.breadth-range-switch { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid #405460; border-radius: 999px; background: #1e2b35; }
.breadth-range-switch button { border: 0; border-radius: 999px; padding: 5px 10px; background: transparent; color: #a9bac5; font: inherit; font-size: 12px; font-weight: 900; cursor: pointer; }
.breadth-range-switch button.active { background: #eef4f6; color: #24313d; }
.market-breadth-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 16px 0 4px; color: #425466; font-size: 12px; font-weight: 800; }
.market-breadth-legend span { display: inline-flex; align-items: center; gap: 6px; }
.market-breadth-legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; }
.market-breadth-legend [data-breadth-color="total"] { background: #d63b31; }
.bearish-breadth-panel .market-breadth-legend [data-breadth-color="total"] { background: #55c98b; }
.market-breadth-legend [data-breadth-color="high240"] { background: #c08a21; }
.market-breadth-legend [data-breadth-color="high90"] { background: #385f9f; }
.market-breadth-legend [data-breadth-color="high30"] { background: #4b9b72; }
.market-breadth-legend [data-breadth-color="comparison-high"] { background: #ff746b; }
.market-breadth-legend [data-breadth-color="comparison-low"] { background: #55c98b; }
.market-breadth-detail-legend { display: none !important; }
.show-breadth-details .market-breadth-detail-legend { display: inline-flex !important; }
.market-breadth-detail-toggle { margin-left: auto; border: 1px solid #b9c7d1; border-radius: 999px; padding: 5px 11px; background: #fff; color: #296f77; font: inherit; font-size: 11px; cursor: pointer; }
.market-breadth-detail-toggle:hover, .market-breadth-detail-toggle:focus-visible { border-color: #296f77; outline: none; }
.market-breadth-chart-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid #d8e1e7;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(247, 250, 251, 0.86), rgba(255, 255, 255, 0.98));
  box-shadow: 0 7px 20px rgba(23, 33, 43, 0.06);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.market-breadth-chart-wrap:hover {
  border-color: #7e9ba6;
  box-shadow: 0 10px 26px rgba(23, 33, 43, 0.11);
}
.market-breadth-tap-hint {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(41, 111, 119, 0.28);
  border-radius: 999px;
  padding: 7px 11px 7px 8px;
  background: rgba(238, 248, 247, 0.94);
  color: #225f66;
  box-shadow: 0 5px 15px rgba(23, 33, 43, 0.12);
  pointer-events: none;
}
.market-breadth-tap-hint > span:last-child { display: grid; line-height: 1.15; }
.market-breadth-tap-hint strong { font-size: 12px; }
.market-breadth-tap-hint small { margin-top: 2px; color: #607d82; font-size: 9px; font-weight: 800; }
.market-breadth-tap-icon {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: #296f77;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}
.market-breadth-chart-wrap svg { display: block; width: 100%; height: auto; min-height: 220px; }
.breadth-grid line { stroke: #e3e9ee; stroke-width: 1; }
.breadth-axis text { fill: #718090; font-size: 11px; font-weight: 700; }
.breadth-line { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.breadth-line.total { stroke: #d63b31; stroke-width: 3; }
.breadth-line.comparison-high { stroke: #ff746b; stroke-width: 3.5; }
.breadth-line.comparison-low { stroke: #55c98b; stroke-width: 3.5; }
.breadth-line.high240 { stroke: #c08a21; stroke-width: 1.4; opacity: 0.72; }
.breadth-line.high90 { stroke: #385f9f; stroke-width: 1.4; opacity: 0.72; }
.breadth-line.high30 { stroke: #4b9b72; stroke-width: 1.4; opacity: 0.72; }
.market-breadth-panel:not(.show-breadth-details) .breadth-line.high240,
.market-breadth-panel:not(.show-breadth-details) .breadth-line.high90,
.market-breadth-panel:not(.show-breadth-details) .breadth-line.high30,
.market-breadth-panel:not(.show-breadth-details) .breadth-point.high240,
.market-breadth-panel:not(.show-breadth-details) .breadth-point.high90,
.market-breadth-panel:not(.show-breadth-details) .breadth-point.high30,
.market-breadth-panel:not(.show-breadth-details) .breadth-tooltip-detail,
.market-breadth-panel:not(.show-breadth-details) .breadth-summary-detail { display: none; }
.breadth-hit-area { fill: transparent; cursor: crosshair; outline: none; touch-action: manipulation; }
.breadth-hit-area:focus-visible { stroke: #296f77; stroke-width: 2; }
.breadth-selection { pointer-events: none; }
.breadth-selection-line { stroke: #718090; stroke-width: 1; stroke-dasharray: 4 4; }
.breadth-point { stroke: #fff; stroke-width: 1.5; }
.breadth-point.total { fill: #d63b31; }
.breadth-point.high240 { fill: #c08a21; }
.breadth-point.high90 { fill: #385f9f; }
.breadth-point.high30 { fill: #4b9b72; }
.breadth-point.comparison-high { fill: #ff746b; }
.breadth-point.comparison-low { fill: #55c98b; }
.breadth-chart-verdict { pointer-events: none; }
.breadth-chart-verdict rect { fill: #fff8e7; stroke: #c08a21; stroke-width: 2; }
.breadth-chart-verdict text { fill: #8b6213; font-size: 17px; font-weight: 1000; }
.breadth-chart-verdict[data-tone="bullish"] rect { fill: #fff0ee; stroke: #d63b31; }
.breadth-chart-verdict[data-tone="bullish"] text { fill: #b52d24; }
.breadth-chart-verdict[data-tone="bearish"] rect { fill: #edf9f3; stroke: #39b879; }
.breadth-chart-verdict[data-tone="bearish"] text { fill: #247d53; }
@media (max-width: 700px) {
  .breadth-chart-verdict rect { stroke-width: 4; }
  .breadth-chart-verdict text { font-size: 30px; }
}
.market-comparison-panel { border-color: rgba(214, 181, 98, 0.58) !important; }
.breadth-tooltip { display: none; }
.breadth-tooltip rect { fill: rgba(23, 33, 43, 0.94); stroke: rgba(255, 255, 255, 0.35); }
.breadth-tooltip text { fill: #fff; font-size: 11px; font-weight: 800; }
.breadth-tooltip-date { font-size: 12px !important; }
.market-breadth-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 10px 0 0;
  color: #425466;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}
.market-breadth-summary > strong,
.market-breadth-summary > span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  border: 1px solid #d8e1e7;
  border-radius: 999px;
  padding: 5px 9px;
  background: #f7fafb;
  white-space: nowrap;
}
.market-breadth-summary small {
  color: #6a7885;
  font-size: 0.82em;
  font-weight: 900;
}
.market-breadth-summary em {
  color: inherit;
  font-size: 0.82em;
  font-style: normal;
  font-weight: 900;
}
.market-breadth-summary b { color: #17212b; font-size: 1.08em; }
.breadth-summary-date { color: #296f77; }
.breadth-summary-primary {
  border-color: rgba(214, 59, 49, 0.34) !important;
  background: #fff0ee !important;
}
.breadth-summary-primary b { color: #b52d24; }
.bearish-breadth-panel .breadth-summary-primary {
  border-color: rgba(57, 184, 121, 0.4) !important;
  background: #edf9f3 !important;
}
.bearish-breadth-panel .breadth-summary-primary b { color: #247d53; }
.breadth-summary-verdict b { font-size: 1.32em; }
.breadth-summary-verdict[data-tone="bullish"] { border-color: rgba(214, 59, 49, 0.35); background: #fff0ee; }
.breadth-summary-verdict[data-tone="bullish"] b { color: #b52d24; }
.breadth-summary-verdict[data-tone="bearish"] { border-color: rgba(57, 184, 121, 0.42); background: #edf9f3; }
.breadth-summary-verdict[data-tone="bearish"] b { color: #247d53; }
.breadth-summary-verdict[data-tone="neutral"] { border-color: rgba(192, 138, 33, 0.4); background: #fff8e7; }
.breadth-summary-verdict[data-tone="neutral"] b { color: #8b6213; }
.trend-radar-card > div:first-child { display: flex; gap: 9px; align-items: center; margin-bottom: 10px; }
.trend-radar-card h3 { margin: 0; color: #17212b; font-size: 18px; }
.radar-card-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #e8f2f2; color: #296f77; font-weight: 1000; }
.radar-more-button { margin-left: auto; border: 0; padding: 5px 2px; background: transparent; color: #296f77; font-size: 12px; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.radar-more-button:hover, .radar-more-button:focus-visible { color: #9c2f24; }
.radar-stock-list { display: grid; gap: 7px; }

.radar-stock-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 9px;
  width: 100%;
  min-width: 0;
  border: 1px solid #e5eaee;
  border-radius: 8px;
  padding: 9px;
  background: #fbfcfd;
  color: #17212b;
  text-align: left;
  cursor: pointer;
}

.radar-stock-item:hover, .radar-stock-item:focus-visible { border-color: #296f77; background: #f2f8f8; }
.radar-stock-title { display: flex; min-width: 0; gap: 6px; align-items: baseline; }
.radar-stock-title strong { color: #9c2f24; }
.radar-stock-title b { overflow: hidden; color: #17212b; text-overflow: ellipsis; white-space: nowrap; }
.radar-status-label { justify-self: end; border-radius: 999px; padding: 3px 7px; background: #fff3c4; color: #6f3f00; font-size: 11px; font-weight: 900; white-space: nowrap; }
.radar-stock-metrics { display: flex; min-width: 0; gap: 10px; color: #607080; font-size: 11px; font-weight: 800; }
.radar-stock-metrics strong { color: #296f77; font-size: 12px; }
.radar-stock-item > em { justify-self: end; color: #607080; font-size: 11px; font-style: normal; font-weight: 900; }
.radar-empty { margin: 0; border-radius: 8px; padding: 15px 10px; background: #f7f9fa; color: #7a8793; font-size: 13px; font-weight: 800; text-align: center; }

.trend-radar-list-modal {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  width: min(860px, 100%);
  max-height: min(82vh, 780px);
  overflow: hidden;
}

.radar-modal-heading { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.radar-modal-heading h2 { margin: 2px 0 5px; color: #17212b; }
.radar-modal-heading p { margin: 0; }
.radar-full-list { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 0; overflow-y: auto; padding-right: 4px; }

.cover-top-grid.single-focus {
  grid-template-columns: minmax(0, 1fr);
}

.new-high-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.new-high-stats button {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 7px;
  align-items: baseline;
  min-height: 76px;
  border: 1px solid #d9e1e7;
  border-radius: 10px;
  padding: 14px 16px;
  background: #fff;
  color: #17212b;
  text-align: left;
  cursor: pointer;
}

.new-high-stats button:hover,
.new-high-stats button:focus-visible {
  border-color: #d6a63f;
  box-shadow: 0 8px 20px rgba(111, 63, 0, 0.1);
}

.new-high-stats span { font-weight: 900; }
.new-high-stats strong { color: #9c2f24; font-size: 30px; }
.new-high-stats em { color: #607080; font-style: normal; font-weight: 900; }

.cover-top-card {
  display: grid;
  gap: 12px;
  border: 1px solid #d9e1e7;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.cover-top-card.featured {
  border-color: #d6a63f;
  box-shadow: 0 12px 28px rgba(111, 63, 0, 0.1);
}

.cover-top-title {
  display: grid;
  gap: 10px;
}

.cover-top-title h3 {
  margin: 0;
  color: #9c2f24;
  font-size: 19px;
  line-height: 1.35;
}

.cover-list-link {
  justify-self: start;
  min-height: 36px;
  padding: 7px 12px;
  background: #296f77;
  font-size: 14px;
}

.cover-list-status {
  min-height: 22px;
  color: #607080;
  font-size: 13px;
  font-weight: 800;
}

.cover-top-list {
  display: grid;
  gap: 8px;
}

.cover-stock-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) minmax(54px, auto) minmax(62px, auto);
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  border: 1px solid #e3e8ed;
  border-radius: 8px;
  padding: 8px;
  background: #fbfcfd;
  color: #17212b;
  text-align: left;
}

.cover-stock-row:hover {
  border-color: #296f77;
  background: #f4f8f9;
}

.cover-rank {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #fff3c4;
  color: #6f3f00;
  font-weight: 900;
}

.cover-stock-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.cover-stock-main strong,
.cover-stock-main em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cover-stock-main strong {
  color: #17212b;
  font-size: 15px;
}

.cover-stock-main em {
  color: #607080;
  font-size: 13px;
  font-style: normal;
}

.cover-param {
  display: grid;
  gap: 2px;
  border-radius: 6px;
  padding: 6px 8px;
  background: #ffe1df;
  color: #8f1f17;
  text-align: center;
}

.cover-change {
  display: grid;
  gap: 2px;
  text-align: right;
}

.cover-metric small {
  color: #718090;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.cover-metric strong {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.cover-param small { color: #9c554f; }

.cover-risk-note {
  margin: 0;
  color: #607080;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}

/* Premium dark treatment is limited to the homepage trend radar. */
.trend-radar-section {
  border-color: #344653;
  background: linear-gradient(145deg, #111922 0%, #18242e 58%, #111920 100%);
  box-shadow: 0 18px 42px rgba(17, 25, 34, 0.22);
}

.trend-radar-section .eyebrow { color: #e9bd58; }
.trend-radar-section .trend-radar-heading h2,
.trend-radar-section .market-breadth-heading h3 { color: #f5f8fa; }
.trend-radar-section #marketBreadthTitle { color: #ff8f82; }
.trend-radar-section .trend-radar-heading p,
.trend-radar-section .market-breadth-heading p,
.trend-radar-section .trend-radar-message,
.trend-radar-section .market-breadth-latest,
.trend-radar-section .market-breadth-summary,
.trend-radar-section .market-breadth-legend,
.trend-radar-section .cover-list-status,
.trend-radar-section .cover-risk-note { color: #aebdca; }

.trend-radar-section .radar-temperature > div,
.trend-radar-section .radar-temperature > button {
  border-color: #344653;
  background: #1c2933;
}

.trend-radar-section .radar-temperature > button:hover,
.trend-radar-section .radar-temperature > button:focus-visible {
  border-color: #e0b451;
  background: #243540;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.22);
}

.trend-radar-section .radar-temperature span,
.trend-radar-section .radar-temperature em { color: #aebdca; }
.trend-radar-section .radar-temperature strong { color: #f0c661; }

.trend-radar-section .cover-top-card {
  border-color: #a98231;
  background: #192630;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.trend-radar-section .cover-top-title h3 { color: #f0c661; }
.trend-radar-section .cover-list-link { background: #2f7f87; color: #fff; }
.trend-radar-section .cover-stock-row {
  border-color: #344653;
  background: #202e39;
  color: #f3f6f8;
}
.trend-radar-section .cover-stock-row:hover {
  border-color: #55a9af;
  background: #283945;
}
.trend-radar-section .cover-stock-main strong { color: #f5f8fa; }
.trend-radar-section .cover-stock-main em,
.trend-radar-section .cover-metric small { color: #9fb0bd; }
.trend-radar-section .cover-rank { background: #4b3b18; color: #f4d27a; }
.trend-radar-section .cover-param { background: #3c2728; color: #ffaaa4; }
.trend-radar-section .cover-param small { color: #d69b98; }

.trend-radar-section .market-breadth-panel { border-top-color: #344653; }
.market-explanation-section > .market-breadth-panel {
  margin-top: 16px;
  border: 1px solid #344653;
  border-radius: 15px;
  padding: 16px;
  background: linear-gradient(145deg, rgba(24, 40, 53, 0.96), rgba(17, 31, 42, 0.98));
  box-shadow: 0 9px 22px rgba(2, 10, 17, 0.2);
}
.market-explanation-section > .market-breadth-divider {
  margin: 22px 0 4px;
}
.market-explanation-section > .bearish-breadth-panel {
  margin-top: 12px;
}
.trend-radar-section .market-breadth-detail-toggle {
  border-color: #4c6473;
  background: #1c2933;
  color: #8ed2d5;
}
.trend-radar-section .market-breadth-detail-toggle:hover,
.trend-radar-section .market-breadth-detail-toggle:focus-visible { border-color: #8ed2d5; }
.trend-radar-section .breadth-grid line { stroke: #2d3d49; }
.trend-radar-section .breadth-axis text { fill: #91a4b2; }
.trend-radar-section .breadth-line.total { stroke: #ff746b; }
.trend-radar-section .breadth-line.ma5 { stroke: #f1f4f6; }
.trend-radar-section .breadth-point.total { fill: #ff746b; }
.trend-radar-section .breadth-point.ma5 { fill: #f1f4f6; }
.trend-radar-section .bearish-breadth-panel .breadth-line.total { stroke: #55c98b; }
.trend-radar-section .bearish-breadth-panel .breadth-line.ma5 { stroke: #a8d9c2; }
.trend-radar-section .bearish-breadth-panel .breadth-point.total { fill: #55c98b; }
.trend-radar-section .bearish-breadth-panel .breadth-point.ma5 { fill: #a8d9c2; }
.trend-radar-section .bearish-breadth-panel .market-breadth-heading h3 { color: #80dfae; }

.oa-block,
.system-note {
  border-left: 5px solid #296f77;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.68);
}

.oa-block h2,
.system-note h2,
.login-card h2 {
  margin: 0 0 8px;
  color: #17212b;
  font-size: 22px;
  letter-spacing: 0;
}

.oa-block p,
.system-note p {
  margin: 0;
  color: #41505f;
  font-weight: 700;
  line-height: 1.75;
}

.oa-block ul {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  padding-left: 20px;
  color: #24313d;
  font-weight: 900;
}

.plan-copy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.plan-copy-grid article {
  border: 1px solid #d9e1e7;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.plan-copy-grid span {
  display: inline-flex;
  margin-bottom: 8px;
  border-radius: 999px;
  padding: 4px 9px;
  background: #fff2c7;
  color: #7a4f00;
  font-size: 12px;
  font-weight: 900;
}

.plan-copy-grid h3 {
  margin: 0 0 8px;
  color: #9c2f24;
  font-size: 17px;
  line-height: 1.35;
}

.plan-copy-grid p {
  margin: 0;
  color: #607080;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
}

.login-card {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 18px;
  border: 1px solid rgba(214, 166, 63, 0.42);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(30, 48, 66, 0.12);
}

.hero-entry-card {
  align-content: start;
}

.hero-entry-card .cover-query-heading h2 {
  margin: 0;
  color: #24313d;
  font-size: 21px;
  line-height: 1.25;
}

/* Tablet and desktop: keep the search/watchlist card clear of the main headline. */
@media (min-width: 721px) and (min-height: 600px) {
  .hero-entry-card {
    position: static;
    align-self: start;
    transform: translateX(10px);
  }
}

@media (min-width: 1100px) {
  .hero-entry-card {
    position: static;
    align-self: start;
    transform: translateX(16px);
  }

  body.volume-list-active .app-shell {
    width: min(1280px, calc(100% - 32px));
  }

  body.volume-list-active #listSection table {
    min-width: 1160px;
  }

  body.volume-list-active #listSection th,
  body.volume-list-active #listSection td {
    padding: 8px 7px;
    font-size: 12px;
  }

  body.volume-list-active #listSection .sticky-stock-column {
    min-width: 128px;
    max-width: 145px;
  }

  body.volume-list-active #listSection .table-sort-button {
    min-height: 32px;
    padding: 5px 7px;
    font-size: 12px;
  }
}

.primary-entry-button {
  min-height: 58px;
  background: #b23a48;
  font-size: 20px;
}

.cover-search-row {
  display: grid;
  gap: 7px;
}

.cover-search-row label {
  font-size: 15px;
  font-weight: 800;
  color: #6b2730;
}

.cover-search-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 8px;
}

.cover-search-control input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #f0c7c7;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 17px;
  background: #fff;
}

.cover-search-control button {
  min-height: 48px;
  border-radius: 12px;
  background: #b23a48;
  font-size: 17px;
}

.line-entry-button {
  min-height: 48px;
  background: #06c755;
}

@media (max-width: 720px) {
  .brand-copy .brand-subtitle,
  .brand-copy .brand-description,
  .brand-copy .brand-value-line {
    display: none;
  }

  .brand-copy .mobile-use-flow {
    display: block;
    margin: 0;
    color: #41505f;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.75;
    text-wrap: balance;
  }

  .brand-copy .learn-more-link {
    color: #526474;
    font-size: 14px;
    font-weight: 800;
  }

  .hero-entry-card {
    margin-top: 0;
  }

  .hero-entry-card .line-entry-button {
    border: 1px solid #7ab993;
    background: #f2faf5;
    color: #267346;
    box-shadow: none;
  }

  .hero-entry-card .line-entry-button:hover,
  .hero-entry-card .line-entry-button:focus-visible {
    background: #e6f5eb;
  }

  .hero-entry-card > .line-login-benefit {
    color: #71818c;
    font-size: 12px;
  }
}

.secondary-entry-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.share-entry-button {
  min-height: 40px;
  border: 1px solid #bfd2d6;
  background: #f4f8f9;
  color: #296f77;
  font-size: 14px;
}

.install-entry-button {
  min-height: 40px;
  border: 1px solid #bfd2d6;
  padding: 8px 12px;
  background: #f4f8f9;
  color: #296f77;
  font-size: 14px;
}

.install-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #bfd2d6;
  border-radius: 8px;
  padding: 12px;
  background: #f4f8f9;
}

.install-card strong,
.install-card span {
  display: block;
}

.install-card strong {
  color: #24313d;
  font-size: 15px;
}

.install-card span {
  margin-top: 2px;
  color: #607080;
  font-size: 13px;
  font-weight: 800;
}

.admin-entry-link {
  justify-self: start;
  border: 0;
  padding: 0;
  background: transparent;
  color: #607080;
  font-size: 13px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-entry-link:hover {
  color: #296f77;
}

.eyebrow {
  margin: 0 0 8px;
  color: #296f77;
  font-size: 14px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0;
}

.hero-eyebrow {
  min-height: 22px;
}

.brand-title {
  display: inline-block;
  color: #b23a48;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  text-shadow: 0 2px 0 #ffd166, 0 10px 24px rgba(178, 58, 72, 0.18);
}

.hint,
.status-text,
.message,
.demo-note {
  color: #607080;
  line-height: 1.7;
}

.demo-note {
  margin: 0;
  font-size: 14px;
}

.join-box {
  margin-top: 22px;
  border: 1px solid #cdd9ef;
  border-radius: 8px;
  padding: 14px 16px;
  background: #f6f9ff;
}

.join-box strong {
  display: block;
  color: #24313d;
  margin-bottom: 4px;
}

.join-box p {
  margin: 0 0 12px;
  color: #607080;
  line-height: 1.6;
}

.line-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 6px;
  padding: 8px 14px;
  background: #1f8f57;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.contact-note {
  margin: 10px 0 0;
  color: #5f4212;
  font-weight: 800;
  line-height: 1.6;
}

.date-text {
  margin: 6px 0 0;
  color: #8a4f20;
  font-weight: 800;
}

.form-stack {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: #41505f;
  font-weight: 700;
}

input,
textarea {
  min-height: 46px;
  border: 1px solid #c9d2da;
  border-radius: 6px;
  padding: 10px 12px;
  background: #fbfcfd;
}

textarea {
  min-height: 46px;
  height: 46px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(41, 111, 119, 0.18);
  border-color: #296f77;
}

button {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  padding: 10px 18px;
  background: #296f77;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}

button:disabled {
  opacity: 0.7;
  cursor: wait;
}

button.is-busy {
  background: #8a4f20;
}

button.secondary {
  background: #e7edf1;
  color: #24313d;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 6px;
  padding: 10px 16px;
  background: #e7edf1;
  color: #24313d;
  font-weight: 900;
  text-decoration: none;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding-right: 58px;
}

.member-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.query-panel .hero-eyebrow {
  display: none;
}

.query-brand-positioning {
  margin: 3px 0 0;
  color: #607080;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.query-panel {
  padding: 20px 22px;
}

.query-view-active .site-menu-button {
  top: clamp(24px, 4vw, 52px);
}

.session-info-row {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #dde4ea;
  padding: 4px 0 7px;
}

.compact-action {
  min-height: 42px;
  padding: 10px 14px;
}

.api-badge,
.member-badge,
.query-update-badge {
  display: grid;
  gap: 2px;
  min-width: 120px;
  border: 1px solid #d8e2e6;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f8fbfc;
}

.api-badge {
  border-color: #cdd9ef;
  background: #f6f9ff;
}

.api-badge.offline {
  border-color: #e0b868;
  background: #fff8e8;
}

.api-badge span,
.member-badge span,
.query-update-badge span {
  color: #607080;
  font-size: 12px;
  font-weight: 800;
}

.api-badge strong,
.member-badge strong,
.query-update-badge strong {
  color: #296f77;
  font-size: 15px;
}

.session-info-row .query-update-badge,
.session-info-row .member-badge {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
}

.session-info-row .query-update-badge span::before {
  content: "📅 ";
}

.session-info-row .member-badge span::before {
  content: "👤 ";
}

.session-info-row .member-badge small {
  display: none;
}

.member-badge small {
  max-width: 280px;
  color: #607080;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.line-member-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.line-member-box span {
  color: #296f77;
  font-size: 13px;
  font-weight: 900;
}

.line-mini-button {
  border: 0;
  border-radius: 8px;
  min-height: 38px;
  padding: 6px 10px;
  background: #06c755;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.watch-add-button {
  margin-top: 12px;
}

.watchlist-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 14px 0;
}

.watchlist-add-row input {
  min-height: 44px;
  border: 1px solid #cfd8e1;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

.watchlist-add-row button {
  min-height: 44px;
  border-radius: 8px;
  padding: 10px 18px;
}

.watchlist-signals {
  margin: 12px 0 14px;
  border: 1px solid #cfdde2;
  border-radius: 12px;
  padding: 12px;
  background: #f8fbfc;
}

.watchlist-signals-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.watchlist-signals-heading > div {
  display: grid;
  gap: 3px;
}

.watchlist-signals-heading span {
  color: #506473;
  font-size: 12px;
  font-weight: 900;
}

.watchlist-signals-heading strong {
  color: #24313d;
  font-size: 17px;
  line-height: 1.35;
}

.watchlist-signals-heading small {
  color: #687986;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.watchlist-signals-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.watchlist-signal-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid #dce5e8;
  border-radius: 9px;
  padding: 6px 8px;
  background: #fff;
}

.watchlist-signal-row.is-extra {
  display: none;
}

.watchlist-signal-stock {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  border: 0;
  padding: 3px;
  background: transparent;
  color: #24313d;
  text-align: left;
  cursor: pointer;
}

.watchlist-signal-stock strong {
  color: #296f77;
  font-size: 15px;
}

.watchlist-signal-stock span {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watchlist-signal-badge {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.watchlist-signal-row.high .watchlist-signal-badge {
  background: #e2f5ea;
  color: #13704d;
}

.watchlist-signal-row.high.period-90 .watchlist-signal-badge {
  background: #dceff0;
  color: #176b72;
}

.watchlist-signal-row.high.period-240 .watchlist-signal-badge {
  background: #ffe7a5;
  color: #765000;
  box-shadow: inset 0 0 0 1px #dfb54c;
}

.watchlist-signal-row.low .watchlist-signal-badge {
  background: #ffe2df;
  color: #9b2d25;
}

.watchlist-signal-row.low.period-240 .watchlist-signal-badge {
  background: #c94b43;
  color: #fff;
}

.watchlist-signal-row.low-volume {
  border-style: dashed;
}

.watchlist-signals-toggle {
  display: block;
  min-height: 34px;
  margin: 9px auto 0;
  border: 0;
  padding: 5px 12px;
  background: transparent;
  color: #296f77;
  font-weight: 900;
  cursor: pointer;
}

.industry-data-panel {
  margin-top: 18px;
}

#industryDataStatus:has(.industry-login-button),
#financialRankingStatus:has(.industry-login-button) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.industry-login-button {
  min-height: 38px;
  border: 1px solid #16856f;
  border-radius: 9px;
  padding: 7px 16px;
  background: #16856f;
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 3px 9px rgba(22, 133, 111, 0.2);
}

.industry-login-button:hover,
.industry-login-button:focus-visible {
  background: #106c5b;
  outline: 2px solid rgba(22, 133, 111, 0.24);
  outline-offset: 2px;
}

.watchlist-heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.financial-ranking-panel {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.financial-compare-panel {
  display: grid;
  gap: 10px;
  border: 1px solid #d8e1e7;
  border-radius: 12px;
  padding: 14px;
  background: #f9fbfc;
}

.financial-compare-heading,
.financial-compare-saved-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.financial-compare-saved-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.financial-compare-saved-actions .secondary {
  min-height: 34px;
  padding: 5px 10px;
  font-size: 12px;
}

.financial-compare-heading > div:first-child {
  display: grid;
  gap: 2px;
}

.financial-compare-heading span,
.financial-compare-saved-head span {
  color: #6b7884;
  font-size: 13px;
}

.financial-compare-controls {
  display: flex;
  align-items: end;
  gap: 8px;
}

.financial-compare-field {
  display: grid;
  gap: 4px;
}

.financial-compare-field > span {
  color: #526474;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.financial-compare-controls input {
  min-height: 40px;
  border: 1px solid #c7d2dc;
  border-radius: 9px;
  padding: 7px 10px;
  background: #fff;
  color: #263442;
  font: inherit;
}

.financial-compare-stock-field { width: 190px; }
.financial-compare-date-field { width: 170px; }
#financialCompareStock,
#financialCompareDate { width: 100%; }

.financial-compare-add {
  width: fit-content;
  min-height: 38px;
  justify-self: end;
}

.financial-compare-saved-head {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #d8e0e6;
}

.financial-compare-header {
  display: inline-flex;
  cursor: default;
}

.financial-compare-stock-name {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #216f77;
  font-weight: 850;
}

.financial-history-badge {
  border: 1px solid #7995aa;
  border-radius: 999px;
  padding: 0 5px;
  background: #eaf2f8;
  color: #42677f;
  font-size: 10px;
  font-style: normal;
  line-height: 1.5;
}

.financial-history-row td,
.financial-history-row .sticky-stock-column {
  background: #eef5f8;
}

.financial-compare-remove {
  margin-top: 4px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #8a5d5d;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

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

.financial-ranking-content {
  display: grid;
  gap: 16px;
}

.financial-scope-button {
  min-height: 48px;
  border: 1px solid #cbd7df;
  border-radius: 11px;
  padding: 10px 12px;
  background: #edf2f6;
  color: #253241;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.financial-scope-button:hover,
.financial-scope-button:focus-visible {
  border-color: #2d7c84;
  outline: 2px solid rgba(45, 124, 132, 0.16);
  outline-offset: 2px;
}

.financial-scope-button.active {
  border-color: #2d7c84;
  background: #2d7c84;
  color: #fff;
}

.financial-industry-control {
  display: grid;
  grid-template-columns: minmax(90px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.financial-industry-control label {
  color: #465564;
  font-weight: 800;
}

.financial-industry-control select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #c7d2dc;
  border-radius: 10px;
  padding: 8px 12px;
  background: #fff;
  color: #263442;
  font: inherit;
}

.financial-ranking-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #d8e0e6;
}

.financial-ranking-list-head strong {
  color: #344451;
  font-size: 18px;
}

.financial-ranking-list-head span {
  color: #6b7884;
  font-size: 14px;
}

.financial-table-area {
  min-width: 0;
}

@media (min-width: 921px) {
  [data-financial-ranking-table] th.financial-eps-qoq-header {
    text-align: center;
  }

  [data-financial-ranking-table] th.financial-eps-qoq-header .table-sort-button {
    display: flex;
    width: max-content;
    margin-right: auto;
    margin-left: auto;
    justify-content: center;
  }
}

.financial-basic-empty {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px dashed #bdcbd4;
  border-radius: 12px;
  padding: 22px 16px;
  background: #f7fafb;
  color: #667482;
  text-align: center;
}

@media (max-width: 700px) {
  .financial-ranking-panel {
    gap: 13px;
  }

  .financial-scope-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .financial-scope-button[data-financial-scope="stock-query"] {
    grid-column: 1 / -1;
  }

  .financial-scope-button {
    min-height: 52px;
    padding: 10px 8px;
    font-size: 16px;
  }

  .financial-industry-control {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .financial-ranking-list-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .financial-compare-panel {
    padding: 11px 8px;
  }

  .financial-compare-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .financial-compare-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(128px, 0.8fr) auto;
    gap: 6px;
  }

  #financialCompareStock,
  #financialCompareDate {
    width: 100%;
    min-width: 0;
  }

  .financial-compare-stock-field,
  .financial-compare-date-field {
    width: auto;
    min-width: 0;
  }

  .financial-compare-controls .primary {
    min-width: 54px;
    padding-inline: 9px;
  }

}

.industry-data-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 11px;
}

.industry-pill {
  display: grid;
  align-content: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  min-height: 68px;
  border: 1px solid #dbe3e8;
  border-radius: 11px;
  padding: 10px 12px;
  background: #f7fafc;
  cursor: pointer;
  text-align: left;
}

.industry-pill:hover {
  border-color: #296f77;
  background: #f0f7f8;
}

.industry-pill-main {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 3px;
  width: 100%;
}

.industry-pill-main strong {
  min-width: 0;
  color: #17212b;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.industry-pill-main small {
  flex: 0 0 auto;
  color: #8a98a5;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.industry-pill-trend {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.industry-pill-trend b {
  font-weight: 900;
}

.industry-pill-trend .industry-high {
  color: #a53b32;
}

.industry-pill-trend .industry-low {
  color: #28775c;
}

.industry-data-detail {
  margin-top: 16px;
}

.industry-group-overview {
  border: 1px solid #d8e2e7;
  border-radius: 18px;
  padding: 16px;
  background: #f8fbfc;
}

.industry-level-back {
  min-height: 36px;
  margin: 0 0 10px;
  border: 1px solid #c9d5dc;
  border-radius: 999px;
  padding: 7px 13px;
  background: #fff;
  color: #296f77;
  font-size: 13px;
  font-weight: 850;
}

.industry-level-back:hover,
.industry-level-back:focus-visible {
  border-color: #296f77;
  background: #eef7f7;
}

.industry-group-hint {
  margin: 0 0 12px;
  color: #657581;
  font-size: 13px;
  line-height: 1.6;
}

.industry-subcategory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.industry-subcategory-card {
  display: flex;
  min-height: 72px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  border: 1px solid #d3dee4;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  color: #17212b;
  text-align: left;
  box-shadow: 0 4px 12px rgba(31, 52, 66, 0.05);
}

.industry-subcategory-card:hover,
.industry-subcategory-card:focus-visible {
  border-color: #296f77;
  box-shadow: 0 6px 16px rgba(41, 111, 119, 0.12);
  transform: translateY(-1px);
}

.industry-subcategory-card .industry-high {
  color: #a53b32;
}

.industry-subcategory-card .industry-low {
  color: #28775c;
}

.industry-market-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}

.industry-market-filters button {
  min-height: 34px;
  border: 1px solid #c9d5dc;
  border-radius: 999px;
  padding: 6px 13px;
  background: #fff;
  color: #52616f;
  font-size: 13px;
  font-weight: 850;
}

.industry-market-filters button.active {
  border-color: #296f77;
  background: #296f77;
  color: #fff;
}

.industry-market-filters .industry-filter-high.active {
  border-color: #a53b32;
  background: #a53b32;
}

.industry-market-filters .industry-filter-low.active {
  border-color: #28775c;
  background: #28775c;
}

.industry-detail-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 8px 0 12px;
}

.industry-detail-heading h3 {
  margin: 0;
  color: #17212b;
  font-size: 20px;
}

.industry-detail-heading span {
  border-radius: 999px;
  padding: 5px 10px;
  background: #e7edf1;
  color: #24313d;
  font-weight: 900;
}

.industry-summary-table {
  margin-bottom: 16px;
}

.industry-fullscreen-return-hint {
  display: none;
}

.industry-fullscreen-return-hint strong,
.industry-fullscreen-return-hint span {
  display: block;
}

.industry-fullscreen-return-hint strong {
  font-size: 15px;
  line-height: 1.15;
}

.industry-fullscreen-return-hint span {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.15;
}

.industry-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 10px;
  background: #f4f7f9;
  color: #41505f;
  white-space: nowrap;
}

.industry-pagination button {
  min-height: 34px;
  border: 1px solid #b9c8d0;
  border-radius: 999px;
  padding: 6px 12px;
  background: #fff;
  color: #24313d;
  font-weight: 900;
}

.industry-pagination button:disabled {
  opacity: 0.42;
}

.industry-pagination span {
  font-size: 12px;
  font-weight: 800;
}

.list-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 10px;
  background: #f4f7f9;
  color: #41505f;
  white-space: nowrap;
}

.list-pagination.hidden {
  display: none;
}

.list-pagination button {
  min-height: 34px;
  border: 1px solid #b9c8d0;
  border-radius: 999px;
  padding: 6px 12px;
  background: #fff;
  color: #24313d;
  font-weight: 900;
}

.list-pagination button:disabled {
  opacity: 0.42;
}

.list-pagination span {
  font-size: 12px;
  font-weight: 800;
}

.industry-summary-table table {
  min-width: 980px;
}

.industry-summary-table td:first-child,
.industry-summary-table th:first-child {
  min-width: 160px;
}

.industry-summary-table .price-change {
  font-weight: 900;
}

.price-change.up {
  color: #b42318;
}

.price-change.down {
  color: #16794c;
}

.price-change.flat {
  color: #24313d;
}

.industry-stock-card .price-change.up {
  color: #b42318;
}

.industry-stock-card .price-change.down {
  color: #16794c;
}

.industry-stock-card .price-change.flat {
  color: #24313d;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(23, 33, 43, 0.38);
}

.modal-panel {
  width: min(380px, 100%);
  border: 1px solid #d7dde3;
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(23, 33, 43, 0.24);
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.install-help-panel {
  display: grid;
  gap: 16px;
}

.install-copy {
  margin: 0;
  color: #24313d;
  font-weight: 800;
  line-height: 1.7;
}

.install-steps {
  display: grid;
  gap: 8px;
  border-radius: 8px;
  padding: 12px;
  background: #f4f8f9;
}

.install-steps p {
  margin: 0;
  color: #24313d;
  font-weight: 800;
  line-height: 1.6;
}

.api-badge.offline strong {
  color: #8a4f20;
}

.search-row {
  display: grid;
  grid-template-columns: 120px minmax(180px, 1fr) 110px;
  gap: 12px;
  align-items: start;
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}

.watch-add-button.is-added,
.list-watch-button.is-added {
  opacity: 1;
  color: #276c61;
  border-color: #9bc9bd;
  background: #edf8f4;
  cursor: default;
}

.feature-overview {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.feature-group {
  border: 1px solid #d9e1e7;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fbfc;
}

.feature-group h2 {
  margin: 0 0 7px;
  color: #41505f;
  font-size: 15px;
  letter-spacing: 0;
}

.feature-group-description {
  margin: -1px 0 10px;
  color: #718090;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.feature-group .mode-tabs {
  margin-bottom: 0;
}

.utility-feature-group + .utility-feature-group {
  margin-top: 4px;
}

.analysis-empty-primary {
  margin-bottom: 3px;
  color: #41505f;
  font-weight: 800;
}

.analysis-empty-secondary {
  color: #718090;
  font-size: 0.9em;
}

.company-bond-info-button {
  display: inline-grid;
  width: 24px;
  height: 24px;
  margin-left: 3px;
  place-items: center;
  border: 1px solid #aebfc8;
  border-radius: 50%;
  padding: 0;
  background: #f5f9fa;
  color: #296f77;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  vertical-align: middle;
  cursor: pointer;
}

.company-bond-info-button:hover,
.company-bond-info-button:focus-visible {
  border-color: #296f77;
  outline: none;
  background: #e8f3f3;
}

.pb-header-control {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  width: max-content;
  white-space: nowrap;
}

th:not(.sticky-stock-column) .pb-header-control {
  margin-left: auto;
}

.pb-header-control .table-sort-button {
  margin: 0 !important;
}

.pb-header-control .pb-info-button {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  border-width: 1px;
  font-size: 9px;
  line-height: 1;
}

#pbInfoModal {
  z-index: 1600;
}

.bond-info-panel {
  max-width: 430px;
}

.trend-direction-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 10px;
}

.selection-trading-date {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.trend-direction-group {
  border: 1px solid #d9e1e7;
  border-radius: 8px;
  padding: 9px;
  background: #fff;
}

.feature-group .trend-direction-group h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 900;
}

.trend-direction-description {
  margin: -2px 0 9px;
  color: #718090;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.bullish-direction .trend-direction-description { color: #995149; }
.bearish-direction .trend-direction-description { color: #4c7a65; }

.bullish-direction {
  border-color: #e5c4c0;
  background: #fff8f7;
}

.bullish-direction h3 { color: #a83b32; }
.bullish-tab { background: #f7e8e6; color: #7f3029; }
.bullish-tab.active { background: #b8483e; color: #fff; }

.bearish-direction {
  border-color: #b9d9ca;
  background: #f5fbf8;
}

.bearish-direction h3 { color: #277457; }
.bearish-tab { background: #e3f2eb; color: #246349; }
.bearish-tab.active { background: #2f8765; color: #fff; }

.tab-button,
.overview-home-button {
  background: #e7edf1;
  color: #24313d;
  min-height: 38px;
  padding: 6px 9px;
}

.overview-home-button {
  border: 1px solid rgba(41, 111, 119, 0.22);
  background: #eef8f7;
  color: #296f77;
}

.tab-button.active {
  background: #296f77;
  color: #fff;
}

.trend-direction-group .tab-button {
  opacity: 0.76;
  transition: opacity 150ms ease, transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.trend-direction-group .tab-button:hover,
.trend-direction-group .tab-button:focus-visible {
  opacity: 1;
}

.trend-direction-group .tab-button.active {
  opacity: 1;
  border-color: #bb861f;
  background: linear-gradient(180deg, #f2c85b, #d9a32f);
  color: #2f230c;
  box-shadow: 0 0 0 2px rgba(217, 163, 47, 0.22), 0 6px 14px rgba(86, 61, 14, 0.18);
  transform: translateY(-1px);
}

.tab-button.locked {
  opacity: 0.58;
}

#stockLookupTools {
  scroll-margin-top: 12px;
}

.stock-lookup-heading {
  margin-bottom: 9px;
  border-bottom: 1px solid #d9e1e7;
  padding: 0 1px 8px;
}

.stock-lookup-heading strong {
  color: #296f77;
  font-size: 17px;
  line-height: 1.3;
}

#stockLookupTools .search-row {
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 7px 9px;
  align-items: end;
}

#stockLookupTools .search-row label {
  grid-column: 1 / -1;
  font-weight: 800;
}

#stockLookupTools .search-row textarea {
  grid-column: 1;
  resize: none;
}

#stockLookupTools .search-row button {
  grid-column: 2;
  min-height: 46px;
}

#stockLookupTools .query-examples {
  margin-top: 7px;
}

.historical-rating-panel {
  scroll-margin-top: 12px;
}

.historical-rating-form {
  grid-template-columns: minmax(0, 1fr) minmax(160px, 210px) 92px;
  gap: 7px 9px;
  align-items: end;
}

.historical-rating-field {
  display: grid;
  gap: 8px;
}

#historicalRatingDate {
  padding-left: 12px;
  text-align: left;
}

#historicalRatingDate::-webkit-date-and-time-value {
  min-height: 1.4em;
  margin: 0;
  text-align: left;
}

.historical-rating-form button {
  min-height: 46px;
}

.historical-rating-start {
  margin-top: 8px;
  border-left: 4px solid #c58a22;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff7df;
  color: #87570d;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.45;
}

.historical-rating-start span,
.historical-rating-start strong,
.historical-rating-start small {
  display: block;
}

.historical-rating-start span {
  font-size: 13px;
  color: #8b6b35;
}

.historical-rating-start strong {
  margin-top: 2px;
  color: #754600;
  font-size: 19px;
  letter-spacing: 0.01em;
}

.historical-rating-start small {
  margin-top: 2px;
  color: #887555;
  font-size: 13px;
  font-weight: 800;
}

.historical-rating-result {
  margin-top: 14px;
}

.historical-rating-result .analysis-card {
  width: 100%;
}

.historical-rating-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.new-high-history-form {
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 9px;
  align-items: end;
}

.new-high-history-form button {
  min-height: 46px;
}

.new-high-history-result {
  margin-top: 14px;
}

.new-high-history-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: #334857;
}

.new-high-history-table-wrap {
  max-height: 520px;
}

.history-fullscreen-return-hint {
  display: none;
}

.history-fullscreen-return-hint strong,
.history-fullscreen-return-hint span {
  display: block;
}

.history-fullscreen-return-hint strong {
  font-size: 15px;
  line-height: 1.15;
}

.history-fullscreen-return-hint span {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.15;
  opacity: 0.9;
}

.history-fullscreen-return-hint[data-tone="bullish"] {
  background: rgba(125, 59, 31, 0.92) !important;
  border-color: rgba(255, 217, 148, 0.72) !important;
}

.history-fullscreen-return-hint[data-tone="bearish"] {
  background: rgba(25, 92, 72, 0.94) !important;
  border-color: rgba(165, 232, 204, 0.68) !important;
}

.new-high-history-table-wrap.is-table-focus .history-fullscreen-return-hint {
  position: fixed;
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: max(10px, env(safe-area-inset-bottom, 0px));
  z-index: 1420;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.22);
}

.break-history-table {
  min-width: 980px;
}

.break-history-table th,
.break-history-table td {
  text-align: center;
  white-space: nowrap;
}

.history-table-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  color: #60717d;
  font-size: 13px;
  font-weight: 700;
}

.history-table-actions button {
  min-height: 36px;
  padding: 6px 12px;
}

.history-missing-value {
  min-width: 34px;
  min-height: 30px;
  border: 1px dashed #aab6bf;
  border-radius: 8px;
  padding: 2px 9px;
  background: #f6f8f9;
  color: #667985;
  font-weight: 900;
  cursor: pointer;
}

.history-missing-note {
  position: sticky;
  bottom: 12px;
  z-index: 8;
  width: fit-content;
  max-width: min(420px, calc(100% - 24px));
  margin: 12px auto 0;
  border: 1px solid rgba(41, 111, 119, 0.35);
  border-radius: 12px;
  padding: 10px 14px;
  background: rgba(31, 48, 59, 0.96);
  color: #fff;
  box-shadow: 0 8px 22px rgba(31, 48, 59, 0.2);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.new-high-history-badge {
  display: inline-flex;
  border: 1px solid rgba(41, 111, 119, 0.3);
  border-radius: 999px;
  padding: 3px 9px;
  background: #edf8f6;
  color: #296f77;
  font-weight: 800;
  white-space: nowrap;
}

.new-high-history-view {
  min-height: 34px;
  padding: 5px 14px;
}

.trial-guide {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  border: 1px solid #d9e1e7;
  border-radius: 8px;
  padding: 9px 12px;
  background: #f8fbfc;
}

.trial-guide strong {
  color: #296f77;
  font-size: 16px;
}

.trial-guide p {
  margin: 0;
  color: #607080;
  line-height: 1.6;
  font-size: 14px;
  font-weight: 700;
}

.signal-tip {
  display: block;
  margin: 7px 0 2px;
  border: 1px solid #e0b868;
  border-left: 5px solid #b23a48;
  border-radius: 8px;
  padding: 6px 9px;
  background: #fff8e8;
}

.signal-tip strong {
  color: #9c2f24;
  white-space: nowrap;
}

.signal-tip p {
  margin: 0;
  color: #5f4212;
  font-weight: 800;
  line-height: 1.45;
  font-size: 13px;
}

.result-panel {
  margin-top: 24px;
  border-top: 1px solid #dde4ea;
  padding-top: 24px;
}

.upgrade-box {
  margin-top: 14px;
  border: 1px solid #e0b868;
  border-radius: 8px;
  padding: 14px 16px;
  background: #fff8e8;
  color: #5f4212;
}

.upgrade-box strong {
  display: block;
  margin-bottom: 4px;
}

.upgrade-box p {
  margin: 0;
  line-height: 1.6;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.plan-grid div {
  border: 1px solid rgba(138, 79, 32, 0.22);
  border-radius: 8px;
  padding: 10px;
  background: #fffdf8;
}

.plan-grid span {
  display: block;
  color: #8a4f20;
  font-size: 13px;
  font-weight: 900;
}

.plan-grid strong {
  color: #24313d;
}

.plan-grid p {
  margin-top: 6px;
  font-size: 13px;
}

.result-actions {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.section-title {
  margin: 0;
  color: #17212b;
  font-size: 20px;
  letter-spacing: 0;
}

.section-note {
  margin: 5px 0 0;
  color: #607080;
  line-height: 1.6;
  font-size: 14px;
  font-weight: 700;
}

.table-title-row {
  margin: 20px 0 10px;
}

.sort-hint {
  margin: -4px 0 10px;
  color: #607080;
  font-size: 13px;
  font-weight: 800;
}

.star-note {
  margin: -4px 0 12px;
  border-left: 4px solid #d6a63f;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff8e8;
  color: #6b4b18;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.55;
}

.list-color-depth-hint {
  margin: -6px 2px 5px;
  color: #7b8791;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-align: right;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stock-query-details {
  overflow: hidden;
  border: 1px solid #d9e1e7;
  border-radius: 10px;
  background: #fff;
}

.stock-query-details > summary {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  color: #243745;
  cursor: pointer;
  list-style: none;
}

.stock-query-details > summary::-webkit-details-marker {
  display: none;
}

.stock-query-details > summary::after {
  content: "⌄";
  color: #296f77;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  transition: transform 150ms ease;
}

.stock-query-details[open] > summary::after {
  transform: rotate(180deg);
}

.stock-query-details > summary span {
  font-size: 20px;
  font-weight: 900;
}

.stock-query-details > summary small {
  margin-left: auto;
  color: #718090;
  font-size: 12px;
  font-weight: 700;
}

.stock-query-details[open] > summary {
  border-bottom: 1px solid #e4eaee;
}

.stock-query-details-content {
  padding: 12px;
}

.analysis-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #d9e1e7;
  border-radius: 8px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(30, 48, 66, 0.08);
}

.analysis-card.waiting-trend {
  border-top: 5px solid #d7a63f;
}

.analysis-card.trend-confirmed {
  border-top: 5px solid #296f77;
  background: #f8fcfb;
}

.analysis-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.analysis-head h3 {
  margin: 2px 0 0;
  color: #17212b;
  font-size: 24px;
  letter-spacing: 0;
}

.stock-code {
  color: #296f77;
  font-size: 13px;
  font-weight: 900;
}

.rating-pill {
  border: 1px solid #cdd9ef;
  border-radius: 999px;
  padding: 5px 10px;
  background: #f6f9ff;
  color: #296f77;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.star-signal {
  display: grid;
  gap: 2px;
  border-color: #e0b868;
  background: #fff8e8;
  color: #8a4f20;
  text-align: right;
}

.star-signal span {
  color: #8a4f20;
  font-size: 11px;
}

.star-signal strong {
  color: #c28a1d;
  font-size: 18px;
  letter-spacing: 1px;
  line-height: 1;
}

.star-signal small {
  color: #79501d;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.3;
  white-space: normal;
}

.analysis-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 14px;
}

.parameter-hero {
  display: grid;
  grid-template-columns: minmax(100px, auto) minmax(130px, 1fr);
  gap: 10px;
  align-items: stretch;
  border: 1px solid #e8ece3;
  border-radius: 8px;
  padding: 12px;
  background: #fcfdf8;
}

.parameter-hero.with-price {
  grid-template-columns: minmax(100px, 0.8fr) minmax(130px, 1.2fr);
  column-gap: 10px;
}

.hero-stat {
  display: grid;
  gap: 6px;
  align-content: center;
  min-width: 0;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.price-stat {
  align-content: start;
}

.price-stat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.price-stat .star-signal {
  min-width: 0;
  padding: 4px 8px;
  justify-self: end;
}

.price-stat .star-signal span {
  font-size: 10px;
}

.price-stat .star-signal strong {
  font-size: clamp(20px, 4vw, 28px);
  letter-spacing: 0;
}

.hero-stat.parameter-focus {
  background: #fff3c4;
}

.parameter-hero span,
.signal-grid span {
  color: #607080;
  font-size: 13px;
  font-weight: 800;
}

.parameter-hero strong,
.hero-stat strong {
  color: #9c2f24;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.parameter-hero em,
.hero-stat em {
  color: #9c2f24;
  font-style: normal;
  font-weight: 900;
}

.advantage-position {
  display: grid;
  gap: 3px;
  width: 100%;
  margin-top: 4px;
}

.advantage-position-track {
  position: relative;
  height: 5px;
  margin: 5px 6px 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #c9d2d8 0%, #e0b95f 55%, #a64235 100%);
}

.advantage-position-dot {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #8f2d24;
  box-shadow: 0 1px 4px rgba(53, 35, 22, 0.32);
  transform: translate(-50%, -50%);
}

.advantage-position-marker {
  position: absolute;
  z-index: 2;
  top: -7px;
  width: 0;
  height: 0;
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
  border-top: 7px solid #7c211a;
  filter: drop-shadow(0 1px 1px rgba(53, 35, 22, 0.28));
  transform: translateX(-50%);
}

.advantage-position-track.seat-mode {
  height: 5px;
  background: linear-gradient(90deg, #c9d2d8 0%, #e0b95f 55%, #a64235 100%);
}

.advantage-seat-band {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
}

.advantage-seat-band:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.9);
}

.advantage-seat-band.is-active {
  background: #7c211a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.advantage-position-labels {
  display: flex;
  justify-content: space-between;
  color: #786b55;
  font-size: 10px;
  font-weight: 900;
}

.advantage-position small {
  color: #66583f;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 0;
}

.signal-grid div {
  border: 1px solid #e2e8ed;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.signal-grid strong {
  display: block;
  margin-top: 6px;
  color: #24313d;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.industry-analysis-value {
  line-height: 1.35;
}

.industry-analysis-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid rgba(41, 111, 119, 0.28);
  border-radius: 999px;
  padding: 5px 12px;
  background: #eef8f7;
  color: #296f77;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
}

.industry-analysis-link::after {
  content: "查看";
  margin-left: 6px;
  border-radius: 999px;
  padding: 2px 6px;
  background: rgba(41, 111, 119, 0.12);
  color: #1f5d65;
  font-size: 11px;
  font-weight: 900;
}

.industry-analysis-link:hover,
.industry-analysis-link:focus-visible {
  border-color: rgba(156, 47, 36, 0.36);
  background: #fff4ec;
  color: #9c2f24;
}

.analysis-text-block {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  border-top: 1px solid #e8ece3;
  padding-top: 10px;
}

.touch-table-hint {
  display: none;
  margin: -3px 0 9px;
  border-radius: 8px;
  padding: 7px 9px;
  background: #eef8f7;
  color: #296f77;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.4;
}

.list-landscape-hint {
  font-size: 17px;
  line-height: 1.35;
  text-align: center;
}

.list-fullscreen-return-hint {
  display: none;
}

.list-fullscreen-return-hint strong,
.list-fullscreen-return-hint span {
  display: block;
}

.list-fullscreen-return-hint strong {
  font-size: 15px;
  line-height: 1.15;
}

.list-fullscreen-return-hint span {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.15;
  opacity: 0.9;
}

.list-fullscreen-return-hint[data-tone="bullish"] {
  background: rgba(125, 59, 31, 0.92) !important;
  border-color: rgba(255, 217, 148, 0.72) !important;
}

.list-fullscreen-return-hint[data-tone="bearish"] {
  background: rgba(25, 92, 72, 0.94) !important;
  border-color: rgba(165, 232, 204, 0.68) !important;
}

@media (max-width: 920px), (min-width: 921px) and (max-width: 1366px) and (pointer: coarse) {
  .touch-table-hint {
    display: block;
  }
}

.analysis-accordions {
  display: grid;
  gap: 7px;
}

.analysis-accordions details {
  overflow: hidden;
  border: 1px solid #dce4e9;
  border-radius: 8px;
  background: #fff;
}

.analysis-accordions summary {
  position: relative;
  padding: 11px 38px 11px 12px;
  color: #41505f;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.analysis-accordions summary::-webkit-details-marker {
  display: none;
}

.analysis-accordions summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 13px;
  color: #296f77;
  font-size: 20px;
  transform: translateY(-50%);
}

.analysis-accordions details[open] summary::after {
  content: "−";
}

.accordion-content {
  border-top: 1px solid #e6ecef;
  padding: 11px 12px;
  color: #52616f;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
}

.accordion-content p {
  margin: 0;
}

.analysis-actions {
  display: flex;
  justify-content: flex-end;
}

.primary-watch-action {
  justify-content: stretch;
  margin: 4px 0 14px;
}

.watch-add-button {
  width: 100%;
  min-height: 58px;
  border: 1px solid #9c2f24;
  border-radius: 10px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #b23a48, #8f1f2b);
  color: #fff;
  box-shadow: 0 10px 22px rgba(156, 47, 36, 0.18);
  cursor: pointer;
  display: grid;
  gap: 2px;
  align-items: center;
  text-align: center;
}

.watch-add-button span {
  font-size: 17px;
  font-weight: 900;
}

.watch-add-button small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
}

.watch-add-button:hover,
.watch-add-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(156, 47, 36, 0.24);
}

.external-analysis-action {
  display: grid;
  gap: 7px;
  margin: 4px 0 16px;
  text-align: center;
}

.external-analysis-link {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  border: 1px solid #355f52;
  border-radius: 10px;
  padding: 13px 18px;
  background: linear-gradient(135deg, #2f7d61, #185f48);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.external-analysis-link:hover,
.external-analysis-link:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #358b6c, #1b6b51);
  box-shadow: 0 12px 24px rgba(36, 75, 63, 0.22);
}

.external-analysis-action small {
  color: #718079;
  font-size: 12px;
  font-weight: 700;
}

.external-analysis-unavailable {
  min-height: 46px;
  place-items: center;
  border: 1px dashed #b9c1bd;
  border-radius: 10px;
  padding: 9px 16px;
  background: #f4f5f4;
  color: #707873;
  font-size: 13px;
  font-weight: 800;
}

.seat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  border: 1px solid #d5a43a;
  border-radius: 999px;
  padding: 2px 8px;
  background: #fff4ce;
  color: #7a4f00;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.signal-grid .seat-badge {
  margin-left: 0;
}

.seat-badge-only {
  margin-left: 0;
}

.signal-grid .trend-ok {
  color: #296f77;
}

.signal-grid .trend-wait {
  color: #8a4f20;
}

.analysis-summary,
.analysis-note {
  line-height: 1.7;
}

.analysis-summary {
  margin: 14px 0 0;
  color: #24313d;
  font-weight: 800;
}

.analysis-note {
  margin: 10px 0 0;
  color: #607080;
  font-size: 14px;
}

.analysis-guide {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  border: 1px solid #e2e8ed;
  border-radius: 8px;
  padding: 12px;
  background: #f8fbfc;
}

.analysis-guide p {
  margin: 0;
  color: #41505f;
  font-weight: 800;
  line-height: 1.7;
}

.analysis-guide strong {
  color: #9c2f24;
}

.star-rating-detail {
  display: grid;
  gap: 5px;
  border-top: 1px dashed #d7dde3;
  padding-top: 9px;
}

.analysis-guide .star-rating-reminder {
  margin-top: 4px;
  border-left: 3px solid #d6a63f;
  padding: 7px 9px;
  background: #fff8e8;
  color: #6b4b18;
  font-size: 13px;
}

.first-high-detail {
  display: grid;
  gap: 5px;
  border-top: 1px dashed #d7dde3;
  padding-top: 8px;
}

.first-high-detail span {
  color: #9c2f24;
  font-weight: 900;
}

.first-high-detail small {
  color: #607080;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.row-clear {
  min-height: 34px;
  padding: 6px 12px;
  background: #f1e7e3;
  color: #7c2f1d;
}

.stock-link-button {
  display: inline;
  min-height: auto;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #296f77;
  font-weight: 900;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.stock-link-button:hover {
  color: #9c2f24;
}

.identity {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 18px;
}

#resultCode {
  color: #296f77;
  font-size: 28px;
  font-weight: 900;
}

#resultName {
  font-size: 22px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  border: 1px solid #dde4ea;
  border-radius: 8px;
  padding: 14px;
  min-height: 86px;
  background: #fbfcfd;
}

.metric span {
  display: block;
  color: #607080;
  font-size: 13px;
  font-weight: 700;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  overflow-wrap: anywhere;
}

.list-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 10px;
}

.analysis-primary-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin: 8px 0 10px;
}

.analysis-primary-actions .primary-watch-action,
.analysis-primary-actions .external-analysis-action {
  margin: 0;
}

.analysis-primary-actions .watch-add-button {
  min-height: 52px;
  margin: 0;
}

.analysis-primary-actions .external-analysis-link {
  min-height: 52px;
  padding: 9px 12px;
  font-size: 16px;
}

.analysis-primary-actions .external-analysis-action > small {
  display: none;
}

.list-meta-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.line-login-benefit {
  width: 100%;
  margin: -3px 0 0;
  color: #607080;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.hero-entry-card > .line-login-benefit {
  margin-top: -10px;
  text-align: center;
}

.list-meta-line .date-text,
.list-meta-line .status-text {
  margin: 6px 0 0;
}

.list-meta-line .status-text::before {
  content: "｜";
  margin-right: 12px;
  color: #c9d2da;
}

.list-history-date-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: #60717d;
  font-size: 13px;
  font-weight: 800;
}

.list-history-date-wrap input {
  min-height: 32px;
  width: 142px;
  border: 1px solid #d8a636;
  border-radius: 9px;
  padding: 3px 7px;
  background: #fff8df;
  color: #61420e;
  font: inherit;
}

.list-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-info-button {
  min-height: 28px;
  min-width: 28px;
  border-radius: 999px;
  padding: 0;
  border: 1px solid #d6a63f;
  background: #fff8e8;
  color: #8c5a11;
  font-size: 16px;
  font-weight: 900;
}

.badge-info-text {
  margin: -4px 0 10px;
  padding: 10px 12px;
  border: 1px solid #ead8aa;
  border-radius: 10px;
  background: #fffaf0;
  color: #6b4b18;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.list-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.list-card {
  border: 1px solid #d9e1e7;
  border-left: 5px solid #c7d2dc;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.list-card.strong-signal {
  border-left-color: #9c2f24;
  background: #fffafa;
}

.list-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.list-card-head h3 {
  margin: 0;
  color: #17212b;
  font-size: 19px;
  letter-spacing: 0;
}

.list-card-head .stock-link-button {
  font-size: 19px;
}

.list-card-head span {
  border-radius: 999px;
  padding: 4px 9px;
  background: #e7edf1;
  color: #24313d;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.list-parameter {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0;
  padding: 10px 0;
  border-top: 1px solid #edf1f4;
  border-bottom: 1px solid #edf1f4;
}

.list-parameter.with-price {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 22px;
}

.list-parameter.with-price div {
  display: grid;
  gap: 6px;
}

.list-parameter span,
.list-metrics span {
  color: #607080;
  font-size: 12px;
  font-weight: 800;
}

.list-parameter strong,
.list-parameter.with-price strong {
  color: #9c2f24;
  font-size: 28px;
  line-height: 1;
}

.list-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.list-metrics div {
  min-height: 58px;
  border-radius: 8px;
  padding: 9px;
  background: #f8fbfc;
}

.list-metrics strong {
  display: block;
  margin-top: 5px;
  color: #24313d;
  font-size: 15px;
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #dde4ea;
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
  background: #fff;
}

.compact-table table {
  min-width: 760px;
}

th,
td {
  border-bottom: 1px solid #e7edf1;
  padding: 10px 12px;
  text-align: left;
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #f4f7f9;
  color: #41505f;
  font-size: 13px;
  box-shadow: 0 1px 0 #d7dde3;
}

.sticky-stock-column {
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: 150px;
  max-width: 180px;
  background: #fff;
  box-shadow: 8px 0 14px rgba(23, 33, 43, 0.08);
  white-space: normal;
}

th.sticky-stock-column {
  z-index: 6;
  background: #f4f7f9;
}

@media (min-width: 921px) {
  .ranking-table-wrap,
  .industry-table-wrap,
  #watchlistTableWrap {
    max-height: 72vh;
    overflow: auto;
    overscroll-behavior: contain;
  }

  .ranking-table-wrap thead th,
  .industry-table-wrap thead th,
  #watchlistTableWrap thead th {
    position: sticky;
    top: 0;
    z-index: 7;
  }

  .ranking-table-wrap thead th.sticky-stock-column,
  .industry-table-wrap thead th.sticky-stock-column,
  #watchlistTableWrap thead th.sticky-stock-column {
    z-index: 9;
  }
}

@media (min-width: 921px) and (pointer: fine) {
  .ranking-table-wrap.is-table-focus,
  .industry-table-wrap.is-table-focus,
  #stockQueryTableWrap.is-table-focus,
  #watchlistTableWrap.is-table-focus {
    position: fixed;
    inset: 0;
    z-index: 1400;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: 100vh;
    margin: 0;
    border: 0;
    border-radius: 0;
    overflow: auto;
    background: #fff;
    box-shadow: none;
    overscroll-behavior: contain;
  }

  .ranking-table-wrap.is-table-focus table,
  .industry-table-wrap.is-table-focus table,
  #stockQueryTableWrap.is-table-focus table,
  #watchlistTableWrap.is-table-focus table {
    margin: 0;
  }

  #listTableWrap.is-table-focus.compact-high-list:not(.compact-volume-list) th:last-child,
  #listTableWrap.is-table-focus.compact-high-list:not(.compact-volume-list) td:last-child {
    width: 92px;
  }
}

.highlight-row .sticky-stock-column {
  background: #ffe1df;
}

.table-star-signal {
  color: #c28a1d;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
}

.compact-high-list table {
  min-width: 960px;
  table-layout: fixed;
}

.compact-high-list.compact-volume-list table {
  min-width: 1180px;
}

.compact-high-list th,
.compact-high-list td {
  padding: 5px 7px;
  text-align: right;
  vertical-align: middle;
}

.compact-high-list th.sticky-stock-column,
.compact-high-list td.sticky-stock-column {
  text-align: left;
}

.compact-high-list th:nth-last-child(-n + 3),
.compact-high-list td:nth-last-child(-n + 3) {
  text-align: center;
}

.compact-high-list th:nth-child(1),
.compact-high-list td:nth-child(1) {
  width: 124px;
}

.industry-summary-table.compact-high-list th:first-child,
.industry-summary-table.compact-high-list td:first-child {
  min-width: 124px;
}

.compact-high-list th:nth-child(3),
.compact-high-list td:nth-child(3),
.compact-high-list th:nth-child(5),
.compact-high-list td:nth-child(5) {
  width: 76px;
}

.compact-high-list th:nth-child(2),
.compact-high-list td:nth-child(2),
.compact-high-list th:nth-child(6),
.compact-high-list td:nth-child(6),
.compact-high-list th:nth-child(8),
.compact-high-list td:nth-child(8) {
  width: 72px;
}

.compact-high-list th:nth-child(4),
.compact-high-list td:nth-child(4) {
  width: 92px;
}

.compact-high-list th:nth-child(7),
.compact-high-list td:nth-child(7) {
  width: 92px;
}

.compact-high-list th:nth-child(9),
.compact-high-list td:nth-child(9) {
  width: 84px;
}

.compact-high-list th:nth-child(10),
.compact-high-list td:nth-child(10) {
  width: 92px;
}

.compact-high-list .table-sort-button {
  min-height: 30px;
  padding: 3px 6px;
  font-size: 12px;
}

.compact-high-list th:not(.sticky-stock-column) .table-sort-button {
  width: max-content;
  margin-left: auto;
}

.compact-high-list .pb-header-control,
.compact-high-list .bond-header-control {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 3px;
}

.compact-high-list .pb-info-button,
.compact-high-list .bond-header-control .company-bond-info-button {
  display: none;
}

.compact-stock-tools {
  gap: 0;
  min-width: 0;
}

.compact-stock-name {
  gap: 1px;
  font-size: 15px;
  line-height: 1;
}

.compact-stock-code-line {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.compact-stock-tools .new-high-name-badge {
  padding: 0 5px;
  font-size: 10px;
}

.combined-change,
.compact-financial-value {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  line-height: 1.05;
}

.combined-change strong,
.compact-financial-value strong {
  font: inherit;
  font-weight: 900;
}

.combined-change small,
.compact-financial-value small {
  color: #71808d;
  font-size: 0.68em;
  font-weight: 700;
}

.combined-change.up strong,
.combined-change.up small {
  color: #b42318;
}

.combined-change.down strong,
.combined-change.down small {
  color: #16794c;
}

.first-high-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d6a63f;
  border-radius: 999px;
  padding: 3px 8px;
  background: #fff8e8;
  color: #9c2f24;
  font-size: 12px;
  font-weight: 900;
}

.stock-name-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.2;
}

.list-stock-tools {
  display: grid;
  gap: 6px;
  min-width: 118px;
}

.list-stock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.list-stock-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 1px solid rgba(41, 111, 119, 0.28);
  border-radius: 999px;
  padding: 4px 9px;
  background: #eef8f7;
  color: #296f77;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.list-stock-action:hover,
.list-stock-action:focus-visible {
  border-color: rgba(156, 47, 36, 0.36);
  background: #fff4ec;
  color: #9c2f24;
}

.list-watch-button {
  background: #fff8e8;
  color: #9c2f24;
  border-color: rgba(214, 166, 63, 0.62);
}

@media (max-width: 640px) {
  .table-wrap {
    max-height: 72vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  th,
  td {
    padding: 8px 9px;
    font-size: 16px;
  }

  .compact-high-list table {
    min-width: 900px;
  }

  .compact-high-list.compact-volume-list table {
    min-width: 1120px;
  }

  .compact-high-list th,
  .compact-high-list td {
    padding: 5px 6px;
  }

  .compact-high-list th:nth-child(1),
  .compact-high-list td:nth-child(1) {
    width: 112px;
  }

  .compact-high-list th:nth-child(3),
  .compact-high-list td:nth-child(3),
  .compact-high-list th:nth-child(5),
  .compact-high-list td:nth-child(5) {
    width: 72px;
  }

  .compact-high-list th:nth-child(4),
  .compact-high-list td:nth-child(4) {
    width: 88px;
  }

  .compact-high-list th:nth-child(7),
  .compact-high-list td:nth-child(7) {
    width: 88px;
  }

  .sticky-stock-column {
    min-width: 112px;
    max-width: 128px;
    padding: 6px 6px;
  }

  .industry-summary-table td:first-child,
  .industry-summary-table th:first-child {
    min-width: 112px;
    max-width: 128px;
  }

  .list-stock-tools {
    min-width: 0;
    gap: 3px;
  }

  .stock-name-stack {
    gap: 1px;
  }

  .list-stock-actions {
    gap: 4px;
  }

  .list-stock-action {
    min-height: 23px;
    padding: 2px 7px;
    font-size: 12px;
  }

  .first-high-badge,
  .new-high-name-badge {
    padding: 1px 6px;
    font-size: 11px;
  }

  td:not(.sticky-stock-column) {
    font-size: 19px;
    font-weight: 800;
    text-align: right;
  }

  th:not(.sticky-stock-column) {
    text-align: right;
  }

  td:nth-last-child(-n + 3),
  th:nth-last-child(-n + 3) {
    text-align: center;
  }

  th:not(.sticky-stock-column) .table-sort-button {
    display: flex;
    width: max-content;
    margin-left: auto;
    margin-right: 0;
    justify-content: flex-end;
  }

  td:not(.sticky-stock-column) .rank-seat-badge,
  td:not(.sticky-stock-column) .seat-badge-only {
    display: flex;
    width: max-content;
    margin-left: auto;
    margin-right: 0;
  }

}

@media (max-width: 640px) and (orientation: portrait) {
    .stock-query-landscape-hint {
      display: flex;
      width: max-content;
      max-width: 100%;
      margin: 0 0 10px auto;
      border: 1px solid rgba(41, 111, 119, 0.32);
      border-radius: 999px;
      padding: 8px 13px;
      background: rgba(238, 248, 247, 0.96);
      box-shadow: 0 5px 14px rgba(31, 74, 79, 0.1);
      color: #296f77;
      font-size: 15px;
      font-weight: 800;
    }

    #stockQueryTableWrap {
      max-height: 58vh;
      overflow-x: auto;
      overflow-y: auto;
      border: 1px solid #d9e1e7;
      background: #fff;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
    }

    #stockQueryTableWrap table {
      display: table;
      width: 100%;
      min-width: 960px;
      table-layout: fixed;
    }

    #stockQueryTableWrap thead {
      display: table-header-group;
    }

    #stockQueryTableWrap tbody {
      display: table-row-group;
    }

    #stockQueryTableWrap tr {
      display: table-row;
    }

    #stockQueryTableWrap th,
    #stockQueryTableWrap td {
      display: table-cell;
      min-height: 0;
      border-radius: 0;
      padding: 7px 8px;
      font-size: 13px;
      text-align: right;
      vertical-align: middle;
      white-space: nowrap;
    }

    #stockQueryTableWrap th:first-child,
    #stockQueryTableWrap td:first-child {
      width: 150px;
      min-width: 150px;
      max-width: 150px;
      text-align: left;
    }

    #stockQueryTableWrap th:nth-child(7),
    #stockQueryTableWrap td:nth-child(7),
    #stockQueryTableWrap th:nth-child(8),
    #stockQueryTableWrap td:nth-child(8),
    #stockQueryTableWrap th:last-child,
    #stockQueryTableWrap td:last-child {
      text-align: center;
    }

    .touch-table-hint {
      position: fixed;
      right: max(12px, env(safe-area-inset-right, 0px));
      bottom: max(12px, env(safe-area-inset-bottom, 0px));
      z-index: 1350;
      display: flex;
      width: max-content;
      max-width: calc(100vw - 24px);
      margin: 0;
      border: 1px solid rgba(255, 255, 255, 0.52);
      border-radius: 999px;
      padding: 9px 14px;
      background: rgba(24, 48, 59, 0.88);
      box-shadow: 0 8px 22px rgba(11, 28, 35, 0.22);
      color: #ffffff;
      font-size: 15px;
      font-weight: 800;
      line-height: 1.2;
      backdrop-filter: blur(8px);
      pointer-events: none;
    }
}

@media (max-width: 920px) and (orientation: landscape) {
  .table-wrap {
    max-height: 72vh;
    max-height: 72dvh;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .table-wrap thead {
    position: sticky;
    top: 0;
    z-index: 7;
  }

  .table-wrap thead th {
    position: sticky;
    top: 0;
    z-index: 7;
    background: #f4f7f9;
  }

  .table-wrap thead th.sticky-stock-column {
    z-index: 9;
  }

  .ranking-table-wrap.is-table-focus,
  #watchlistTableWrap.is-table-focus {
    position: fixed;
    inset: 0;
    z-index: 1400;
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .new-high-history-table-wrap.is-table-focus {
    position: fixed;
    inset: 0;
    z-index: 1400;
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .new-high-history-table-wrap.is-table-focus table {
    min-width: max-content;
    margin: 0;
  }

  .ranking-table-wrap.is-table-focus table,
  #watchlistTableWrap.is-table-focus table {
    min-width: max-content;
    margin: 0;
  }

  .ranking-table-wrap.is-table-focus .list-fullscreen-return-hint {
    position: fixed;
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    z-index: 1420;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(23, 33, 43, 0.76);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.22);
  }

  .ranking-table-wrap.is-table-focus thead,
  .ranking-table-wrap.is-table-focus thead th,
  #watchlistTableWrap.is-table-focus thead,
  #watchlistTableWrap.is-table-focus thead th {
    top: 0;
  }

  th,
  td {
    padding: 6px 7px;
    font-size: 14px;
  }

  .sticky-stock-column {
    min-width: 82px;
    max-width: 96px;
    padding: 5px 5px;
  }

  .industry-summary-table td:first-child,
  .industry-summary-table th:first-child {
    min-width: 82px;
    max-width: 96px;
  }

  .stock-name-stack {
    line-height: 1.12;
  }

  .list-stock-tools {
    gap: 2px;
  }

  .list-stock-actions {
    gap: 3px;
  }

  .list-stock-action {
    min-height: 22px;
    padding: 2px 6px;
    font-size: 11px;
  }

  .first-high-badge,
  .new-high-name-badge {
    padding: 1px 5px;
    font-size: 10px;
  }

  td:not(.sticky-stock-column) {
    font-size: 17px;
    font-weight: 800;
    text-align: right;
  }

  th:not(.sticky-stock-column) {
    text-align: right;
  }

  td:nth-last-child(-n + 3),
  th:nth-last-child(-n + 3) {
    text-align: center;
  }

  .table-sort-button {
    min-height: 34px;
    padding: 5px 8px;
    font-size: 13px;
  }

  th:not(.sticky-stock-column) .table-sort-button {
    display: flex;
    width: max-content;
    margin-left: auto;
    margin-right: 0;
    justify-content: flex-end;
  }

  td:not(.sticky-stock-column) .rank-seat-badge,
  td:not(.sticky-stock-column) .seat-badge-only {
    display: flex;
    width: max-content;
    margin-left: auto;
    margin-right: 0;
  }
}

@media (max-width: 920px) {
  .ranking-table-wrap,
  .industry-table-wrap,
  #stockQueryTableWrap,
  #watchlistTableWrap {
    overflow: auto;
    scroll-margin-top: 0;
    overscroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ranking-table-wrap.is-table-focus,
  .industry-table-wrap.is-table-focus,
  #stockQueryTableWrap.is-table-focus,
  #watchlistTableWrap.is-table-focus {
    max-height: calc(100dvh - env(safe-area-inset-top, 0px));
    overscroll-behavior: contain;
    overscroll-behavior-y: none;
  }
}

@media (min-width: 921px) and (max-width: 1366px) and (pointer: coarse) {
  .ranking-table-wrap,
  .industry-table-wrap,
  #stockQueryTableWrap,
  #watchlistTableWrap {
    overflow: auto;
    scroll-margin-top: 0;
    overscroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ranking-table-wrap.is-table-focus,
  .industry-table-wrap.is-table-focus,
  #stockQueryTableWrap.is-table-focus,
  #watchlistTableWrap.is-table-focus {
    max-height: calc(100dvh - env(safe-area-inset-top, 0px));
    overscroll-behavior: contain;
    overscroll-behavior-y: none;
  }

  .ranking-table-wrap thead th,
  .industry-table-wrap thead th,
  #stockQueryTableWrap thead th,
  #watchlistTableWrap thead th {
    position: sticky;
    top: 0;
    z-index: 7;
    background: #f4f7f9;
  }

  .ranking-table-wrap thead th.sticky-stock-column,
  .industry-table-wrap thead th.sticky-stock-column,
  #watchlistTableWrap thead th.sticky-stock-column {
    z-index: 9;
  }
}

@media (min-width: 721px) and (max-width: 1366px) and (pointer: coarse) {
  .app-shell {
    width: calc(100% - 24px);
    margin: 16px auto;
  }

  .panel {
    border-radius: 12px;
  }

  .query-panel {
    padding: 18px;
  }

  .trend-radar-section {
    gap: 13px;
    border-radius: 16px;
    padding: 18px;
  }

  .trend-radar-heading h2 {
    font-size: clamp(28px, 4vw, 36px);
  }

  .trend-radar-section .radar-temperature {
    gap: 10px;
  }

  .trend-radar-section .radar-temperature > button {
    grid-template-columns: auto auto;
    min-height: 82px;
    justify-content: start;
    column-gap: 5px;
    padding: 12px 14px;
  }

  .trend-radar-section .radar-temperature span {
    grid-column: 1 / -1;
    font-size: 13px;
  }

  .trend-radar-section .radar-temperature strong {
    font-size: 30px;
  }

  .trend-radar-section .radar-temperature em {
    justify-self: start;
    font-size: 13px;
  }

  .trend-radar-section .cover-top-card {
    gap: 9px;
    padding: 12px;
  }

  .trend-radar-section .cover-top-title {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
  }

  .trend-radar-section .cover-top-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .trend-radar-section .cover-stock-row {
    min-height: 68px;
    padding: 9px 10px;
  }

  .trend-radar-section .cover-stock-row:nth-child(5) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 5px);
  }

  .trend-radar-section .cover-stock-main strong {
    font-size: 17px;
  }

  .trend-radar-section .cover-stock-main em {
    font-size: 13px;
  }

  .trend-radar-section .market-breadth-panel {
    margin-top: 12px;
    padding-top: 15px;
  }

  .feature-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .feature-overview > .feature-group:first-child {
    grid-column: 1 / -1;
  }

  .feature-group {
    min-width: 0;
    padding: 12px;
  }

  .feature-group h2 {
    font-size: 17px;
  }

  .feature-group-description {
    font-size: 13px;
  }

  .feature-group .mode-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .feature-group .tab-button {
    min-height: 46px;
    padding: 9px 10px;
    font-size: 16px;
  }
}

@media (min-width: 721px) and (max-width: 920px) and (orientation: portrait) and (pointer: coarse) {
  .trend-radar-heading {
    display: grid;
    align-items: start;
  }

  .trend-radar-date {
    text-align: left;
  }

  .trend-direction-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 921px) and (max-width: 1366px) and (orientation: landscape) and (pointer: coarse) {
  .app-shell {
    width: calc(100% - 24px);
    max-width: 1220px;
    margin: 16px auto;
  }

  .ranking-table-wrap.is-table-focus,
  #watchlistTableWrap.is-table-focus {
    position: fixed;
    inset: 0;
    z-index: 1400;
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .new-high-history-table-wrap.is-table-focus {
    position: fixed;
    inset: 0;
    z-index: 1400;
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .new-high-history-table-wrap.is-table-focus table {
    min-width: max-content;
    margin: 0;
  }

  .ranking-table-wrap.is-table-focus table,
  #watchlistTableWrap.is-table-focus table {
    min-width: max-content;
    margin: 0;
  }

  .ranking-table-wrap.is-table-focus.compact-high-list table,
  .industry-table-wrap.is-table-focus.compact-high-list table {
    width: max-content;
    min-width: 960px;
  }

  .ranking-table-wrap.is-table-focus.compact-volume-list table,
  .industry-table-wrap.is-table-focus.compact-volume-list table {
    min-width: 1120px;
  }

  #watchlistTableWrap.is-table-focus table {
    width: 960px;
    min-width: 960px;
    table-layout: fixed;
  }

  #watchlistTableWrap.is-table-focus th,
  #watchlistTableWrap.is-table-focus td {
    padding-right: 6px;
    padding-left: 6px;
    text-align: right;
  }

  #watchlistTableWrap.is-table-focus th:first-child,
  #watchlistTableWrap.is-table-focus td:first-child {
    width: 132px;
    text-align: left;
  }

  #watchlistTableWrap.is-table-focus th:nth-last-child(3),
  #watchlistTableWrap.is-table-focus td:nth-last-child(3) {
    width: 82px;
  }

  #watchlistTableWrap.is-table-focus th:nth-last-child(2),
  #watchlistTableWrap.is-table-focus td:nth-last-child(2) {
    width: 74px;
    text-align: center;
  }

  #watchlistTableWrap.is-table-focus th:last-child,
  #watchlistTableWrap.is-table-focus td:last-child {
    width: 70px;
    text-align: center;
  }

  .compact-high-list th:nth-last-child(2),
  .compact-high-list td:nth-last-child(2) {
    width: 78px;
  }

  .compact-high-list th:last-child,
  .compact-high-list td:last-child {
    width: 76px;
  }

  .ranking-table-wrap.is-table-focus .list-fullscreen-return-hint {
    position: fixed;
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    z-index: 1420;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(23, 33, 43, 0.76);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.22);
  }
}

@media (min-width: 641px) and (max-width: 920px) and (pointer: coarse) {
  .compact-high-list table {
    width: max-content;
    min-width: 900px;
  }

  .compact-high-list.compact-volume-list table {
    min-width: 1120px;
  }

  .compact-high-list th,
  .compact-high-list td {
    padding-right: 6px;
    padding-left: 6px;
  }

  .compact-high-list th:nth-last-child(2),
  .compact-high-list td:nth-last-child(2) {
    width: 78px;
  }

  .compact-high-list th:last-child,
  .compact-high-list td:last-child {
    width: 76px;
  }

  #watchlistTableWrap table {
    width: 960px;
    min-width: 960px;
    table-layout: fixed;
  }
}

/* 所有橫屏表格使用一致、較透明的右下角返回提示，減少遮字。 */
.ranking-table-wrap.is-table-focus .list-fullscreen-return-hint,
.new-high-history-table-wrap.is-table-focus .history-fullscreen-return-hint,
.industry-table-wrap.is-table-focus .industry-fullscreen-return-hint,
#watchlistTableWrap.is-table-focus .watchlist-fullscreen-return-hint {
  position: fixed;
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: max(10px, env(safe-area-inset-bottom, 0px));
  z-index: 1420;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(23, 33, 43, 0.42) !important;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.watchlist-fullscreen-return-hint {
  display: none;
}

.watchlist-fullscreen-return-hint strong,
.watchlist-fullscreen-return-hint span {
  display: block;
}

.industry-table-wrap.is-table-focus .industry-pagination {
  position: fixed;
  left: max(10px, env(safe-area-inset-left, 0px));
  bottom: max(8px, env(safe-area-inset-bottom, 0px));
  z-index: 1419;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 5px 7px;
  background: rgba(23, 33, 43, 0.42);
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.industry-table-wrap.is-table-focus .industry-pagination span {
  display: none;
}

.industry-table-wrap.is-table-focus .industry-pagination button {
  min-height: 30px;
  padding: 4px 9px;
}

#listTableWrap.is-table-focus .list-pagination {
  position: fixed;
  left: max(10px, env(safe-area-inset-left, 0px));
  bottom: max(8px, env(safe-area-inset-bottom, 0px));
  z-index: 1419;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 5px 7px;
  background: rgba(23, 33, 43, 0.42);
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

#listTableWrap.is-table-focus .list-pagination span {
  display: none;
}

#listTableWrap.is-table-focus .list-pagination button {
  min-height: 30px;
  padding: 4px 9px;
}

.new-high-name-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid #d6a63f;
  border-radius: 999px;
  padding: 1px 7px;
  background: #fff8e8;
  color: #9c2f24;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
}

.new-high-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  align-items: center;
}

.table-sort-button {
  border: 1px solid #d6a63f;
  border-radius: 6px;
  padding: 7px 10px;
  background: #fff3c4;
  color: #6f3f00;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(111, 63, 0, 0.12);
  white-space: nowrap;
}

.table-sort-button:hover,
.table-sort-button.active {
  border-color: #9c2f24;
  background: #9c2f24;
  color: #fff;
}

td {
  color: #24313d;
}

.highlight-row td {
  background: #ffe1df;
  color: #8f1f17;
  font-weight: 800;
}

.hidden {
  display: none;
}

.trace-watermark {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  user-select: text;
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100% - 20px, 1040px);
    margin: 20px auto;
  }

  .market-verdict-hero {
    min-height: 0;
    gap: 10px;
    padding: 15px 16px 12px;
    margin-bottom: -8px;
  }

  .full-selection-entry {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 17px;
  }

  .full-selection-entry h2 {
    font-size: 22px;
  }

  .full-selection-entry button {
    width: 100%;
    min-height: 54px;
    font-size: 18px;
    box-shadow: 0 8px 18px rgba(41, 111, 119, 0.18);
  }

  .market-verdict-copy {
    gap: 1px;
  }

  .market-explanation-section:not(.is-mobile-expanded) {
    display: none;
  }

  .trend-score-intro:not([open]) {
    display: block;
    padding: 16px;
  }

  .trend-score-intro:not([open]) .trend-score-heading > p:last-child {
    margin-right: 28px;
  }

  .site-menu-button {
    top: max(16px, calc(env(safe-area-inset-top, 0px) + 8px));
    right: max(18px, calc(env(safe-area-inset-right, 0px) + 16px));
    width: 47px;
    height: 47px;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.11);
  }

  .site-menu-button span {
    width: 20px;
  }

  .market-verdict-heading {
    padding-right: 44px;
  }

  .market-verdict-market > span {
    font-size: 18px;
  }

  .market-verdict-hero h1 {
    max-width: 148px;
    padding: 6px 11px;
    font-size: 22px;
    text-align: center;
  }

  .market-verdict-market {
    display: grid;
    gap: 1px;
  }

  .market-verdict-market .market-pulse-index {
    font-size: 12px;
  }

  .market-verdict-date {
    right: 16px;
    bottom: 15px;
    max-width: none;
    font-size: 11px;
    text-align: right;
  }

  .market-verdict-stats {
    gap: 8px;
  }

  .market-verdict-stat {
    min-width: 0;
    padding: 12px;
  }

  .market-verdict-stat span {
    font-size: 13px;
  }

  .market-verdict-stat strong {
    font-size: 19px;
  }

  .market-verdict-stat strong b {
    font-size: 32px;
  }

  .market-verdict-reason {
    font-size: 16px;
  }

  .market-verdict-ratio {
    font-size: 13px;
  }

  .market-verdict-action {
    min-height: 38px;
    padding: 8px 13px;
    font-size: 14px;
  }

  .panel {
    padding: 20px;
  }

  .query-panel {
    padding: 14px;
  }

  .auth-panel,
  .metrics-grid,
  .mode-tabs,
  .plan-grid,
  .plan-copy-grid,
  .cover-top-grid,
  .signal-grid {
    grid-template-columns: 1fr;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .feature-group .mode-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trend-direction-grid {
    grid-template-columns: 1fr;
  }

  .market-breadth-heading {
    align-items: start;
    min-width: 0;
    max-width: 100%;
  }

  .breadth-info summary {
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 21px;
  }

  .breadth-info > div {
    width: min(440px, calc(100vw - 32px));
    padding: 13px 14px;
  }

  .breadth-info > div p {
    font-size: 14px;
  }

  .market-breadth-controls {
    justify-items: start;
  }

  .market-breadth-chart-wrap svg {
    min-height: 280px;
  }

  .market-breadth-chart-wrap {
    max-width: 100%;
    border-width: 2px;
    border-color: rgba(83, 137, 143, 0.48);
    box-shadow: 0 10px 26px rgba(13, 25, 34, 0.16);
    cursor: zoom-in;
  }

  .market-breadth-chart-wrap:active {
    transform: scale(0.992);
  }

  .market-breadth-tap-hint {
    display: inline-flex;
    top: 10px;
    right: 10px;
    padding: 8px 12px 8px 9px;
  }

  .market-breadth-tap-hint strong { font-size: 14px; }
  .market-breadth-tap-hint small { font-size: 10px; }
  .market-breadth-tap-icon { width: 30px; height: 30px; font-size: 17px; }

  .breadth-chart-touched:not(.breadth-fullscreen) .market-breadth-tap-hint {
    opacity: 0.72;
  }

  .breadth-axis text,
  .breadth-tooltip text {
    font-size: 14px;
  }

  .breadth-tooltip {
    display: none;
  }

  .breadth-tooltip-date {
    font-size: 15px !important;
  }

  .market-breadth-latest,
  .market-breadth-summary {
    font-size: 15px;
    white-space: normal;
  }

  .market-breadth-summary {
    gap: 8px;
    margin-top: 12px;
    line-height: 1.25;
  }

  .market-breadth-summary > strong,
  .market-breadth-summary > span {
    padding: 7px 11px;
  }

  body.breadth-fullscreen-open {
    overflow: hidden;
  }

  .market-breadth-panel.breadth-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 1200;
    margin: 0;
    padding: 16px 14px 32px;
    border: 0;
    overflow: auto;
    background: #17212b;
  }

  .market-breadth-panel.breadth-fullscreen .breadth-fullscreen-close {
    display: block;
    position: sticky;
    top: 0;
    z-index: 3;
    margin: 0 0 10px auto;
    border: 1px solid #8fa5b3;
    border-radius: 999px;
    padding: 8px 14px;
    background: #eef4f6;
    color: #24313d;
    font-size: 16px;
    font-weight: 900;
  }

  .market-breadth-panel.breadth-fullscreen .market-breadth-chart-wrap svg {
    height: auto;
    min-height: 0;
  }

  .market-breadth-panel.breadth-fullscreen .market-breadth-chart-wrap {
    border-color: rgba(143, 165, 179, 0.54);
    background: transparent;
    box-shadow: none;
    transform: none;
    cursor: crosshair;
  }

  .market-breadth-panel.breadth-fullscreen .breadth-hit-area {
    touch-action: none;
  }

  .market-breadth-panel.breadth-fullscreen .market-breadth-tap-hint {
    display: none;
  }

  .market-breadth-panel.breadth-fullscreen .market-breadth-heading h3 {
    font-size: 28px;
  }

  .market-breadth-panel.breadth-fullscreen .market-breadth-heading > div > p,
  .market-breadth-panel.breadth-fullscreen .market-breadth-latest {
    font-size: 18px;
    line-height: 1.6;
  }

  .market-breadth-panel.breadth-fullscreen .breadth-info summary {
    border-color: #718994;
    background: #22343f;
    color: #8edcc1;
  }

  .market-breadth-panel.breadth-fullscreen .breadth-info[open] summary {
    background: #8edcc1;
    color: #17212b;
  }

  .market-breadth-panel.breadth-fullscreen .breadth-info > div {
    border-color: #405764;
    background: #1d2d37;
  }

  .market-breadth-panel.breadth-fullscreen .breadth-info > div p {
    color: #d3dee4;
    font-size: 15px;
  }

  .market-breadth-panel.breadth-fullscreen .breadth-info > div strong {
    color: #fff;
  }

  .market-breadth-panel.breadth-fullscreen .breadth-range-switch button,
  .market-breadth-panel.breadth-fullscreen .market-breadth-detail-toggle {
    padding: 8px 13px;
    font-size: 16px;
  }

  .market-breadth-panel.breadth-fullscreen .market-breadth-legend {
    gap: 10px 16px;
    font-size: 17px;
  }

  .market-breadth-panel.breadth-fullscreen .market-breadth-legend i {
    width: 26px;
    height: 5px;
  }

  .market-breadth-panel.breadth-fullscreen .breadth-axis text {
    font-size: 28px;
  }

  .market-breadth-panel.breadth-fullscreen .breadth-tooltip text {
    font-size: 28px;
  }

  .market-breadth-panel.breadth-fullscreen .breadth-tooltip-date {
    font-size: 32px !important;
  }

  .market-breadth-panel.breadth-fullscreen .market-breadth-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    display: grid;
    width: min(100%, 560px);
    margin-top: 12px;
    margin-right: auto;
    margin-left: auto;
    gap: 9px;
    font-size: 17px;
    line-height: 1.5;
  }

  .market-breadth-panel.breadth-fullscreen .market-breadth-summary > strong,
  .market-breadth-panel.breadth-fullscreen .market-breadth-summary > span {
    justify-content: center;
    min-height: 56px;
    border-color: rgba(143, 165, 179, 0.45);
    border-radius: 14px;
    padding: 9px 12px;
    background: rgba(31, 47, 59, 0.9);
    color: #d7e2e8;
  }

  .market-breadth-panel.breadth-fullscreen .market-breadth-summary small {
    color: #9fb0bd;
    font-size: 13px;
  }

  .market-breadth-panel.breadth-fullscreen .market-breadth-summary b {
    color: #fff;
  }

  .market-breadth-panel.breadth-fullscreen .breadth-summary-date {
    justify-content: center;
    min-height: 56px;
    color: #d7e2e8;
  }

  .market-breadth-panel.breadth-fullscreen .breadth-summary-date b {
    color: #fff;
    font-size: 1.18em;
  }

  .market-breadth-panel.breadth-fullscreen .breadth-summary-verdict b {
    font-size: 1.48em;
  }

  .market-breadth-panel.breadth-fullscreen .breadth-summary-verdict[data-tone="bullish"] b {
    color: #ff8f82;
  }

  .market-breadth-panel.breadth-fullscreen .breadth-summary-verdict[data-tone="bearish"] b {
    color: #80dfae;
  }

  .market-breadth-panel.breadth-fullscreen .breadth-summary-verdict[data-tone="neutral"] b {
    color: #f0c661;
  }

  .market-breadth-panel.breadth-fullscreen .breadth-summary-primary {
    grid-column: 1 / -1;
    min-height: 62px;
    border-color: rgba(255, 143, 130, 0.4) !important;
    background: rgba(74, 37, 38, 0.72) !important;
  }

  .market-breadth-panel.breadth-fullscreen .breadth-summary-primary b {
    color: #ff8f82;
    font-size: 1.38em;
  }

  .market-breadth-panel.bearish-breadth-panel.breadth-fullscreen .breadth-summary-primary {
    border-color: rgba(128, 223, 174, 0.4) !important;
    background: rgba(29, 67, 52, 0.72) !important;
  }

  .market-breadth-panel.bearish-breadth-panel.breadth-fullscreen .breadth-summary-primary b {
    color: #80dfae;
  }

  .market-breadth-panel.breadth-fullscreen .breadth-summary-breakdown b {
    font-size: 1.24em;
  }

  .market-breadth-panel.breadth-fullscreen .breadth-line.total {
    stroke-width: 5;
  }

  .market-breadth-panel.breadth-fullscreen .breadth-line.ma5 {
    stroke-width: 4;
  }

  .topbar {
    gap: 8px;
    margin-bottom: 10px;
    padding-right: 54px;
  }

  .member-actions {
    gap: 7px;
  }

  .session-info-row {
    width: 100%;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 5px;
  }

  .line-member-box {
    gap: 6px;
  }

  .line-member-box button {
    min-height: 36px;
    padding: 6px 9px;
  }

  .line-member-box .line-login-benefit {
    margin-top: -1px;
    font-size: 11px;
  }

  .brand-login {
    padding: 20px;
  }

  .brand-copy {
    gap: 14px;
  }

  .brand-copy h1 {
    font-size: clamp(28px, 7.8vw, 34px);
    line-height: 1.03;
    letter-spacing: -0.02em;
  }

  .brand-copy h1 > span {
    display: block;
    white-space: nowrap;
  }

  .brand-slogan {
    font-size: 17px;
  }

  .live-market-strip,
  .trend-score-intro,
  .score-factor-grid {
    grid-template-columns: 1fr;
  }

  .first-use-card {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .first-use-actions {
    min-width: 0;
  }

  .cover-search-control {
    grid-template-columns: minmax(0, 1fr) 82px;
  }

  .new-high-stats {
    grid-template-columns: 1fr;
  }

  .trend-radar-section { padding: 15px; }
  .trend-radar-heading { display: grid; align-items: start; }
  .trend-radar-date { text-align: left; }
  .radar-temperature { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trend-radar-grid { grid-template-columns: 1fr; }
  .radar-stock-item { grid-template-columns: minmax(0, 1fr); }
  .radar-status-label, .radar-stock-item > em { justify-self: start; }
  .radar-stock-metrics { flex-wrap: wrap; }
  .trend-radar-list-modal { max-height: 88vh; padding: 15px; }
  .radar-modal-heading { display: grid; }
  .radar-full-list { grid-template-columns: 1fr; }

  .secondary-entry-actions {
    grid-template-columns: 1fr;
  }

  .brand-description {
    font-size: 15px;
    line-height: 1.7;
  }

  .brand-guide-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .cover-market-section {
    padding: 14px;
  }

  .cover-market-heading {
    align-items: start;
    flex-direction: column;
  }

  .cover-market-heading p {
    max-width: none;
  }

  .cover-stock-row {
    grid-template-columns: 28px minmax(0, 1fr) 54px 62px;
    gap: 7px;
    padding: 8px 7px;
  }

  .cover-param {
    padding: 6px;
    font-size: 15px;
  }

  .cover-change {
    font-size: 13px;
  }

  .login-card {
    position: static;
    padding: 16px;
  }

  .analysis-grid {
    grid-template-columns: 1fr;
  }

  .analysis-card {
    padding: 13px;
  }

  #stockResultPanel > .result-actions {
    align-items: center;
    flex-direction: row;
    gap: 8px;
  }

  #stockResultPanel > .result-actions .section-note {
    display: none;
  }

  #clearAllButton {
    min-height: 36px;
    padding: 6px 10px;
    white-space: nowrap;
  }

  .analysis-primary-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .analysis-primary-actions .watch-add-button,
  .analysis-primary-actions .external-analysis-link {
    min-height: 46px;
    padding: 7px 8px;
  }

  .analysis-primary-actions .watch-add-button span,
  .analysis-primary-actions .external-analysis-link {
    font-size: 14px;
  }

  .analysis-primary-actions .watch-add-button small {
    display: none;
  }

  .signal-grid {
    gap: 7px;
  }

  .signal-grid div {
    padding: 8px;
  }

  .list-card-grid {
    grid-template-columns: 1fr;
  }

  .parameter-hero {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .parameter-hero.with-price {
    grid-template-columns: 1fr 1fr;
  }

  .analysis-dashboard {
    grid-template-columns: 1fr;
  }

  .signal-grid {
    grid-template-columns: 1fr 1fr;
  }

  .analysis-actions {
    justify-content: stretch;
  }

  .analysis-actions .watch-add-button {
    width: 100%;
  }

  .list-parameter.with-price {
    grid-template-columns: 1fr 1fr;
  }

  .result-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .member-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .list-heading {
    align-items: start;
    flex-direction: column;
  }

  .list-meta-line {
    gap: 8px;
    flex-wrap: nowrap;
  }

  .list-history-date-wrap {
    margin-top: 2px;
  }

  .list-meta-line .status-text::before {
    margin-right: 8px;
  }

  .query-panel .query-brand-positioning {
    font-size: 14.3px;
  }

  .query-panel .feature-group-description {
    font-size: 13.5px;
  }

  .query-panel .trend-direction-description {
    font-size: 12.5px;
  }

  .query-panel .line-member-box .line-login-benefit {
    font-size: 12px;
  }
}

@media (max-width: 400px) {
  .app-shell {
    width: calc(100% - 12px);
    margin: 10px auto;
  }

  .panel,
  .brand-login {
    padding: 14px;
  }

  .market-verdict-hero {
    gap: 9px;
    padding: 14px 14px 11px;
  }

  .market-verdict-heading {
    padding-right: 42px;
  }

  .market-verdict-stat {
    padding: 10px;
  }

  .market-verdict-stat strong b {
    font-size: 29px;
  }

  .brand-copy {
    gap: 9px;
  }

  .brand-copy > .eyebrow {
    font-size: 20px;
  }

  .brand-copy h1 {
    font-size: clamp(27px, 7.7vw, 30px);
    line-height: 1.03;
  }

  .brand-subtitle {
    font-size: 17px;
    line-height: 1.45;
  }

  .brand-description {
    font-size: 14px;
    line-height: 1.5;
  }

  .brand-value-line,
  .learn-more-link {
    font-size: 13px;
    line-height: 1.45;
  }

  .hero-entry-card {
    margin-top: 8px;
    padding: 14px;
  }

  .query-panel {
    padding: 10px;
  }

  .site-menu-button {
    top: max(14px, calc(env(safe-area-inset-top, 0px) + 8px));
    right: max(16px, calc(env(safe-area-inset-right, 0px) + 14px));
    width: 44px;
    height: 44px;
  }

  .query-view-active .site-menu-button {
    top: max(20px, calc(env(safe-area-inset-top, 0px) + 8px));
  }

  .feature-overview {
    gap: 8px;
  }

  .feature-group {
    padding: 8px;
  }

  .feature-group .mode-tabs {
    gap: 6px;
  }

  .tab-button,
  .overview-home-button {
    min-height: 36px;
    padding: 5px 6px;
    font-size: 15px;
    white-space: nowrap;
  }

  .session-info-row,
  .line-member-box,
  .member-actions {
    gap: 5px;
  }

  .line-member-box button {
    padding-inline: 7px;
    font-size: 14px;
  }

  .trial-guide,
  .search-row {
    margin-inline: 0;
  }
}

@media (max-width: 920px) and (orientation: landscape) and (max-height: 500px) {
  th,
  td {
    padding: 4px 6px;
  }

  .sticky-stock-column {
    padding: 3px 4px;
  }

  .stock-name-stack {
    gap: 0;
    line-height: 1.04;
  }

  .list-stock-tools,
  .list-stock-actions {
    gap: 1px;
  }

  .list-stock-action {
    min-height: 20px;
    padding: 1px 5px;
    font-size: 10px;
  }

  .first-high-badge,
  .new-high-name-badge {
    padding: 0 4px;
    font-size: 9px;
  }

  td:not(.sticky-stock-column) {
    font-size: 16px;
  }

  .table-sort-button {
    min-height: 30px;
    padding: 3px 6px;
  }
}

@media (max-width: 400px) {
  .query-panel .topbar,
  .result-actions,
  .list-heading {
    gap: 6px;
  }

  .feature-group h2,
  .trial-guide strong {
    font-size: 14px;
  }

  .trial-guide {
    margin-bottom: 10px;
    padding: 7px 9px;
  }

  .search-row {
    gap: 8px;
  }

  .popular-stocks {
    gap: 5px;
  }

  .popular-stocks button {
    padding: 6px 9px;
    font-size: 12px;
  }

  .result-panel {
    margin-top: 15px;
    padding-top: 15px;
  }

  .result-actions {
    margin-bottom: 9px;
  }

  .section-title {
    font-size: 19px;
  }

  .section-note,
  .sort-hint {
    font-size: 12px;
    line-height: 1.45;
  }

  .star-note {
    margin-bottom: 9px;
    padding: 6px 8px;
    font-size: 12px;
    line-height: 1.4;
  }

  .watchlist-add-row {
    gap: 6px;
    margin: 10px 0;
  }

  .watchlist-add-row input,
  .watchlist-add-row button {
    min-height: 42px;
    padding: 8px 9px;
  }

  .industry-data-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .industry-pill {
    gap: 5px;
    min-height: 66px;
    padding: 9px 10px;
  }

  .industry-detail-heading {
    gap: 7px;
    margin-bottom: 8px;
  }

  .industry-detail-heading h3 {
    font-size: 18px;
  }

  .analysis-grid {
    gap: 9px;
    margin-bottom: 12px;
  }

  .analysis-card {
    padding: 10px;
  }

  .analysis-head {
    gap: 7px;
    margin-bottom: 8px;
  }

  .analysis-head h3 {
    font-size: 22px;
  }

  .analysis-primary-actions {
    gap: 5px;
    margin: 6px 0 8px;
  }

  .parameter-hero {
    gap: 6px;
    padding: 8px;
  }

  .hero-stat {
    gap: 4px;
    padding: 7px;
  }

  .parameter-hero strong,
  .hero-stat strong {
    font-size: 25px;
  }

  .signal-grid {
    gap: 6px;
  }

  .signal-grid div {
    padding: 7px;
  }

  .signal-grid strong {
    margin-top: 4px;
    font-size: 15px;
  }

  .analysis-accordions {
    gap: 6px;
  }

  .analysis-accordions summary,
  .accordion-content {
    padding: 9px 10px;
    font-size: 13px;
  }

  .trend-radar-section,
  .cover-market-section,
  .cover-top-section {
    padding: 10px;
  }

  .trend-radar-grid,
  .radar-full-list {
    gap: 8px;
  }

  .trend-radar-card {
    padding: 10px;
  }

  .trend-radar-card h3 {
    font-size: 16px;
  }

  .modal-backdrop {
    padding: 9px;
  }

  .modal-panel,
  .install-help-panel,
  .trend-radar-list-modal {
    max-height: calc(100dvh - 18px);
    overflow-y: auto;
    padding: 14px;
  }

  .list-meta-line {
    gap: 4px 7px;
    flex-wrap: wrap;
  }

  .list-meta-line .status-text::before {
    content: none;
    margin: 0;
  }
}

@media (max-width: 700px) {
  .market-pulse-summary {
    margin-top: 18px;
    padding: 15px 12px;
  }

  .market-pulse-heading {
    display: grid;
    margin-bottom: 12px;
  }

  .market-pulse-heading h3 { font-size: 21px; }
  .market-pulse-title-line { gap: 7px; }
  .market-pulse-verdict { padding: 4px 8px; font-size: 13px; }
  .market-pulse-date { max-width: none; text-align: left; line-height: 1.35; }
  .market-pulse-grid { gap: 8px; }
  .market-pulse-side { padding: 12px 10px; }
  .market-pulse-side > strong b { font-size: 31px; }
  .market-pulse-extra { display: grid; gap: 5px; }
  .market-pulse-note { line-height: 1.5; }
  .market-explanation-section > .market-breadth-panel {
    margin-top: 12px;
    border-radius: 13px;
    padding: 13px 11px;
  }
  .market-explanation-section > .market-breadth-divider {
    display: none;
  }
  .market-explanation-section .market-breadth-controls {
    position: relative;
    padding-top: 34px;
    justify-items: end;
  }
  .market-explanation-section .breadth-info {
    position: absolute;
    top: 0;
    right: 0;
  }
  .market-explanation-section .breadth-info summary {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  .market-explanation-section .breadth-info > div {
    top: 31px;
    right: 0;
    width: min(280px, calc(100vw - 80px));
    margin-top: 5px;
    border-color: rgba(214, 181, 98, 0.72);
    box-shadow: 0 12px 28px rgba(2, 10, 17, 0.3);
    z-index: 30;
  }
  .market-explanation-section .breadth-info[open] summary {
    border-color: #e0bd64;
    box-shadow: 0 0 0 3px rgba(224, 189, 100, 0.18);
  }
  .market-explanation-section .breadth-fullscreen-close {
    font-size: 0;
  }
  .market-explanation-section .breadth-fullscreen-close::after {
    content: "↩ 返回";
    font-size: 16px;
  }
}

/* Homepage visual sample: premium black-gold treatment for Trend Radar only. */
#trendRadarSection {
  position: relative;
  overflow: hidden;
  border-color: rgba(113, 137, 156, 0.42);
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 2%, rgba(196, 151, 54, 0.08), transparent 30%),
    linear-gradient(145deg, #08131f 0%, #0d1b28 56%, #0a1621 100%);
  box-shadow: 0 16px 36px rgba(3, 10, 17, 0.24);
}

#trendRadarSection::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

#trendRadarSection > * {
  position: relative;
  z-index: 1;
}

#trendRadarSection .eyebrow,
#trendRadarSection .trend-radar-date {
  color: #d6b562;
}

#trendRadarSection .trend-radar-heading h2 {
  color: #f5f7f9;
  letter-spacing: 0.01em;
}

#trendRadarSection .trend-radar-heading p:not(.eyebrow),
#trendRadarSection .trend-radar-message,
#trendRadarSection .cover-list-status,
#trendRadarSection .cover-risk-note {
  color: #9eafbd;
}

#trendRadarSection .radar-temperature > div,
#trendRadarSection .radar-temperature > button {
  border-color: rgba(105, 132, 151, 0.38);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(24, 40, 53, 0.96), rgba(18, 32, 44, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

#trendRadarSection .radar-temperature > button:hover,
#trendRadarSection .radar-temperature > button:focus-visible {
  border-color: rgba(214, 181, 98, 0.82);
  background: linear-gradient(145deg, #203546, #192c3b);
  box-shadow: 0 7px 18px rgba(1, 8, 14, 0.25);
}

#trendRadarSection .radar-temperature span,
#trendRadarSection .radar-temperature em {
  color: #aebbc6;
}

#trendRadarSection .radar-temperature strong {
  color: #e0bd64;
}

#trendRadarSection .cover-top-card {
  border-color: rgba(190, 151, 65, 0.62);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(20, 35, 47, 0.98), rgba(15, 28, 39, 0.98));
  box-shadow: 0 10px 25px rgba(1, 8, 14, 0.22);
}

#trendRadarSection .cover-top-card.featured {
  border-color: rgba(207, 167, 73, 0.72);
  box-shadow: 0 10px 25px rgba(1, 8, 14, 0.22);
}

#trendRadarSection .cover-top-title h3 {
  color: #e7c56f;
}

#trendRadarSection .cover-list-link {
  border: 1px solid rgba(219, 187, 107, 0.7);
  background: #b78b32;
  color: #fffaf0;
  box-shadow: none;
}

#trendRadarSection .cover-list-link:hover,
#trendRadarSection .cover-list-link:focus-visible {
  border-color: #efd486;
  background: #c49a42;
}

#trendRadarSection .cover-stock-row {
  border-color: rgba(103, 130, 149, 0.34);
  border-radius: 10px;
  background: rgba(26, 43, 56, 0.9);
  color: #f1f4f6;
}

#trendRadarSection .cover-stock-row:hover {
  border-color: rgba(197, 162, 81, 0.68);
  background: rgba(32, 52, 67, 0.96);
}

#trendRadarSection .cover-stock-main strong {
  color: #f4f6f8;
}

#trendRadarSection .cover-stock-main em,
#trendRadarSection .cover-metric small {
  color: #9eafbd;
}

#trendRadarSection .cover-rank {
  background: rgba(116, 84, 25, 0.58);
  color: #f0d27e;
}

@media (max-width: 700px) {
  #trendRadarSection {
    border-radius: 14px;
    box-shadow: 0 11px 25px rgba(3, 10, 17, 0.2);
  }

  #trendRadarSection .radar-temperature > button {
    border-radius: 10px;
  }

  #trendRadarSection .cover-top-card {
    border-radius: 11px;
  }
}

/* Homepage newcomer guide: a visible but secondary CTA. */
.brand-copy .learn-more-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-top: 5px;
  border: 1px solid rgba(41, 111, 119, 0.28);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(230, 241, 242, 0.82);
  color: #245f66;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: 0 5px 14px rgba(31, 74, 80, 0.07);
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.brand-copy .learn-more-link span {
  color: #a97822;
  font-size: 1.1em;
  transition: transform 160ms ease;
}

.brand-copy .learn-more-link:hover,
.brand-copy .learn-more-link:focus-visible {
  border-color: rgba(41, 111, 119, 0.58);
  background: #eef7f7;
  outline: none;
  transform: translateY(-1px);
}

.brand-copy .learn-more-link:hover span,
.brand-copy .learn-more-link:focus-visible span {
  transform: translateX(3px);
}

@media (max-width: 700px) {
  .brand-copy .learn-more-link {
    min-height: 54px;
    max-width: 100%;
    border-color: rgba(41, 111, 119, 0.62);
    padding: 11px 16px;
    background: #dcebed;
    font-size: 17px;
    font-weight: 850;
    white-space: nowrap;
    box-shadow: 0 5px 13px rgba(31, 74, 80, 0.1);
  }

  .brand-copy .learn-more-link span {
    color: #c3912f;
  }
}

@media (max-width: 700px) {
  .industry-data-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .industry-pill-main {
    align-items: baseline;
    gap: 4px;
  }

  .industry-pill-main strong {
    font-size: 14px;
    line-height: 1.28;
  }

  .industry-pill-main small {
    padding-top: 0;
    font-size: 10px;
  }

  .industry-pill-trend {
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
  }
}

/* Industry cards: emphasize daily breakout counts without changing layout. */
.industry-data-panel > .result-actions .section-title {
  font-size: clamp(26px, 3vw, 31px);
}

.industry-pill-main strong {
  font-size: 16px;
  font-weight: 700;
}

.industry-pill-main small {
  color: #97a3ae;
  font-size: 12px;
  font-weight: 600;
}

.industry-pill-trend {
  font-size: 14px;
  font-weight: 700;
}

.industry-pill-trend .industry-high,
.industry-pill-trend .industry-low {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1.3;
}

.industry-pill-trend b {
  display: inline-block;
  min-width: 1.25ch;
  font-size: 1.12em;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

@media (max-width: 700px) {
  .industry-data-panel > .result-actions .section-title {
    font-size: 28px;
  }

  .industry-pill-main strong {
    font-size: 16px;
  }

  .industry-pill-main small {
    font-size: 12px;
  }

  .industry-pill-trend {
    gap: 7px;
    font-size: 13px;
  }
}

.paid-rating-history {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  margin-top: 4px;
  border: 1px solid #dcc47a;
  border-radius: 12px;
  padding: 14px;
  background: #fffdf5;
}

.paid-rating-history-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.paid-rating-history-heading span {
  color: #9b6b17;
  font-size: 12px;
  font-weight: 900;
}

.paid-rating-stock-name {
  margin: 4px 0 0;
  color: #1f6f76;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
}

.paid-rating-stock-name b {
  margin-right: 6px;
  color: #607080;
  font-size: 14px;
}

.paid-rating-history-heading h4 {
  margin: 3px 0 0;
  color: #17212b;
  font-size: 19px;
}

.paid-rating-history-heading small {
  color: #82909c;
  font-weight: 700;
  white-space: nowrap;
}

.paid-rating-history-table {
  margin: 0;
}

.paid-rating-history-table .historical-selected-row td {
  background: #fff0bd;
  color: #6f4b00;
  font-weight: 900;
}

.history-carried-price {
  display: block;
  margin-top: 3px;
  color: #7b8791;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.paid-rating-fullscreen-return-hint {
  display: none;
}

@media (orientation: landscape) and (max-width: 1366px) and (pointer: coarse) {
  .paid-rating-history-table.is-table-focus {
    position: fixed;
    inset: 0;
    z-index: 1400;
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    overscroll-behavior: contain;
  }

  .paid-rating-history-table.is-table-focus table {
    min-width: max-content;
    margin: 0;
  }

  .paid-rating-history-table.is-table-focus .paid-rating-fullscreen-return-hint {
    position: fixed;
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    z-index: 1420;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    padding: 7px 11px;
    background: rgba(23, 33, 43, 0.42);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-align: left;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .paid-rating-fullscreen-return-hint strong,
  .paid-rating-fullscreen-return-hint span {
    display: block;
  }
}

@media (max-width: 700px) {
  .paid-rating-history {
    padding: 11px;
  }

  .paid-rating-history-heading {
    align-items: start;
  }

  .paid-rating-history-heading h4 {
    font-size: 17px;
  }

  .paid-rating-history-heading small {
    font-size: 10px;
  }
}

/* Individual analysis: stronger score hierarchy and a cleaner four-card summary. */
.parameter-hero.with-price {
  grid-template-columns: minmax(100px, 0.76fr) minmax(145px, 1.24fr);
}

.hero-stat.parameter-focus > span {
  font-size: 14px;
}

.hero-stat.parameter-focus > strong {
  font-size: clamp(38px, 5.4vw, 48px);
  font-weight: 900;
  line-height: 1;
}

.seat-label-mobile {
  display: none;
}

.hero-stat.parameter-focus > strong .seat-label-full,
.hero-stat.parameter-focus > strong .seat-label-mobile {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.hero-stat.parameter-focus > em {
  font-size: 18px;
  line-height: 1.2;
}

.hero-stat.parameter-focus .advantage-position-track {
  height: 7px;
}

.hero-stat.parameter-focus .advantage-position-dot {
  width: 14px;
  height: 14px;
}

.hero-stat.parameter-focus .advantage-position-marker {
  top: -8px;
  border-right-width: 6px;
  border-left-width: 6px;
  border-top-width: 8px;
}

.rating-bond-card {
  display: grid;
  align-content: start;
}

.company-bond-inline {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 7px;
  color: #536371;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.company-bond-inline b {
  color: #24313d;
  font-size: 13px;
}

.company-bond-inline .company-bond-info-button {
  width: 19px;
  height: 19px;
  margin-left: 1px;
  font-size: 11px;
}

@media (max-width: 720px) {
  .parameter-hero.with-price {
    grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  }

  .hero-stat.parameter-focus > strong {
    font-size: clamp(36px, 10.5vw, 44px);
  }

  .hero-stat.parameter-focus > em {
    font-size: 17px;
  }

  .signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero-stat.parameter-focus > strong {
    font-size: clamp(32px, 9vw, 38px);
  }

  .hero-stat.price-stat > strong {
    font-size: clamp(24px, 7.5vw, 30px);
  }

  .seat-label-full {
    display: none;
  }

  .seat-label-mobile {
    display: inline;
  }

  .hero-stat.parameter-focus > strong.seat-tier-value {
    font-size: 36px;
  }
}

@media (max-width: 400px) {
  .hero-stat.parameter-focus > strong {
    font-size: 32px;
  }

  .hero-stat.parameter-focus > strong.seat-tier-value {
    font-size: 36px;
  }

  .hero-stat.parameter-focus > span {
    font-size: 13px;
  }

  .hero-stat.parameter-focus > em {
    font-size: 16px;
  }

  .company-bond-inline {
    margin-top: 5px;
    font-size: 11px;
  }
}

.financial-key-section {
  margin-top: 12px;
  border: 1px solid #dce5e8;
  border-radius: 10px;
  padding: 12px;
  background: #fbfdfd;
}

.financial-key-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.financial-key-heading h4 {
  margin: 0;
  color: #24313d;
  font-size: 17px;
  font-weight: 900;
}

.financial-key-heading span {
  border: 1px solid #e4bd58;
  border-radius: 999px;
  padding: 2px 7px;
  background: #fff9e7;
  color: #9c2f24;
  font-size: 10px;
  font-weight: 900;
}

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

.financial-key-card,
.financial-more-card {
  min-width: 0;
  min-height: 126px;
  border: 1px solid #dfe6ea;
  border-radius: 9px;
  padding: 11px;
  background: #fff;
  text-align: left;
}

.financial-key-card > span {
  display: block;
  min-height: 30px;
  color: #536371;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.financial-key-card > span small {
  color: #87939d;
  font-size: 10px;
  white-space: nowrap;
}

.financial-key-card > strong {
  display: block;
  margin: 6px 0 8px;
  color: #08695c;
  font-size: clamp(23px, 3vw, 30px);
  font-weight: 900;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.financial-key-details {
  display: grid;
  gap: 3px;
  border-top: 1px solid #e4eaed;
  padding-top: 7px;
}

.financial-key-details small {
  color: #43515e;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.financial-key-details b {
  color: #24313d;
  font-weight: 900;
}

.financial-more-card {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  background: linear-gradient(145deg, #fbfcfd, #f1f5f6);
  color: #24313d;
  text-align: center;
}

.financial-more-card:hover,
.financial-more-card:focus-visible {
  border-color: #5b9196;
  outline: none;
  background: #edf7f6;
}

.financial-more-card strong {
  color: #24313d;
  font-size: 14px;
  font-weight: 900;
}

.financial-more-card span,
.financial-more-card small {
  color: #607080;
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 720px) {
  .financial-key-section {
    margin-top: 9px;
    padding: 9px;
  }

  .financial-key-heading {
    margin-bottom: 8px;
  }

  .financial-key-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .financial-key-card,
  .financial-more-card {
    min-height: 118px;
    padding: 9px;
  }

  .financial-key-card > span {
    min-height: 27px;
    font-size: 11px;
  }

  .financial-key-card > strong {
    margin: 5px 0 7px;
    font-size: clamp(22px, 7vw, 27px);
  }

  .financial-key-details {
    padding-top: 6px;
  }

  .financial-key-details small {
    font-size: 10px;
  }
}

@media (max-width: 400px) {
  .financial-key-card,
  .financial-more-card {
    min-height: 112px;
    padding: 8px;
  }

  .financial-key-card > strong {
    font-size: 22px;
  }

  .financial-more-card strong {
    font-size: 13px;
  }
}

/* 財務排行：會員選定範圍後，直屏與橫屏都使用整頁表格。 */
body.financial-table-fullscreen-open {
  overflow: hidden;
}

[data-financial-ranking-table].is-table-focus,
[data-financial-compare-table].is-table-focus {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1400 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: auto !important;
  overscroll-behavior: contain;
  background: #fff;
  box-shadow: none !important;
}

[data-financial-ranking-table].is-table-focus table,
[data-financial-compare-table].is-table-focus table {
  width: max-content;
  min-width: 920px;
  margin: 0;
}

[data-financial-ranking-table].is-table-focus thead th,
[data-financial-compare-table].is-table-focus thead th {
  position: sticky;
  top: 0;
  z-index: 7;
}

[data-financial-ranking-table].is-table-focus th.sticky-stock-column,
[data-financial-compare-table].is-table-focus th.sticky-stock-column {
  z-index: 9;
}

[data-financial-ranking-table].is-table-focus .list-fullscreen-return-hint,
[data-financial-compare-table].is-table-focus .list-fullscreen-return-hint {
  display: grid;
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 12;
}

@media (max-width: 700px) {
  [data-financial-ranking-table].is-table-focus th,
  [data-financial-ranking-table].is-table-focus td,
  [data-financial-compare-table].is-table-focus th,
  [data-financial-compare-table].is-table-focus td {
    padding: 7px 8px;
    font-size: 13px;
  }
}
