:root {
  color-scheme: dark;
  --bg: #050505;
  --surface: #0c0c0c;
  --raised: #141414;
  --line: rgba(255, 255, 255, 0.08);
  --hairline: rgba(255, 255, 255, 0.06);
  --text: #f4f4f5;
  --muted: #9ca3af;
  --accent: #e8a317;
  --accent-2: #f5c451;
  --accent-soft: rgba(232, 163, 23, 0.12);
  --accent-line: rgba(232, 163, 23, 0.42);
  --green: #5eead4;
  --green-bright: #2dd4bf;
  --green-dark: #0f2f2a;
  --red: #fda4af;
  --red-dark: #3f1d24;
  --black: #050505;
  --shade: rgba(0, 0, 0, 0.72);
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: Sora, "Noto Sans SC", "PingFang SC", sans-serif;
  --numbers: "IBM Plex Mono", "Noto Sans SC", ui-monospace, monospace;
  --focus: #f5c451;
  --ease-fluid: cubic-bezier(0.32, 0.72, 0, 1);
  --radius-shell: 1.75rem;
  --radius-core: calc(1.75rem - 0.375rem);
  --fs-caption: 0.75rem;
  --fs-label: 0.75rem;
  --fs-small: 0.8125rem;
  --fs-body: 0.9375rem;
  --fs-ui: 0.875rem;
  --fs-h3: 1.0625rem;
  --fs-h2: 1.25rem;
  --fs-h1: clamp(1.55rem, 1.25rem + 2.2vw, 1.95rem);
  --fs-metric: clamp(1.35rem, 1.15rem + 1.4vw, 1.75rem);
  --fs-price: clamp(2rem, 1.55rem + 3.4vw, 2.7rem);
  --lh-tight: 1.25;
  --lh-snug: 1.4;
  --lh-body: 1.65;
  --lh-loose: 1.75;
  --track-tight: -0.03em;
  --track-label: 0.14em;
}
* {
  box-sizing: border-box;
  letter-spacing: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-bottom: 24px;
}
body {
  margin: 0;
  background:
    radial-gradient(720px 380px at 88% -12%, rgba(232, 163, 23, 0.1), transparent 58%),
    radial-gradient(520px 320px at 0% 8%, rgba(45, 212, 191, 0.04), transparent 52%),
    var(--bg);
  color: var(--text);
  font: var(--fs-body)/var(--lh-body) var(--font);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
input {
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}
button,
a {
  touch-action: manipulation;
}
button {
  color: inherit;
  cursor: pointer;
}
button {
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--focus, var(--accent));
  outline-offset: 4px;
}
button:active:not(:disabled) {
  opacity: 0.76;
}
h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}
h2 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
}
button svg {
  flex-shrink: 0;
}
svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.4;
  vertical-align: middle;
}
img {
  object-fit: contain;
}
input {
  min-width: 0;
}
[hidden] {
  display: none !important;
}
.app-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100dvh;
  margin: auto;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  background: var(--bg);
}
.app-shell.download-ready {
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}
.app-header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 22px;
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 21px;
  font-weight: 700;
  min-width: 0;
}
.brand-mark {
  width: 29px;
  height: 29px;
  border-radius: 7px;
  background: var(--accent);
  color: #1b120a;
  display: grid;
  place-items: center;
}
.brand-mark svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.2;
}
.brand-sub {
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
  margin: 4px 0 0 1px;
}
.icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  flex-shrink: 0;
}
.app-header > .icon-button {
  margin-right: -11px;
  color: var(--text);
}
.market-intro {
  padding: 25px 22px 0;
  background: radial-gradient(circle at 92% 0%, rgba(255,163,51,.11), transparent 38%), var(--bg);
}
.hero-kicker{display:flex;align-items:center;gap:7px;color:var(--accent);font-size:10px;letter-spacing:.06em;margin-bottom:12px}.hero-kicker span{display:block;width:6px;height:6px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 4px rgba(255,163,51,.12)}
.heading-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
h1 {
  font-size: 31px;
  font-weight: 650;
  line-height: 1.35;
}
.hero-symbol{font:42px/1 var(--numbers);color:var(--accent);opacity:.9;transform:none;margin-right:4px}.hero-description{color:var(--muted);font-size:12px;margin-top:10px;max-width:250px}.experience-nav{display:flex;gap:3px;border-bottom:1px solid var(--line);margin-top:22px;margin-bottom:3px}.experience-nav a{display:flex;align-items:center;gap:6px;min-height:39px;padding:0 9px;color:var(--muted);font-size:10px;border-bottom:2px solid transparent}.experience-nav a:first-child{color:var(--text);border-bottom-color:var(--accent)}.experience-nav a span{color:var(--accent);font:10px var(--numbers)}
.heading-dot {
  color: var(--green);
  margin-left: 3px;
}
.unit-label {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
.connection-line {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 36px;
  margin-top: 2px;
  font-size: 10px;
  color: var(--muted);
}
.source-status {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
}
.source-status.live {
  color: var(--green);
}
.source-status.live .status-dot {
  background: var(--green-bright);
}
.source-status.streaming .status-dot {
  box-shadow: 0 0 0 0 rgba(104, 231, 165, 0.55);
  animation: stream-pulse 1.4s ease-out infinite;
}
@keyframes stream-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(104, 231, 165, 0.45);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(104, 231, 165, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(104, 231, 165, 0);
  }
}
#selected-price.price-flash-up {
  color: var(--green-bright, #68e7a5);
}
#selected-price.price-flash-down {
  color: #f19599;
}
.refresh-button {
  width: 44px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-left: auto;
  margin-right: -11px;
}
.refresh-button svg {
  width: 13px;
  height: 13px;
}
.refresh-button.loading svg {
  animation: spin 1.3s linear infinite;
}
.coin-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  padding-top: 12px;
  padding-bottom: 18px;
}
.coin-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.coin-chip img {
  width: 20px;
  height: 20px;
}
.coin-chip.active {
  background: var(--raised);
  border-color: #69786d;
  color: var(--text);
}
.asset-detail {
  padding: 0 22px;
}
.asset-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.asset-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}
.asset-identity h2 {
  font-size: 16px;
  line-height: 1.4;
}
.asset-identity span {
  font: 10px/1.4 var(--numbers);
  color: var(--muted);
}
.favorite-button {
  color: var(--muted);
  margin-right: -10px;
}
.favorite-button[aria-pressed="true"] {
  color: var(--green);
}
.favorite-button[aria-pressed="true"] svg {
  fill: var(--green);
  stroke: var(--green);
}
.price-line {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 13px;
  min-height: 50px;
}
.main-price {
  font: 500 41px/1.2 var(--numbers);
  font-variant-numeric: tabular-nums;
}
.quote-unit {
  font-size: 10px;
  color: var(--muted);
}
.change-line {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  color: var(--muted);
  min-height: 25px;
}
.change-line > span:first-child {
  font: 600 12px var(--numbers);
}
.positive {
  color: var(--green-bright);
}
.negative {
  color: var(--red);
}
.neutral {
  color: var(--muted);
}
.chart-point {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  font-size: 10px;
}
.chart-wrap {
  position: relative;
  height: 150px;
  margin: 12px -7px 0;
  overflow: hidden;
}
.chart-wrap > div:first-child {
  width: 100%;
  height: 100%;
}
.chart-message {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  z-index: 2;
}
.chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}
.period-selector {
  display: flex;
  gap: 2px;
}
.period-selector button {
  min-width: 44px;
  min-height: 44px;
  font-size: 11px;
  color: var(--muted);
  position: relative;
  isolation: isolate;
  padding: 0 8px;
}
.period-selector button.active {
  color: var(--green);
  font-weight: 600;
}
.period-selector button.active:before {
  content: "";
  position: absolute;
  inset: 9px 0;
  z-index: -1;
  border-radius: 4px;
  background: var(--green-dark);
}
.chart-credit {
  font-size: 9px;
  color: var(--muted);
  padding: 12px 0;
}
.asset-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 10px 0 18px;
}
.asset-stats > div:not(:first-child) {
  border-left: 1px solid var(--line);
  padding-left: 13px;
}
.asset-stats dt {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 5px;
}
.asset-stats dd {
  font: 500 12px/1.5 var(--numbers);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.sentiment-section {
  padding: 18px 22px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.insights-section{padding:24px 22px 22px;background:linear-gradient(180deg,#171716 0%,var(--surface) 100%);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.insight-icon{width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--accent-line);border-radius:7px;color:var(--accent)}.insight-icon svg{width:17px;height:17px}.insight-meta{display:flex;justify-content:space-between;gap:10px;margin-top:14px;color:var(--muted);font:10px var(--numbers)}.insight-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;margin-top:14px;background:var(--bg);padding:3px;border-radius:5px}.insight-tabs button{min-height:38px;border-radius:3px;color:var(--muted);font-size:11px}.insight-tabs button[aria-selected=true]{background:var(--accent-soft);color:var(--accent);font-weight:600}.insight-panel{min-height:190px}.insight-headline{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:19px}.signal-tag{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--accent-line);border-radius:4px;padding:5px 8px;color:var(--accent);font-size:11px}.signal-tag.positive{color:var(--green-bright);border-color:#315a42;background:var(--green-dark)}.signal-tag.negative{color:var(--red);border-color:#62353a;background:var(--red-dark)}.rule-label{font-size:9px;color:var(--muted)}.insight-description{font-size:12px;line-height:1.7;color:#d8d5d1;margin-top:13px}.metric-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}.metric-grid>div{background:var(--raised);padding:12px;border-radius:5px;border-left:2px solid var(--accent-line)}.metric-grid span,.metric-grid small{display:block;color:var(--muted);font-size:10px}.metric-grid strong{display:block;font:500 20px var(--numbers);margin:6px 0 3px}.metric-grid strong small{display:inline;font-size:11px}.insight-stamp{font-size:9px;color:var(--muted);line-height:1.6;margin-top:15px}.level-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:13px 0;border-bottom:1px solid var(--line)}.level-row span{display:flex;align-items:center;gap:7px;font-size:12px}.level-row small{display:block;color:var(--muted);font-size:9px;margin-left:14px}.level-row strong{font:500 16px var(--numbers)}.level-dot{display:block;width:7px;height:7px;border-radius:50%}.level-dot.lower{background:var(--green-bright)}.level-dot.upper{background:var(--accent)}.insight-caution{font-size:10px;color:var(--muted);line-height:1.6;margin-top:12px}.risk-item{display:grid;grid-template-columns:27px 1fr;gap:7px;padding:13px 0;border-bottom:1px solid var(--line)}.risk-item>span{font:11px var(--numbers);color:var(--accent)}.risk-item strong{font-size:12px}.risk-item p{color:var(--muted);font-size:10px;line-height:1.6;margin-top:4px}.insight-empty{text-align:center;color:var(--muted);padding:37px 0 25px}.insight-empty strong{display:block;color:var(--text);font-size:13px;margin-bottom:7px}.loading-dots{display:block;color:var(--accent);font-size:28px;line-height:1;letter-spacing:4px}.insight-empty p{font-size:10px}.insight-method{border-top:1px solid var(--line);margin-top:15px;padding-top:12px}.insight-method summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;color:var(--muted);font-size:11px;list-style:none}.insight-method summary::-webkit-details-marker{display:none}.insight-method summary svg{width:14px;height:14px;transition:transform .2s}.insight-method[open] summary svg{transform:rotate(180deg)}.insight-method p{color:var(--muted);font-size:10px;line-height:1.7;margin-top:10px}.insight-next{display:flex;align-items:center;justify-content:space-between;color:var(--accent);font-size:11px;margin-top:18px}.insight-next svg{width:15px;height:15px}.vote-feedback{color:var(--muted);font-size:10px;line-height:1.6;text-align:center;margin:10px auto 0;max-width:280px}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.section-heading h2 {
  font-size: 17px;
}
.eyebrow {
  display: block;
  font-size: 9px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 5px;
}
.outline-label {
  font: 11px var(--numbers);
  color: var(--muted);
  border: 1px solid #4a554d;
  padding: 4px 7px;
  border-radius: 4px;
}
.outlook-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin-top: 14px;
}
.outlook-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
}
.outlook-button.up {
  background: var(--green-dark);
  color: var(--green);
}
.outlook-button.down {
  background: var(--red-dark);
  color: var(--red);
}
.outlook-button.up[aria-pressed="true"] {
  border-color: var(--green);
}
.outlook-button.down[aria-pressed="true"] {
  border-color: var(--red);
}
.vote-check {
  width: 13px;
  height: 13px;
  display: none;
}
.outlook-button[aria-pressed="true"] .vote-check {
  display: block;
}
.outlook-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
  min-height: 15px;
}
.market-list-section {
  padding: 25px 22px 0;
  scroll-margin-top: 20px;
}
.list-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
}
.list-tabs button {
  padding: 0 8px;
  color: var(--muted);
  min-width: 44px;
  min-height: 44px;
  font-size: 11px;
}
.list-tabs button.active {
  color: var(--green);
}
.table-heading {
  display: grid;
  grid-template-columns: 1fr 1fr 80px;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
  padding: 14px 0 6px;
}
.table-heading > span:nth-child(2) {
  text-align: right;
}
.table-heading > span:last-child {
  text-align: right;
}
.market-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 80px;
  align-items: center;
  gap: 8px;
  text-align: left;
  min-height: 75px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.row-coin {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.row-coin img {
  width: 29px;
  height: 29px;
  flex-shrink: 0;
}
.coin-meta {
  min-width: 0;
}
.coin-meta strong {
  display: block;
  font: 600 13px/1.5 var(--numbers);
}
.coin-meta small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.row-price {
  font: 500 13px var(--numbers);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.row-change {
  font: 600 11px var(--numbers);
  text-align: center;
  padding: 8px 3px;
  border-radius: 4px;
  background: var(--green-dark);
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.row-change.negative {
  background: var(--red-dark);
  color: var(--red);
}
.row-change.neutral {
  background: var(--raised);
  color: var(--muted);
}
.breadth-section {
  padding: 28px 22px 15px;
}
.breadth-section h2 {
  font-size: 15px;
}
.subtle {
  font-size: 10px;
  color: var(--muted);
}
.breadth-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 11px;
}
.breadth-labels span {
  display: flex;
  align-items: center;
  gap: 3px;
}
.breadth-labels svg {
  width: 14px;
  height: 14px;
}
.breadth-labels b {
  font: 600 13px var(--numbers);
  margin: 0 3px;
}
.breadth-track {
  height: 5px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--red);
  margin-top: 12px;
}
.breadth-track div {
  height: 100%;
  width: 50%;
  background: var(--green-bright);
  border-right: 4px solid var(--bg);
  transition: width 0.25s ease;
}
.breadth-section > p {
  min-height: 16px;
  margin-top: 8px;
}
.page-footer {
  padding: 17px 22px 30px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.9;
  text-align: center;
}
.footer-wordmark {
  display: inline-block;
  margin-top: 15px;
  font-weight: 600;
  font-size: 16px;
  color: var(--muted);
}
.bottom-nav {
  height: 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.bottom-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
  position: relative;
}
.bottom-nav button.active {
  color: var(--green);
}
.bottom-nav svg {
  width: 21px;
  height: 21px;
}
.nav-count {
  position: absolute;
  left: calc(50% + 9px);
  top: 9px;
  font: 9px var(--numbers);
  background: var(--raised);
  border-radius: 5px;
  min-width: 14px;
  padding: 1px 3px;
}
.download-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 77px;
  border-bottom: 1px solid var(--line);
}
.download-banner > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.download-banner strong {
  font-size: 14px;
}
.download-banner span {
  font-size: 10px;
  color: var(--muted);
}
.primary-button {
  background: var(--green);
  color: var(--black);
  font-weight: 650;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  min-height: 44px;
  padding: 0 19px;
  font-size: 12px;
}
.primary-button svg {
  width: 17px;
  height: 17px;
}
.empty-watchlist {
  text-align: center;
  padding: 40px 0;
  color: var(--muted);
}
.empty-watchlist > svg {
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
}
.empty-watchlist h3 {
  font-size: 13px;
  font-weight: 400;
}
.text-button {
  min-height: 44px;
  color: var(--green);
  font-size: 12px;
  margin: 10px auto 0;
}
.text-button svg {
  width: 14px;
  height: 14px;
  margin-left: 5px;
}
dialog {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  width: calc(100% - 24px);
  max-width: 456px;
  padding: 22px;
  max-height: 85dvh;
  overflow: auto;
  box-shadow: 0 20px 80px var(--shade);
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(4px);
}
.dialog-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -7px -10px 15px 0;
}
.dialog-topline h2 {
  font-size: 19px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.search-field svg {
  color: var(--muted);
  width: 18px;
  height: 18px;
}
.search-field input {
  height: 49px;
  width: 100%;
  background: none;
  border: 0;
  color: var(--text);
  outline: none;
}
.search-field:focus-within {
  border-color: var(--green);
}
.search-field input::placeholder {
  color: var(--muted);
  font-size: 12px;
}
.search-result,
.outlook-result {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  min-height: 65px;
}
.search-result img,
.outlook-result img {
  width: 28px;
  height: 28px;
}
.search-result strong,
.outlook-result strong {
  font-size: 13px;
  display: block;
}
.search-result small,
.outlook-result small {
  font-size: 10px;
  color: var(--muted);
}
.search-result > span:last-child,
.outlook-result > span:last-child {
  margin-left: auto;
  font-size: 12px;
}
.dialog-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 18px;
  text-align: center;
}
.no-results {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 32px 0;
}
.download-dialog {
  position: fixed;
  inset: auto 0 0;
  margin: 0 auto;
  width: 100%;
  max-width: 480px;
  max-height: 92dvh;
  border-radius: 8px 8px 0 0;
  border-bottom: 0;
  padding: 31px 26px calc(23px + env(safe-area-inset-bottom));
  text-align: center;
}
.download-dialog[open] {
  animation: sheet-in 0.32s ease-out;
}
.sheet-handle {
  position: absolute;
  top: 9px;
  left: calc(50% - 18px);
  width: 36px;
  height: 3px;
  border-radius: 3px;
  background: #4c5950;
}
.sheet-close {
  position: absolute;
  right: 10px;
  top: 13px;
  color: var(--muted);
}
.download-app-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 8px;
  background: var(--accent);
  color: #1b120a;
  margin: 9px auto 20px;
}
.download-app-icon svg {
  width: 34px;
  height: 34px;
  stroke-width: 1.8;
}
.download-dialog .eyebrow {
  font-size: 9px;
  color: var(--accent);
}
.download-dialog h2 {
  font-size: 24px;
  font-weight: 600;
  margin-top: 6px;
}
.download-context{font-size:11px;line-height:1.6;color:var(--muted);max-width:280px;margin:10px auto 0}
.download-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
.divider-dot {
  padding: 0 8px;
}
.download-action {
  margin-top: 27px;
  width: 100%;
  height: 52px;
  font-size: 14px;
}
.download-action > svg:last-child {
  margin-left: auto;
}
.download-action > svg:first-child {
  margin-right: auto;
}
.download-action:disabled {
  opacity: 0.65;
}
.download-legal {
  margin: 12px auto 0;
  max-width: 280px;
  font-size: 10px;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
}
.download-status {
  margin-top: 9px;
  font-size: 10px;
  min-height: 18px;
  color: var(--muted);
}
.continue-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 11px;
}
.continue-button svg {
  width: 14px;
  height: 14px;
}
.toast {
  position: fixed;
  z-index: 20;
  bottom: calc(94px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--black);
  padding: 12px 20px;
  border-radius: 6px;
  max-width: calc(100% - 40px);
  font-size: 12px;
  box-shadow: 0 4px 20px var(--shade);
  text-align: center;
  pointer-events: none;
}
body:has(dialog[open]) {
  overflow: hidden;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes sheet-in {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@media (max-width: 359px) {
  .app-header {
    margin: 0 16px;
  }
  .market-intro,
  .asset-detail,
  .market-list-section,
  .breadth-section {
    padding-left: 16px;
    padding-right: 16px;
  }
  .sentiment-section {
    padding: 20px 16px;
  }
  .main-price {
    font-size: 35px;
  }
  .table-heading,
  .market-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) 70px;
    gap: 5px;
  }
  .row-coin {
    gap: 6px;
  }
  .row-coin img {
    width: 25px;
    height: 25px;
  }
  .row-price {
    font-size: 12px;
  }
  .row-change {
    font-size: 10px;
  }
  .brand-sub {
    display: none;
  }
  .asset-stats > div:not(:first-child) {
    padding-left: 9px;
  }
  .chart-credit {
    font-size: 8px;
  }
  .period-selector button {
    padding: 0 5px;
  }
  .quote-unit {
    font-size: 9px;
  }
  .download-dialog h2 {
    font-size: 22px;
  }
}

/* Motion layer: market scan, signal reveal, and conversion feedback. */
.brand-mark { position: relative; isolation: isolate; }
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(255, 159, 67, .42);
  border-radius: 12px;
  z-index: -1;
  animation: radar-ring 2.8s ease-out infinite;
}
.brand-mark::after { animation-delay: 1.4s; }
.market-intro { position: relative; overflow: hidden; }
.market-intro::after {
  content: "";
  position: absolute;
  top: 0;
  left: -35%;
  width: 22%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 18px 2px rgba(255, 159, 67, .28);
  animation: intro-scan 5.5s ease-in-out infinite;
  pointer-events: none;
}
.hero-kicker span { animation: signal-pulse 1.8s ease-in-out infinite; }
.coin-chip { transition: border-color .2s ease, background-color .2s ease, transform .2s ease, color .2s ease; }
.coin-chip:hover { transform: translateY(-2px); border-color: var(--accent-line); color: var(--accent); }
.coin-chip.active { animation: selected-chip 2.4s ease-in-out infinite; }
.asset-detail { position: relative; }
.asset-detail::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 0;
  width: 2px;
  height: 42px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(255, 159, 67, .38);
  transform-origin: top;
  transform: scaleY(0);
  opacity: 0;
}
.asset-detail.price-tick::before { animation: signal-line .55s ease-out; }
.main-price { transition: color .2s ease, text-shadow .2s ease; }
.price-tick .main-price { color: #ffd39e; text-shadow: 0 0 18px rgba(255, 159, 67, .4); }
.chart-wrap { isolation: isolate; }
.chart-wrap::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: -8%;
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 16px 2px rgba(255, 159, 67, .5);
  opacity: 0;
  pointer-events: none;
}
.chart-wrap.chart-is-loading::before { opacity: .8; animation: chart-scan 1.15s ease-in-out infinite; }
.chart-wrap.chart-is-loading::after {
  content: "SCANNING MARKET";
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 8px;
  color: var(--accent);
  font: 8px var(--numbers);
  letter-spacing: .12em;
  animation: text-blink 1.1s ease-in-out infinite;
  pointer-events: none;
}
.chart-wrap:not(.chart-is-loading) > div:first-child { animation: chart-rise .55s ease-out both; }
.period-selector button { transition: color .2s ease, background-color .2s ease, transform .2s ease; }
.period-selector button:hover { transform: translateY(-1px); color: var(--accent); }
.period-selector button.active:before { animation: active-period 2.5s ease-in-out infinite; }
.insight-panel.panel-ready .insight-headline,
.insight-panel.panel-ready .insight-description,
.insight-panel.panel-ready .metric-grid,
.insight-panel.panel-ready .level-row,
.insight-panel.panel-ready .risk-item,
.insight-panel.panel-ready .insight-stamp,
.insight-panel.panel-ready .insight-caution { animation: data-rise .45s cubic-bezier(.22, .8, .3, 1) both; }
.insight-panel.panel-ready .metric-grid > div:nth-child(2),
.insight-panel.panel-ready .risk-item:nth-child(3) { animation-delay: .09s; }
.insight-panel.panel-ready .risk-item:nth-child(4),
.insight-panel.panel-ready .level-row:nth-child(3) { animation-delay: .16s; }
.insight-panel.panel-ready .signal-tag { animation: signal-glow 2.4s ease-in-out infinite; }
.radar-card, .sample-card { transition: border-color .2s ease, transform .2s ease, background-color .2s ease; }
.radar-card:hover, .sample-card:hover { transform: translateX(3px); border-color: var(--accent-line); background-color: #211b16; }
.radar-pulse i { animation: signal-pulse 1.8s ease-in-out infinite; }
.source-status.live .status-dot { animation: signal-pulse 1.8s ease-in-out infinite; }
.loading-dots { animation: text-blink 1.1s ease-in-out infinite; }
.sample-card { animation: data-rise .42s cubic-bezier(.22, .8, .3, 1) both; }
.sample-card:nth-child(2) { animation-delay: .08s; }
.sample-card:nth-child(3) { animation-delay: .16s; }
.ai-primary-button:not(:disabled), .download-banner .primary-button { position: relative; overflow: hidden; }
.ai-primary-button:not(:disabled)::after, .download-banner .primary-button::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-110%);
  background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,.28), transparent 70%);
  animation: cta-sheen 3.8s ease-in-out infinite;
  pointer-events: none;
}
.download-banner.unlocking { animation: unlock-banner .75s cubic-bezier(.22, .8, .3, 1) both; }
@keyframes radar-ring { 0% { opacity: .7; transform: scale(.76); } 80%, 100% { opacity: 0; transform: scale(1.45); } }
@keyframes intro-scan { 0%, 15% { transform: translateX(0); opacity: 0; } 25% { opacity: .9; } 75% { opacity: .9; } 90%, 100% { transform: translateX(630%); opacity: 0; } }
@keyframes signal-pulse { 0%, 100% { transform: scale(1); opacity: .75; } 50% { transform: scale(1.35); opacity: 1; } }
@keyframes selected-chip { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 159, 67, 0); } 50% { box-shadow: 0 0 0 3px rgba(255, 159, 67, .08); } }
@keyframes signal-line { 0% { opacity: 0; transform: scaleY(0); } 25% { opacity: 1; } 100% { opacity: 0; transform: scaleY(1); } }
@keyframes chart-scan { 0% { left: -8%; } 100% { left: 108%; } }
@keyframes chart-rise { from { opacity: .2; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes text-blink { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes active-period { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 159, 67, .04); } 50% { box-shadow: 0 0 16px rgba(255, 159, 67, .16); } }
@keyframes data-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes signal-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 159, 67, 0); } 50% { box-shadow: 0 0 18px rgba(255, 159, 67, .18); } }
@keyframes cta-sheen { 0%, 35% { transform: translateX(-110%); } 68%, 100% { transform: translateX(110%); } }
@keyframes unlock-banner { 0% { opacity: .4; transform: translateY(18px); } 60% { opacity: 1; transform: translateY(-3px); } 100% { transform: translateY(0); } }
@keyframes report-glow { 0% { box-shadow: 0 0 0 rgba(255,159,67,0); } 45% { box-shadow: 0 0 26px rgba(255,159,67,.2); } 100% { box-shadow: 0 0 0 rgba(255,159,67,0); } }
@media (prefers-reduced-motion: reduce) {
  .brand-mark::before, .brand-mark::after, .market-intro::after, .hero-kicker span,
  .coin-chip.active, .chart-wrap.chart-is-loading::before, .chart-wrap.chart-is-loading::after,
  .period-selector button.active:before, .insight-panel.panel-ready *, .sample-card,
  .radar-pulse i, .ai-primary-button::after, .download-banner .primary-button::after { animation: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}

/* Crypto Analysis AI: dense terminal surfaces with a single amber signal. */
:root {
  --accent: #ff9f43;
  --accent-soft: #302016;
  --accent-line: #6d4526;
  --focus: #ffc078;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline-color: var(--focus);
}
.brand-mark {
  background: var(--accent);
  color: #1b120a;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(255, 159, 67, .25), 0 8px 24px rgba(255, 159, 67, .12);
}
.brand-mark svg { stroke-width: 2.4; }
.insights-section,
.radar-section,
.chat-section,
.samples-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ai-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.ai-primary-button,
.outline-action {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 5px;
  padding: 0 15px;
  font-size: 12px;
  font-weight: 650;
}
.ai-primary-button {
  flex: 1;
  background: var(--accent);
  color: #1c130c;
}
.ai-primary-button:disabled { opacity: .58; }
.ai-primary-button svg,
.outline-action svg { width: 16px; height: 16px; }
.ai-status {
  max-width: 120px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}
.ai-report {
  margin-top: 14px;
  padding: 15px;
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  background: linear-gradient(145deg, rgba(255, 159, 67, .09), rgba(37, 35, 33, .92) 42%);
}
.ai-report.is-visible { animation: data-rise .28s cubic-bezier(.22, .8, .3, 1) both, report-glow 1.2s ease-out both; }
.ai-primary-button.is-loading svg { animation: spin 1s linear infinite; }
.ai-primary-button.is-loading { cursor: wait; }

/* Library-backed motion: Motion scroll reveal + AutoAnimate lists + terminal ticks. */
[data-reveal].reveal-pending {
  opacity: 0;
  transform: translateY(14px);
  will-change: opacity, transform;
}
[data-reveal].is-revealed,
[data-reveal]:not(.reveal-pending) {
  opacity: 1;
  transform: none;
  will-change: auto;
}
.main-price {
  font-variant-numeric: tabular-nums;
  display: inline-block;
}
.main-price.price-flash-up {
  color: var(--green-bright);
  text-shadow: 0 0 16px rgba(104, 231, 165, .28);
}
.main-price.price-flash-down {
  color: var(--red);
  text-shadow: 0 0 16px rgba(241, 149, 153, .28);
}
.market-row,
.radar-card {
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.market-row:active,
.outlook-button:active {
  transform: scale(.985);
}
.chat-message.chat-enter {
  transform-origin: left center;
}
.chat-log {
  scroll-behavior: smooth;
}
.outlook-button[aria-pressed="true"] {
  animation: vote-lock .45s cubic-bezier(.22, .8, .3, 1) both;
}
.breadth-fill,
#breadth-fill {
  transition: width .55s cubic-bezier(.22, .8, .3, 1);
}
@keyframes vote-lock {
  0% { transform: scale(.96); }
  60% { transform: scale(1.02); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal].reveal-pending {
    opacity: 1;
    transform: none;
  }
  .main-price.price-flash-up,
  .main-price.price-flash-down,
  .outlook-button[aria-pressed="true"],
  .chat-message.chat-enter {
    animation: none !important;
    text-shadow: none;
  }
}
.ai-report-head,
.ai-report-columns,
.tp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ai-report-head { color: var(--muted); font-size: 10px; }
.ai-report-summary { margin-top: 13px; font-size: 13px; line-height: 1.7; color: var(--text); }
.ai-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 15px;
}
.ai-plan-grid > div {
  min-width: 0;
  padding: 9px 7px;
  background: rgba(16, 16, 16, .52);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 4px;
}
.ai-plan-grid small,
.tp-row small { display: block; color: var(--muted); font-size: 9px; }
.ai-plan-grid strong { display: block; margin-top: 5px; overflow-wrap: anywhere; font: 600 13px var(--numbers); }
.ai-plan-grid em { font-style: normal; font-size: 10px; color: var(--accent); }
.accent-text { color: var(--accent); }
.tp-row { justify-content: flex-start; margin-top: 9px; }
.tp-row > span { flex: 1; padding: 7px 8px; background: var(--accent-soft); border-radius: 3px; color: var(--accent); font: 600 11px var(--numbers); }
.ai-report-columns { align-items: flex-start; margin-top: 15px; }
.ai-report-columns > div { width: 50%; min-width: 0; }
.ai-report-columns > div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.ai-report-columns b { font-size: 10px; color: var(--muted); font-weight: 500; }
.ai-report-columns ul { margin: 7px 0 0; padding-left: 14px; color: #d8d5d1; font-size: 10px; line-height: 1.65; }
.ai-disclaimer { margin-top: 13px; color: var(--muted); font-size: 9px; line-height: 1.55; }
.radar-section,
.chat-section,
.samples-section { padding: 25px 22px; background: var(--bg); }
.radar-section { background: linear-gradient(180deg, var(--bg), #151311); }
.section-lede { margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.radar-pulse { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font: 9px var(--numbers); letter-spacing: .08em; }
.radar-pulse i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,159,67,.13); }
.radar-list { margin-top: 16px; }
.radar-card {
  width: 100%;
  display: grid;
  grid-template-columns: 21px 29px minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 9px;
  min-height: 67px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.radar-card:first-child { border-top: 1px solid var(--line); }
.radar-card > img { width: 29px; height: 29px; }
.radar-rank { color: var(--accent); font: 10px var(--numbers); }
.radar-main { min-width: 0; }
.radar-main strong { display: block; font: 600 12px var(--numbers); }
.radar-main strong small { margin-left: 6px; color: var(--muted); font: 10px var(--font); }
.radar-label { display: block; margin-top: 3px; font-size: 10px; }
.radar-change { font: 600 11px var(--numbers); }
.radar-card > svg { width: 14px; height: 14px; color: var(--muted); }
.chat-section { background: var(--surface); }
.chat-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--accent-line); border-radius: 7px; color: var(--accent); }
.chat-mark svg svg { width: 17px; height: 17px; }
.quick-prompts { display: flex; gap: 6px; overflow-x: auto; margin-top: 15px; padding-bottom: 2px; scrollbar-width: none; }
.quick-prompts::-webkit-scrollbar { display: none; }
.quick-prompts button { flex: 0 0 auto; min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.quick-prompts button:active, .quick-prompts button:hover { border-color: var(--accent-line); color: var(--accent); }
.chat-log { min-height: 78px; max-height: 220px; overflow-y: auto; margin-top: 13px; padding: 2px 0; }
.chat-empty { color: var(--muted); font-size: 11px; line-height: 1.7; }
.chat-message { width: fit-content; max-width: 88%; margin: 7px 0; padding: 9px 11px; border-radius: 5px; font-size: 11px; line-height: 1.55; }
.chat-message.user { margin-left: auto; background: var(--accent-soft); color: #ffd8a8; }
.chat-message.assistant { background: var(--raised); color: #dedbd7; }
.chat-form { display: flex; gap: 7px; margin-top: 9px; padding: 4px 4px 4px 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); }
.chat-form:focus-within { border-color: var(--accent-line); }
.chat-form input { flex: 1; min-width: 0; height: 38px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; }
.chat-form input::placeholder { color: var(--muted); }
.chat-form button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 4px; background: var(--accent); color: #1c130c; }
.chat-form button:disabled { opacity: .5; }
.chat-form button svg { width: 16px; height: 16px; } { background: var(--bg); }
.outline-action { grid-column: 1 / -1; margin-top: 3px; border: 1px solid var(--accent-line); color: var(--accent); background: transparent; }
.outline-action:hover { background: var(--accent-soft); }
.small-link { color: var(--accent); font-size: 10px; }
.sample-list { display: grid; gap: 8px; margin-top: 16px; }
.sample-card { position: relative; width: 100%; min-height: 94px; padding: 13px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); text-align: left; }
.sample-card:hover, .sample-card:active { border-color: var(--accent-line); }
.sample-card:active, .radar-card:active, .ai-primary-button:active:not(:disabled), .quick-prompts button:active { transform: scale(.985); }
.sample-card.is-viewed { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255,159,67,.11); }
.sample-type { color: var(--accent); font-size: 9px; letter-spacing: .04em; }
.sample-card img { width: 25px; height: 25px; }
.sample-card strong { font: 600 12px var(--numbers); }
.sample-card p { margin-top: 10px; color: var(--muted); font-size: 10px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sample-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; color: var(--accent); font-size: 10px; }
.sample-link svg { width: 13px; height: 13px; }
.sample-count { color: var(--accent); font: 10px var(--numbers); letter-spacing: .04em; }
.sample-browse { margin-top: 14px; }
.sample-browse-label { display: block; color: var(--muted); font-size: 10px; margin-bottom: 8px; }
.sample-symbol-filter { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.sample-symbol-filter button { flex: 0 0 auto; min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; display: inline-flex; align-items: center; gap: 5px; background: var(--bg); }
.sample-symbol-filter button.active { border-color: var(--accent-line); color: var(--accent); background: var(--accent-soft); }
.sample-symbol-filter img { width: 16px; height: 16px; border-radius: 50%; }
.sample-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-right: 0; }
.sample-identity { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.sample-identity small { color: var(--muted); font-size: 10px; }
.sample-card-meta { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.sample-confidence { color: var(--text); font: 600 12px var(--numbers); }
.sample-date { color: var(--muted); font: 10px var(--numbers); }
.sample-horizon-pill { color: var(--accent); font-size: 10px; }
.capability-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.capability-strip > span { display: grid; gap: 2px; padding: 10px 8px; border: 1px solid var(--line); border-radius: 5px; background: rgba(255,159,67,.04); color: var(--muted); font-size: 9px; }
.capability-strip b { color: var(--accent); font: 650 14px var(--numbers); }
.indicator-rail { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.indicator-rail span { min-height: 26px; padding: 0 8px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); font: 9px var(--numbers); letter-spacing: .04em; background: var(--bg); }
.indicator-rail span:last-child { color: var(--accent); border-color: var(--accent-line); }
.chart-plan-legend { position: absolute; z-index: 3; left: 8px; bottom: 8px; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 16px); pointer-events: none; }
.chart-plan-legend span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 3px; background: rgba(16,16,16,.82); border: 1px solid rgba(255,255,255,.08); color: var(--text); font: 9px var(--numbers); }
.chart-plan-legend i { width: 8px; height: 2px; background: var(--plan-color, var(--accent)); box-shadow: 0 0 8px var(--plan-color, var(--accent)); }
.chart-wrap { position: relative; }
.download-app-icon { background: var(--accent); color: #1b120a; box-shadow: 0 8px 30px rgba(255,159,67,.13); }
.primary-button { background: var(--accent); color: #1b120a; }
.bottom-nav button.active { color: var(--accent); }
.capability-note { margin-top: 10px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.service-status { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.service-status > span { min-height: 28px; padding: 0 10px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; background: var(--surface); }
.service-status > span.is-ready { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.sample-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.sample-updated { color: var(--muted); font-size: 10px; }
.sample-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.sample-pager button { min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 5px; color: var(--text); font-size: 11px; }
.sample-pager button:disabled { opacity: .4; }
.sample-pager span { color: var(--muted); font: 11px var(--numbers); }
.analysis-detail { border-top: 1px solid var(--line); background: linear-gradient(180deg, #161412, var(--bg) 18%); }
.detail-chrome { position: sticky; top: 0; z-index: 8; display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: rgba(16,16,16,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.detail-title { min-width: 0; display: grid; gap: 2px; }
.detail-title strong { font-size: 13px; }
.detail-title span { color: var(--muted); font-size: 10px; }
.detail-market-line { padding: 10px 22px 0; }
.analysis-detail .coin-selector { padding: 10px 22px 0; }
.detail-cta { padding: 8px 22px 28px; }
.detail-cta .primary-button { width: 100%; min-height: 48px; gap: 8px; border-radius: 6px; font-size: 13px; }
.detail-cta-note { margin-top: 10px; color: var(--muted); font-size: 10px; text-align: center; }
.app-shell.mode-home .analysis-detail { display: none; }
.app-shell.mode-detail .samples-section,
.app-shell.mode-detail .select-guide { display: none; }
.app-shell.mode-detail .market-intro .experience-nav a:nth-child(2) { color: var(--text); border-bottom-color: var(--accent); }
.app-shell.mode-home .market-intro .experience-nav a:first-child { color: var(--text); border-bottom-color: var(--accent); }
.advanced-tools { margin: 8px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.advanced-tools > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; }
.advanced-tools > summary::-webkit-details-marker { display: none; }
.advanced-tools > summary span { font-size: 13px; font-weight: 650; }
.advanced-tools > summary small { color: var(--muted); font-size: 10px; flex: 1; }
.advanced-tools > summary svg { width: 16px; height: 16px; color: var(--muted); transition: transform .2s ease; }
.advanced-tools[open] > summary svg { transform: rotate(180deg); color: var(--accent); }
.indicator-rail .rail-note { color: var(--accent); border-color: var(--accent-line); }
.brand-sub { letter-spacing: .08em; }

@media (max-width: 359px) {
  .radar-section, .chat-section, .samples-section { padding-left: 16px; padding-right: 16px; }
  .ai-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

/* Crypto terminal skin: OLED slate + amber signal, emerald/red for PnL. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}
.app-shell { position: relative; z-index: 1; background: transparent; }
.app-header {
  height: 68px;
  margin: 0 16px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.brand-mark {
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.35), 0 0 22px rgba(245, 158, 11, 0.22);
}
.brand-sub {
  font-family: var(--display);
  color: var(--accent-2);
  letter-spacing: 0.14em;
}
.market-intro {
  margin: 12px 16px 0;
  padding: 18px 16px 8px;
  border: 1px solid var(--accent-line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(245, 158, 11, 0.08), transparent 42%),
    rgba(16, 24, 38, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
h1, .detail-title strong, .section-heading h2 {
  font-family: var(--font);
  letter-spacing: 0;
}
.main-price, .row-price, .sample-confidence, .ai-plan-grid strong {
  font-variant-numeric: tabular-nums;
}
.capability-strip > span,
.service-status > span,
.insight-panel,
.ai-report,
.samples-section,
.insights-section,
.radar-section,
.chat-section,
.sentiment-section,
.market-list-section,
.breadth-section {
  margin: 14px 16px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 16, 28, 0.72);
}
.analysis-detail {
  margin: 12px 0 0;
  border: 0;
  background: transparent;
}
.detail-chrome {
  margin: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 11, 18, 0.88);
}
.bottom-nav button { min-height: 44px; font-size: 11px; }
.bottom-nav button.active {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}
.primary-button,
.ai-primary-button {
  border-radius: 12px;
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
  color: #1c1408;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.22);
}
.coin-chip {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(16, 24, 38, 0.8);
}
.positive { color: var(--green-bright); }
.negative { color: #fb7185; }
.eyebrow, .hero-kicker {
  font-family: var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@media (prefers-reduced-motion: reduce) {
  body::before { display: none; }
}

/* Touch 44px, caption floor 12px, one 12px radius on controls and cards. */
:root { --radius: 12px; }
.experience-nav a,
.sample-symbol-filter button,
.sample-pager button,
.quick-prompts button,
.insight-tabs button,
.refresh-button,
.chat-form button,
.chat-form input,
.experience-nav {
  gap: 0;
}
.experience-nav a {
  flex: 1;
  justify-content: center;
  min-width: 0;
  padding: 10px 6px;
  font-size: 12px;
}
.experience-nav a span { font-size: 12px; }
.refresh-button,
.chat-form button {
  width: 44px;
  height: 44px;
}
.chat-form input { height: 44px; font-size: 16px; }
.sample-symbol-filter button,
.sample-pager button,
.quick-prompts button,
.insight-tabs button {
  padding-inline: 12px;
  font-size: 12px;
}
.brand-mark,
.icon-button,
.insight-icon,
.sample-card,
.market-row,
.radar-card,
.capability-strip > span,
.service-status > span,
.sample-symbol-filter button,
.sample-pager button,
.quick-prompts button,
.insight-tabs,
.insight-tabs button,
.chat-form,
.chat-form button,
.chat-message,
.primary-button,
.ai-primary-button,
.detail-cta .primary-button,
.coin-chip,
.period-selector button.active:before,
.indicator-rail span,
.chart-plan-legend span,
.tp-row > span,
.detail-chrome {
  border-radius: var(--radius);
}
.brand-sub,
.hero-kicker,
.unit-label,
.connection-line,
.capability-strip > span,
.capability-note,
.service-status > span,
.section-lede,
.sample-type,
.sample-browse-label,
.sample-identity small,
.sample-horizon-pill,
.sample-updated,
.sample-link,
.sample-pager span,
.detail-title span,
.detail-cta-note,
.advanced-tools > summary small,
.ai-report-head,
.tp-row small,
.ai-plan-grid em,
.ai-report-columns b,
.ai-report-columns ul,
.ai-disclaimer,
.insight-meta,
.chat-empty,
.chat-message,
.small-link,
.radar-label,
.indicator-rail span,
.chart-plan-legend span,
.bottom-nav button,
.period-selector button,
.download-context,
.quote-unit,
.chart-credit,
.row-change {
  font-size: 12px;
}
.brand-sub { letter-spacing: 0.06em; }
.service-status > span { min-height: 32px; padding-block: 6px; }
.brand,
.chart-credit,
.insight-next,
.favorite-button,
#price-chart a {
  min-height: 44px;
}
.chart-credit,
.insight-next {
  display: inline-flex;
  align-items: center;
}
#price-chart a { min-width: 44px; }
button,
input,
select,
.search-field,
.signal-tag,
.metric-grid > div,
.ai-report,
.ai-plan-grid > div,
.outline-action {
  border-radius: var(--radius);
}
.eyebrow,
.sample-count,
.signal-tag,
.sample-date,
.rule-label,
.ai-status,
.radar-rank,
.radar-change,
.asset-stats dt,
.asset-identity span,
.change-line,
.metric-grid span,
.metric-grid small,
.metric-grid strong small,
.insight-stamp,
.level-row small,
.insight-caution,
.risk-item > span,
.risk-item p,
.insight-empty p,
.insight-method summary,
.insight-method p,
.insight-next,
.vote-feedback,
.search-result small,
.outlook-result small,
.dialog-note,
.ai-plan-grid small,
.quote-unit,
.radar-main strong small,
.coin-meta small,
.outline-label,
.outlook-note,
.table-heading,
.list-tabs button,
.subtle {
  font-size: 12px;
}
.detail-cta .primary-button,
.outlook-button,
.list-tabs button,
.coin-chip {
  border-radius: var(--radius);
}

/* ========== Precision Signal Terminal (authoritative skin) ========== */
:root {
  --radius: 1.25rem;
  --accent: #e8a317;
  --accent-2: #f5c451;
  --accent-soft: rgba(232, 163, 23, 0.12);
  --accent-line: rgba(232, 163, 23, 0.4);
  --focus: #f5c451;
  --bg: #050505;
  --surface: #0c0c0c;
  --raised: #141414;
  --line: rgba(255, 255, 255, 0.08);
  --display: Sora, "Noto Sans SC", "PingFang SC", sans-serif;
  --numbers: "IBM Plex Mono", "Noto Sans SC", ui-monospace, monospace;
  --type-display: var(--fs-h1);
  --type-price: var(--fs-price);
  --type-brand: clamp(0.98rem, 0.9rem + 0.55vw, 1.12rem);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}

.app-shell {
  position: relative;
  z-index: 1;
  background: transparent;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

.app-shell.download-ready {
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

/* Floating header island */
.app-header {
  height: auto;
  min-height: 64px;
  margin: 14px 16px 0;
  padding: 12px 12px 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-shell);
  background: rgba(12, 12, 12, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  display: block;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}

.brand-sub {
  display: block;
  margin: 0;
  font-family: var(--numbers);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--accent);
  color: #1a1206;
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.28);
  position: relative;
  isolation: isolate;
}

.brand-mark::before,
.brand-mark::after {
  display: none;
}

.brand-mark svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.6;
}

.icon-island,
.app-header > .icon-button {
  width: 44px;
  height: 44px;
  margin-right: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  transition: transform 0.45s var(--ease-fluid), background-color 0.45s var(--ease-fluid);
}

.icon-island:active,
.app-header > .icon-button:active {
  transform: scale(0.96);
  opacity: 1;
}

/* Samples — editorial, open, number-led */
.samples-section {
  margin: 8px 20px 0;
  padding: 28px 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.samples-heading-block {
  display: grid;
  gap: 10px;
  justify-content: start;
  align-items: start;
}

.samples-heading-block .eyebrow,
.signal-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--numbers);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.signal-bar::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
}

#samples-heading,
.samples-heading-block h2 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.samples-lede {
  margin: 0;
  max-width: 28ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.sample-browse {
  margin-top: 22px;
}

.sample-browse-label {
  margin-bottom: 10px;
  font-family: var(--numbers);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.sample-symbol-filter button {
  border-radius: 999px;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--line);
  transition: border-color 0.45s var(--ease-fluid), color 0.45s var(--ease-fluid), background-color 0.45s var(--ease-fluid);
}

.sample-symbol-filter button.active {
  border-color: var(--accent-line);
  color: var(--accent);
  background: var(--accent-soft);
}

.sample-list {
  gap: 12px;
  margin-top: 18px;
}

.sample-card {
  min-height: 0;
  padding: 0;
  border-radius: var(--radius-shell);
  border: 1px solid var(--line);
  background: rgba(12, 12, 12, 0.92);
  box-shadow: none;
  text-align: left;
  overflow: hidden;
  transition: border-color 0.45s var(--ease-fluid), transform 0.45s var(--ease-fluid);
}

.sample-card:hover,
.sample-card:active {
  transform: none;
  border-color: var(--accent-line);
  background: rgba(12, 12, 12, 0.96);
  box-shadow: none;
}

.sample-card.is-viewed {
  border-color: var(--accent-line);
  box-shadow: inset 3px 0 0 var(--accent);
}

.sample-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0;
  min-height: 112px;
}

.sample-card-main {
  padding: 16px 14px 14px 16px;
  border-right: 1px solid var(--hairline);
  min-width: 0;
}

.sample-card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 14px;
  min-width: 76px;
  background: rgba(255, 255, 255, 0.02);
}

.sample-card-top {
  padding-right: 0;
}

.sample-identity {
  gap: 10px;
}

.sample-identity img {
  width: 30px;
  height: 30px;
}

.sample-card strong {
  font-family: var(--numbers);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.sample-identity small {
  font-size: 12px;
  color: var(--muted);
}

.sample-card p {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: #c4c4c8;
  -webkit-line-clamp: 2;
}

.sample-card-meta {
  margin-top: 14px;
  padding-top: 0;
  border-top: 0;
  gap: 8px;
  flex-wrap: wrap;
}

.sample-confidence {
  font-family: var(--numbers);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
}

.sample-confidence em {
  font-style: normal;
  margin-left: 1px;
  font-size: 11px;
  color: var(--muted);
}

.sample-link {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
}

.sample-link svg {
  width: 13px;
  height: 13px;
  transition: transform 0.45s var(--ease-fluid);
}

.sample-card:hover .sample-link svg {
  transform: translateX(2px);
}

.signal-tag {
  border-radius: 4px;
  font-family: var(--numbers);
  font-size: 11px;
  letter-spacing: 0.04em;
}

/* Detail + double-bezel chart */
.analysis-detail {
  margin: 8px 0 0;
  border: 0;
  background: transparent;
}

.detail-chrome {
  margin: 0 16px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-shell);
  background: rgba(12, 12, 12, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.detail-title strong {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
}

.asset-detail {
  padding: 8px 20px 0;
}

.main-price {
  font-family: var(--numbers);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-shadow: none;
}

.price-tick .main-price {
  color: var(--accent-2);
  text-shadow: none;
}

.main-price.price-flash-up,
.main-price.price-flash-down {
  text-shadow: none;
}

.bezel-shell {
  margin: 14px 0 0;
  padding: 6px;
  border-radius: var(--radius-shell);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.bezel-core {
  border-radius: var(--radius-core);
  background: #080808;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.chart-bezel .chart-wrap {
  height: 168px;
  margin: 0;
}

.chart-wrap::before,
.chart-wrap.chart-is-loading::after {
  display: none;
}

.insights-section,
.radar-section,
.chat-section,
.sentiment-section,
.market-list-section,
.breadth-section {
  margin: 16px 16px 0;
  padding: 24px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-shell);
  background: rgba(12, 12, 12, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.insights-section {
  background:
    linear-gradient(180deg, rgba(232, 163, 23, 0.05), transparent 36%),
    rgba(12, 12, 12, 0.86);
}

.section-heading h2 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-family: var(--numbers);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.insight-tabs {
  gap: 4px;
  margin-top: 16px;
  padding: 4px;
  border-radius: 14px;
  background: #080808;
  border: 1px solid var(--line);
}

.insight-tabs button {
  min-height: 44px;
  border-radius: 10px;
  font-size: 12px;
  transition: background-color 0.45s var(--ease-fluid), color 0.45s var(--ease-fluid);
}

.insight-tabs button[aria-selected="true"] {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.metric-grid > div {
  border-radius: 12px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
}

.ai-report {
  border-radius: var(--radius-core);
  border: 1px solid var(--accent-line);
  background: rgba(20, 16, 10, 0.9);
}

/* Nested CTA architecture — label geometrically centered; icon docks right */
.cta-nest,
.primary-button,
.ai-primary-button,
.detail-cta .primary-button,
.download-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #1a1206;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.28);
  transition: transform 0.45s var(--ease-fluid), filter 0.45s var(--ease-fluid);
}

.cta-nest {
  position: relative;
  padding: 6px 52px;
}

.cta-nest:active:not(:disabled),
.primary-button:active:not(:disabled),
.ai-primary-button:active:not(:disabled) {
  transform: scale(0.98);
  opacity: 1;
}

.cta-icon {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.14);
  flex-shrink: 0;
  transform: translateY(-50%);
  transition: transform 0.45s var(--ease-fluid);
}

.cta-nest:hover .cta-icon,
.primary-button:hover .cta-icon {
  transform: translateY(-50%) translateX(2px) scale(1.04);
}

.cta-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.6;
}

.ai-primary-button {
  flex: 1;
}

.ai-primary-button:not(:disabled)::after,
.download-banner .primary-button::after {
  display: none;
}

.outline-action.cta-nest {
  justify-content: center;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  box-shadow: none;
}

.outline-action.cta-nest .cta-icon {
  background: var(--accent-soft);
  color: var(--accent);
}

.detail-cta {
  padding: 12px 20px 32px;
}

.detail-chrome .text-button {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  gap: 6px;
  display: inline-flex;
  align-items: center;
}

.detail-chrome .text-button svg {
  width: 16px;
  height: 16px;
}

.asset-detail::before {
  box-shadow: none;
  background: var(--accent);
  width: 2px;
  left: 20px;
}

.insight-icon,
.chat-mark {
  border-radius: 12px;
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.primary-button:not(.cta-nest),
.ai-primary-button:not(.cta-nest) {
  justify-content: center;
  padding: 0 20px;
}

.detail-cta .primary-button {
  width: 100%;
}

.bottom-nav {
  height: 60px;
  gap: 2px;
}

.bottom-nav button {
  min-height: 44px;
  border-radius: 18px;
  font-size: 11px;
  color: var(--muted);
  transition: color 0.45s var(--ease-fluid), background-color 0.45s var(--ease-fluid);
}

.bottom-nav button.active {
  color: var(--accent);
  background: var(--accent-soft);
  text-shadow: none;
}

.bottom-nav svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.4;
}

.toast {
  bottom: calc(110px + env(safe-area-inset-bottom));
  border-radius: 14px;
}

.download-dialog {
  border-radius: 28px 28px 0 0;
  background: #0c0c0c;
  border-color: var(--line);
  padding: 28px 24px calc(24px + env(safe-area-inset-bottom));
}

.download-dialog[open] {
  animation: sheet-in 0.55s var(--ease-fluid);
}

.sheet-handle {
  background: rgba(255, 255, 255, 0.18);
}

.download-app-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--accent);
  color: #1a1206;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.28);
}

.download-dialog h2 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.download-action {
  width: 100%;
  margin-top: 24px;
}

.download-action > svg:last-child,
.download-action > svg:first-child {
  margin: 0;
}

.coin-chip {
  border-radius: 12px;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.45s var(--ease-fluid), background-color 0.45s var(--ease-fluid), color 0.45s var(--ease-fluid);
}

.coin-chip:hover {
  transform: none;
  box-shadow: none;
}

.coin-chip.active {
  animation: none;
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--text);
}

.period-selector button.active {
  color: var(--accent);
}

.period-selector button.active:before {
  background: var(--accent-soft);
  animation: none;
  border-radius: 10px;
}

.radar-pulse i,
.hero-kicker span,
.source-status.live .status-dot {
  animation: none;
  box-shadow: none;
}

.radar-pulse i {
  border-radius: 1px;
}

.market-intro::after {
  display: none;
}

.insight-panel.panel-ready .signal-tag {
  animation: none;
}

.radar-card:hover,
.sample-card:hover {
  transform: none;
  background-color: inherit;
}

.advanced-tools {
  margin: 18px 16px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-shell);
  background: rgba(12, 12, 12, 0.72);
}

.advanced-tools > summary {
  min-height: 56px;
  padding: 0 18px;
}

.positive { color: var(--green-bright); }
.negative { color: #fb7185; }

.row-change {
  border-radius: 8px;
}

.market-row,
.radar-card {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.market-row:hover,
.radar-card:hover {
  box-shadow: none;
  border-color: var(--line);
}

.chat-form {
  border-radius: 14px;
  padding: 4px 4px 4px 14px;
}

.chat-form button {
  border-radius: 12px;
}

dialog {
  border-radius: 20px;
  background: #0c0c0c;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
}

.search-field {
  border-radius: 14px;
}

.search-field:focus-within {
  border-color: var(--accent-line);
}

[data-reveal].reveal-pending {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(4px);
}

[data-reveal].is-revealed,
[data-reveal]:not(.reveal-pending) {
  filter: none;
}

@media (max-width: 359px) {
  .app-header,
  .samples-section,
  .advanced-tools {
    margin-left: 12px;
    margin-right: 12px;
  }
  #samples-heading,
  .samples-heading-block h2 {
    font-size: 24px;
  }
  .main-price {
    font-size: 36px;
  }
  .sample-card-side {
    min-width: 64px;
    padding: 14px 10px;
  }
  .sample-confidence {
    font-size: 22px;
  }
  .brand-sub {
    display: none;
  }
  }

@media (prefers-reduced-motion: reduce) {
  body::before {
    display: none;
  }
  [data-reveal].reveal-pending {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .cta-nest,
  .primary-button,
  .ai-primary-button,
  .icon-island,
  .sample-link svg,
  .cta-icon {
    transition: none !important;
  }
}

/* ========== Cross-device adaptation: Apple + Android ========== */
:root {
  --sat: env(safe-area-inset-top, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --page-gutter: clamp(12px, 4.2vw, 20px);
  --dock-lift: 12px;
  --dock-height: 0px;
  --shell-max: 480px;
  --type-display: var(--fs-h1);
  --type-price: var(--fs-price);
  --type-brand: clamp(0.98rem, 0.9rem + 0.55vw, 1.12rem);
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  min-height: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  overflow-x: clip;
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
}

.app-shell {
  width: 100%;
  max-width: var(--shell-max);
  min-height: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  margin-inline: auto;
  padding-left: max(0px, var(--sal));
  padding-right: max(0px, var(--sar));
  padding-bottom: calc(
    var(--dock-height) + var(--dock-lift) + var(--sab) + 24px
  );
  box-sizing: border-box;
}

.app-shell.download-ready {
  padding-bottom: calc(
    var(--dock-height) + var(--dock-lift) + var(--sab) + 24px
  );
}

.app-header {
  margin-top: calc(var(--dock-lift) + var(--sat));
  margin-left: var(--page-gutter);
  margin-right: var(--page-gutter);
  padding-top: 12px;
}

.samples-section,
.advanced-tools,
.select-guide {
  margin-left: var(--page-gutter);
  margin-right: var(--page-gutter);
}

.insights-section,
.radar-section,
.chat-section,
.sentiment-section,
.market-list-section,
.breadth-section {
  margin-left: var(--page-gutter);
  margin-right: var(--page-gutter);
}

.detail-chrome {
  margin-left: var(--page-gutter);
  margin-right: var(--page-gutter);
  top: max(8px, var(--sat));
}

.asset-detail,
.detail-market-line,
.analysis-detail .coin-selector,
.detail-cta {
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

.detail-cta {
  padding-bottom: 32px;
}

#samples-heading,
.samples-heading-block h2 {
  font-size: var(--type-display);
}

.brand-name {
  font-size: var(--type-brand);
  overflow-wrap: anywhere;
}

.main-price {
  font-size: var(--type-price);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.sample-card-grid {
  grid-template-columns: minmax(0, 1fr) auto;
}

.sample-card-main,
.sample-card-side {
  min-width: 0;
}

.toast {
  bottom: calc(
    var(--dock-height) + var(--dock-lift) + var(--sab) + 16px
  );
  left: 50%;
  max-width: min(calc(100% - 32px - var(--sal) - var(--sar)), 420px);
}

.download-dialog {
  width: min(100%, var(--shell-max));
  max-width: var(--shell-max);
  left: 0;
  right: 0;
  margin: 0 auto;
  transform: none;
  padding-left: calc(24px + var(--sal));
  padding-right: calc(24px + var(--sar));
  padding-bottom: calc(24px + var(--sab));
  box-sizing: border-box;
}

.download-dialog[open] {
  animation: sheet-in 0.55s var(--ease-fluid);
}

.search-dialog,
.outlook-dialog {
  width: min(calc(100% - 24px - var(--sal) - var(--sar)), 456px);
  max-height: min(85dvh, 85vh);
  margin: auto;
}

.ai-plan-grid,
.asset-stats,
.coin-selector {
  min-width: 0;
}

.ai-plan-grid > div,
.asset-stats dd {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.period-selector {
  flex-wrap: wrap;
  gap: 2px;
  min-width: 0;
}

.period-selector button {
  flex: 1 1 auto;
  min-width: 44px;
}

.connection-line {
  flex-wrap: wrap;
  padding-right: var(--page-gutter);
}

/* Tiny phones: iPhone SE 1 / 320–359 Android */
@media (max-width: 359px) {
  :root {
    --page-gutter: 10px;
    --dock-lift: 8px;
    --fs-h1: 1.35rem;
    --fs-price: 2rem;
    --type-display: var(--fs-h1);
    --type-price: var(--fs-price);
  }

  .brand-sub {
    display: none;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .sample-card-side {
    min-width: 58px;
    padding: 12px 8px;
  }

  .sample-confidence {
    font-size: 20px;
  }

  .sample-card p {
    font-size: 12px;
  }

  .ai-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .table-heading,
  .market-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) 68px;
    gap: 4px;
  }

  .coin-selector {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
}

/* Compact Android / SE 2–3 (360–389) */
@media (min-width: 360px) and (max-width: 389px) {
  :root {
    --page-gutter: 14px;
  }
}

/* Large phones: iPhone Pro Max / Pixel XL / 华为/小米大屏 */
@media (min-width: 430px) {
  :root {
    --page-gutter: 20px;
    --shell-max: 480px;
  }

  .chart-bezel .chart-wrap {
    height: 180px;
  }
}

/* Foldables / small tablets portrait: keep phone UI, slightly wider shell */
@media (min-width: 540px) {
  :root {
    --shell-max: 520px;
    --page-gutter: 22px;
  }
}

/* iPad / Android tablet: still phone composition, centered */
@media (min-width: 768px) {
  :root {
    --shell-max: 560px;
    --page-gutter: 24px;
    --fs-h1: 1.85rem;
    --fs-price: 2.85rem;
    --type-display: var(--fs-h1);
    --type-price: var(--fs-price);
  }

  body {
    background-attachment: fixed;
  }

  .app-shell {
    border-inline: 1px solid var(--line);
  }

  .chart-bezel .chart-wrap {
    height: 200px;
  }
}

/* Landscape phones: shorter chrome, avoid dock covering content */
@media (orientation: landscape) and (max-height: 500px) {
  :root {
    --dock-lift: 8px;
    --dock-height: 0px;
  }

  .app-header {
    min-height: 52px;
    padding-block: 8px;
  }

  .brand-sub {
    display: none;
  }

  .chart-bezel .chart-wrap {
    height: 120px;
  }

  .samples-section {
    padding-top: 16px;
  }

  .bottom-nav {
    height: 52px;
  }

  .toast {
    bottom: calc(var(--dock-height) + var(--dock-lift) + var(--sab) + 10px);
  }
}

/* Prefer reduced data: cut backdrop blur cost on weak Android GPUs when requested */
@media (prefers-reduced-transparency: reduce) {
  .app-header,
  .detail-chrome {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(12, 12, 12, 0.96);
  }
}

/* High-DPI hairlines stay crisp on Apple Retina + Android AMOLED */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
  .app-header,
  .sample-card,
  .bezel-shell,
  .insights-section,
  .detail-chrome {
    border-width: 0.5px;
  }
}

@supports not (height: 100dvh) {
  body,
  .app-shell {
    min-height: 100vh;
  }
}

@supports not (padding: max(0px)) {
  .app-shell {
    padding-left: 0;
    padding-right: 0;
  }

  }

/* ========== Guided Select Feed (home empty-state coach) ========== */
.select-guide {
  margin: 10px var(--page-gutter, 16px) 0;
  padding: 0;
}

.select-guide-bezel {
  margin: 0;
  padding: 6px;
  border-radius: var(--radius-shell, 1.75rem);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.select-guide-core {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 36px 22px 28px;
  text-align: center;
  border-radius: var(--radius-core, calc(1.75rem - 0.375rem));
  border: 1px solid rgba(255, 255, 255, 0.05);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(232, 163, 23, 0.08), transparent 55%),
    #080808;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06);
}

.select-guide-art {
  position: relative;
  width: 112px;
  height: 112px;
  margin-bottom: 8px;
}

.guide-chart-mark {
  position: absolute;
  inset: 18px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(232, 163, 23, 0.18), rgba(232, 163, 23, 0.06)),
    #14110c;
  border: 1px solid var(--accent-line);
  color: var(--accent);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

.guide-chart-mark svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.6;
}

.guide-badge {
  position: absolute;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.guide-badge svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}

.guide-badge-up {
  top: 8px;
  right: 4px;
  background: rgba(45, 212, 191, 0.16);
  color: var(--green-bright);
  border-color: rgba(45, 212, 191, 0.35);
  animation: guide-float-up 3.2s var(--ease-fluid, cubic-bezier(0.32, 0.72, 0, 1)) infinite;
}

.guide-badge-down {
  bottom: 10px;
  left: 2px;
  background: rgba(251, 113, 133, 0.14);
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.35);
  animation: guide-float-down 3.2s var(--ease-fluid, cubic-bezier(0.32, 0.72, 0, 1)) infinite;
  animation-delay: 0.35s;
}

#select-guide-heading {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 1.35rem + 1.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.select-guide-copy {
  margin: 0;
  max-width: 28ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.select-guide-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 4px;
  padding: 0 4px;
  color: var(--accent);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.45s var(--ease-fluid, cubic-bezier(0.32, 0.72, 0, 1)), opacity 0.45s var(--ease-fluid, cubic-bezier(0.32, 0.72, 0, 1));
}

.select-guide-cta:hover {
  transform: translateY(2px);
}

.select-guide-cta:active {
  opacity: 0.85;
  transform: translateY(3px);
}

.samples-section {
  margin-top: 6px;
  padding-top: 18px;
}

.samples-list-heading {
  align-items: flex-end;
  margin-bottom: 4px;
}

.samples-list-heading h2 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.samples-list-heading .eyebrow {
  margin-bottom: 4px;
}

.sample-count {
  color: var(--accent);
  font: 600 12px/1 var(--numbers);
  letter-spacing: 0.04em;
}

.sample-list:focus {
  outline: none;
}

.sample-list:focus-visible {
  outline: 2px solid var(--focus, var(--accent));
  outline-offset: 4px;
  border-radius: 12px;
}

@keyframes guide-float-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes guide-float-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

@media (max-width: 359px) {
  .select-guide-core {
    padding: 28px 16px 22px;
  }

  .select-guide-art {
    width: 96px;
    height: 96px;
  }

  .guide-chart-mark {
    inset: 14px;
    border-radius: 18px;
  }

  .guide-chart-mark svg {
    width: 30px;
    height: 30px;
  }

  .guide-badge {
    width: 32px;
    height: 32px;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .select-guide-core {
    padding: 20px 18px 16px;
    gap: 8px;
  }

  .select-guide-art {
    width: 72px;
    height: 72px;
    margin-bottom: 0;
  }

  .guide-chart-mark {
    inset: 10px;
    border-radius: 14px;
  }

  .guide-chart-mark svg {
    width: 24px;
    height: 24px;
  }

  .guide-badge {
    width: 28px;
    height: 28px;
  }

  .guide-badge svg {
    width: 13px;
    height: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-badge-up,
  .guide-badge-down,
  .select-guide-cta {
    animation: none !important;
    transition: none !important;
  }
}

.sample-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.14em;
}
.sample-row {
  --tone: var(--accent);
  position: relative;
  width: 100%;
  min-height: 64px;
  display: grid;
  /* icon | identity | direction | confidence | chevron — fixed trailing cols keep 看涨/% aligned across rows */
  grid-template-columns: 32px minmax(0, 1fr) minmax(3.5em, max-content) 3.6em 18px;
  align-items: center;
  column-gap: 10px;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--tone) 14%, transparent), transparent 42%),
    rgba(12, 12, 12, 0.88);
  text-align: left;
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--tone);
  transition:
    border-color 0.35s var(--ease-fluid),
    transform 0.35s var(--ease-fluid),
    background 0.35s var(--ease-fluid);
}
.sample-row[data-tone="up"] {
  --tone: var(--green-bright);
}
.sample-row[data-tone="down"] {
  --tone: #fb7185;
}
.sample-row[data-tone="flat"] {
  --tone: var(--accent);
}
.sample-row:hover,
.sample-row:focus-visible {
  border-color: color-mix(in srgb, var(--tone) 45%, var(--line));
  transform: translateY(-1px);
}
.sample-row:active {
  transform: scale(0.985);
}
.sample-row img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}
.sample-row-main {
  display: grid;
  gap: 4px;
  min-width: 0;
  align-content: center;
}
.sample-row-main strong {
  font: 650 0.9375rem/1.1 var(--display);
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sample-row-main small {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sample-row .sample-confidence {
  font: 600 0.9375rem/1 var(--numbers);
  font-variant-numeric: tabular-nums;
  width: 100%;
  text-align: right;
  line-height: 1;
  align-self: center;
}
.sample-row .sample-confidence em {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: 1px;
}
.sample-row .signal-tag {
  font-size: 0.75rem;
  line-height: 1;
  white-space: nowrap;
  justify-self: stretch;
  justify-content: center;
  box-sizing: border-box;
  min-height: 1.75rem;
  padding-block: 0;
}
.sample-row-go {
  display: grid;
  place-items: center;
  color: var(--muted);
}
.sample-row-go svg {
  width: 16px;
  height: 16px;
}
.sample-card-feature[data-tone="up"] {
  box-shadow: inset 3px 0 0 var(--green-bright);
}
.sample-card-feature[data-tone="down"] {
  box-shadow: inset 3px 0 0 #fb7185;
}
.sample-card-feature[data-tone="flat"] {
  box-shadow: inset 3px 0 0 var(--accent);
}
.sample-card,
.sample-row.row-enter {
  animation: plan-row-in 0.5s var(--ease-fluid) both;
  animation-delay: var(--row-delay, 0s);
}
@keyframes plan-row-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.page-promise {
  margin: 22px 20px 0;
}
.promise-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.page-promise h1 {
  margin: 0;
  max-width: 12em;
  font-size: 28px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.03em;
}
.promise-basis {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.promise-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.promise-actions .primary-button,
.promise-actions .ghost-button {
  width: 100%;
  min-height: 48px;
}
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: transparent;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
}
.plan-board {
  margin: 12px 16px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(16, 24, 38, 0.88);
}
.plan-board .ai-report {
  margin-top: 0;
}
.plan-board-actions {
  margin-top: 12px;
}
.plan-board-actions .outline-action {
  width: 100%;
  min-height: 44px;
  justify-content: center;
}
.samples-section { margin-top: 18px; }
.insights-section .ai-primary-button {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}
.analysis-detail .coin-selector {
  margin: 4px 16px 0;
}

.sample-symbol-filter {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: center;
  gap: 8px;
  max-height: 7.5rem;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 4px;
  scrollbar-width: thin;
}
.sample-symbol-filter::-webkit-scrollbar {
  width: 4px;
  height: 0;
}
.sample-symbol-filter::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}
.sample-symbol-filter button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1;
  gap: 6px;
}
.sample-symbol-filter img {
  width: 14px;
  height: 14px;
  display: block;
}
.sample-card-feature {
  display: grid;
  gap: 12px;
  padding: 16px;
}
.sample-card-feature .sample-kicker {
  margin: 0;
}
.sample-card-feature .feature-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sample-card-feature .sample-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.sample-card-feature .sample-names {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.sample-card-feature .sample-names strong {
  display: block;
  font-size: 18px;
  line-height: 1.15;
}
.sample-card-feature .sample-names small {
  display: block;
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
}
.sample-card-feature .sample-confidence {
  flex: 0 0 auto;
  font-size: 28px;
  line-height: 1;
}
.sample-card-feature p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}
.sample-card-feature .sample-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.sample-card-feature .sample-link {
  margin-left: auto;
}

/* ========== Typography system (authoritative) ========== */
h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: var(--track-tight);
  line-height: var(--lh-tight);
  font-weight: 700;
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

#samples-heading,
.samples-heading-block h2,
#select-guide-heading {
  font-family: var(--display);
  font-size: var(--fs-h1);
  font-weight: 700;
  letter-spacing: var(--track-tight);
  line-height: var(--lh-tight);
}

p,
.section-lede,
.select-guide-copy,
.samples-lede,
.hero-description,
.download-context,
.chat-empty,
.capability-note,
.sample-card p,
.sample-card-feature p,
.ai-report-summary {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: 0.01em;
}

.brand-name {
  font-family: var(--display);
  font-size: var(--type-brand);
  font-weight: 700;
  letter-spacing: var(--track-tight);
  line-height: var(--lh-tight);
}

.brand-sub,
.hero-kicker,
.signal-bar,
.radar-pulse,
.sample-type,
.sample-count,
.sample-browse-label,
.chart-plan-legend span,
.indicator-rail span,
.experience-nav a span,
.unit-label {
  font-family: var(--numbers);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  line-height: var(--lh-snug);
}

.main-price,
.hero-symbol {
  font-family: var(--numbers);
  font-size: var(--fs-price);
  font-weight: 600;
  letter-spacing: var(--track-tight);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}

.sample-card-feature .sample-confidence,
.capability-strip b {
  font-family: var(--numbers);
  font-size: var(--fs-metric);
  font-weight: 650;
  letter-spacing: var(--track-tight);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.tp-row > span,
.ai-plan-grid strong,
.sample-confidence,
.sample-date,
.radar-main strong,
.radar-change,
.radar-rank,
.insight-meta,
.sample-pager span,
.row-price {
  font-family: var(--numbers);
  font-variant-numeric: tabular-nums;
}

.experience-nav a,
.insight-tabs button,
.bottom-nav button,
.quick-prompts button,
.sample-symbol-filter button,
.sample-pager button,
.service-status > span,
.sample-updated,
.detail-title span,
.detail-cta-note,
.advanced-tools > summary small,
.small-link,
.sample-link,
.sample-horizon-pill,
.sample-identity small,
.sample-card-feature .sample-names small,
.ai-report-head,
.ai-plan-grid em,
.ai-report-columns b,
.radar-label,
.tp-row small,
.ai-disclaimer,
.capability-strip > span,
.connection-line,
.chart-plan-legend span {
  font-size: max(12px, 0.75rem);
  line-height: var(--lh-snug);
}

.ai-report-columns ul,
.chat-message,
.download-context,
.section-lede,
.samples-lede,
.select-guide-copy {
  font-size: var(--fs-small);
  line-height: var(--lh-body);
}

.primary-button,
.detail-cta .primary-button,
.select-guide-cta,
.chat-form input,
input,
button,
.coin-chip,
.list-tabs button {
  font-family: var(--font);
}

.chat-form input {
  font-size: max(16px, var(--fs-body));
}

.sample-card strong,
.sample-card-feature .sample-names strong,
.detail-title strong,
.advanced-tools > summary span {
  font-family: var(--display);
  font-size: var(--fs-h3);
  font-weight: 650;
  letter-spacing: var(--track-tight);
  line-height: var(--lh-snug);
}

.tp-row > span,
.ai-plan-grid strong,
.sample-confidence {
  font-size: var(--fs-ui);
  font-weight: 600;
  line-height: var(--lh-snug);
}

.insight-tabs button,
.bottom-nav button,
.sample-pager button,
.experience-nav a {
  font-size: var(--fs-small);
  font-weight: 500;
}

.promise-kicker,
.sample-kicker {
  font-family: var(--numbers);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  line-height: var(--lh-snug);
}

.page-promise h1 {
  font-family: var(--display);
  font-size: var(--fs-h1);
  font-weight: 700;
  letter-spacing: var(--track-tight);
  line-height: var(--lh-snug);
}

.promise-basis {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.ghost-button,
.outline-action,
.plan-board-actions .outline-action {
  font-family: var(--display);
  font-size: var(--fs-ui);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.sample-row-main strong {
  font-family: var(--display);
  font-size: var(--fs-ui);
  font-weight: 650;
  letter-spacing: var(--track-tight);
}

.sample-row .sample-confidence {
  font-family: var(--numbers);
  font-size: var(--fs-ui);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 380px) {
  :root {
    --fs-body: 0.875rem;
    --fs-h2: 1.125rem;
    --fs-h1: 1.45rem;
    --fs-price: 1.9rem;
    --fs-metric: 1.25rem;
  }

  .cta-nest {
    padding: 6px 48px;
  }

  .sample-row {
    grid-template-columns: 28px minmax(0, 1fr) minmax(3em, max-content) 3.2em 16px;
    column-gap: 8px;
    padding: 10px;
  }

  .sample-symbol-filter {
    gap: 8px;
  }

  .promise-actions .primary-button,
  .promise-actions .ghost-button,
  }

/* ========== P1: scroll reveal + plan line draw ========== */
.page-promise[data-reveal].reveal-pending,
.samples-section[data-reveal].reveal-pending,
.asset-detail[data-reveal].reveal-pending,
[data-reveal].reveal-pending {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
}

.reveal-child {
  opacity: 0;
  transform: translateY(12px);
  animation: reveal-child-in 0.55s var(--ease-fluid) both;
  animation-delay: var(--reveal-delay, 0s);
}

@keyframes reveal-child-in {
  to {
    opacity: 1;
    transform: none;
  }
}

.chart-wrap.plan-drawing::after {
  content: "";
  position: absolute;
  inset: 12% 8% 18% 8%;
  pointer-events: none;
  z-index: 2;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(245, 196, 81, 0.08) 42%,
    rgba(104, 231, 165, 0.1) 68%,
    transparent 100%
  );
  background-size: 220% 100%;
  animation: plan-scan 0.7s var(--ease-fluid) both;
}

@keyframes plan-scan {
  from {
    opacity: 0;
    background-position: 100% 0;
  }
  40% {
    opacity: 1;
  }
  to {
    opacity: 0;
    background-position: 0% 0;
  }
}

.chart-plan-legend.is-drawing span,
.chart-plan-legend.is-drawn span {
  animation: plan-chip-in 0.45s var(--ease-fluid) both;
  animation-delay: calc(var(--plan-i, 0) * 0.1s);
}

.chart-plan-legend span i {
  transform-origin: left center;
  animation: plan-chip-line 0.55s var(--ease-fluid) both;
  animation-delay: calc(var(--plan-i, 0) * 0.1s);
}

@keyframes plan-chip-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes plan-chip-line {
  from {
    transform: scaleX(0);
    opacity: 0.2;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

.sample-list {
  gap: 10px;
}

.sample-browse-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.sample-scope-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.sample-scope-toggle {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.sample-scope-toggle[aria-pressed="true"] {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.sample-symbol-filter button.is-empty-plan {
  opacity: 0.72;
}

.sample-empty {
  margin: 8px 0 0;
  padding: 18px 14px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: var(--muted);
  font-size: var(--fs-small, 0.8125rem);
  line-height: var(--lh-body, 1.65);
  text-align: center;
}

.sample-empty p {
  margin: 0;
}

.sample-empty-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.sample-empty-actions .primary-button,
.sample-empty-actions .ghost-button {
  width: 100%;
  min-height: 44px;
  justify-content: center;
}

.sample-empty-hint {
  margin-top: 12px !important;
  font-size: 0.75rem;
  opacity: 0.85;
}

.ai-report-loading {
  padding: 18px 4px 8px;
  color: var(--muted);
  font-size: var(--fs-small, 0.8125rem);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-child,
  .sample-card,
  .sample-row.row-enter,
  .chart-wrap.plan-drawing::after,
  .chart-plan-legend.is-drawing span,
  .chart-plan-legend.is-drawn span,
  .chart-plan-legend span i {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* ========== P2: count life + one-shot unlock breath ========== */
[data-count] {
  font-variant-numeric: tabular-nums;
  display: inline-block;
  min-width: 1.2em;
}

.primary-button.unlock-breath {
  animation: unlock-breath 2.2s var(--ease-fluid, cubic-bezier(0.32, 0.72, 0, 1)) both;
}

#home-download.unlock-breath {
  position: relative;
}

#home-download.unlock-breath::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    0 0 0 0 rgba(232, 163, 23, 0.45),
    0 0 28px rgba(232, 163, 23, 0.35);
  animation: unlock-ring 2.2s var(--ease-fluid, cubic-bezier(0.32, 0.72, 0, 1)) both;
}

@keyframes unlock-breath {
  0% {
    filter: brightness(1);
    transform: translateZ(0) scale(1);
  }
  28% {
    filter: brightness(1.12);
    transform: translateZ(0) scale(1.02);
  }
  62% {
    filter: brightness(1.06);
    transform: translateZ(0) scale(1.01);
  }
  100% {
    filter: brightness(1);
    transform: translateZ(0) scale(1);
  }
}

@keyframes unlock-ring {
  0% {
    opacity: 0;
    box-shadow:
      0 0 0 0 rgba(232, 163, 23, 0),
      0 0 0 rgba(232, 163, 23, 0);
  }
  30% {
    opacity: 1;
    box-shadow:
      0 0 0 10px rgba(232, 163, 23, 0.22),
      0 0 36px rgba(232, 163, 23, 0.38);
  }
  100% {
    opacity: 0;
    box-shadow:
      0 0 0 18px rgba(232, 163, 23, 0),
      0 0 0 rgba(232, 163, 23, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .primary-button.unlock-breath,
  #home-download.unlock-breath::after {
    animation: none !important;
    filter: none !important;
    transform: none !important;
  }
}

/* ========== Plan compare: same coin short / mid / long ========== */
.plan-compare {
  margin: 8px 20px 0;
  padding: 22px 0 8px;
}

.plan-compare-lede {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: var(--fs-small, 0.8125rem);
  line-height: var(--lh-body, 1.65);
}

.plan-compare h2 {
  margin: 0;
  font-family: var(--display);
  font-size: var(--fs-h2, 1.25rem);
  letter-spacing: var(--track-tight, -0.03em);
}

.plan-compare-symbol {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  min-height: 36px;
}

.plan-compare-coins {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.plan-compare-coins::-webkit-scrollbar {
  height: 4px;
}

.plan-compare-coins::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.plan-compare-coin {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  scroll-snap-align: start;
}

.plan-compare-coin img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.plan-compare-coin.active {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}

.plan-compare-symbol img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.plan-compare-symbol strong {
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 650;
}

.plan-compare-symbol span {
  color: var(--muted);
  font-size: 0.75rem;
}

.plan-compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.plan-compare-card {
  --tone: var(--accent);
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 148px;
  padding: 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--tone) 12%, transparent), transparent 48%),
    rgba(12, 12, 12, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  text-align: left;
  color: var(--text);
  transition:
    border-color 0.35s var(--ease-fluid, cubic-bezier(0.32, 0.72, 0, 1)),
    transform 0.35s var(--ease-fluid, cubic-bezier(0.32, 0.72, 0, 1));
}

.plan-compare-card[data-tone="up"] {
  --tone: var(--green-bright);
}

.plan-compare-card[data-tone="down"] {
  --tone: #fb7185;
}

.plan-compare-card:hover,
.plan-compare-card:focus-visible {
  border-color: color-mix(in srgb, var(--tone) 42%, var(--line));
  transform: translateY(-1px);
}

.plan-compare-card.is-empty {
  opacity: 0.55;
  background: rgba(12, 12, 12, 0.55);
  box-shadow: none;
}

.plan-compare-card.is-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.plan-compare-horizon {
  font-family: var(--numbers);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.plan-compare-conf {
  font-family: var(--numbers);
  font-size: 1.35rem;
  font-weight: 650;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.plan-compare-conf em {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: 1px;
}

.plan-compare-card dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.plan-compare-card dl div {
  display: grid;
  gap: 2px;
}

.plan-compare-card dt {
  color: var(--muted);
  font-size: 0.6875rem;
}

.plan-compare-card dd {
  margin: 0;
  font-family: var(--numbers);
  font-size: 0.75rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.plan-compare-card .sample-link {
  margin-top: 2px;
  font-size: 0.75rem;
}

.plan-compare-card .signal-tag {
  width: fit-content;
  font-size: 0.75rem;
}

.plan-horizon-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}

.horizon-chip {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 600;
}

.horizon-chip em {
  font-style: normal;
  font-family: var(--numbers);
  font-size: 0.75rem;
  color: var(--accent);
}

.horizon-chip.active {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--text);
}

.horizon-chip.is-empty {
  opacity: 0.45;
}

@media (max-width: 359px) {
  .plan-compare-grid {
    grid-template-columns: 1fr;
  }

  .plan-compare-card {
    min-height: 0;
  }
}
