/* Rubik: identical OFL webfont files to the reference site. See docs/portal-design.md. */
@font-face {
  font-family: "Rubik";
  src: url("/RubikRegular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap
}

@font-face {
  font-family: "Rubik";
  src: url("/RubikMedium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap
}

@font-face {
  font-family: "Rubik";
  src: url("/RubikSemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap
}

@font-face {
  font-family: "Rubik";
  src: url("/RubikBold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap
}

@font-face {
  font-family: "Pretendard";
  src: url("/Pretendard-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap
}

@font-face {
  font-family: "Pretendard";
  src: url("/Pretendard-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap
}

:root {
  --paper: #FAFAFA;
  --ink: #001317;
  --muted: #253739;
  --cream: var(--yellow);
  --coral: var(--pink);
  --lilac: var(--turquoise);
  --mint: var(--turquoise);
  --line: rgba(0, 19, 23, .24);
  --max: 1120px;
  font-family: Rubik, Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-tap-highlight-color: transparent;
  font-synthesis: none;
  font-synthesis-weight: none;
  --turquoise: #49c5b6;
  --pink: #FF9398;
  --yellow: #ECD06F
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  min-width: 320px;
  font-size: 18px;
  line-height: 1.55
}

@media (pointer: coarse) {
  html { overscroll-behavior-y: contain }
}

.pull-refresh-status {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  border: 1px solid var(--ink);
  border-radius: 24px;
  padding: 10px 18px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  white-space: nowrap;
  pointer-events: none;
}

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

button {
  cursor: pointer
}

button {
  border: 0;
  background: none
}

button:disabled {
  cursor: not-allowed;
  opacity: .7
}

a {
  color: inherit
}

/* Keep navigation focus on a heading, with a visible keyboard indicator. */
.view-focus {
  scroll-margin-top: 16px
}

.view-focus:focus {
  outline: none
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
.view-focus:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 5px
}

button:focus-visible {
  border-radius: 5px
}

.site-header :focus-visible,
.mobile-nav :focus-visible,
.selection-dock :focus-visible {
  outline-color: var(--paper)
}

svg {
  display: block
}

p,
h1,
h2,
h3,
h4 {
  margin: 0
}

button svg {
  pointer-events: none
}

[hidden] {
  display: none !important
}

.wrap {
  width: min(var(--max), calc(100% - 64px));
  margin-inline: auto
}

.skip-link {
  position: fixed;
  left: 20px;
  top: 16px;
  padding: 15px;
  background: var(--cream);
  transform: translateY(-160%);
  z-index: 30
}

.skip-link:focus {
  transform: translateY(0)
}

.mode-banner {
  min-height: 35px;
  padding: 10px 24px;
  text-align: center;
  background: var(--yellow);
  color: var(--ink);
  font-size: 13px;
  letter-spacing: .02em;
  line-height: 1.5
}

.mode-banner b {
  font-size: 12px;
  margin-right: 13px;
  letter-spacing: .025em
}

.mode-banner a {
  margin-left: 18px;
  text-underline-offset: 3px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  min-height: 44px
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: auto;
  border-bottom: 0;
  gap: 28px;
  min-height: 112px;
  padding: 24px max(32px, calc((100% - var(--max)) / 2));
  background: var(--ink);
  color: var(--paper);
  border-radius: 0 0 32px 32px
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: .025em;
  flex-shrink: 0;
  min-height: 44px
}

.wordmark b {
  font-size: 18px;
  letter-spacing: .055em
}

.wordmark svg {
  width: 44px;
  fill: none;
  stroke: var(--turquoise);
  stroke-width: 2
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 10px
}

.desktop-nav button {
  padding: 12px 16px;
  font-size: 18px;
  border-bottom: 2px solid transparent;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  border: 0;
  border-radius: 12px;
  white-space: nowrap
}

.desktop-nav button[aria-current="page"] {
  font-weight: 700;
  background: var(--turquoise);
  color: var(--ink)
}

.desktop-nav button[data-view="approval"][aria-current="page"] {
  background: var(--pink)
}

.desktop-nav button[data-view="products"][aria-current="page"] {
  background: var(--yellow)
}

.desktop-nav span {
  font-size: 12px;
  vertical-align: super;
  margin-left: 5px
}

.account-button {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-weight: 700;
  background: var(--pink);
  color: var(--ink);
  border-radius: 12px;
  min-height: 44px;
  white-space: nowrap
}

.account-button>span:last-child {
  font-size: 18px;
  margin-left: 4px
}

.status-dot {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0
}

.intro {
  padding: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 32px;
  align-items: center;
  margin: 32px 0 56px;
  background: var(--turquoise);
  border-radius: 32px
}

.eyebrow {
  font-size: 12px;
  letter-spacing: .035em;
  font-weight: 700;
  line-height: 1.5
}

.intro .eyebrow {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap
}

.eyebrow-separator {
  margin: 0 3px;
  opacity: .5
}

h1 {
  font-size: 60px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.025em;
  margin: 22px 0 20px;
  position: relative;
  display: inline-block
}

h1>span {
  font-weight: 700
}

.heading-star {
  width: 42px;
  position: absolute;
  right: -56px;
  top: 54px;
  stroke: currentColor;
  stroke-width: 2;
  transform: rotate(8deg)
}

.intro-description {
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: normal;
  color: var(--ink)
}

.daily-note {
  border-top: 0;
  border-bottom: 0;
  padding: 26px;
  margin-bottom: 0;
  background: var(--ink);
  color: var(--paper);
  border-radius: 24px;
  --line: rgba(250, 250, 250, .3)
}

.daily-note .eyebrow {
  display: flex;
  justify-content: space-between;
  letter-spacing: .03em;
  color: var(--turquoise)
}

.daily-note .eyebrow span {
  font-size: 22px;
  line-height: 1
}

.note-date {
  font-size: 14px;
  margin-top: 8px;
  letter-spacing: normal
}

.daily-counts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 22px 0
}

.daily-counts>div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 14px;
  border-left: 1px solid var(--line)
}

.daily-counts>div:first-child {
  padding-left: 0;
  border-left: 0
}

.daily-counts strong {
  font-size: 44px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
  color: var(--yellow)
}

.daily-counts span {
  font-size: 13px
}

.note-foot {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--paper)
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px
}

.section-heading h2 {
  font-size: 36px;
  letter-spacing: normal;
  line-height: 1.15;
  font-weight: 700;
  text-transform: uppercase
}

.section-heading h2 .small-count {
  font-size: 14px;
  vertical-align: top;
  margin-left: 8px;
  position: relative;
  top: 3px;
  letter-spacing: 0
}

.section-heading .eyebrow {
  margin-bottom: 8px
}

.section-heading .heading-subtitle {
  font-size: 16px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.6
}

.text-link {
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-underline-offset: 4px;
  padding: 10px 0;
  white-space: nowrap;
  font-weight: 700
}

.text-link span {
  font-size: 22px
}

.toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  margin-bottom: 10px
}

.filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.filter {
  font-size: 14px;
  padding: 10px 15px;
  border-radius: 12px;
  border: 1px solid var(--ink);
  font-weight: 700;
  min-height: 44px
}

.filter[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper)
}

.search-control {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 270px;
  padding-bottom: 3px;
  width: 270px;
  border: 1px solid var(--ink);
  padding: 3px 12px;
  border-radius: 12px;
  background: var(--paper);
  min-height: 44px
}

.search-control svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4
}

.search-control input {
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 16px;
  padding: 7px 0;
  outline-offset: 2px
}

.search-control input::placeholder {
  color: var(--muted);
  opacity: 1
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 24px
}

.research-card {
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column
}

.oval-open {
  display: block;
  width: 100%;
  padding: 0;
  border-radius: 50%;
  text-align: center;
  position: relative;
  isolation: isolate;
  transition: transform .25s ease
}

.oval-open:hover {
  transform: translateY(-5px)
}

.oval-open:focus-visible {
  border-radius: 50%
}

.oval {
  width: 100%;
  border-radius: 50%;
  aspect-ratio: .82;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 17% 11% 14%;
  background: var(--cream);
  color: var(--ink)
}

.coral .oval {
  background: var(--coral)
}

.lilac .oval {
  background: var(--lilac)
}

.mint .oval {
  background: var(--mint)
}

.ink .oval {
  background: var(--ink);
  color: var(--paper);
  --line: rgba(250, 250, 250, .4)
}

.card-index {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  letter-spacing: normal;
  font-weight: 500
}

.oval .mini-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .025em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  line-height: 1.5;
  font-weight: 500
}

.oval .mini-label:before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor
}

.oval .candidate-context {
  display: block;
  width: 100%;
  max-width: 70%;
  flex-shrink: 0;
  font-size: 12px;
  text-transform: none;
  letter-spacing: normal;
  text-wrap: balance
}

.oval .candidate-context:before {
  display: none
}

.candidate-asset {
  white-space: nowrap;
  font-weight: 700;
  margin-right: 6px
}

.candidate-signals {
  word-break: keep-all;
  overflow-wrap: anywhere
}

.detail-inputs {
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.7
}

.economic-section {
  margin: 24px 0
}

.economic-section h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700
}

.economic-section p {
  margin: 0;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: anywhere
}

.research-evidence {
  margin-top: 28px;
  border-top: 1px solid var(--line)
}

.research-evidence>summary {
  padding: 18px 0;
  font-size: 14px;
  cursor: pointer
}

.oval .metric-value {
  font-size: 72px;
  line-height: 1;
  letter-spacing: -.045em;
  font-weight: 500;
  margin-top: 13px
}

.metric-unit {
  font-size: 20px;
  letter-spacing: -.05em;
  margin-left: 4px
}

.metric-label {
  font-size: 13px;
  margin-top: 7px;
  line-height: 1.5
}

.oval-chart {
  width: 100%;
  margin-top: 12px;
  margin-bottom: 2px;
  overflow: visible
}

.chart-grid {
  stroke: currentColor;
  opacity: .16;
  stroke-width: .6;
  fill: none
}

.chart-main {
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none
}

.chart-baseline {
  stroke: currentColor;
  opacity: .75;
  stroke-width: 1.8;
  stroke-dasharray: 4 4;
  fill: none
}

.chart-axis {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  line-height: 1.5;
  margin: 6px 0;
  padding: 0 8px;
  color: inherit
}

.chart-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 11px;
  line-height: 1.5;
  margin-top: 2px;
  flex-wrap: wrap
}

.chart-legend>span {
  display: flex;
  align-items: center;
  gap: 5px
}

.legend-line {
  display: inline-block;
  width: 15px;
  border-top: 2px solid currentColor
}

.legend-line.dashed {
  border-top-style: dashed;
  opacity: .75
}

.oval-bottom {
  font-size: 12px;
  line-height: 1.6;
  margin-top: 16px;
  opacity: 1
}

.oval .quote-mark {
  font-family: inherit;
  font-size: 70px;
  line-height: .65;
  margin: 20px 0 0;
  font-weight: 700
}

.oval .hypothesis-quote {
  font-size: 26px;
  line-height: 1.45;
  letter-spacing: -.02em;
  font-weight: 700;
  margin: 4px 0 19px
}

.oval .relationship {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px
}

.relationship>span {
  border: 1px solid currentColor;
  border-radius: 25px;
  padding: 7px 9px
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.5
}

.mini-table th {
  font-weight: 400;
  text-align: left
}

.mini-table td {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums
}

.mini-table tr {
  border-bottom: 1px solid var(--line)
}

.mini-table tr:last-child {
  border: 0
}

.mini-table td,
.mini-table th {
  padding: 10px 0
}

.card-caption {
  padding: 24px 2px 0;
  display: flex;
  flex: 1;
  flex-direction: column
}

.card-meta {
  font-size: 12px;
  letter-spacing: .02em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  gap: 10px;
  flex-wrap: wrap;
  line-height: 1.5
}

.card-meta .status-pill {
  font-size: 12px;
  letter-spacing: normal
}

.card-title {
  word-break: keep-all;
  font-size: 24px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -.015em;
  margin: 14px 0 10px
}

.card-title button {
  padding: 0;
  text-align: left;
  font-weight: inherit;
  min-height: 44px
}

.card-title button:hover {
  text-decoration: underline;
  text-underline-offset: 5px
}

.card-description {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  min-height: 0;
  margin: 0 0 20px;
  word-break: keep-all;
  overflow-wrap: anywhere
}

.card-actions {
  border-top: 1px solid var(--line);
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px
}

.select-button {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  font-size: 14px;
  padding: 8px 0;
  font-weight: 700;
  min-height: 44px
}

.selection-box {
  width: 22px;
  height: 22px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-content: center;
  font-size: 14px;
  flex-shrink: 0
}

.select-button[aria-pressed="true"] .selection-box {
  background: var(--ink);
  color: var(--paper)
}

.arrow-button {
  font-size: 25px;
  line-height: 1;
  padding: 5px;
  min-width: 44px;
  min-height: 44px
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  border: 1px solid currentColor;
  border-radius: 20px;
  padding: 5px 9px;
  white-space: nowrap
}

.status-pill:before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor
}

.status-pill.status-held {
  color: #7a321b
}

.gallery-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 32px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 14px;
  color: var(--muted);
  gap: 15px;
  line-height: 1.6
}

.gallery-summary .text-link {
  color: var(--ink);
  font-size: 14px
}

.process-note {
  border-top: 0;
  padding: 32px;
  margin-top: 56px;
  background: var(--pink);
  border-radius: 24px
}

.process-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 22px;
  gap: 16px;
  font-size: 16px;
  letter-spacing: -.035em;
  line-height: 1.5
}

.process-steps b {
  font-size: 13px;
  display: block;
  margin-bottom: 8px;
  letter-spacing: .04em;
  font-weight: 400;
  opacity: 1
}

.process-steps i {
  font-size: 23px;
  font-style: normal;
  opacity: .6
}

.process-note>p:last-child {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.6
}

.market-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px }
.market-heading h2 { font-size: 28px; margin: 12px 0 0; line-height: 1.3; letter-spacing: -.04em }
.market-source { font-size: 13px; white-space: nowrap; padding-top: 3px }
.market-notice { font-size: 14px; line-height: 1.6; margin: 18px 0 }
.market-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 24px }
.market-group h3 { font-size: 16px; margin: 0 0 12px }
.market-quote-list { list-style: none; padding: 0; margin: 0; background: rgba(255,255,255,.46); border-radius: 16px }
.market-quote { padding: 16px; border-bottom: 1px solid rgba(0,19,23,.14) }
.market-quote:last-child { border-bottom: 0 }
.market-quote-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px }
.market-symbol { font-size: 16px }
.market-name { display: block; font-size: 12px; margin-top: 4px; line-height: 1.4 }
.market-value { text-align: right; flex-shrink: 0 }
.market-value strong { display: block; font-size: 23px; font-weight: 500; line-height: 1.2; font-variant-numeric: tabular-nums }
.market-value small { display: block; font-size: 11px; margin-top: 7px }
.market-state { padding: 3px 6px; border-radius: 20px; background: rgba(255,255,255,.65) }
.market-state[data-status="LIVE"] { background: var(--mint) }
.market-state[data-status="STALE"], .market-state[data-status="DISCONNECTED"], .market-state[data-status="BLOCKED"] { background: var(--ink); color: var(--paper, #FAFAFA) }
.market-clocks { display: flex; flex-wrap: wrap; gap: 3px 12px; margin-top: 12px; font-size: 11px; line-height: 1.5; font-variant-numeric: tabular-nums }
.market-footnote { margin: 20px 0 0 }
@media (max-width: 650px) {
  .market-heading { display: block }
  .market-heading h2 { font-size: 24px }
  .market-source { display: block; margin-top: 12px }
  .market-groups { grid-template-columns: 1fr; gap: 24px }
  .market-quote { padding: 14px }
  .market-value strong { font-size: 22px }
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  letter-spacing: .03em;
  gap: 18px;
  line-height: 1.6;
  color: var(--muted)
}

.site-footer button {
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  font-weight: 700
}

.mobile-nav {
  display: none
}

.data-notice {
  border: 0;
  border-radius: 16px;
  padding: 18px 22px;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 29px;
  background: var(--yellow);
  overflow-wrap: anywhere;
  color: var(--ink)
}

.data-notice button {
  font-size: inherit;
  text-decoration: underline;
  margin-left: 10px
}

.empty-state,
.loading-state {
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 42px 24px
}

.empty-oval {
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 110px;
  height: 140px;
  display: grid;
  place-content: center;
  font-size: 45px;
  margin-bottom: 24px;
  transform: rotate(20deg)
}

.empty-state h3 {
  font-size: 28px;
  letter-spacing: -.04em;
  font-weight: 700;
  line-height: 1.35
}

.empty-state p {
  font-size: 16px;
  line-height: 1.65;
  max-width: 390px;
  color: var(--muted);
  margin-top: 14px;
  word-break: keep-all
}

.empty-state .button {
  margin-top: 24px
}

.loading-state {
  min-height: 350px;
  gap: 25px;
  font-size: 12px
}

.loading-orbit {
  height: 75px;
  width: 53px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  animation: orbit 2s linear infinite
}

@keyframes orbit {
  to {
    transform: rotate(360deg)
  }
}

.button {
  border: 1px solid var(--ink);
  border-radius: 12px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 16px;
  font-weight: 700;
  min-height: 48px;
  line-height: 1.35
}

.button.primary {
  background: var(--ink);
  color: var(--paper)
}

.button.light {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--paper)
}

.button .arrow {
  font-size: 18px
}

.button:hover:not(:disabled) {
  filter: brightness(.93)
}

.selection-dock {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 20px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 8px 25px #0013171f;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 6;
  min-width: 360px;
  font-size: 16px;
  max-width: 560px
}

.selection-dock .button {
  padding: 11px 20px;
  min-height: 40px
}

.selection-dock small {
  font-size: 12px;
  opacity: 1;
  display: block;
  margin-top: 4px
}

.approval-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  gap: 32px
}

.approval-list {
  border-top: 1px solid var(--ink)
}

.approval-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line)
}

.tiny-oval {
  width: 45px;
  height: 60px;
  border-radius: 50%;
  background: var(--cream);
  display: grid;
  place-content: center;
  font-size: 13px;
  flex-shrink: 0
}

.tiny-oval.coral {
  background: var(--coral)
}

.tiny-oval.lilac {
  background: var(--lilac)
}

.approval-item h3 {
  font-size: 20px;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: -.01em
}

.approval-item p {
  font-size: 14px;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.55
}

.approval-item .remove {
  font-size: 20px;
  margin-left: auto;
  padding: 10px;
  min-height: 44px;
  min-width: 44px
}

.policy-panel {
  border-radius: 24px;
  background: #F0F4F2;
  padding: 28px;
  color: var(--ink);
  border: 1px solid var(--line)
}

.policy-panel h3 {
  font-size: 28px;
  letter-spacing: -.015em;
  font-weight: 700;
  margin: 9px 0 24px;
  line-height: 1.35
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.55;
  word-break: keep-all
}

.detail-table tr {
  border-bottom: 1px solid var(--line)
}

.detail-table th {
  text-align: left;
  font-weight: 400;
  padding: 14px 8px 14px 0;
  color: var(--muted)
}

.detail-table td {
  text-align: right;
  padding: 14px 0 14px 8px;
  font-variant-numeric: tabular-nums
}

.detail-table thead {
  font-size: 13px;
  letter-spacing: .03em;
  background: var(--paper);
  color: var(--ink)
}

.detail-table thead th {
  text-align: right
}

.detail-table thead th:first-child {
  text-align: left
}

.policy-panel .button {
  width: 100%;
  margin-top: 25px
}

.consent-label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.6;
  margin-top: 23px;
  cursor: pointer;
  word-break: keep-all
}

.consent-label input {
  accent-color: var(--ink);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin: 2px 0 0
}

.policy-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 15px
}

.request-select {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 16px;
  margin: 15px 0 20px;
  min-height: 48px
}

.section-tabs {
  display: flex;
  gap: 17px;
  margin-top: 25px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px
}

.section-tabs button {
  padding: 10px 0;
  font-size: 16px;
  border-bottom: 2px solid transparent;
  font-weight: 700;
  min-height: 44px
}

.section-tabs button[aria-pressed="true"] {
  border-color: var(--ink);
  font-weight: 700
}

.product-kind {
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase
}

.product-stat {
  font-size: 46px;
  letter-spacing: -.04em;
  margin-top: 23px;
  white-space: nowrap;
  font-weight: 500
}

.product-stat small {
  font-size: 13px;
  letter-spacing: 0
}

.allocation-ring {
  width: 170px;
  height: 170px;
  margin: 20px auto 8px
}

.allocation-ring circle {
  fill: none;
  stroke-width: 16;
  transform: rotate(-90deg);
  transform-origin: 50% 50%
}

.allocation-ring text {
  fill: currentColor;
  text-anchor: middle;
  font-size: 28px;
  letter-spacing: -.04em
}

.allocation-ring .ring-label {
  font-size: 9px;
  letter-spacing: 0
}

.activity-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px;
  padding: 19px 0;
  border-top: 1px solid var(--line);
  align-items: center
}

.activity-row p {
  font-size: 16px;
  line-height: 1.5
}

.activity-row small {
  font-size: 13px;
  color: var(--muted)
}

.history-list {
  margin-top: 35px
}

.history-list h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 18px
}

.detail-dialog {
  color: var(--ink);
  background: var(--paper);
  padding: 0;
  border: 0;
  border-radius: 28px;
  width: min(800px, calc(100% - 48px));
  max-height: calc(100dvh - 60px);
  overscroll-behavior: contain
}

.detail-dialog::backdrop {
  background: #00131780;
  backdrop-filter: blur(5px)
}

.dialog-head {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  background: var(--turquoise);
  z-index: 2;
  border-bottom: 1px solid var(--line);
  gap: 12px;
  color: var(--ink)
}

.dialog-head .eyebrow {
  font-size: 12px
}

.dialog-close {
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 23px;
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px
}

.dialog-body {
  padding: 32px
}

.dialog-body h2 {
  font-size: 36px;
  line-height: 1.3;
  letter-spacing: -.02em;
  font-weight: 700
}

.dialog-body .subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 11px
}

.hypothesis-box {
  border-left: 2px solid var(--ink);
  padding: 24px;
  margin: 28px 0;
  font-size: 18px;
  line-height: 1.65;
  word-break: keep-all;
  background: var(--pink);
  color: var(--ink);
  border-radius: 18px
}

.hypothesis-box .eyebrow {
  font-size: 12px;
  display: block;
  margin-bottom: 8px
}

.detail-chart {
  background: #F0F4F2;
  border-radius: 18px;
  padding: 24px;
  margin: 25px 0;
  color: var(--ink)
}

.detail-chart .chart-legend {
  font-size: 13px;
  margin: 14px 0 9px
}

.detail-chart svg {
  width: 100%
}

.chart-caption {
  font-size: 13px;
  text-align: center;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 12px
}

.detail-section-title {
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 12px
}

.verification-track {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px
}

.verification-track span {
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  padding: 8px 11px;
  line-height: 1.5
}

.detail-footnote {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 20px 0;
  word-break: keep-all;
  overflow-wrap: anywhere
}

.dialog-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 23px;
  margin-top: 28px;
  gap: 15px
}

.dialog-actions small {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5
}

.auth-illustration {
  width: 70px;
  height: 90px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  margin: 5px auto 25px;
  display: grid;
  place-content: center;
  font-size: 30px
}

.auth-body {
  text-align: center;
  padding-bottom: 45px
}

.auth-body p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin: 18px auto 25px;
  max-width: 380px;
  word-break: keep-all
}

.auth-body .button {
  width: 100%;
  margin-bottom: 12px
}

.auth-field {
  text-align: left;
  margin: 20px 0
}

.auth-field label {
  font-size: 14px;
  display: block;
  margin-bottom: 8px
}

.auth-field input {
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 16px
}

.auth-error {
  color: #923318 !important;
  min-height: 22px;
  font-size: 14px
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 102px;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  width: max-content;
  z-index: 25;
  background: var(--ink);
  color: var(--cream);
  padding: 15px 25px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 8px 30px #0013171f
}

.approval-receipt {
  padding: 23px;
  border: 1px solid var(--ink);
  border-radius: 15px;
  margin: 23px 0;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  background: #F0F4F2
}

.approval-receipt strong {
  display: block;
  margin-bottom: 9px;
  font-size: 20px
}

.table-scroll {
  overflow: auto
}

.policy-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 16px;
  line-height: 1.7
}

.policy-list li {
  font-size: 12px;
  padding: 9px 0;
  line-height: 1.8;
  border-bottom: 1px solid var(--line)
}

/* Keep primary actions easy to tap and the first discovery close on small phones. */

.google-signin {
  display: flex;
  justify-content: center;
  min-height: 46px;
  margin: 24px auto;
  max-width: 360px;
  width: 100%
}

.policy-details {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px
}

.policy-details summary {
  font-size: 14px;
  line-height: 1.9;
  cursor: pointer;
  padding: 6px 0;
  min-height: 44px
}

.policy-details td {
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 240px;
  white-space: pre-line
}

.policy-details th {
  min-width: 100px
}

.policy-details code {
  overflow-wrap: anywhere;
  font-size: 12px
}

.policy-details .detail-table {
  font-size: 13px
}

.hypothesis-quote {
  overflow-wrap: anywhere
}

.card-title,
.card-description {
  overflow-wrap: anywhere
}

.site-header.wrap {
  width: 100%
}

.intro-copy {
  min-width: 0
}

.section-heading>.text-link {
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 700;
  min-height: 44px
}

.approval-item h3 button {
  min-height: 44px;
  padding: 8px 0;
  text-align: left
}

.oval .chart-caption {
  color: inherit;
  opacity: 1
}

body:has(#selection-dock:not([hidden])) .site-footer {
  padding-bottom: 140px
}

/* Match the reference's generous gutters and readable type on smaller screens. */
@media(max-width:1100px) {
  .desktop-nav { gap: 4px }
  .desktop-nav button { font-size: 16px; padding: 12px }
  .intro { grid-template-columns: minmax(0, 1fr) 280px; padding: 32px; gap: 24px }
  h1 { font-size: 48px }
  .heading-star { width: 34px; right: -43px; top: 48px }
  .gallery { gap: 36px 24px }
  .oval .metric-value { font-size: 60px }
  .oval .hypothesis-quote { font-size: 23px }
  .oval .mini-label { font-size: 10px }
  .mini-table { font-size: 12px }
  .card-title { font-size: 22px }
  .process-steps { font-size: 14px; gap: 12px }
}

@media(max-width:1023px) {
  .desktop-nav { display: none }
  .site-header { min-height: 96px; padding: 20px 32px }
  .intro { grid-template-columns: 1fr; gap: 28px }
  .daily-note { padding: 24px }
  .daily-counts { margin: 20px 0 }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .oval .metric-value { font-size: 72px }
  .oval .hypothesis-quote { font-size: 26px }
  .oval .mini-label { font-size: 11px }
  .approval-layout { grid-template-columns: 1fr; gap: 32px }
  .mobile-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0;
    min-height: calc(78px + env(safe-area-inset-bottom));
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    align-items: stretch; justify-content: space-around;
    background: var(--ink); color: var(--paper); gap: 8px; z-index: 10
  }
  .mobile-nav button {
    flex: 1; min-width: 0; min-height: 60px; padding: 8px 4px;
    color: var(--paper); display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 5px;
    font-size: 14px; font-weight: 700; line-height: 1.2; border-radius: 12px
  }
  .mobile-nav button[aria-current="page"] { background: var(--turquoise); color: var(--ink) }
  .mobile-nav button[data-view="approval"][aria-current="page"] { background: var(--pink) }
  .mobile-nav button[data-view="products"][aria-current="page"] { background: var(--yellow) }
  .mobile-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8 }
  .mobile-nav small { font-size: 12px; margin-left: 4px }
  .selection-dock {
    bottom: calc(94px + env(safe-area-inset-bottom)); width: calc(100% - 32px);
    min-width: 0; max-width: 520px; padding: 14px 18px; gap: 16px; font-size: 15px
  }
  .selection-dock .button { font-size: 15px; padding: 11px 16px }
  .site-footer { padding-bottom: 125px; flex-wrap: wrap }
  body:has(#selection-dock:not([hidden])) .site-footer { padding-bottom: calc(220px + env(safe-area-inset-bottom)) }
  .process-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; font-size: 16px }
  .process-steps i { display: none }
  .toast { bottom: calc(178px + env(safe-area-inset-bottom)) }
}

@media(max-width:600px) {
  body { font-size: 16px }
  .wrap { width: calc(100% - 32px) }
  .mode-banner { padding: 10px 16px; font-size: 12px; text-align: left }
  .mode-banner b { margin-right: 7px; font-size: 11px }
  .mode-banner a { margin-left: 0; margin-top: 3px }
  .site-header { min-height: 88px; padding: 18px 16px; gap: 12px; border-radius: 0 0 20px 20px }
  .wordmark { font-size: 10px; gap: 8px }
  .wordmark b { font-size: 15px }
  .wordmark svg { width: 32px }
  .account-button { font-size: 12px; padding: 10px 12px; gap: 6px }
  .account-button>span:last-child { margin-left: 0; font-size: 16px }
  .intro { margin: 24px 0 36px; padding: 24px; gap: 24px; border-radius: 24px }
  .intro h1 { font-size: 36px; margin: 18px 0; line-height: 1.15 }
  .intro .eyebrow { font-size: 11px; letter-spacing: normal; gap: 7px }
  .heading-star { width: 30px; right: -42px; top: 43px }
  .intro-description { font-size: 16px; line-height: 1.5 }
  .daily-note { padding: 20px; border-radius: 18px }
  .daily-note .eyebrow { font-size: 11px }
  .note-date { font-size: 13px; margin-top: 6px }
  .daily-counts { margin: 18px 0 0 }
  .daily-counts strong { font-size: 36px }
  .daily-counts span { font-size: 12px }
  .daily-counts>div { padding-left: 10px }
  .daily-counts>div:first-child { padding-left: 0 }
  .note-foot { display: none }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 20px }
  .section-heading h2 { font-size: 24px; line-height: 1.25 }
  .section-heading .eyebrow { font-size: 11px; letter-spacing: .015em }
  .section-heading .heading-subtitle { font-size: 16px; line-height: 1.5 }
  .section-heading>.text-link { font-size: 14px; padding: 11px 14px }
  .toolbar { flex-wrap: wrap; gap: 12px; padding: 16px 0 20px }
  .filter-group { width: 100%; gap: 7px }
  .filter { flex: 1; padding: 10px 8px; font-size: 14px; white-space: nowrap }
  .search-control { width: 100%; max-width: none }
  .gallery {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-padding-left: 16px; gap: 24px; margin-inline: -16px;
    padding: 12px 16px 24px; scrollbar-width: thin;
    scrollbar-color: var(--ink) transparent; align-items: stretch
  }
  .research-card { flex: 0 0 86%; max-width: 350px; scroll-snap-align: start }
  .oval { padding: 17% 11% 14%; aspect-ratio: .82; min-height: 360px }
  .oval .metric-value { font-size: 68px }
  .oval .hypothesis-quote { font-size: 25px }
  .oval .mini-label { font-size: 11px }
  .oval-bottom { font-size: 12px; margin-top: 14px }
  .metric-label { font-size: 13px }
  .chart-legend { font-size: 11px; gap: 10px }
  .mini-table { font-size: 13px; margin-top: 16px }
  .card-caption { padding-top: 22px }
  .card-title { font-size: 22px }
  .card-description { font-size: 16px; line-height: 1.6 }
  .card-index { font-size: 12px }
  .gallery-summary { flex-direction: column; align-items: flex-start; font-size: 14px; gap: 10px }
  .process-note { margin-top: 36px; padding: 24px; border-radius: 20px }
  .process-steps { gap: 20px; font-size: 15px }
  .process-note>p:last-child { font-size: 14px }
  .site-footer { gap: 14px; font-size: 12px; align-items: flex-start }
  .site-footer>span:nth-child(2) { display: none }
  .mobile-nav { padding-inline: 10px; gap: 6px }
  .mobile-nav button { font-size: 13px }
  .selection-dock { padding: 12px 16px; font-size: 14px; gap: 12px }
  .selection-dock .button { font-size: 14px; padding: 12px 15px }
  .empty-state { min-height: 350px; padding: 36px 16px }
  .empty-state h3 { font-size: 24px }
  .empty-state p { font-size: 16px }
  .policy-panel { padding: 24px; border-radius: 20px }
  .policy-panel h3 { font-size: 26px }
  .approval-item { gap: 12px }
  .approval-item h3 { font-size: 18px }
  .approval-item p { font-size: 14px }
  .detail-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 20px }
  .dialog-head { padding: 14px 20px }
  .dialog-body { padding: 24px 20px }
  .dialog-body h2 { font-size: 28px; line-height: 1.3 }
  .dialog-body .subtitle { font-size: 15px }
  .hypothesis-box { padding: 20px; font-size: 16px; line-height: 1.65 }
  .detail-chart { padding: 20px 14px; border-radius: 14px }
  .detail-table { font-size: 14px }
  .detail-table thead { font-size: 12px }
  .detail-table th { padding: 12px 6px 12px 0 }
  .detail-table td { padding: 12px 0 12px 6px }
  .dialog-actions { flex-wrap: wrap; gap: 14px }
  .dialog-actions .button { width: 100% }
  .dialog-actions small { order: 2; font-size: 14px }
  .activity-row { grid-template-columns: 64px minmax(0, 1fr); gap: 12px }
  .activity-row .status-pill { grid-column: 2; justify-self: start }
  .activity-row .text-link { font-size: 14px; white-space: normal }
  .section-tabs { gap: 20px; flex-wrap: wrap }
  .section-tabs button { font-size: 15px }
  .product-stat { font-size: 42px }
}

@media(max-width:359px) {
  .wordmark { font-size: 10px; gap: 6px }
  .wordmark b { font-size: 15px }
  .wordmark svg { width: 28px }
  .account-button { font-size: 12px; padding: 10px; gap: 5px }
  .intro { padding: 20px }
  .intro h1 { font-size: 34px }
  .heading-star { width: 26px; right: -34px; top: 34px }
  .daily-note { padding: 16px }
  .daily-counts strong { font-size: 32px }
  .filter { font-size: 13px; padding-inline: 7px }
  .oval .metric-value { font-size: 60px }
  .oval .mini-label { font-size: 10px }
  .oval .hypothesis-quote { font-size: 22px }
  .oval-bottom { font-size: 11px }
  .metric-label, .mini-table { font-size: 12px }
  .chart-legend { font-size: 10px }
  .chart-axis { font-size: 11px }
  .product-stat { font-size: 36px }
  .card-title { font-size: 20px }
}

@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important }
}

.indicator-validation svg { width: 100%; max-height: 220px; }
.validation-evidence { display: block; margin-top: 0.4rem; line-height: 1.6; font-weight: 400; overflow-wrap: anywhere; }
.indicator-validation details { margin: 1rem 0; }

/* Reviewed historical reports carry no forward-signal or simulation permission. */
.report-scope-note { padding: 16px; border: 1px solid var(--ink, #242324); border-radius: 12px; line-height: 1.7; }
.report-document { margin-top: 24px; }
.report-document summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
.report-document pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.8; max-width: 100%; }
.metric-scope { display: block; font-size: 12px; font-weight: 400; margin-top: 4px; }
