*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  color-scheme: light;
  /* Calm Institutional Editorial Surfaces */
  --bg-outer: #E8EBF0;
  --bg-canvas: #F5F6F8;
  --bg-card: #FFFFFF;
  --bg-stage: #F7F8FA;
  --bg-fill: rgba(15, 23, 42, 0.06);
  --bg-fill-strong: rgba(15, 23, 42, 0.11);

  /* Neutral Graphite Ink Hierarchy */
  --ink: #111418;
  --ink-body: #343A40;
  --muted: #5E6570;
  --tertiary: #848C96;
  --separator: rgba(15, 23, 42, 0.1);
  --separator-soft: rgba(15, 23, 42, 0.06);

  /* CJK Mobile Readability Type Scale (Hard Floor: 0.78rem / 12.5px) */
  --text-xs: 0.78rem;
  --text-sm: 0.85rem;
  --text-body: 0.94rem;
  --text-subhead: 1.04rem;
  --text-title: 1.38rem;

  /* Single Institutional Brand Accent */
  --accent: #0F4C42;
  --accent-hover: #0B3A32;
  --accent-soft: rgba(15, 76, 66, 0.08);

  /* Restrained Financial Semantics (Subdued Tints, High Legibility) */
  --pos: #146C49;
  --pos-bg: #EEF7F2;
  --warn: #8F5615;
  --warn-bg: #FAF3E8;
  --neg: #B6342A;
  --neg-bg: #FCF0EE;

  /* Radii & Crisp Hairline Elevation */
  --radius-card: 14px;
  --radius-inset: 11px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.03), 0 0 0 1px rgba(15, 23, 42, 0.055);
  --shadow-thumb: 0 1px 2px rgba(15, 23, 42, 0.1), 0 0 0 0.5px rgba(15, 23, 42, 0.05);

  /* Crisp iOS SF Pro / PingFang + Windows Segoe UI Variable (Zero Georgia) */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Segoe UI Variable", "Segoe UI", "Microsoft YaHei UI", sans-serif;
  --font-num: -apple-system, BlinkMacSystemFont, "SF Pro Display", "DIN Alternate", "PingFang SC", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  --font-mono: "SF Mono", ui-monospace, "Cascadia Mono", "Consolas", monospace;
}

html {
  background: var(--bg-outer);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 112px;
  scroll-padding-bottom: 5.5rem;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-wrap: break-word;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, figure {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Subtle slim scrollbar on desktop preview */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-thumb {
  background: rgba(60, 60, 67, 0.2);
  border-radius: 99px;
}
::-webkit-scrollbar-track {
  background: transparent;
}

/* Mobile-first App Shell */
.shell {
  width: min(100%, 440px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg-canvas);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: clip;
}

@media (min-width: 480px) {
  .shell {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.09), 0 0 0 0.5px rgba(0, 0, 0, 0.06);
  }
}

/* Translucent Navigation Bar */
.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 246, 248, 0.86);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  padding: env(safe-area-inset-top) 16px 0;
  border-bottom: 0.5px solid var(--separator-soft);
}

.mast-row {
  height: 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.mast-row.is-study {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.mast-row.is-study .mast-back {
  flex-shrink: 0;
  padding-right: 4px;
}

.mast-row.is-study .mast-title {
  flex: 1;
  min-width: 0;
  max-width: none;
  text-align: left;
  padding-left: 2px;
}

.mast-row.is-study .mast-actions {
  flex-shrink: 0;
  gap: 5px;
}

@media (max-width: 390px) {
  .mast-row.is-study .follow-btn-lbl {
    display: none;
  }
  .mast-row.is-study .follow-btn {
    width: 30px;
    padding: 0;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.brand-mark {
  display: inline-block;
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}

.mast-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mast-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0.5px solid var(--separator);
  background: rgba(255, 255, 255, 0.85);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.12s ease, background 0.15s ease;
}

.mast-icon-btn:active {
  transform: scale(0.94);
  background: var(--accent-soft);
}

.share-poster-frame {
  background: #ECEBE6;
  border-radius: 14px;
  padding: 8px;
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  border: 0.5px solid var(--separator-soft);
}

.share-poster-img {
  width: 100%;
  max-width: 224px;
  height: auto;
  border-radius: 11px;
  box-shadow: 0 10px 26px rgba(9, 52, 45, 0.16), 0 1px 3px rgba(0, 0, 0, 0.08);
  display: block;
}

.share-url-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-stage);
  border-radius: 12px;
  border: 0.5px solid var(--separator-soft);
  margin-bottom: 12px;
}

.share-url-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: cover;
}

.share-url-meta {
  min-width: 0;
  flex: 1;
}

.share-url-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.share-url-sub {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.share-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.share-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pwa-tip-banner {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 76, 66, 0.06);
  color: var(--accent);
  font-size: 0.8rem;
  line-height: 1.5;
}

.mast-back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 44px;
  padding: 0 8px 0 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.mast-title {
  justify-self: center;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 195px;
  letter-spacing: -0.01em;
}

.mast-right {
  justify-self: end;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tertiary);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Sticky Native iOS UISegmentedControl inside Study */
.segment-bar-wrap {
  position: sticky;
  top: 48px;
  z-index: 18;
  background: rgba(242, 242, 247, 0.86);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 6px 16px 10px;
  border-bottom: 0.5px solid var(--separator-soft);
}

.segment-bar-wrap[hidden] {
  display: none;
}

.ios-segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 2.5px;
  border-radius: 10px;
  background: rgba(118, 118, 128, 0.12);
  gap: 2px;
}

.admin-header .ios-segmented {
  grid-template-columns: repeat(4, 1fr);
}

.seg-btn {
  border: 0;
  background: transparent;
  border-radius: 7.5px;
  height: 32px;
  padding: 0 4px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.seg-btn[aria-current="page"] {
  background: var(--bg-card);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-thumb);
}

/* Main Screen Container */
.screen {
  flex: 1;
  padding: 14px 16px 32px;
  outline: none;
}

.loading-box {
  padding: 64px 16px;
  text-align: center;
  color: var(--tertiary);
  font-size: 0.875rem;
}

/* iOS Large Title Header */
.large-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.large-head h1 {
  font-size: 1.875rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--ink);
}

.large-head .head-meta {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--tertiary);
  white-space: nowrap;
}

/* Single-row Horizontally Scrollable Filter Capsules */
.filter-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.pill-btn {
  flex-shrink: 0;
  height: 31px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  border: 0;
  background: rgba(15, 23, 42, 0.05);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.pill-btn[aria-pressed="true"] {
  background: var(--ink);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: none;
}

/* Discover Feed: Crisp, Scannable 4-Element iOS Cards */
.study-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.study-card {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--bg-card);
  border: 0;
  border-radius: var(--radius-card);
  padding: 15px 16px 14px;
  box-shadow: var(--shadow-card);
  transition: transform 0.12s ease, background 0.12s ease;
}

.study-card:active {
  transform: scale(0.988);
  background: #FAFAFC;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.issuer-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.issuer-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticker-code {
  font-family: var(--font-num);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--tertiary);
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.card-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.card-status.is-warn {
  color: var(--warn);
}

.card-status.is-pos {
  color: var(--pos);
}

.card-status.is-neg {
  color: var(--neg);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tertiary);
  flex-shrink: 0;
}

.status-dot.pos { background: var(--pos); }
.status-dot.warn { background: var(--warn); }
.status-dot.neg { background: var(--neg); }
.status-dot.accent { background: var(--accent); }

.chev {
  color: #C7C7CC;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
}

.card-headline {
  font-size: 1.0625rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.014em;
  margin: 7px 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-kpi-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 0.5px solid var(--separator-soft);
}

.card-kpi-left {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-kpi-label {
  font-size: 0.84375rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-kpi-period {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-kpi-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
  max-width: 56%;
  min-width: 0;
}

.card-kpi-right .kpi-unit {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

.kpi-num {
  font-family: var(--font-num);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--ink);
}

.kpi-num.pos { color: var(--pos); }
.kpi-num.neg { color: var(--neg); }
.kpi-num.warn { color: var(--warn); }

.kpi-unit {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

/* Status Pill (Quiet Semantic Tint, Auto-Height Safe for EN Wrapping) */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  height: auto;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.32;
  background: var(--bg-fill);
  color: var(--muted);
  white-space: nowrap;
}

.pill.accent { background: var(--accent-soft); color: var(--accent); }
.pill.pos { background: var(--pos-bg); color: var(--pos); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.neg { background: var(--neg-bg); color: var(--neg); }

/* Historical Snapshot Banner (ONLY shown when viewing older version) */
.history-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px;
  border-radius: var(--radius-inset);
  background: var(--warn-bg);
  color: var(--warn);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.history-banner button {
  border: 0;
  background: rgba(154, 91, 19, 0.14);
  color: var(--warn);
  border-radius: 7px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Study Overview Clean Header */
.study-top {
  margin-bottom: 14px;
}

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

.study-kicker {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.version-switch {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 8px;
  background: rgba(118, 118, 128, 0.12);
  flex-shrink: 0;
}

.v-pill {
  border: 0;
  background: transparent;
  height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.v-pill.active {
  background: var(--bg-card);
  color: var(--ink);
  box-shadow: var(--shadow-thumb);
}

.study-top h1 {
  font-size: 1.325rem;
  line-height: 1.34;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* Pure White Elevated Card */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}

.card-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tertiary);
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}

/* Hero Thesis Card (5-Second Core Answer) */
.thesis-card {
  padding: 16px 16px 14px;
}

.thesis-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 12px;
}

.thesis-head .pill {
  white-space: normal;
  height: auto;
  min-height: 26px;
  padding: 4px 10px;
  line-height: 1.35;
  text-align: left;
  min-width: 0;
  max-width: 100%;
}

.thesis-hero-kpi {
  text-align: right;
  margin-left: auto;
  max-width: 100%;
  min-width: 0;
}

.thesis-hero-kpi .kpi-num {
  font-size: 1.625rem;
  display: block;
}

.thesis-hero-kpi .kpi-unit {
  font-size: 0.8rem;
  color: var(--muted);
  display: inline-block;
  line-height: 1.35;
}

.thesis-claim {
  font-size: 0.98rem;
  line-height: 1.66;
  color: var(--ink-body);
  font-weight: 400;
}

.thesis-lead {
  display: block;
  font-size: 1.02rem;
  line-height: 1.54;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.thesis-sub {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.66;
  color: var(--ink-body);
}

.num-em {
  font-family: var(--font-num);
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums lining-nums;
}

.thesis-boundary {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 0.5px solid var(--separator-soft);
  font-size: 0.875rem;
  line-height: 1.58;
  color: var(--muted);
}

.thesis-boundary strong {
  color: var(--ink-body);
  font-weight: 600;
}

.thesis-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 0.5px solid var(--separator-soft);
}

/* 2x2 Hairline Official KPI Grid (Apple Stocks Style) */
.kpi-grid-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}

.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.kpi-cell {
  padding: 13px 14px;
  border-bottom: 0.5px solid var(--separator-soft);
  border-right: 0.5px solid var(--separator-soft);
  text-align: left;
  background: transparent;
  border-top: 0;
  border-left: 0;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.kpi-cell:nth-child(2n) {
  border-right: 0;
}

.kpi-cell:nth-last-child(-n+2) {
  border-bottom: 0;
}

.kpi-cell:active {
  background: var(--bg-stage);
}

.kpi-cell .f-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.34;
}

.kpi-cell .f-val {
  font-family: var(--font-num);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--ink);
  margin: 4px 0 3px;
}

.kpi-cell .f-val.neg { color: var(--neg); }
.kpi-cell .f-val.pos { color: var(--pos); }

.kpi-cell .f-unit {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: 2px;
}

.kpi-cell .f-period {
  font-size: 0.8rem;
  color: var(--tertiary);
}

.card-footer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-top: 0.5px solid var(--separator-soft);
  background: transparent;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: left;
}

.card-footer-link:active {
  background: var(--bg-stage);
}

/* iOS Inset Grouped List & Collapsible Disclosures */
.group-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0 14px;
  margin: 18px 0 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.inset-group {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
}

.inset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 11px 16px;
  border-bottom: 0.5px solid var(--separator-soft);
  background: transparent;
  width: 100%;
  text-align: left;
  border-top: 0;
  border-left: 0;
  border-right: 0;
}

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

button.inset-row:active {
  background: var(--bg-stage);
}

.inset-row-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.inset-row-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}

.inset-row-sub {
  font-size: 0.8rem;
  color: var(--tertiary);
}

.inset-row-val {
  font-family: var(--font-num);
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}

.inset-row-val.muted {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* Native <details> styled as iOS Inset Grouped Disclosure Row */
.ios-disclosure {
  border-bottom: 0.5px solid var(--separator-soft);
}

.ios-disclosure:last-child {
  border-bottom: 0;
}

.ios-disclosure > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 50px;
  padding: 12px 16px;
  cursor: pointer;
  user-select: none;
}

.ios-disclosure > summary::-webkit-details-marker {
  display: none;
}

.ios-disclosure > summary:active {
  background: var(--bg-stage);
}

.disc-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
}

.disc-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.disc-chev {
  display: inline-block;
  color: #C7C7CC;
  transition: transform 0.2s ease;
  font-size: 0.95rem;
}

.ios-disclosure[open] .disc-chev {
  transform: rotate(90deg);
}

.disc-body {
  padding: 2px 16px 15px;
  font-size: 0.875rem;
  color: var(--ink-body);
}

/* Clean Bullet List */
.clean-list {
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.clean-list li {
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--ink-body);
}

.clean-list li::marker {
  color: var(--tertiary);
}

/* Buttons (iOS Touch Targets & No Accidental Wrap) */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 0;
  background: var(--bg-fill);
  color: var(--ink);
  font-size: 0.84375rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.14s ease, opacity 0.14s ease;
}

.btn:active {
  background: var(--bg-fill-strong);
}

.btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.btn.primary {
  background: var(--accent);
  color: #FFFFFF;
}

.btn.primary:active {
  background: var(--accent-hover);
}

.btn.cta-full {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.btn.sm {
  height: 32px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 0.78rem;
}

.text-action {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 0;
  background: transparent;
  padding: 4px 0;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.text-action.muted {
  color: var(--muted);
  font-weight: 500;
}

/* Light Financial Infographic Card (Zero Dark Green Blocks) */
.infographic-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}

.info-head {
  padding: 15px 16px 12px;
}

.info-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--tertiary);
}

.info-head h2 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin-top: 4px;
  letter-spacing: -0.014em;
}

.info-stage {
  margin: 0 14px 12px;
  padding: 12px;
  border-radius: var(--radius-inset);
  background: var(--bg-stage);
}

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

.diagram-node {
  cursor: pointer;
}

.diagram-node:hover rect {
  filter: brightness(0.98);
}

.info-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px 12px;
  border-top: 0.5px solid var(--separator-soft);
  font-size: 0.8rem;
  color: var(--tertiary);
}

/* Clean iOS Widget Tiles inside Diagrams */
.widget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.widget-tile {
  text-align: left;
  border: 0;
  border-radius: 11px;
  padding: 10px 11px;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.widget-tile:active {
  background: #F4F4F8;
}

.widget-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tertiary);
}

.widget-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.widget-val {
  font-family: var(--font-num);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}

.info-callout {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--bg-card);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink-body);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.info-callout.is-warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.info-callout.is-neg {
  background: var(--neg-bg);
  color: var(--neg);
}

/* Pill Progress Bar (Apple Health/Stocks Style) */
.pill-bar-track {
  height: 10px;
  border-radius: 99px;
  background: #E5E5EA;
  overflow: hidden;
  display: flex;
  position: relative;
}

/* Connected iOS Reasoning Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 15px 16px;
  box-shadow: var(--shadow-card);
  scroll-margin-top: 112px;
  transition: box-shadow 0.28s ease, background-color 0.28s ease;
}

.step-card.is-highlighted,
.bounty-card.is-highlighted,
.clue-card.is-highlighted {
  box-shadow: inset 3px 0 0 var(--accent), 0 0 0 1px rgba(15, 76, 66, 0.28), 0 6px 18px rgba(15, 76, 66, 0.08);
  background-color: #FAFCFB;
}

.step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-bottom: 7px;
}

.step-index {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.step-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-num);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.step-card h3 {
  font-size: 1.02rem;
  line-height: 1.42;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}

.step-card p {
  font-size: 0.9375rem;
  line-height: 1.66;
  color: var(--ink-body);
}

.soft-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-stage);
  font-size: 0.84375rem;
  line-height: 1.56;
  color: var(--muted);
}

.soft-note.is-warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.soft-note.is-pos {
  background: var(--pos-bg);
  color: var(--pos);
}

.step-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 0.5px solid var(--separator-soft);
  flex-wrap: wrap;
}

/* Forms & Inline Composers */
.composer {
  margin-top: 12px;
  padding: 13px;
  border-radius: var(--radius-inset);
  background: var(--bg-stage);
}

.composer h4 {
  font-size: 0.84375rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.field {
  margin-bottom: 10px;
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 4px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 0.5px solid var(--separator);
  border-radius: 10px;
  padding: 9px 11px;
  background: var(--bg-card);
  color: var(--ink);
  font-size: 0.875rem;
}

.field textarea {
  min-height: 76px;
  resize: vertical;
}

/* Native iOS Toggle Switch */
.ios-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--ink-body);
}

.ios-switch {
  position: relative;
  width: 46px;
  height: 28px;
  flex-shrink: 0;
}

.ios-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ios-slider {
  position: absolute;
  inset: 0;
  background: #D1D1D6;
  border-radius: 99px;
  transition: background 0.2s ease;
}

.ios-slider::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s cubic-bezier(0.32, 0.72, 0, 1);
}

.ios-switch input:checked + .ios-slider {
  background: var(--accent);
}

.ios-switch input:checked + .ios-slider::before {
  transform: translateX(18px);
}

/* iOS Search Bar */
.search-wrap {
  position: relative;
  margin-bottom: 14px;
}

.search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tertiary);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 36px;
  border: 0;
  border-radius: 10px;
  padding: 0 12px 0 34px;
  background: rgba(118, 118, 128, 0.12);
  color: var(--ink);
  font-size: 0.9rem;
}

.search-input::placeholder {
  color: var(--tertiary);
}

/* Frosted Translucent iOS Tab Bar */
.dock-wrap {
  position: sticky;
  bottom: 0;
  z-index: 20;
  background: rgba(249, 249, 251, 0.84);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 0.5px solid var(--separator);
  padding-bottom: env(safe-area-inset-bottom);
}

.dock-wrap[hidden] {
  display: none;
}

.dock {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 52px;
  padding: 2px 8px;
}

.dock-btn {
  flex: 1;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 0;
  background: transparent;
  color: var(--tertiary);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.dock-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dock-btn[aria-current="page"] {
  color: var(--accent);
}

/* iOS Bottom Sheet with Spring Motion */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.sheet-backdrop.is-open {
  opacity: 1;
}

.bottom-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 100%);
  width: min(100%, 440px);
  max-height: 85vh;
  max-height: 85dvh;
  z-index: 50;
  background: var(--bg-card);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.14);
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
  overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}

.bottom-sheet.is-open {
  transform: translate(-50%, 0);
}

.bottom-sheet[hidden],
.sheet-backdrop[hidden] {
  display: none;
}

.sheet-handle {
  width: 36px;
  height: 5px;
  border-radius: 99px;
  background: #D1D1D6;
  margin: 9px auto 4px;
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px 12px;
  border-bottom: 0.5px solid var(--separator-soft);
}

.sheet-kicker {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.sheet-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: #EFEFF4;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sheet-close-btn:active {
  background: #E2E2E8;
}

.sheet-body {
  padding: 14px 16px 22px;
  overflow-y: auto;
  font-size: 0.875rem;
}

.sheet-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.4;
}

.quote-box {
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  background: var(--bg-stage);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink-body);
}

.kv-compact {
  display: flex;
  flex-direction: column;
}

.kv-compact-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 0.5px solid var(--separator-soft);
  font-size: 0.8125rem;
}

.kv-compact-row:last-child {
  border-bottom: 0;
}

.kv-compact-row span:first-child {
  color: var(--muted);
  flex-shrink: 0;
}

.kv-compact-row strong {
  color: var(--ink);
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}

.empty-state {
  text-align: center;
  padding: 28px 16px;
  color: var(--tertiary);
  font-size: 0.84375rem;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

/* Floating Pill Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  z-index: 60;
  max-width: min(90vw, 390px);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: rgba(28, 28, 30, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #FFFFFF;
  font-size: 0.8125rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.toast[hidden] {
  display: none;
}

.mono-code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-body);
  word-break: break-all;
}

/* ==================== Interactive Motion Diagram & iOS Stress Sliders ==================== */

.motion-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 16px 12px;
}

.motion-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 0;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.12s ease;
}

.motion-play-btn:active {
  transform: scale(0.96);
  background: var(--accent-hover);
}

.motion-play-btn.is-playing {
  background: var(--ink);
}

.motion-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.motion-dot-btn {
  border: 0;
  height: 26px;
  min-width: 26px;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  background: var(--bg-fill);
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.motion-dot-btn.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(15, 76, 66, 0.28);
}

.motion-caption {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--ink-body);
  min-height: 44px;
  transition: opacity 0.22s ease;
}

.motion-caption strong {
  color: var(--ink);
  font-weight: 600;
}

/* Choreographed SVG Stage Transitions */
.xom-svg .stage-el {
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1), transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  transform-box: fill-box;
  transform-origin: center;
}

.xom-svg[data-stage="1"] .stage-el:not([data-s~="1"]),
.xom-svg[data-stage="2"] .stage-el:not([data-s~="2"]),
.xom-svg[data-stage="3"] .stage-el:not([data-s~="3"]),
.xom-svg[data-stage="4"] .stage-el:not([data-s~="4"]) {
  opacity: 0.28;
}

.xom-svg[data-stage="1"] .stage-focus-1,
.xom-svg[data-stage="2"] .stage-focus-2,
.xom-svg[data-stage="3"] .stage-focus-3,
.xom-svg[data-stage="4"] .stage-focus-4 {
  filter: drop-shadow(0 4px 10px rgba(15, 76, 66, 0.14));
}

.info-svg .flow-stream {
  stroke-dasharray: 5 5;
  animation: folioFlowDash 1.4s linear infinite;
}

.info-svg .flow-stream-slow {
  stroke-dasharray: 4 5;
  animation: folioFlowDash 2.2s linear infinite;
}

.info-svg .flow-beads {
  stroke-dasharray: 2 22;
  animation: folioFlowBeads 1.7s linear infinite;
}

.xom-svg .gap-pulse {
  transform-box: fill-box;
  transform-origin: center;
}

.xom-svg[data-stage="3"] .gap-pulse {
  animation: folioSoftPulse 1.6s ease-in-out infinite;
}

.xom-svg .bar-fill {
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Signature Diagram Controls & Swiss Motion (Radar, X-Ray, Scissors, Funnel, Gauge) */
.lens-segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  padding: 2.5px;
  border-radius: 10px;
  background: rgba(118, 118, 128, 0.12);
  gap: 2px;
}

.lens-btn {
  border: 0;
  background: transparent;
  border-radius: 7.5px;
  height: 32px;
  padding: 0 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.lens-btn.is-active {
  background: var(--bg-card);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-thumb);
}

.lens-btn.is-xray.is-active {
  color: var(--neg);
}

.radar-sweep {
  transform-box: view-box;
  transform-origin: 180px 152px;
  animation: folioRadarSpin 14s linear infinite;
}

.radar-node rect {
  transition: stroke 0.2s ease, stroke-width 0.2s ease, filter 0.2s ease;
}

.radar-node.is-selected rect {
  filter: drop-shadow(0 3px 10px rgba(15, 76, 66, 0.16));
}

.telemetry-card {
  margin-top: 10px;
  padding: 12px 13px;
  border-radius: 12px;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.telemetry-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.telemetry-val {
  font-family: var(--font-num);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.telemetry-desc {
  margin-top: 4px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}

.morph-bar {
  transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.bar-xray-drop {
  transform-box: fill-box;
  transform-origin: top center;
  animation: folioXrayDrop 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.xray-scanline {
  pointer-events: none;
  animation: folioXrayScan 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.risk-meter-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: 11px;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.risk-meter-row {
  cursor: pointer;
}

.risk-meter-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 0.8125rem;
  margin-bottom: 5px;
}

.risk-meter-head span {
  color: var(--ink-body);
  font-weight: 500;
}

.risk-meter-head strong {
  font-family: var(--font-num);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Gemini Dynamic Diagram Studio Strip & Review Audit Trail */
.studio-bar {
  border-top: 0.5px solid var(--separator-soft);
  background: #FAFAFC;
  padding: 10px 16px;
}

.studio-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.studio-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
}

.studio-tag {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.studio-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.studio-gen-btn {
  height: 28px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  border: 0;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.studio-gen-btn:active {
  background: rgba(15, 76, 66, 0.16);
}

.studio-gen-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.studio-audit {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 0.5px solid var(--separator-soft);
}

.studio-audit > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--muted);
  user-select: none;
}

.studio-audit > summary::-webkit-details-marker {
  display: none;
}

.studio-audit[open] .disc-chev {
  transform: rotate(90deg);
}

.studio-audit-body {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.studio-audit-summary {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-body);
}

.audit-attempt {
  padding: 9px 10px;
  border-radius: 10px;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.audit-attempt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

.audit-attempt-meta {
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

.audit-reasons {
  margin: 5px 0 0;
  padding-left: 16px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink-body);
}

@keyframes folioFlowDash {
  from { stroke-dashoffset: 20; }
  to { stroke-dashoffset: 0; }
}

@keyframes folioFlowBeads {
  from { stroke-dashoffset: 48; }
  to { stroke-dashoffset: 0; }
}

@keyframes folioRadarSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes folioXrayDrop {
  from { transform: scaleY(0.12); opacity: 0.35; }
  to { transform: scaleY(1); opacity: 1; }
}

@keyframes folioXrayScan {
  0% { transform: translateY(0); opacity: 0.95; }
  85% { opacity: 0.6; }
  100% { transform: translateY(168px); opacity: 0; }
}

@keyframes folioSoftPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  .info-svg .flow-stream,
  .info-svg .flow-stream-slow,
  .info-svg .flow-beads,
  .xom-svg .gap-pulse,
  .radar-sweep,
  .bar-xray-drop,
  .xray-scanline {
    animation: none;
  }
  .xom-svg .stage-el,
  .xom-svg .bar-fill,
  .morph-bar,
  .sandbox-bar-fill {
    transition: none;
  }
}

/* Interactive iOS Scenario Sandbox */
.sandbox-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}

.sandbox-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0 12px;
}

.sandbox-tile {
  padding: 11px 12px;
  border-radius: 12px;
  background: var(--bg-stage);
}

.sandbox-tile .s-lbl {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

.sandbox-tile .s-val {
  font-family: var(--font-num);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums lining-nums;
  margin-top: 3px;
  transition: color 0.2s ease;
}

.sandbox-bar-wrap {
  margin-bottom: 14px;
}

.sandbox-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.sandbox-bar-track {
  height: 10px;
  border-radius: 99px;
  background: #E5E5EA;
  position: relative;
  overflow: hidden;
}

.sandbox-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--pos);
  transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1), background 0.22s ease;
}

.sandbox-bar-mark {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 62.5%;
  width: 1.5px;
  background: rgba(17, 19, 21, 0.45);
}

.slider-group {
  margin-bottom: 12px;
}

.slider-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  font-size: 0.8125rem;
}

.slider-head span {
  color: var(--ink-body);
  font-weight: 500;
}

.slider-head strong {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  font-weight: 600;
}

.ios-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: #E5E5EA;
  outline: none;
}

.ios-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), 0 0 0 0.5px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.ios-range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0;
  background: #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), 0 0 0 0.5px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.preset-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.preset-chip {
  height: 30px;
  padding: 0 6px;
  border-radius: 9px;
  border: 0;
  background: var(--bg-fill);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  text-align: center;
}

.preset-chip.is-active {
  background: var(--ink);
  color: #FFFFFF;
  font-weight: 600;
}

/* P1 Six-Track Discovery Radar Inbox */
.radar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 0.5px solid var(--separator-soft);
}

.radar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radar-item {
  padding: 10px 11px;
  border-radius: 11px;
  background: var(--bg-stage);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.radar-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.radar-meta-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.radar-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(15, 76, 66, 0.1);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.radar-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.radar-prio {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.radar-headline {
  font-size: 0.84375rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink-body);
}

.radar-sub {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--tertiary);
}

.radar-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 3px;
}

.radar-stage-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--bg-fill);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.radar-empty {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 6px 0;
}

/* Reader Wallet Bar, Bounty Arena & My Hub */
.wallet-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}

.wallet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wallet-nums {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: nowrap;
  min-width: 0;
}

.wallet-stat {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  white-space: nowrap;
}

.wallet-stat-lbl {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--tertiary);
  white-space: nowrap;
}

.wallet-stat-val {
  font-family: var(--font-num);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.wallet-stat-val.accent {
  color: var(--accent);
}

.bounty-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(15, 76, 66, 0.1);
  color: var(--accent);
  font-family: var(--font-num);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.bounty-badge.is-hot {
  background: var(--warn-bg);
  color: var(--warn);
}

.bounty-badge.is-resolved {
  background: var(--pos-bg);
  color: var(--pos);
}

.bounty-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 14px 15px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.bounty-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 8px;
}

.bounty-title {
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.42;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.bounty-desc {
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--muted);
}

.bounty-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 0.5px solid var(--separator-soft);
  flex-wrap: wrap;
}

.bounty-foot-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.diff-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--bg-fill);
  color: var(--muted);
  white-space: nowrap;
}

.diff-tag.is-low {
  background: var(--pos-bg);
  color: var(--pos);
}

.diff-tag.is-high {
  background: var(--neg-bg);
  color: var(--neg);
}

.filter-select-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.mini-select {
  height: 34px;
  padding: 0 7px;
  border-radius: 9px;
  border: 0.5px solid var(--separator);
  background: var(--bg-card);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 500;
  width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.follow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 28px;
  padding: 0 10px;
  border-radius: 99px;
  border: 0;
  background: var(--bg-fill);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.mast-row .follow-btn {
  justify-self: end;
  width: auto;
  height: 30px;
  padding: 0 11px;
}

.follow-btn.is-active {
  background: rgba(15, 76, 66, 0.12);
  color: var(--accent);
}

/* Directional Signal Pills (Discover Card & Overview Hero) */
.card-dir-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
}

.card-dir-left {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex: 1;
}

.dir-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  height: auto;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.32;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.005em;
}

.dir-pill.pos {
  background: var(--pos-bg);
  color: var(--pos);
}

.dir-pill.warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.dir-pill.neg {
  background: var(--neg-bg);
  color: var(--neg);
}

.dir-pill.muted {
  background: #F1F3F5;
  color: #5C636E;
}

.signal-legend-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0 2px 10px;
  padding: 2px 2px;
  border-radius: 0;
  background: transparent;
  font-size: 0.78rem;
  color: var(--tertiary);
  line-height: 1.3;
  overflow-x: auto;
  scrollbar-width: none;
}

.signal-legend-bar::-webkit-scrollbar {
  display: none;
}

.signal-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.signal-legend-dot {
  font-weight: 700;
  font-size: 0.78rem;
  opacity: 0.85;
}

.signal-legend-dot.pos { color: var(--pos); }
.signal-legend-dot.warn { color: var(--warn); }
.signal-legend-dot.neg { color: var(--neg); }
.signal-legend-dot.muted { color: #5F6368; }

.direction-banner {
  border-radius: 11px;
  padding: 11px 12px;
  margin-bottom: 12px;
  border: 0.5px solid transparent;
}

.direction-banner.pos {
  background: #EDF7F1;
  border-color: rgba(21, 108, 63, 0.16);
}

.direction-banner.warn {
  background: #FCF5EA;
  border-color: rgba(154, 91, 19, 0.16);
}

.direction-banner.muted {
  background: #F4F5F6;
  border-color: rgba(95, 99, 104, 0.18);
}

.thesis-shift-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 6px;
}

.thesis-shift-arrow {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--tertiary);
}

.step-gap-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: #FCF5EA;
  border: 0.5px solid rgba(154, 91, 19, 0.22);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink);
}

.step-gap-callout-body {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.step-gap-callout > button,
.bounty-step-anchor > button {
  flex-shrink: 0;
  white-space: nowrap;
}

.step-gap-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(154, 91, 19, 0.14);
  color: var(--warn);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.bounty-step-anchor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 6px 0 6px;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(15, 76, 66, 0.05);
  font-size: 0.8rem;
  color: var(--accent);
}

.bounty-step-anchor > span {
  flex: 1;
  min-width: 0;
}

.direction-banner.neg {
  background: #FDEFEF;
  border-color: rgba(180, 35, 24, 0.16);
}

.direction-banner-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  margin-bottom: 6px;
}

.direction-banner-kicker {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--tertiary);
  line-height: 1.3;
}

.direction-banner-verb {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.direction-banner-reason {
  font-size: 0.83rem;
  line-height: 1.54;
  color: var(--ink-body);
}

.direction-banner-flip {
  font-size: 0.8rem;
  line-height: 1.48;
  color: var(--muted);
  margin-top: 5px;
  padding-top: 5px;
  border-top: 0.5px dashed rgba(60, 60, 67, 0.14);
}

/* Vertical Readable Formula Cards (Deterministic Calculations) */
.calc-item {
  padding: 13px 15px;
  border-bottom: 0.5px solid var(--separator-soft);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.calc-item:last-child {
  border-bottom: 0;
}

.calc-item-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.38;
}

.calc-formula-box {
  background: var(--bg-stage);
  border-radius: 9px;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.calc-eq {
  font-family: var(--font-num);
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--ink-body);
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

.calc-result {
  padding-top: 5px;
  border-top: 0.5px solid var(--separator-soft);
  font-family: var(--font-num);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.4;
}

.calc-note {
  font-size: 0.8rem;
  line-height: 1.54;
  color: var(--muted);
}

/* Freshness Timestamp, Public Monitor Banner, Feedback Bar & Auth Gate */
.card-updated-at {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--tertiary);
  white-space: nowrap;
  flex-shrink: 0;
}

.monitor-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 13px;
  margin-bottom: 12px;
  border: 0;
  border-radius: 12px;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  text-align: left;
}

.monitor-strip:active {
  background: #FAFAFC;
}

.monitor-strip-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.monitor-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pos);
  box-shadow: 0 0 0 3px rgba(21, 108, 63, 0.16);
  flex-shrink: 0;
}

.monitor-strip-text {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.monitor-strip-cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.feedback-bar {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 13px 15px;
  margin-top: 12px;
  box-shadow: var(--shadow-card);
}

.feedback-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

.feedback-bar-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.feedback-chip-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.compliance-foot {
  margin-top: 18px;
  padding: 0 4px 10px;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--tertiary);
}

.monitor-stream-item {
  padding: 10px 0;
  border-bottom: 0.5px solid var(--separator-soft);
}

.monitor-stream-item:last-child {
  border-bottom: 0;
}

.admin-lock-card {
  max-width: 380px;
  margin: 42px auto 0;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 22px 18px;
  box-shadow: var(--shadow-card);
}

.stake-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.wallet-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}

.wallet-box {
  background: var(--bg-stage);
  border-radius: 12px;
  padding: 12px 13px;
}

.wallet-box-num {
  font-family: var(--font-num);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 3px;
  color: var(--ink);
}

.wallet-box-num.accent {
  color: var(--accent);
}

/* Independent Admin Studio Layout (/admin) */
.admin-shell {
  max-width: 780px;
  margin: 0 auto;
  min-height: 100dvh;
  padding-bottom: 48px;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(242, 242, 247, 0.9);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 0.5px solid var(--separator-soft);
  padding: 12px 16px;
}

.admin-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.admin-body {
  padding: 14px 16px;
}

.admin-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.admin-stat-tile {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 10px 11px;
  box-shadow: var(--shadow-card);
}

.admin-stat-tile .k {
  font-size: 0.78rem;
  color: var(--tertiary);
  white-space: nowrap;
}

.admin-stat-tile .v {
  font-family: var(--font-num);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 2px;
}

.admin-stat-tile .v.warn {
  color: var(--warn);
}

.admin-stat-tile .v.accent {
  color: var(--accent);
}

/* ==================== Institutional Buy-Side Deep Research Cards (V2) ==================== */

.odds-card {
  margin-bottom: 12px;
}

.odds-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

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

.odds-stat {
  background: var(--bg-stage);
  border-radius: 10px;
  padding: 9px 10px;
  min-width: 0;
}

.odds-stat .k {
  font-size: 0.78rem;
  color: var(--tertiary);
  white-space: nowrap;
}

.odds-stat .v {
  font-family: var(--font-num);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 2px;
  white-space: nowrap;
}

.odds-stat .v.accent {
  color: var(--accent);
}

.odds-stat .s {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.forensic-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.forensic-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 0.5px solid var(--separator-soft);
}

.forensic-item:last-of-type {
  padding-bottom: 0;
  border-bottom: 0;
}

.forensic-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--ink);
}

.forensic-text {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--ink-body);
  margin: 0;
}

.inv-stack-bar {
  display: flex;
  height: 10px;
  border-radius: 99px;
  overflow: hidden;
  background: var(--bg-fill);
  gap: 1.5px;
}

.inv-seg-raw {
  background: #0F4C42;
}

.inv-seg-wip {
  background: #4E9A84;
}

.inv-seg-fin {
  background: #C7D8D2;
}

.inv-legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 0.8rem;
  color: var(--muted);
}

.inv-legend-row span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dot-raw, .dot-wip, .dot-fin {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dot-raw { background: #0F4C42; }
.dot-wip { background: #4E9A84; }
.dot-fin { background: #C7D8D2; }

.peer-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.8rem;
}

.peer-table th {
  text-align: right;
  font-weight: 600;
  color: var(--tertiary);
  padding: 5px 4px 7px;
  border-bottom: 0.5px solid var(--separator);
  font-size: 0.78rem;
  white-space: nowrap;
}

.peer-table th:first-child,
.peer-table td:first-child {
  text-align: left;
  width: 26%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.peer-table td {
  text-align: right;
  padding: 8px 4px;
  border-bottom: 0.5px solid var(--separator-soft);
  color: var(--ink-body);
  font-family: var(--font-num);
  white-space: nowrap;
}

.peer-table tr:last-child td {
  border-bottom: 0;
}

.peer-row-self {
  background: rgba(15, 76, 66, 0.06);
}

.peer-row-self td:first-child {
  border-radius: 6px 0 0 6px;
}

.peer-row-self td:last-child {
  border-radius: 0 6px 6px 0;
}

.peer-sub {
  font-size: 0.78rem;
  color: var(--tertiary);
  font-weight: 500;
}

.redteam-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.redteam-box {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 13px 14px;
  box-shadow: var(--shadow-card);
  border-left: 3.5px solid var(--accent);
}

.redteam-box.is-bull {
  border-left-color: var(--pos);
}

.redteam-box.is-bear {
  border-left-color: var(--neg);
}

.redteam-box .rt-head {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 7px;
}

.redteam-box.is-bull .rt-head {
  color: var(--pos);
}

.redteam-box.is-bear .rt-head {
  color: var(--neg);
}

.redteam-verdict {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--ink);
  box-shadow: var(--shadow-card);
}

/* ==================== Minimalist Version Lens, Changelog & Evidence Board ==================== */

.clue-mini-dot {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
}

.changelog-link {
  border: 0;
  background: transparent;
  padding: 2px 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.overlay-switch-wrap {
  margin-bottom: 12px;
}

.overlay-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 3px;
  border-radius: 11px;
  background: rgba(118, 118, 128, 0.12);
}

.overlay-opt {
  border: 0;
  border-radius: 8.5px;
  padding: 7px 8px;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.overlay-opt.is-active {
  background: var(--bg-card);
  color: var(--accent);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.community-overlay-strip {
  margin-top: 7px;
  padding: 8px 11px;
  border-radius: 10px;
  background: rgba(15, 76, 66, 0.07);
  color: var(--accent);
  font-size: 0.8rem;
  line-height: 1.45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.community-overlay-strip.is-neutral {
  background: var(--bg-stage);
  color: var(--muted);
}

.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.changelog-item {
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--bg-stage);
  border: 0.5px solid var(--separator-soft);
}

.changelog-item.is-current {
  background: rgba(15, 76, 66, 0.06);
  border-color: rgba(15, 76, 66, 0.22);
}

.changelog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.changelog-summary {
  font-size: 0.8125rem;
  color: var(--ink-body);
  line-height: 1.5;
}

/* Community-Merged Reasoning Step Stamp */
.step-card.is-community-step {
  border: 1px dashed rgba(15, 76, 66, 0.34);
  background: linear-gradient(180deg, rgba(15, 76, 66, 0.035) 0%, #FFFFFF 36%);
}

.community-step-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 7px;
  border-bottom: 0.5px dashed rgba(15, 76, 66, 0.18);
}

.community-author-pill {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}

.community-trust-meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

/* Live Evidence Board inside Bounty Questions */
.composer-rule-hint {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.48;
  margin: -4px 0 10px;
}

.clue-board {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 0.5px solid var(--separator-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clue-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tertiary);
}

.clue-card {
  padding: 11px 12px;
  border-radius: 12px;
  background: var(--bg-stage);
  border: 0.5px solid var(--separator-soft);
}

.clue-card.is-merged {
  background: rgba(15, 76, 66, 0.045);
  border-color: rgba(15, 76, 66, 0.25);
}

.clue-card.is-rebuttal {
  border-left: 3px solid var(--warn);
}

.clue-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.clue-author-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.clue-author {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
}

.clue-time {
  font-size: 0.78rem;
  color: var(--tertiary);
}

.clue-rebut-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--warn-bg);
  color: var(--warn);
  font-size: 0.78rem;
  font-weight: 600;
}

.clue-summary {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.clue-line {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 6px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-body);
}

.clue-line strong {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tertiary);
  padding-top: 1px;
}

.clue-ext-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.clue-full-body {
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg-card);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--ink-body);
}

.clue-more-btn {
  align-self: flex-start;
  border: 0;
  background: transparent;
  padding: 2px 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.clue-vote-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 0.5px solid var(--separator-soft);
}

.clue-vote-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 10px;
  border-radius: 99px;
  border: 0.5px solid var(--separator);
  background: var(--bg-card);
  color: var(--ink-body);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.14s ease;
}

.vote-btn .vote-num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

.vote-btn.is-approve.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

.vote-btn.is-doubt.is-active {
  background: var(--neg-bg);
  border-color: rgba(192, 53, 43, 0.35);
  color: var(--neg);
}

.doubt-picker {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--bg-card);
  border: 0.5px solid var(--separator-soft);
}

.doubt-picker-lbl {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.doubt-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.doubt-chip {
  border: 0.5px solid rgba(192, 53, 43, 0.28);
  background: var(--neg-bg);
  color: var(--neg);
  border-radius: 99px;
  padding: 4px 9px;
  font-size: 0.8rem;
  font-weight: 600;
}

.doubt-chip.is-muted {
  border-color: var(--separator);
  background: var(--bg-stage);
  color: var(--muted);
}

.clue-doubt-summary {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--neg);
}

.clue-gate-foot {
  margin-top: 8px;
}

.clue-progress-track {
  height: 3.5px;
  border-radius: 99px;
  background: rgba(118, 118, 128, 0.16);
  overflow: hidden;
  margin-bottom: 5px;
}

.clue-progress-fill {
  height: 100%;
  border-radius: 99px;
  background: #C49A52;
  transition: width 0.25s ease;
}

.clue-progress-fill.is-done {
  background: var(--accent);
}

.clue-gate-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--tertiary);
}

.clue-payout-tag {
  color: var(--accent);
  font-weight: 600;
}

.clue-expand-btn {
  width: 100%;
  border: 0;
  border-radius: 9px;
  padding: 7px;
  background: rgba(118, 118, 128, 0.08);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ==================== Minimalist Search-or-Add Stock Watchlist UX ==================== */

.discover-search-wrap {
  margin-bottom: 10px;
}

.discover-search-wrap .search-input {
  padding-right: 34px;
}

.discover-search-wrap .search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.search-clear-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: rgba(118, 118, 128, 0.22);
  color: #FFFFFF;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-clear-btn[hidden] {
  display: none;
}

.watch-entry-strip {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px;
  margin-bottom: 12px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 12px;
  background: var(--bg-card);
  box-shadow: none;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 600;
  overflow: hidden;
}

.watch-entry-strip:active {
  background: #F4F6F5;
}

.watch-entry-strip[hidden] {
  display: none;
}

.watch-entry-left {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 0.84rem;
  color: var(--ink);
}

.watch-entry-lbl {
  white-space: nowrap;
}

.watch-entry-plus {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.watch-entry-cta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  flex: 1;
  min-width: 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
}

.watch-entry-cta-txt {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.watch-entry-chev {
  flex-shrink: 0;
  color: var(--tertiary);
}

.watch-batch-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.watch-batch-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px 5px 10px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid rgba(15, 76, 66, 0.2);
  font-size: 0.8rem;
  color: var(--ink);
  max-width: 100%;
}

.watch-batch-chip strong {
  font-family: var(--font-num);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
}

.watch-batch-chip.is-done {
  border-color: var(--separator);
  background: var(--bg-fill);
  color: var(--muted);
  padding-right: 10px;
}

.watch-batch-chip.is-blocked {
  border-color: rgba(182, 52, 42, 0.22);
  background: var(--neg-bg);
  color: var(--neg);
  padding-right: 10px;
}

.watch-batch-mkt {
  font-size: 0.78rem;
  color: var(--muted);
}

.watch-batch-rm {
  border: 0;
  background: transparent;
  color: var(--tertiary);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 0.88rem;
  line-height: 1;
}

.watch-batch-rm:hover {
  background: var(--bg-fill);
  color: var(--ink);
}

.watch-batch-note {
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 0.78rem;
  line-height: 1.45;
  background: var(--warn-bg);
  color: var(--warn);
}

.watch-queue-more {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--separator-soft);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

.watch-queue-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Live Stock Autocomplete Drop-Down (Request Sheet & Discover Search) */
.watch-search-anchor,
.discover-search-anchor {
  position: relative;
}

.stock-suggest-dropdown {
  margin: 0 0 12px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.stock-suggest-dropdown.is-discover {
  margin: -4px 0 12px;
}

.suggest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px;
  background: var(--bg-stage);
  border-bottom: 0.5px solid var(--separator-soft);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tertiary);
}

.suggest-dismiss-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0 2px;
}

.suggest-list {
  display: flex;
  flex-direction: column;
  max-height: 280px;
  overflow-y: auto;
}

.suggest-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 0.5px solid var(--separator-soft);
  background: var(--bg-card);
  text-align: left;
  transition: background 0.12s ease;
}

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

.suggest-row:active,
.suggest-row:hover {
  background: #F6F8F9;
}

.suggest-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.suggest-name-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.suggest-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.suggest-mkt {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--tertiary);
  white-space: nowrap;
  flex-shrink: 0;
}

.suggest-sub {
  font-size: 0.78rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggest-badge {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  line-height: 1.25;
}

.suggest-badge.is-published {
  background: var(--pos-bg);
  color: var(--pos);
}

.suggest-badge.is-action {
  background: var(--accent-soft);
  color: var(--accent);
}

.suggest-badge.is-done {
  background: var(--bg-fill);
  color: var(--muted);
}

.watch-inline-card,
.watch-add-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: var(--shadow-card);
}

.watch-add-card {
  background: var(--bg-stage);
  box-shadow: none;
  border: 0.5px solid var(--separator-soft);
}

.watch-add-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.watch-add-sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.45;
}

.watch-mkt-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.watch-mkt-chip {
  border: 0.5px solid var(--separator);
  background: var(--bg-card);
  color: var(--muted);
  border-radius: 99px;
  padding: 5px 11px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.watch-mkt-chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

.watch-auto-hint {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--tertiary);
  white-space: nowrap;
}

.watch-note-toggle {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 0 10px;
  font-size: 0.8rem;
  color: var(--muted);
}

.watch-more-link {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border: 0.5px dashed rgba(15, 76, 66, 0.25);
  border-radius: 11px;
  background: transparent;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

.watch-sheet-intro {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

.watch-section-lbl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tertiary);
  margin-bottom: 8px;
}

.watch-match-list,
.watch-queue-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.watch-match-row,
.watch-queue-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--bg-stage);
}

.watch-match-main {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.watch-match-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.watch-match-sub {
  font-size: 0.8rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-queue-info {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
  overflow: hidden;
}

.watch-queue-sym {
  font-family: var(--font-num);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.watch-queue-cnt {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.watch-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.watch-quick-chip {
  border: 0.5px solid rgba(15, 76, 66, 0.2);
  background: rgba(15, 76, 66, 0.05);
  color: var(--accent);
  border-radius: 99px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
}

.watch-quick-chip:active {
  background: var(--accent);
  color: #FFFFFF;
}

.watch-streams-foot {
  margin-top: 16px;
  border-top: 0.5px solid var(--separator-soft);
}

/* ==================== Beta Polish: Dock Dot, Notifications, First-Visit Tip, Author Clue Edit ==================== */

.dock-ico-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dock-dot {
  position: absolute;
  top: -1px;
  right: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neg);
  border: 1.5px solid #F9F9FB;
}

.notif-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neg);
  margin-right: 6px;
  vertical-align: middle;
}

.inset-row.is-unread-notif {
  background: rgba(15, 76, 66, 0.04);
}

.first-visit-tip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.04);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
}

.tip-close-btn {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 0.78rem;
  padding: 2px 4px;
  flex-shrink: 0;
}

.clue-right-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.clue-edit-form {
  margin-top: 9px;
  padding: 10px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 0.5px solid var(--separator-soft);
}







/* ==================== Pilot Welcome Card & Global Feedback Footer ==================== */

.welcome-card {
  margin: 0 0 12px;
  padding: 13px 14px;
  border-radius: 14px;
  background: #F4F9F7;
  border: 1px solid rgba(15, 76, 66, 0.14);
}

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

.welcome-head strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
}

.welcome-ok-btn {
  border: none;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.welcome-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--ink-body);
  line-height: 1.45;
}

.welcome-steps > div {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.welcome-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(15, 76, 66, 0.12);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.foot-feedback-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--ink-body);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.foot-feedback-btn:active {
  background: var(--surface-sub);
}

/* ==================== Locale / Region Pills, Forensic Leaderboard & Export Studio ==================== */

.mast-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: end;
}

.locale-pill {
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  border: 0.5px solid rgba(15, 76, 66, 0.22);
  background: rgba(15, 76, 66, 0.07);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
}

.locale-pill.is-subtle {
  background: var(--bg-fill);
  border-color: var(--separator-soft);
  color: var(--muted);
  font-weight: 600;
}

.locale-pill[disabled] {
  opacity: 0.75;
  cursor: default;
}

.leaderboard-hero-banner {
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #145E52 0%, #0A3730 100%);
  color: #F7F5EF;
  box-shadow: 0 6px 18px rgba(10, 55, 48, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.leaderboard-hero-banner:active {
  transform: scale(0.99);
}

.lb-banner-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  color: #DFC184;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.lb-banner-title {
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.3;
  color: #FFFFFF;
}

.lb-banner-sub {
  font-size: 0.8rem;
  color: rgba(247, 245, 239, 0.8);
  margin-top: 3px;
  line-height: 1.4;
}

.lb-banner-cta {
  flex-shrink: 0;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(223, 193, 132, 0.4);
  color: #F7F5EF;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.lb-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.lb-stat-box {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.lb-stat-box .k {
  font-size: 0.78rem;
  color: var(--tertiary);
  font-weight: 600;
}

.lb-stat-box .v {
  font-family: var(--font-num);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 2px;
}

.lb-stat-box .v.neg { color: var(--neg); }
.lb-stat-box .v.pos { color: var(--pos); }
.lb-stat-box .v.accent { color: var(--accent); }

.lb-row-card {
  width: 100%;
  text-align: left;
  border: 0;
  background: var(--bg-card);
  border-radius: 13px;
  padding: 12px 14px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.lb-row-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--warn);
}

.lb-row-card.tone-pos::before { background: var(--pos); }
.lb-row-card.tone-neg::before { background: var(--neg); }
.lb-row-card.tone-left::before { background: var(--accent); }

.lb-row-main {
  min-width: 0;
  flex: 1;
  padding-left: 4px;
}

.lb-row-top {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.lb-row-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.lb-row-flag {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.4;
}

.lb-row-right {
  text-align: right;
  flex-shrink: 0;
}

.lb-row-metric {
  font-family: var(--font-num);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
}

.lb-row-metric.pos { color: var(--pos); }
.lb-row-metric.neg { color: var(--neg); }
.lb-row-metric.left { color: var(--accent); }

.lb-row-sub {
  font-size: 0.78rem;
  color: var(--tertiary);
  margin-top: 2px;
}

.export-tab-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-bottom: 10px;
}

.export-opt-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.export-pill-group {
  display: inline-flex;
  gap: 4px;
  background: var(--bg-fill);
  padding: 3px;
  border-radius: 9px;
}

.export-pill-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 7px;
  cursor: pointer;
}

.export-pill-btn.is-active {
  background: #FFFFFF;
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.export-slide-dots {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0 8px;
}

.export-copy-box {
  background: var(--bg-stage);
  border: 0.5px solid var(--separator-soft);
  border-radius: 10px;
  padding: 10px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-body);
  white-space: pre-wrap;
  max-height: 180px;
  overflow-y: auto;
  margin: 8px 0;
}

.en-brief-banner {
  background: #F4F9F7;
  border: 0.5px solid rgba(15, 76, 66, 0.16);
  border-radius: 12px;
  padding: 11px 13px;
  margin-bottom: 12px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-body);
}

.en-brief-banner ul {
  margin: 6px 0 0;
  padding-left: 16px;
}

.en-brief-banner li {
  margin-bottom: 4px;
}

/* Dual-Language Segmented Pill (中文 | EN) */
.lang-seg {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 999px;
  background: var(--bg-fill);
  border: 0.5px solid var(--separator-soft);
  gap: 1px;
}

.lang-seg-btn {
  height: 22px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.lang-seg-btn.is-active {
  background: #FFFFFF;
  color: var(--accent);
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Discover Sort Row & Card Inline Star Bookmark */
.discover-sort-row,
.discover-utility-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  border-bottom: 1px solid var(--separator-soft);
  padding-bottom: 6px;
}

.sort-pill-group {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sort-pill-group::-webkit-scrollbar {
  display: none;
}

.sort-chip {
  position: relative;
  height: 28px;
  padding: 0 2px;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: var(--tertiary);
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.14s ease;
}

.sort-chip.is-active {
  background: transparent;
  color: var(--ink);
  font-weight: 700;
}

.sort-chip.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.study-card {
  cursor: pointer;
}

.study-card.is-pinned-card {
  border: 1px solid rgba(15, 76, 66, 0.16);
  box-shadow: 0 1px 4px rgba(15, 76, 66, 0.05);
}

.card-top-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.card-star-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--tertiary);
  font-size: 0.98rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.14s ease, color 0.14s ease;
}

.card-star-btn:hover {
  background: var(--bg-fill);
  color: var(--accent);
}

.card-star-btn.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}

.card-star-btn:active {
  transform: scale(0.9);
}

.heat-tag-pill {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(196, 154, 82, 0.14);
  color: #8A5E18;
  white-space: nowrap;
}

.discover-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--tertiary);
  letter-spacing: 0.02em;
  margin: 4px 2px 8px;
}

.discover-section-head.is-pinned {
  color: var(--accent);
}

/* External Shareable Leaderboard -> Enter PROVA App Banner */
.lb-app-bridge {
  width: 100%;
  border-radius: 16px;
  padding: 13px 15px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #145E52 0%, #09352E 100%);
  color: #F7F5EF;
  box-shadow: 0 6px 18px rgba(10, 55, 48, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lb-app-bridge-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  color: #DFC184;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.lb-app-bridge-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.35;
}

.lb-app-bridge-btn {
  flex-shrink: 0;
  border: 1px solid rgba(223, 193, 132, 0.5);
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
}

/* Lightweight Plain-Language Metric Glossary Button & Sheet Card */
.term-tip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  margin-left: 4px;
  border-radius: 50%;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--tertiary);
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
  font-family: Georgia, serif;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
  opacity: 0.72;
  transition: opacity 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.term-tip-btn:hover,
.term-tip-btn:focus-visible {
  opacity: 1;
  color: var(--accent);
  border-color: var(--accent);
}
.term-tip-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.term-tip-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.term-tip-row {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-alt, #f6f7f9);
}
.term-tip-k {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}
.term-tip-row p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink);
}

/* Global Compliance Risk Disclaimer Footer */
.site-risk-footer {
  max-width: 720px;
  margin: 0 auto 88px;
  padding: 12px 18px 8px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--tertiary);
  text-align: center;
  border-top: 0.5px solid var(--separator-soft, rgba(17, 24, 39, 0.08));
}

/* ==================== Slice 1: Sentinel Telemetry Strip & Verify 2.0 Channel-Check Mosaic ==================== */

.sentinel-strip {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 12px 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(15, 76, 66, 0.1);
}
.sentinel-strip.is-near {
  border-color: rgba(180, 114, 24, 0.35);
  background: linear-gradient(180deg, rgba(255, 248, 235, 0.72), var(--bg-card));
}
.sentinel-strip.is-triggered {
  border-color: rgba(185, 56, 44, 0.35);
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.75), var(--bg-card));
}
.sentinel-strip-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.sentinel-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
}
.sentinel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pos);
  flex-shrink: 0;
}
.sentinel-strip.is-near .sentinel-dot {
  background: var(--warn);
}
.sentinel-strip.is-triggered .sentinel-dot {
  background: var(--neg);
}
.sentinel-meta-right {
  font-size: 0.8rem;
  color: var(--tertiary);
  font-variant-numeric: tabular-nums;
}
.sentinel-lines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 9px;
}
.sentinel-line-chip {
  background: var(--surface-alt, #f6f7f9);
  border-radius: 10px;
  padding: 7px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sentinel-line-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.8rem;
}
.sentinel-line-lbl {
  color: var(--muted);
  font-weight: 500;
}
.sentinel-line-val {
  font-family: var(--font-num);
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.sentinel-line-chip.is-triggered .sentinel-line-val {
  color: var(--neg);
}
.sentinel-line-chip.is-near .sentinel-line-val {
  color: var(--warn);
}
.sentinel-mini-bar {
  height: 4px;
  border-radius: 99px;
  background: rgba(17, 24, 39, 0.08);
  overflow: hidden;
}
.sentinel-mini-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--accent);
}
.sentinel-line-chip.is-near .sentinel-mini-fill {
  background: var(--warn);
}
.sentinel-line-chip.is-triggered .sentinel-mini-fill {
  background: var(--neg);
}
.sentinel-line-sub {
  font-size: 0.78rem;
  color: var(--tertiary);
}

/* Verify 2.0 Frontline Channel-Check Micro-Card & Thermometer */
.cc-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 14px 15px;
  margin: 10px 0 12px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(15, 76, 66, 0.14);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cc-card.is-inline-step {
  margin: 10px 0 4px;
  background: linear-gradient(180deg, rgba(244, 249, 247, 0.88), #ffffff);
  box-shadow: none;
  border: 1px solid rgba(15, 76, 66, 0.16);
}
.cc-card.is-leading {
  border-color: rgba(180, 114, 24, 0.45);
  background: linear-gradient(180deg, rgba(255, 249, 236, 0.92), #ffffff);
}
.cc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.cc-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.01em;
}
.cc-card.is-leading .cc-kicker {
  color: var(--warn);
}
.cc-layer-tag {
  font-size: 0.78rem;
  color: var(--tertiary);
  background: rgba(17, 24, 39, 0.05);
  padding: 2px 7px;
  border-radius: 99px;
}
.cc-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.38;
}
.cc-question {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}
.cc-thermo-wrap {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 11px;
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.03);
}
.cc-thermo-bar {
  display: flex;
  height: 9px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(17, 24, 39, 0.08);
  gap: 2px;
}
.cc-thermo-seg.is-bull {
  background: var(--pos);
}
.cc-thermo-seg.is-neutral {
  background: #8c96a4;
}
.cc-thermo-seg.is-bear {
  background: var(--neg);
}
.cc-thermo-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 0.8rem;
  color: var(--ink);
}
.cc-thermo-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-variant-numeric: tabular-nums;
}
.cc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.cc-dot.is-bull { background: var(--pos); }
.cc-dot.is-neutral { background: #8c96a4; }
.cc-dot.is-bear { background: var(--neg); }
.cc-summary-line {
  font-size: 0.8rem;
  line-height: 1.52;
  color: var(--ink);
}
.bounty-card,
.clue-card,
.cc-card {
  scroll-margin-top: 112px;
}

.cc-choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.cc-choice-btn {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.84rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  line-height: 1.42;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.cc-choice-btn:hover {
  border-color: var(--accent);
  background: rgba(15, 76, 66, 0.04);
}
.cc-choice-btn.is-selected {
  border-color: var(--accent);
  background: rgba(15, 76, 66, 0.1);
  color: var(--accent);
}
.cc-choice-btn.is-selected.is-bear {
  border-color: var(--neg);
  background: rgba(185, 56, 44, 0.08);
  color: var(--neg);
}
.cc-detail-form {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(15, 76, 66, 0.04);
  border: 1px solid rgba(15, 76, 66, 0.12);
}
.cc-detail-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.cc-detail-row input {
  flex: 1 1 140px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 0.8rem;
  background: #ffffff;
  color: var(--ink);
}
.cc-samples-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.cc-sample-item {
  padding: 9px 11px;
  border-radius: 11px;
  background: var(--surface-alt, #f6f7f9);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cc-sample-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}
.cc-sample-who {
  font-weight: 600;
  color: var(--ink);
}
.cc-sample-choice {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(15, 76, 66, 0.1);
  color: var(--accent);
}
.cc-sample-text {
  font-size: 0.8125rem;
  line-height: 1.48;
  color: var(--ink);
}
.cc-sample-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.cc-react-btn {
  appearance: none;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: #ffffff;
  color: var(--muted);
  border-radius: 99px;
  padding: 3px 9px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.cc-react-btn.is-active {
  border-color: var(--accent);
  background: rgba(15, 76, 66, 0.1);
  color: var(--accent);
}
.cc-react-btn.is-counter.is-active {
  border-color: var(--warn);
  background: var(--warn-bg);
  color: var(--warn);
}

/* ==================== Crisp Mobile-Native Financial Bar Chart & Readability Floor ==================== */
.fin-bar-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 6px 2px 4px;
}
.fin-bar-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.fin-bar-row.is-clickable {
  cursor: pointer;
}
.fin-bar-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.fin-bar-lbl {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.fin-bar-badge {
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}
.fin-bar-val {
  font-family: var(--font-num);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fin-bar-val.is-neg {
  color: var(--neg);
}
.fin-bar-track {
  height: 11px;
  border-radius: 99px;
  background: #ebebf0;
  overflow: hidden;
}
.fin-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.25s ease;
}

/* Raise mobile readability floor for secondary copy across cards */
.welcome-steps {
  font-size: 0.875rem;
  line-height: 1.55;
}
.direction-banner-verb {
  font-size: 0.94rem;
}
.direction-banner-reason {
  font-size: 0.88rem;
  line-height: 1.58;
}
.direction-banner-flip {
  font-size: 0.82rem;
  line-height: 1.52;
}
.wallet-stat-lbl {
  font-size: 0.78rem;
}
.bounty-desc {
  font-size: 0.875rem;
  line-height: 1.55;
}
.sentinel-meta-right,
.sentinel-line-lbl,
.sentinel-line-sub,
.cc-layer-tag,
.cc-react-btn {
  font-size: 0.78rem;
}
.cc-question,
.cc-summary-line,
.cc-sample-text {
  font-size: 0.86rem;
  line-height: 1.54;
}
.cc-choice-btn {
  font-size: 0.84rem;
  padding: 10px 12px;
}
.site-risk-footer {
  font-size: 0.78rem;
}

/* ==================== Slice 2: Homepage 10-Second Macro Pulse Strip ==================== */
.macro-pulse-strip {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 12px 14px;
  margin: 0 0 12px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(15, 76, 66, 0.1);
}
.macro-pulse-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}
.macro-pulse-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
}
.macro-pulse-sub {
  font-size: 0.78rem;
  color: var(--muted);
}
.macro-pulse-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 600px) {
  .macro-pulse-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.macro-pulse-tile {
  appearance: none;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: var(--surface-alt, #f6f7f9);
  border-radius: 11px;
  padding: 9px 10px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.macro-pulse-tile:hover {
  border-color: var(--accent);
  background: #ffffff;
}
.macro-pulse-lbl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.macro-pulse-val {
  font-family: var(--font-num);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.macro-pulse-note {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==================== Long-Term Value Consultation Desk & Masters Hub (REQ-01..12, NFR-03 >=12.5px) ==================== */

.guard-strip {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(20, 108, 73, 0.16);
  background: var(--pos-bg);
  color: var(--pos);
  font-size: 0.84rem;
  font-weight: 600;
  text-align: left;
}
.guard-strip.has-alert {
  background: var(--warn-bg);
  border-color: rgba(143, 86, 21, 0.24);
  color: var(--warn);
}
.guard-strip-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.consult-form-card {
  padding: 14px;
  margin-bottom: 14px;
}
.consult-mode-seg {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 3px;
  border-radius: 11px;
  background: var(--bg-fill);
  margin-bottom: 12px;
}
.consult-mode-seg .seg-btn {
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 8px 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.25;
}
.consult-mode-seg .seg-btn.is-selected {
  background: var(--bg-card);
  color: var(--accent);
  box-shadow: var(--shadow-thumb);
}

.consult-input-wrap {
  position: relative;
  margin-bottom: 10px;
}
.consult-search-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 11px;
  border: 1px solid var(--separator);
  background: var(--bg-stage);
  font-size: 0.94rem;
  color: var(--ink);
}
.consult-search-input:focus {
  border-color: var(--accent);
  background: var(--bg-card);
  outline: none;
}

.quick-study-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.quick-study-chip {
  border: 1px solid var(--separator);
  background: var(--bg-card);
  color: var(--ink-body);
  border-radius: var(--radius-pill);
  padding: 5px 11px;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
}
.quick-study-chip.is-active,
.quick-study-chip:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.consult-holding-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
@media (max-width: 440px) {
  .consult-holding-grid {
    grid-template-columns: 1fr;
  }
}
.consult-submit-btn {
  height: 44px;
  font-size: 0.94rem;
  font-weight: 600;
}

.demo-scenarios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.demo-scenario-btn {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: var(--radius-card);
  border: 1px solid var(--separator);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: var(--shadow-card);
}
.demo-scenario-btn strong {
  font-size: 0.94rem;
  color: var(--ink);
}
.demo-scenario-btn span {
  font-size: 0.82rem;
  color: var(--muted);
}
.demo-scenario-btn:hover {
  border-color: var(--accent);
}

.consult-card,
.consult-hero-card,
.master-profile-card {
  padding: 15px;
  margin-bottom: 12px;
}
.consult-hero-card.is-pos {
  border-top: 3px solid var(--pos);
}
.consult-hero-card.is-warn {
  border-top: 3px solid var(--warn);
}
.consult-hero-card.is-neg {
  border-top: 3px solid var(--neg);
}
.consult-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.consult-asset-id {
  min-width: 0;
  flex: 1;
}
.consult-asset-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.consult-asset-code {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--font-mono);
}
.consult-verdict-text {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  margin: 6px 0 10px;
}
.consult-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.consult-thermo {
  padding: 12px;
  border-radius: var(--radius-inset);
  background: var(--bg-stage);
  border: 1px solid var(--separator-soft);
  margin-bottom: 10px;
}
.consult-thermo.is-redflag {
  background: var(--neg-bg);
  border-color: rgba(182, 52, 42, 0.22);
}
.consult-thermo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.consult-live-px {
  font-size: 0.88rem;
  color: var(--muted);
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}
.consult-live-px strong {
  font-size: 1.04rem;
  color: var(--ink);
}
.consult-thermo-note {
  font-size: 0.86rem;
  color: var(--neg);
  line-height: 1.55;
}
.thermo-track-wrap {
  margin-bottom: 10px;
}
.thermo-bar {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: visible;
}
.thermo-seg {
  position: absolute;
  top: 0;
  bottom: 0;
}
.thermo-seg.is-buy {
  left: 0;
  border-radius: 999px 0 0 999px;
  background: rgba(20, 108, 73, 0.28);
}
.thermo-seg.is-fair {
  background: rgba(143, 86, 21, 0.16);
}
.thermo-seg.is-hot {
  border-radius: 0 999px 999px 0;
  background: rgba(182, 52, 42, 0.24);
}
.thermo-pin {
  position: absolute;
  top: -4px;
  width: 6px;
  height: 20px;
  border-radius: 3px;
  transform: translateX(-50%);
}
.thermo-pin.is-live {
  background: var(--ink);
  box-shadow: 0 0 0 2px #fff;
}
.thermo-pin.is-cost {
  background: #1D4ED8;
  box-shadow: 0 0 0 2px #fff;
}
.thermo-legend {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}
.thermo-legend .is-buy {
  color: var(--pos);
}
.thermo-legend .is-hot {
  color: var(--neg);
}
.consult-anchors-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
@media (max-width: 440px) {
  .consult-anchors-grid {
    grid-template-columns: 1fr;
  }
}
.consult-anchor-tile {
  background: var(--bg-card);
  border-radius: 9px;
  padding: 8px 10px;
  border: 1px solid var(--separator-soft);
}
.consult-anchor-tile .k,
.consult-kpi-box .k,
.ledger-box .k {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 2px;
}
.consult-anchor-tile .v,
.consult-kpi-box .v {
  font-family: var(--font-num);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.consult-anchor-tile .v.pos,
.consult-kpi-box .v.pos {
  color: var(--pos);
}
.consult-anchor-tile .v.warn,
.consult-kpi-box .v.warn {
  color: var(--warn);
}
.consult-kpi-box .v.neg {
  color: var(--neg);
}
.consult-thermo-basis,
.consult-transparency-note,
.consult-footnote,
.consult-regime-tip {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 8px;
}

.consult-kpi-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.consult-kpi-box {
  background: var(--bg-stage);
  border-radius: 10px;
  padding: 10px;
  border: 1px solid var(--separator-soft);
}
.consult-subhead {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.consult-muted-p {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}
.consult-divider {
  height: 1px;
  background: var(--separator-soft);
  margin: 12px 0;
}

.playbook-step-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.playbook-step {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-stage);
}
.playbook-step.is-trigger {
  background: var(--accent-soft);
  border: 1px solid rgba(15, 76, 66, 0.16);
}
.playbook-k {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 3px;
}
.playbook-step p {
  font-size: 0.9rem;
  color: var(--ink-body);
  line-height: 1.55;
}

.catalyst-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.catalyst-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--ink-body);
  line-height: 1.5;
}
.catalyst-txt {
  flex: 1;
  min-width: 0;
}

.scenario-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.scenario-tile {
  padding: 11px 12px;
  border-radius: 10px;
  background: var(--bg-stage);
  border-left: 3px solid var(--muted);
}
.scenario-tile.is-pos {
  border-left-color: var(--pos);
}
.scenario-tile.is-warn {
  border-left-color: var(--warn);
}
.scenario-tile.is-neg {
  border-left-color: var(--neg);
}
.scenario-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--ink);
}
.scenario-px {
  font-family: var(--font-num);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.scenario-impact {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin: 3px 0;
}
.scenario-desc {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}

.si-chip-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.si-vote-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--bg-stage);
}
.si-vote-left {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.si-vote-left strong {
  font-size: 0.88rem;
  color: var(--ink);
}
.si-fund-sub {
  font-size: 0.78rem;
  color: var(--muted);
}
.si-vote-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.si-wt {
  font-size: 0.8rem;
  color: var(--ink-body);
  font-weight: 600;
}
.si-src-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}
.si-top-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.si-holding-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--separator);
  background: var(--bg-stage);
  font-size: 0.8rem;
}
.si-holding-pill strong {
  color: var(--ink);
}
.si-holding-pill span {
  color: var(--accent);
  font-weight: 600;
}

.consensus-vote-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.master-views-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.master-view-item {
  padding: 12px;
  border-radius: 11px;
  background: var(--bg-stage);
  border: 1px solid var(--separator-soft);
}
.master-view-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.master-id-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  min-width: 0;
  flex: 1;
}
.master-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  font-size: 0.94rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.master-id-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.master-id-meta strong {
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.3;
}
.master-id-meta span {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}
.master-view-badges,
.master-metrics-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 6px;
}
.master-metric-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 7px;
  background: var(--bg-card);
  border: 1px solid var(--separator-soft);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-body);
}
.master-track-chip {
  border: 0;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 7px;
  padding: 3px 9px;
  font-size: 0.78rem;
  font-weight: 600;
}
.master-view-body {
  font-size: 0.9rem;
  color: var(--ink-body);
  line-height: 1.55;
}
.master-view-rule {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 6px;
}

.dual-ledger-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.ledger-box {
  padding: 9px 10px;
  border-radius: 9px;
  background: var(--bg-stage);
  border: 1px solid var(--separator-soft);
}
.ledger-box .v {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
}

.consult-bottom-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 4px 0 18px;
}
.consult-bottom-actions .btn {
  height: 44px;
  font-size: 0.9rem;
}

.ipo-check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ipo-check-item {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-stage);
}
.ipo-check-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 3px;
}
.ipo-check-item p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}

.portfolio-health-card.is-neg {
  border-left: 3px solid var(--neg);
}
.portfolio-health-card.is-warn {
  border-left: 3px solid var(--warn);
}
.portfolio-health-card.is-pos {
  border-left: 3px solid var(--pos);
}
.portfolio-check-list {
  padding-left: 18px;
  font-size: 0.86rem;
  color: var(--ink-body);
  line-height: 1.55;
}
.pos-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pos-row-main {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pos-sym {
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--font-mono);
}
.pos-row-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.pos-del-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: var(--bg-fill);
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1;
}

/* ==================== Minimalist Google-Style Ask Home, 4-Tab Asset Analysis & Progressive Disclosure ==================== */

.ios-segmented.is-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ios-segmented.is-4 .seg-btn {
  font-size: 0.8rem;
  padding: 0 3px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.secondary-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.markets-head-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.markets-head-links .meta-dot {
  color: var(--tertiary);
}

/* Serene Google-Style Empty Ask Home */
.ask-home-stage {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 28px 0 18px;
}

.ask-hero-brand {
  text-align: center;
  margin-bottom: 24px;
}

.ask-brand-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.ask-brand-word {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.ask-brand-sub {
  margin-top: 6px;
  font-size: 0.86rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.ask-search-shell {
  margin-bottom: 26px;
}

.ask-search-form {
  position: relative;
}

.ask-search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid rgba(15, 76, 66, 0.16);
  border-radius: 999px;
  padding: 6px 6px 6px 15px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ask-search-pill:focus-within {
  border-color: var(--accent);
  box-shadow: 0 6px 22px rgba(15, 76, 66, 0.12);
}

.ask-search-ico {
  color: var(--tertiary);
  flex-shrink: 0;
}

.ask-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 0.96rem;
  color: var(--ink);
  padding: 6px 0;
  font-family: inherit;
}

.ask-search-input::placeholder {
  color: var(--tertiary);
}

.ask-clear-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: var(--bg-fill);
  color: var(--muted);
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ask-submit-btn {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 600;
  height: 36px;
  padding: 0 16px;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.12s ease;
}

.ask-submit-btn:active {
  transform: scale(0.97);
}

.ask-submit-btn:disabled {
  opacity: 0.6;
}

.ask-cost-toggle-row {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.ask-cost-toggle-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.ask-cost-toggle-btn.is-open,
.ask-cost-toggle-btn:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.ask-cost-drawer {
  margin-top: 10px;
  padding: 12px;
  border-radius: var(--radius-card);
  background: var(--bg-card);
  border: 1px solid var(--separator-soft);
  box-shadow: var(--shadow-card);
}

.ask-samples-wrap {
  margin-bottom: 20px;
}

.ask-samples-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tertiary);
  margin: 0 0 8px 6px;
}

.ask-sample-list {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.ask-sample-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px;
  border: 0;
  border-bottom: 0.5px solid var(--separator-soft);
  background: transparent;
  text-align: left;
  transition: background 0.14s ease;
}

.ask-sample-row:last-child {
  border-bottom: 0;
}

.ask-sample-row:active,
.ask-sample-row:hover {
  background: var(--bg-stage);
}

.ask-sample-q {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  min-width: 0;
}

.ask-sample-tag {
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--bg-stage);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
}

.ask-home-guard {
  margin-bottom: 14px;
}

.ask-home-foot {
  text-align: center;
  padding-top: 4px;
}

/* Ask Results State (Compact Top Search + 3-Block Clear Verdict) */
.ask-results-top {
  margin-bottom: 14px;
}

.ask-verdict-card {
  margin-bottom: 12px;
  border-top: 3px solid var(--accent);
}

.ask-verdict-card.is-pos {
  border-top-color: var(--pos);
}

.ask-verdict-card.is-warn {
  border-top-color: var(--warn);
}

.ask-verdict-card.is-neg {
  border-top-color: var(--neg);
}

.ask-verdict-headline {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.48;
  margin: 8px 0 12px;
}

.ask-key-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.ask-km-item {
  background: var(--bg-stage);
  border-radius: 10px;
  padding: 9px 11px;
  border: 1px solid var(--separator-soft);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ask-km-item .k {
  font-size: 0.78rem;
  color: var(--muted);
}

.ask-km-item .v {
  font-family: var(--font-num);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.ask-km-item .v.pos {
  color: var(--pos);
}

.ask-km-item .v.neg {
  color: var(--neg);
}

.ask-thermo {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-stage);
  margin-bottom: 12px;
}

.ask-thermo.is-redflag {
  background: var(--neg-bg);
}

.ask-thermo-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.ask-thermo-px {
  font-size: 0.88rem;
  color: var(--muted);
  font-family: var(--font-num);
}

.ask-thermo-px strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.ask-action-line {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
}

.ask-action-k {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2px;
}

.ask-action-line p {
  font-size: 0.9rem;
  color: var(--ink-body);
  line-height: 1.5;
}

.ask-cost-nudge {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 0.5px solid var(--separator-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Strategy Support vs Conflict Card */
.ask-strategy-card {
  margin-bottom: 12px;
}

.ask-strategy-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.ask-strategy-summary {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

.strat-group {
  margin-top: 10px;
}

.strat-group:first-of-type {
  margin-top: 4px;
}

.strat-group-lbl {
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.strat-group-lbl.is-support,
.strat-cat-head.is-support {
  color: var(--pos);
}

.strat-group-lbl.is-conflict,
.strat-cat-head.is-conflict {
  color: var(--neg);
}

.strat-group-lbl.is-neutral,
.strat-cat-head.is-neutral {
  color: var(--muted);
}

.strat-cat-head {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 2px 4px 6px;
}

.strat-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.strat-pill {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.82rem;
  text-align: left;
  transition: transform 0.12s ease, background 0.15s ease;
}

.strat-pill:active {
  transform: scale(0.98);
}

.strat-pill.is-support {
  background: var(--pos-bg);
  border-color: rgba(20, 108, 73, 0.18);
  color: var(--pos);
}

.strat-pill.is-conflict {
  background: var(--neg-bg);
  border-color: rgba(182, 52, 42, 0.18);
  color: var(--neg);
}

.strat-pill.is-neutral {
  background: var(--bg-stage);
  border-color: var(--separator);
  color: var(--ink-body);
}

.strat-pill-name {
  font-weight: 600;
}

.strat-pill-metric {
  font-size: 0.78rem;
  opacity: 0.86;
}

.ask-answer-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.ask-answer-actions .btn {
  height: 44px;
  font-size: 0.92rem;
}

@media (min-width: 520px) {
  .ask-answer-actions {
    grid-template-columns: 1.6fr 1fr;
  }
}

/* Asset Strategy Tab Progressive Disclosures */
.strat-disc-left {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.strat-disc-left strong {
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 600;
}

.strat-disc-sub {
  font-size: 0.78rem;
  color: var(--muted);
}

.strat-disc-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.strat-detail-foot {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 0.5px solid var(--separator-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.strat-lineage-note {
  font-size: 0.78rem;
  color: var(--tertiary);
}

.portfolio-health-wrap.is-neg {
  border-left: 3px solid var(--neg);
}

.portfolio-health-wrap.is-warn {
  border-left: 3px solid var(--warn);
}

.portfolio-health-wrap.is-pos {
  border-left: 3px solid var(--pos);
}

/* ==================== Round 2: Transparent Reasoning Trace, Prominent Verdict, Follow-ups & Market->Ask Bridge ==================== */

.ask-trace-card {
  background: var(--bg-card);
  border: 1px solid var(--separator-soft);
  border-radius: var(--radius-card);
  padding: 13px 15px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}

.ask-trace-card.is-loading {
  border-color: rgba(15, 76, 66, 0.2);
}

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

.ask-trace-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.ask-trace-badge {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg-stage);
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.ask-trace-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 14px;
  border-left: 1.5px solid rgba(15, 76, 66, 0.18);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ask-trace-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ask-trace-step::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-card);
}

.ask-trace-top {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.ask-trace-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.38;
}

.ask-trace-why {
  font-size: 0.78rem;
  color: var(--tertiary);
  line-height: 1.35;
}

.ask-trace-finding {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-body);
  line-height: 1.52;
}

.ask-loading-steps {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
}

.ask-verdict-answer {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: var(--ink-body);
  line-height: 1.56;
}

.ask-km-item .v.warn {
  color: var(--warn);
}

.ask-thermo.is-turnaround {
  background: var(--warn-bg);
}

.ask-thermo-sub {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--ink-body);
  line-height: 1.48;
}

.ask-followup-wrap {
  margin: 0 0 12px;
}

.ask-followup-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ask-followup-chip {
  border: 1px solid var(--separator);
  background: var(--bg-card);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  line-height: 1.3;
  text-align: left;
  box-shadow: var(--shadow-card);
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.12s ease;
}

.ask-followup-chip:hover,
.ask-followup-chip:active {
  background: var(--bg-stage);
  border-color: var(--accent);
}

.ask-followup-chip.is-cost {
  background: var(--accent-soft);
  border-color: rgba(15, 76, 66, 0.24);
  color: var(--accent);
  font-weight: 600;
}

.ask-unsupported-card {
  border-top: 3px solid var(--warn);
}

.ask-cap-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.ask-cap-main strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.ask-cap-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.42;
}

.strat-inline-row {
  padding: 11px 0;
  border-bottom: 0.5px solid var(--separator-soft);
}

.strat-inline-row:first-child {
  padding-top: 2px;
}

.strat-inline-row:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.strat-inline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.strat-inline-head strong {
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 600;
}

.strat-inline-metric {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 5px;
}

/* Subtle bridge at bottom of shared Market Dossier (#study/:id -> #ask) */
.ask-bridge-strip {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px;
  margin-bottom: 12px;
  border: 1px solid rgba(15, 76, 66, 0.18);
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, rgba(15, 76, 66, 0.06), rgba(196, 154, 82, 0.06));
  text-align: left;
  box-shadow: var(--shadow-card);
  transition: transform 0.12s ease, border-color 0.15s ease;
}

.ask-bridge-strip:active {
  transform: scale(0.99);
}

.ask-bridge-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ask-bridge-main strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
}

.ask-bridge-main span {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}
