:root {
  color-scheme: dark;
  --bg: #111615;
  --bg-2: #161b1a;
  --panel: #1d2422;
  --panel-2: #241d1a;
  --panel-3: #122036;
  --line: #33403d;
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f2eee7;
  --muted: #b9b1a7;
  --subtle: #8d9892;
  --blue: #57a8ff;
  --blue-2: #2657ce;
  --orange: #ff8b3d;
  --gold: #d7b24a;
  --green: #67c18c;
  --pink: #ec8dbc;
  --red: #ff6f61;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.2);
  --shadow-hover: 0 18px 44px rgba(0, 0, 0, 0.26);
  --focus-ring: 0 0 0 4px rgba(87, 168, 255, 0.2);
  --focus-outline: rgba(111, 182, 255, 0.78);
  --surface-border: rgba(255, 255, 255, 0.09);
  --surface-border-strong: rgba(255, 255, 255, 0.13);
  --surface-border-soft: rgba(255, 255, 255, 0.065);
  --section-panel-bg: rgba(5, 10, 18, 0.45);
  --major-card-bg: rgba(8, 14, 24, 0.50);
  --dense-card-bg: rgba(8, 14, 24, 0.70);
  --hero-card-bg: var(--major-card-bg);
  --surface-bg: var(--major-card-bg);
  --surface-bg-hover: var(--dense-card-bg);
  --inset-bg: rgba(255, 255, 255, 0.04);
  --inset-bg-hover: rgba(87, 168, 255, 0.08);
  --field-bg: rgba(255, 255, 255, 0.055);
  --preview-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.047), rgba(255, 255, 255, 0.026)),
    rgba(255, 255, 255, 0.025);
  --chip-bg: rgba(255, 255, 255, 0.045);
  --chip-border: rgba(255, 255, 255, 0.105);
  --chip-active-bg: rgba(87, 168, 255, 0.12);
  --chip-active-border: rgba(87, 168, 255, 0.32);
  --accent-soft-bg: rgba(87, 168, 255, 0.075);
  --accent-soft-border: rgba(87, 168, 255, 0.24);
  --accent-soft-text: #d6e7ff;
  --glass-bg: rgba(23, 31, 30, 0.72);
  --glass-bg-strong: rgba(28, 38, 36, 0.86);
  --glass-border: rgba(255, 255, 255, 0.16);
  --glass-highlight: rgba(255, 255, 255, 0.28);
  --glass-shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
  --glass-blur: 22px;
  --glass-radius: 999px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --mobile-nav-height: 82px;
  --mobile-nav-gap: 10px;
  --mobile-page-bottom: calc(var(--mobile-nav-height) + (var(--mobile-nav-gap) * 2) + var(--safe-bottom) + 28px);
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 18px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 18px;
  --space-6: 22px;
  --card-pad: 18px;
  --panel-pad: 22px;
  --section-gap: 18px;
  --text-xs: 0.74rem;
  --text-sm: 0.84rem;
  --text-base: 0.94rem;
  --leading-tight: 1.24;
  --leading-copy: 1.58;
  --motion: 160ms ease;
  --reveal-duration: 580ms;
  --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1520px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  --bg-wave-x: 0%;
  --bg-wave-y: 0%;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  background-color: #030812;
  background-image:
    radial-gradient(circle at calc(16% + var(--bg-wave-x)) calc(14% + var(--bg-wave-y)), rgba(0, 242, 254, 0.11), rgba(0, 242, 254, 0.035) 24%, transparent 48%),
    radial-gradient(ellipse at calc(84% - var(--bg-wave-x)) calc(10% + var(--bg-wave-y)), rgba(74, 144, 226, 0.10), rgba(74, 144, 226, 0.025) 26%, transparent 52%),
    radial-gradient(ellipse at 50% calc(112% - var(--bg-wave-y)), rgba(0, 255, 203, 0.08), transparent 54%),
    linear-gradient(rgba(3, 8, 18, 0.34), rgba(3, 8, 18, 0.46)),
    url("./anxietyflow-background.png") !important;
  background-size: 125% 125%, 145% 120%, 150% 120%, cover, cover !important;
  background-position:
    calc(16% + var(--bg-wave-x)) calc(14% + var(--bg-wave-y)),
    calc(84% - var(--bg-wave-x)) calc(10% + var(--bg-wave-y)),
    50% calc(112% - var(--bg-wave-y)),
    center center,
    center center !important;
  background-attachment: fixed, fixed, fixed, fixed, fixed !important;
  background-repeat: no-repeat !important;
  background-blend-mode: normal !important;
  animation: anxietyflow-bg-drift 34s ease-in-out infinite alternate;
  color: var(--text);
  line-height: 1.5;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after,
.hero::before,
.hero::after,
.hero-copy::before,
.hero-copy::after,
.hero-panel::before,
.hero-panel::after {
  content: none !important;
  display: none !important;
}

@property --bg-wave-x {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

@property --bg-wave-y {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

@keyframes anxietyflow-bg-drift {
  to {
    --bg-wave-x: 4%;
    --bg-wave-y: 3%;
  }
}

body.pwa-standalone,
body.ios-standalone {
  min-height: 100dvh;
}

button,
input,
select {
  font: inherit;
  line-height: 1.2;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus-outline);
  outline-offset: 3px;
  box-shadow: var(--focus-ring);
}

a {
  color: inherit;
}

.scroll-reveal {
  opacity: 1;
  visibility: visible;
  filter: none;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    opacity var(--reveal-duration) var(--reveal-ease) var(--reveal-delay, 0ms),
    transform var(--reveal-duration) var(--reveal-ease) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

body.motion-ready .scroll-reveal:not(.is-visible):not(.is-complete) {
  opacity: 0.08;
  visibility: visible;
  filter: none;
  pointer-events: auto;
  transform: translate3d(0, var(--reveal-y, 32px), 0) scale(var(--reveal-scale, 0.982));
}

body.motion-ready .scroll-reveal.is-replaying:not(.is-visible):not(.is-complete) {
  opacity: 0.12;
  transform: translate3d(0, var(--replay-y, 26px), 0) scale(var(--replay-scale, 0.985));
}

.scroll-reveal.is-visible,
.scroll-reveal.scroll-reveal-visible {
  opacity: 1;
  visibility: visible;
  filter: none;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.scroll-reveal.is-complete {
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  pointer-events: auto !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
  transition: none !important;
  transition-delay: 0ms !important;
  will-change: auto;
}

.motion-soft {
  --reveal-y: 30px;
  --reveal-scale: 1;
  --reveal-duration: 680ms;
}

.motion-panel {
  --reveal-y: 38px;
  --reveal-scale: 0.982;
  --reveal-duration: 780ms;
}

.motion-card {
  --reveal-y: 34px;
  --reveal-scale: 0.975;
  --reveal-duration: 720ms;
}

.chart-row.motion-card,
.rank-row.motion-card,
.summary-method.motion-card,
.dashboard-pick.motion-card {
  --reveal-y: 24px;
  --reveal-scale: 0.985;
  --reveal-duration: 620ms;
}

[id*="app"],
.app-shell,
main {
  background: transparent !important;
}

.app-shell {
  width: min(100%, var(--max));
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 18px clamp(12px, 2vw, 22px) 28px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.085);
  background:
    linear-gradient(180deg, rgba(17, 22, 21, 0.76), rgba(17, 22, 21, 0.48)),
    rgba(17, 22, 21, 0.44);
  backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  isolation: isolate;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}

.brand strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 850;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0b35f, var(--gold));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 10px 26px rgba(215, 178, 74, 0.18);
}

.brand-mark span {
  width: 18px;
  height: 10px;
  border-right: 3px solid #1a1714;
  border-bottom: 3px solid #1a1714;
  border-left: 3px solid #1a1714;
  border-radius: 0 0 20px 20px;
}

.tabs {
  display: flex;
  max-width: 100%;
  min-width: 0;
  gap: 4px;
  overflow-x: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.mobile-tabs {
  display: none;
}

.tab,
.pill-button,
.filter-toggle,
.reset-button,
.settings-button,
.dialog-close {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.tab {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  color: #d9d4cb;
  font-size: 0.88rem;
  font-weight: 760;
  white-space: nowrap;
}

.tab:hover,
.tab:focus-visible,
.pill-button:hover,
.filter-toggle:hover,
.reset-button:hover,
.settings-button:hover,
.settings-button:focus-visible,
.dialog-close:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.055);
}

.settings-button {
  flex: 0 0 auto;
  padding: 0 15px;
  border-color: rgba(255, 255, 255, 0.11);
  color: #d9d4cb;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  font-weight: 800;
}

.tab.is-active {
  color: #fffaf0;
  -webkit-text-fill-color: #fffaf0;
  border-color: rgba(215, 178, 74, 0.34);
  background:
    linear-gradient(180deg, rgba(215, 178, 74, 0.16), rgba(215, 178, 74, 0.055)),
    rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 -2px 0 rgba(215, 178, 74, 0.72);
  transform: none;
}

.disclaimer {
  margin: 18px 0 26px;
  padding: 13px 16px;
  border: 1px solid rgba(215, 178, 74, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(215, 178, 74, 0.13), rgba(215, 178, 74, 0.055)),
    rgba(17, 22, 21, 0.74);
  color: #f4e6b6;
  font-size: 0.92rem;
  line-height: 1.5;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 22px;
  background-color: transparent !important;
}

[class*="hero-section"],
.dashboard {
  background-color: transparent !important;
}

.hero-copy {
  min-width: 0;
  min-height: 360px;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: var(--hero-card-bg);
  box-shadow: var(--shadow);
}

.hero-copy h1 {
  max-width: 960px;
  margin: 0 0 18px;
  overflow-wrap: anywhere;
  font-size: clamp(2.45rem, 5.2vw, 5.35rem);
  font-weight: 880;
  line-height: 1.01;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.24rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-panel {
  display: flex;
  min-width: 0;
  min-height: 360px;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(214, 231, 255, 0.13);
  border-radius: var(--radius-lg);
  background: var(--hero-card-bg);
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  max-width: 390px;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(1.55rem, 3vw, 3rem);
  font-weight: 840;
  line-height: 1.04;
}

.hero-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.hero-panel p strong {
  color: #fffaf0;
  font-weight: 780;
}

.site-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(215, 178, 74, 0.38);
  border-radius: 8px;
  padding: 0 16px;
  color: #171512;
  background: linear-gradient(180deg, #e4c568, #c99e37);
  font-size: 0.9rem;
  font-weight: 840;
  line-height: 1.1;
  text-decoration: none;
  transition:
    border-color var(--motion),
    background var(--motion),
    color var(--motion),
    transform var(--motion),
    box-shadow var(--motion);
}

.site-button:hover,
.site-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.34);
  background: linear-gradient(180deg, #efd781, #d7b24a);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  transform: translateY(-1px);
}

.site-button-secondary {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.026)),
    rgba(255, 255, 255, 0.035);
}

.site-button-secondary:hover,
.site-button-secondary:focus-visible {
  color: #fffaf0;
  border-color: rgba(87, 168, 255, 0.36);
  background:
    linear-gradient(180deg, rgba(87, 168, 255, 0.13), rgba(87, 168, 255, 0.05)),
    rgba(255, 255, 255, 0.045);
}

.mini-stack {
  display: grid;
  gap: 10px;
}

.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(8, 18, 28, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.mini-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.mini-row span:last-child {
  color: #d6e7ff;
  font-weight: 700;
  text-align: right;
}

.grid {
  display: grid;
  gap: 14px;
}

.metrics-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.dashboard-widget-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 16px;
}

.dashboard-explainer {
  margin-top: 16px;
}

.dashboard-explainer p {
  max-width: 980px;
  margin: var(--space-2) 0 0;
  color: var(--muted);
  line-height: var(--leading-copy);
}

.public-value-section {
  margin-bottom: 18px;
}

.public-value-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.public-value-card,
.methodology-card {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--surface-border-soft);
  border-radius: var(--radius);
  background: var(--dense-card-bg);
}

.public-value-card h3,
.methodology-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 820;
  line-height: var(--leading-tight);
}

.public-value-card p,
.methodology-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.52;
}

.methodology-panel {
  margin-top: 16px;
}

.methodology-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.methodology-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.protocols-note p,
.sources-note p,
.safety-map p,
.about-scoring p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: var(--text-base);
  line-height: var(--leading-copy);
}

.metric-card,
.state-card {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  background: var(--dense-card-bg);
  box-shadow: var(--shadow-soft);
}

.panel {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  background: var(--section-panel-bg);
  box-shadow: var(--shadow-soft);
}

.app-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-4);
  overflow: hidden;
}

.card-main {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.card-badges {
  margin-bottom: 2px;
}

.card-title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.card-summary {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-base);
  line-height: var(--leading-copy);
  overflow-wrap: anywhere;
}

.card-preview-stack {
  display: grid;
  min-width: 0;
  gap: var(--space-3);
}

.card-preview {
  display: grid;
  min-width: 0;
  gap: var(--space-2);
  padding: 14px;
  background: var(--preview-bg);
}

.card-chips {
  display: grid;
  gap: 8px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 2px;
}

.card-summary strong,
.card-preview strong {
  color: var(--text);
  font-weight: 780;
}

.metric-card {
  display: flex;
  min-height: 130px;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--card-pad);
  transition:
    border-color var(--motion),
    background var(--motion),
    transform var(--motion);
}

.metric-card small,
.section-label,
.field-label {
  color: var(--subtle);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  overflow-wrap: break-word;
  margin: 4px 0 0;
  font-size: clamp(1.45rem, 2.8vw, 2.15rem);
  font-weight: 860;
  line-height: 1.05;
  hyphens: auto;
}

.dashboard-metric-card span {
  display: inline-flex;
  align-self: flex-start;
  min-height: 26px;
  align-items: center;
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--accent-soft-text);
  background: var(--accent-soft-bg);
  font-size: var(--text-xs);
  font-weight: 820;
  line-height: 1.1;
}

.dashboard-metric-card strong {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.metric-card p {
  margin: 0;
  margin-top: auto;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.method-summary-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  gap: 13px;
}

.top-picks-panel {
  margin-top: 16px;
}

.top-picks-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.top-pick-card {
  min-height: 320px;
  padding: 18px;
}

.dashboard-insight-card {
  border-color: rgba(87, 168, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(87, 168, 255, 0.045), rgba(255, 255, 255, 0.022)),
    var(--surface-bg);
}

.dashboard-pick-list {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.dashboard-pick {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 9px 10px;
  border: 1px solid var(--surface-border-soft);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--inset-bg);
  text-align: left;
  transition:
    border-color var(--motion),
    background var(--motion),
    transform var(--motion);
}

.dashboard-pick:hover,
.dashboard-pick:focus-visible {
  border-color: rgba(87, 168, 255, 0.45);
  background: var(--inset-bg-hover);
  transform: translateY(-1px);
}

.dashboard-pick span,
.dashboard-pick strong,
.dashboard-pick small,
.dashboard-pick em {
  min-width: 0;
}

.dashboard-pick strong,
.dashboard-pick small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-pick strong {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 780;
  line-height: var(--leading-tight);
}

.dashboard-pick small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.25;
}

.dashboard-pick em {
  color: #d6e7ff;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 840;
  white-space: nowrap;
}

.summary-method-list {
  display: grid;
  gap: 8px;
}

.summary-method {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid var(--surface-border-soft);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--inset-bg);
  text-align: left;
  transition:
    border-color var(--motion),
    background var(--motion),
    transform var(--motion);
}

.summary-method:hover,
.summary-method:focus-visible {
  border-color: rgba(87, 168, 255, 0.45);
  background: var(--inset-bg-hover);
  transform: translateY(-1px);
}

.summary-method span,
.summary-method em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-method em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.66fr);
  margin-top: 14px;
}

.dashboard-chart-stack {
  align-content: start;
}

.panel {
  padding: var(--panel-pad);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.panel-header h2,
.section-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.7vw, 2.15rem);
  font-weight: 840;
  line-height: 1.12;
}

.panel-header p {
  max-width: 680px;
  margin: var(--space-2) 0 0;
  color: var(--muted);
  line-height: var(--leading-copy);
}

.dashboard-chart-panel {
  overflow: hidden;
}

.chart-total {
  flex: 0 0 auto;
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--accent-soft-text);
  background: var(--accent-soft-bg);
  font-size: var(--text-xs);
  font-weight: 840;
  line-height: 1.1;
  white-space: nowrap;
}

.chart-legend {
  display: grid;
  grid-template-columns: minmax(120px, 190px) 1fr auto;
  gap: 12px;
  margin: -8px 0 8px;
  padding: 0 10px;
  color: var(--subtle);
  font-size: 0.68rem;
  font-weight: 830;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.chart-legend span:last-child {
  text-align: right;
}

.chart-list {
  display: grid;
  gap: 9px;
}

.chart-row {
  display: grid;
  grid-template-columns: minmax(120px, 190px) 1fr auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--surface-border-soft);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--inset-bg);
  text-align: left;
  transition:
    border-color var(--motion),
    background var(--motion),
    transform var(--motion);
}

.chart-row:hover,
.chart-row:focus-visible {
  border-color: rgba(87, 168, 255, 0.34);
  background: var(--inset-bg-hover);
  transform: translateY(-1px);
}

.chart-row.is-static {
  cursor: default;
}

.chart-row.is-static:hover {
  border-color: var(--surface-border-soft);
  background: var(--inset-bg);
  transform: none;
}

.chart-row button {
  display: contents;
  color: inherit;
}

.chart-label {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-empty-state {
  display: grid;
  min-height: 96px;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  text-align: center;
}

.chart-empty-state p {
  margin: 0;
  padding: 16px;
  line-height: 1.45;
}

.bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
}

.bar-fill {
  width: var(--width, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6fb6ff, #67c18c);
  box-shadow: 0 0 18px rgba(87, 168, 255, 0.16);
}

.chart-value {
  color: #d6e7ff;
  font-size: 0.86rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.rank-list {
  display: grid;
  gap: 9px;
}

.rank-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 11px 12px;
  border: 1px solid var(--surface-border-soft);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--inset-bg);
  text-align: left;
  transition:
    border-color var(--motion),
    background var(--motion),
    transform var(--motion);
}

.rank-row:hover,
.rank-row:focus-visible {
  border-color: rgba(87, 168, 255, 0.45);
  background: var(--inset-bg-hover);
  transform: translateY(-1px);
}

.rank-num {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(215, 178, 74, 0.18);
  color: #f7dc88;
  font-weight: 800;
}

.rank-copy strong {
  display: block;
  margin: 0;
  font-size: 1.08rem;
  font-weight: 820;
  line-height: var(--leading-tight);
}

.rank-copy strong {
  margin-bottom: 3px;
}

.rank-copy small,
.score-chip {
  color: var(--muted);
}

.score-chip {
  border: 1px solid var(--chip-border);
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--chip-bg);
  font-weight: 800;
}

.methods-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
}

.methods-toolbar {
  position: sticky;
  top: 86px;
  z-index: 8;
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding: 14px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  background: var(--dense-card-bg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.34fr) auto auto;
  gap: 10px;
}

.sort-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-2);
  min-height: 46px;
  padding-left: 12px;
  border: 1px solid var(--surface-border-strong);
  border-radius: var(--radius);
  background: var(--field-bg);
}

.sort-control span {
  color: var(--subtle);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sort-control select {
  min-height: 44px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  padding: 0 12px 0 0;
  font-weight: 760;
}

.search-row input,
.control,
.filter select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--surface-border-strong);
  border-radius: var(--radius);
  outline: none;
  background: var(--field-bg);
  color: var(--text);
  padding: 0 14px;
  transition:
    border-color var(--motion),
    background var(--motion),
    box-shadow var(--motion);
}

.search-row input::placeholder,
.control::placeholder {
  color: rgba(185, 177, 167, 0.72);
}

.search-row input:focus,
.control:focus,
.filter select:focus {
  border-color: var(--blue);
  box-shadow: var(--focus-ring);
}

.filter-toggle {
  display: none;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.065);
}

.reset-button {
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.04);
}

.active-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 40px;
  border: 1px solid var(--chip-active-border);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--accent-soft-text);
  background: var(--chip-active-bg);
  font-size: 0.82rem;
  font-weight: 800;
  transition:
    border-color var(--motion),
    background var(--motion),
    color var(--motion);
}

.active-filter-chip:hover,
.active-filter-chip:focus-visible {
  border-color: rgba(87, 168, 255, 0.48);
  background: rgba(87, 168, 255, 0.18);
}

.active-filter-chip strong {
  color: var(--muted);
  font-size: 0.9rem;
}

.active-filter-clear {
  color: #ffe3a3;
  border-color: rgba(215, 178, 74, 0.3);
  background: rgba(215, 178, 74, 0.11);
}

.method-presets {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  min-width: 0;
}

.preset-chip {
  display: inline-flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  padding: 7px 14px;
  color: var(--muted);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.028)),
    rgba(255, 255, 255, 0.035);
  font-size: 0.82rem;
  font-weight: 820;
  line-height: 1.15;
  text-align: center;
  transition:
    border-color var(--motion),
    background var(--motion),
    color var(--motion),
    transform var(--motion);
}

.preset-chip span,
.preset-chip small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preset-chip span {
  color: inherit;
}

.preset-chip small {
  margin-top: 2px;
  color: var(--subtle);
  font-size: 0.68rem;
  font-weight: 760;
}

.preset-chip:hover,
.preset-chip:focus-visible {
  color: var(--text);
  border-color: rgba(87, 168, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(87, 168, 255, 0.13), rgba(87, 168, 255, 0.05)),
    rgba(255, 255, 255, 0.045);
}

.preset-chip.is-active {
  color: #fffaf0;
  border-color: rgba(215, 178, 74, 0.38);
  background:
    linear-gradient(180deg, rgba(215, 178, 74, 0.23), rgba(87, 168, 255, 0.08)),
    rgba(255, 255, 255, 0.065);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 24px rgba(0, 0, 0, 0.16);
}

.preset-chip.is-active small {
  color: rgba(255, 250, 240, 0.72);
}

.preset-clear {
  color: #d6e7ff;
  border-color: rgba(87, 168, 255, 0.25);
}

.preset-explanation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(87, 168, 255, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(87, 168, 255, 0.085), rgba(103, 193, 140, 0.04)),
    rgba(255, 255, 255, 0.025);
}

.preset-explanation p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.preset-explanation .preset-combine-note {
  color: var(--subtle);
  font-size: 0.8rem;
}

.preset-explanation strong {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 840;
}

.preset-reason {
  border-color: rgba(215, 178, 74, 0.18);
  background:
    linear-gradient(180deg, rgba(215, 178, 74, 0.075), rgba(255, 255, 255, 0.024)),
    rgba(255, 255, 255, 0.02);
}

.method-ranking-note {
  margin-top: 18px;
}

.filters {
  position: sticky;
  top: 176px;
  align-self: start;
  padding: var(--space-4);
}

.filter {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.filter:first-child {
  margin-top: 0;
}

.filter label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}


.method-signal {
  display: grid;
  min-width: 0;
  min-height: 74px;
  align-content: start;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--surface-border-soft);
  border-radius: var(--radius);
  background: var(--inset-bg);
}

.method-signal small,
.method-signal strong,
.method-signal em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.method-signal small {
  color: var(--subtle);
  font-size: 0.68rem;
  font-weight: 830;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.method-signal strong {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 830;
}

.method-signal em {
  color: var(--muted);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 720;
}


.empty-state p,
.field-value {
  color: var(--muted);
  font-size: var(--text-base);
  line-height: var(--leading-copy);
  overflow-wrap: anywhere;
}

.badge-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: flex-start;
  min-width: 0;
}

.badge,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 28px;
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--muted);
  background: var(--chip-bg);
  font-size: var(--text-xs);
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-align: center;
}

.badge.evidence-high,
.badge.safety-low {
  color: #d5f7e0;
  border-color: rgba(103, 193, 140, 0.34);
  background: rgba(103, 193, 140, 0.14);
}

.badge.evidence-moderate,
.badge.safety-medium {
  color: #ffe3a3;
  border-color: rgba(215, 178, 74, 0.36);
  background: rgba(215, 178, 74, 0.135);
}

.badge.evidence-low,
.badge.safety-high {
  color: #ffbbb4;
  border-color: rgba(255, 111, 97, 0.34);
  background: rgba(255, 111, 97, 0.13);
}

.card-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.card-footer div {
  min-width: 0;
  padding: 2px 0;
}

.card-footer small {
  display: block;
  color: var(--subtle);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-footer strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 5px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.25;
}

.protocols-note {
  margin-bottom: var(--space-4);
  padding: var(--space-4);
}

.protocol-fact-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}

.protocol-step-preview {
  border-color: rgba(87, 168, 255, 0.16);
}

.protocol-related {
  border-color: rgba(103, 193, 140, 0.16);
}

.protocol-related-detail {
  border-color: rgba(103, 193, 140, 0.18);
}

.protocol-related-list {
  display: grid;
  gap: var(--space-2);
}

.related-method-pill {
  display: grid;
  min-height: 48px;
  min-width: 0;
  gap: 3px;
  padding: 9px 11px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: var(--inset-bg);
  text-align: left;
  transition:
    border-color var(--motion),
    background var(--motion),
    transform var(--motion);
}

.related-method-pill:hover,
.related-method-pill:focus-visible {
  border-color: rgba(87, 168, 255, 0.34);
  background: var(--inset-bg-hover);
  transform: translateY(-1px);
}

.related-method-pill strong,
.related-method-pill span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.related-method-pill strong {
  font-size: 0.9rem;
  font-weight: 820;
  line-height: 1.25;
}

.related-method-pill span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
  line-height: 1.25;
}

.protocol-details {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-3);
}

.protocol-details summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--accent-soft-border);
  border-radius: 999px;
  padding: 7px 13px;
  color: var(--accent-soft-text);
  background: var(--accent-soft-bg);
  font-size: var(--text-sm);
  font-weight: 820;
  cursor: pointer;
  list-style: none;
  transition:
    border-color var(--motion),
    background var(--motion),
    box-shadow var(--motion);
}

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

.protocol-details summary::after {
  content: "+";
  margin-left: 8px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
}

.protocol-details[open] summary::after {
  content: "-";
}

.protocol-details summary:hover,
.protocol-details summary:focus-visible {
  border-color: rgba(87, 168, 255, 0.4);
  background: rgba(87, 168, 255, 0.11);
  box-shadow: var(--focus-ring);
}

.protocol-detail-content {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.protocol-step-detail {
  background:
    linear-gradient(180deg, rgba(87, 168, 255, 0.045), rgba(255, 255, 255, 0.02)),
    var(--inset-bg);
}

.protocol-steps {
  display: grid;
  gap: var(--space-2);
  counter-reset: protocol-step;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: var(--text-base);
  line-height: var(--leading-copy);
}

.protocol-steps li {
  position: relative;
  min-width: 0;
  padding: 9px 10px 9px 42px;
  border: 1px solid var(--surface-border-soft);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.028);
  counter-increment: protocol-step;
  overflow-wrap: anywhere;
}

.protocol-steps li::before {
  position: absolute;
  top: 9px;
  left: 10px;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid rgba(87, 168, 255, 0.24);
  border-radius: 50%;
  color: var(--accent-soft-text);
  background: rgba(87, 168, 255, 0.09);
  content: counter(protocol-step);
  font-size: 0.72rem;
  font-weight: 850;
}

.safety-map-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-content: start;
}

.safety-map-grid span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 34px;
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--muted);
  background: var(--chip-bg);
  font-size: 0.78rem;
  font-weight: 800;
}

.safety-map-grid strong {
  color: var(--text);
}

.safety-section-header {
  margin-bottom: 0;
}

.safety-section-header h2 {
  margin: 4px 0 6px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.08;
}

.safety-section-header p {
  max-width: 760px;
}

.safety-section-count {
  flex: 0 0 auto;
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--accent-soft-text);
  background: var(--accent-soft-bg);
  font-size: var(--text-xs);
  font-weight: 840;
  line-height: 1.1;
  white-space: nowrap;
}

.safety-guidance {
  border-color: rgba(87, 168, 255, 0.14);
}

.safety-guidance .field-value {
  margin: 0;
}

.safety-guidance .field-value + .field-value {
  margin-top: var(--space-2);
}

.sources-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.55fr) minmax(220px, 0.7fr) auto;
  gap: 10px;
  margin: var(--space-4) 0;
}

.sources-note {
  margin-top: 2px;
  margin-bottom: var(--space-4);
  padding: var(--space-4);
}

.source-reset {
  min-height: 46px;
}

.sources-meta {
  margin: 4px 0 12px;
}

.source-role {
  border-color: rgba(87, 168, 255, 0.16);
}

.source-actions {
  margin-top: 0;
}

.about-scoring {
  margin-top: var(--space-4);
  padding: var(--card-pad);
  border: 1px solid rgba(87, 168, 255, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(87, 168, 255, 0.095), rgba(103, 193, 140, 0.045)),
    rgba(18, 32, 54, 0.18);
}

.state-card,
.empty-state {
  display: grid;
  min-height: 300px;
  place-items: center;
  padding: 32px;
  border-style: dashed;
  background: var(--dense-card-bg);
  text-align: center;
}

.state-card h1,
.empty-state h3 {
  margin: 14px 0 6px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 830;
  line-height: 1.14;
}

.loader {
  width: 46px;
  height: 46px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--gold);
  border-right-color: rgba(87, 168, 255, 0.55);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

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

.method-dialog {
  width: min(920px, calc(100vw - 24px));
  max-height: min(86vh, 920px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-lg);
  background: rgba(18, 24, 23, 0.96);
  color: var(--text);
  box-shadow: var(--shadow);
}

.method-dialog[open] {
  animation: dialog-enter 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.method-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

@keyframes dialog-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.dialog-frame {
  max-height: min(86vh, 920px);
  overflow: auto;
  padding: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(87, 168, 255, 0.14), transparent 20rem),
    linear-gradient(180deg, rgba(31, 40, 38, 0.98), rgba(22, 29, 27, 0.98));
}

.dialog-close {
  float: right;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  border-color: rgba(255, 255, 255, 0.1);
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.065);
}

.dialog-title {
  max-width: 720px;
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 4vw, 3.45rem);
  font-weight: 860;
  line-height: 1.02;
}

.dialog-header {
  display: grid;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-dialog {
  width: min(760px, calc(100vw - 24px));
}

.settings-frame {
  background:
    radial-gradient(circle at 100% 0%, rgba(215, 178, 74, 0.14), transparent 18rem),
    linear-gradient(180deg, rgba(31, 40, 38, 0.98), rgba(22, 29, 27, 0.98));
}

.settings-header {
  padding-right: 96px;
}

.settings-version {
  margin: -6px 0 0;
  color: var(--muted);
  font-weight: 760;
}

.dialog-section-stack {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.dialog-section {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.026);
}

.dialog-section-highlight {
  border-color: rgba(215, 178, 74, 0.2);
  background:
    linear-gradient(180deg, rgba(215, 178, 74, 0.075), rgba(255, 255, 255, 0.024)),
    rgba(255, 255, 255, 0.02);
}

.dialog-section-header h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 840;
  line-height: 1.2;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.detail-field {
  padding: 15px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  background: var(--inset-bg);
}

.detail-field.card-preview {
  padding: 14px;
  background: var(--preview-bg);
}

.detail-field.is-wide {
  grid-column: 1 / -1;
}

.detail-sources {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.detail-sources a {
  color: #d6e7ff;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.085);
}

.about-footer-card {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  background: var(--section-panel-bg);
  box-shadow: var(--shadow-soft);
}

.about-footer-card h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.8vw, 2.2rem);
  font-weight: 840;
  line-height: 1.12;
}

.about-footer-copy {
  display: grid;
  gap: 10px;
  max-width: 980px;
}

.about-footer-copy p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-base);
  line-height: var(--leading-copy);
}

@media (max-width: 1180px) {
  .metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .public-value-grid,
  .methodology-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero,
  .dashboard-grid,
  .methods-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }
}

@media (max-width: 820px) {
  .app-shell {
    padding: calc(12px + var(--safe-top)) calc(12px + var(--safe-right)) 24px calc(12px + var(--safe-left));
  }

  .topbar-start {
    width: 100%;
    justify-content: space-between;
  }

  .topbar-start .brand {
    min-width: 0;
  }

  .topbar-start .brand > span:last-child {
    min-width: 0;
  }

  .topbar-start .brand strong,
  .topbar-start .brand small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar {
    top: var(--safe-top);
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
  }

  .tabs {
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    border-radius: var(--radius);
    scroll-padding-inline: 12px;
    -webkit-overflow-scrolling: touch;
  }

  .tab {
    flex: 0 0 auto;
    min-width: max-content;
    padding: 0 16px;
  }

  .disclaimer {
    margin: 12px 0 14px;
    padding: 12px 14px;
    font-size: 0.88rem;
  }

  .hero-copy,
  .hero-panel {
    min-height: auto;
  }

  .public-value-grid,
  .methodology-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 12px;
    margin-bottom: 14px;
  }

  .hero-copy,
  .hero-panel {
    padding: clamp(18px, 5.5vw, 28px);
  }

  .hero-copy h1 {
    margin-bottom: 12px;
    font-size: clamp(1.8rem, 7.2vw, 2.65rem);
    line-height: 1.02;
  }

  .hero-panel h2 {
    font-size: clamp(1.35rem, 6vw, 2rem);
    line-height: 1.08;
  }

  .hero-copy p,
  .hero-panel p {
    font-size: clamp(0.9rem, 3.7vw, 1rem);
    line-height: 1.5;
  }

  .hero-panel p {
    font-size: 0.86rem;
    line-height: 1.4;
  }

  .hero-panel {
    gap: 12px;
  }

  .hero-actions,
  .methodology-actions {
    gap: 8px;
  }

  .mini-stack {
    gap: 8px;
  }

  .mini-row {
    gap: 10px;
    min-height: 40px;
    padding: 9px 11px;
    font-size: 0.86rem;
  }

  .mini-row span:last-child {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mini-row span:first-child {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .app-card {
    gap: 14px;
  }

  .card-main {
    gap: 9px;
  }

  .card-preview-stack {
    gap: 10px;
  }

  .card-preview,
  .detail-field.card-preview {
    padding: 12px;
  }

  .card-summary,
  .field-value,
  .protocol-steps {
    font-size: 0.93rem;
    line-height: 1.56;
  }

  .metrics-grid,
  .dashboard-widget-grid,
  .top-picks-grid,
  .detail-grid,
  .footer {
    grid-template-columns: 1fr;
  }

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

  .methods-toolbar {
    top: calc(104px + var(--safe-top));
    margin-bottom: 14px;
    padding: 12px;
  }

  .method-presets {
    margin-inline: -2px;
    padding: 0 2px 2px;
  }

  .preset-chip {
    min-height: 44px;
    padding: 8px 12px;
  }

  .preset-explanation {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
  }

  .preset-explanation strong {
    flex: auto;
  }

  .filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .filters {
    display: none;
  }

  .filters.is-open {
    display: block;
    margin-bottom: var(--mobile-page-bottom);
  }

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

  .safety-section-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .safety-section-count {
    align-self: flex-start;
  }

  .sort-control {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 8px 12px;
  }

  .sort-control select {
    min-height: 32px;
    padding: 0;
  }

  .sources-note {
    margin-bottom: 14px;
    padding: 14px;
  }

  .chart-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 52px;
    padding-block: 10px;
  }

  .dashboard-grid,
  .dashboard-chart-stack {
    gap: 12px;
  }

  .dashboard-chart-panel .panel-header {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
  }

  .chart-total {
    align-self: flex-start;
  }

  .chart-legend {
    display: none;
  }

  .chart-label {
    white-space: normal;
  }

  .chart-row .bar-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .top-picks-panel,
  .dashboard-explainer {
    margin-top: 14px;
  }

  .top-pick-card {
    min-height: auto;
    padding: 16px;
  }

  .dashboard-pick {
    min-height: 50px;
  }

  .detail-sources a {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .method-dialog {
    width: calc(100vw - 20px - var(--safe-left) - var(--safe-right));
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 14px;
  }

  .dialog-frame {
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    padding: 16px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .dialog-close {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    float: none;
    min-width: 76px;
    min-height: 48px;
    margin-left: auto;
    margin-bottom: 12px;
    background: rgba(29, 36, 34, 0.94);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  }

  .dialog-title {
    max-width: none;
    font-size: clamp(1.55rem, 8vw, 2.35rem);
    line-height: 1.08;
  }

  .dialog-section {
    padding: 12px;
  }
}

@media (max-width: 768px) {
  .app-shell {
    padding-bottom: var(--mobile-page-bottom);
  }

  #app > :last-child,
  .footer {
    scroll-margin-bottom: var(--mobile-page-bottom);
  }

  .topbar .tabs {
    display: none;
  }

  .topbar {
    align-items: center;
  }

  .mobile-tabs {
    position: fixed;
    right: calc(10px + var(--safe-right));
    bottom: var(--mobile-nav-gap);
    left: calc(10px + var(--safe-left));
    z-index: 30;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none;
    max-width: calc(100vw - 20px - var(--safe-left) - var(--safe-right));
    height: calc(65px + env(safe-area-inset-bottom)) !important;
    box-sizing: border-box !important;
    padding: 7px 4px;
    padding-bottom: env(safe-area-inset-bottom) !important;
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
      linear-gradient(180deg, rgba(31, 42, 39, 0.9), rgba(14, 19, 18, 0.92)),
      var(--glass-bg-strong);
    box-shadow:
      inset 0 1px 0 var(--glass-highlight),
      inset 0 -1px 0 rgba(255, 255, 255, 0.05),
      0 18px 48px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(calc(var(--glass-blur) + 6px)) saturate(170%);
    -webkit-backdrop-filter: blur(calc(var(--glass-blur) + 6px)) saturate(170%);
    isolation: isolate;
  }

  .mobile-tabs::-webkit-scrollbar {
    display: none;
  }

  .mobile-tab {
    display: inline-flex;
    flex: 0 0 auto !important;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 100%;
    min-height: 52px;
    align-self: center;
    padding: 0 5px;
    border-radius: 15px;
    color: #d9d4cb;
    font-size: 0.75rem;
    font-weight: 820;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
  }

  .mobile-tab:hover,
  .mobile-tab:focus-visible {
    color: var(--text);
    border-color: rgba(0, 242, 254, 0.24);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(0, 242, 254, 0.045)),
      rgba(0, 242, 254, 0.075);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      0 0 16px rgba(0, 242, 254, 0.12);
  }

  .mobile-tab:active {
    transform: scale(0.98);
  }

  .mobile-tab.is-active {
    color: #fffaf0;
    -webkit-text-fill-color: #fffaf0;
    border-color: rgba(0, 242, 254, 0.34);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(0, 242, 254, 0.08)),
      linear-gradient(135deg, rgba(0, 242, 254, 0.16), rgba(87, 168, 255, 0.14)),
      rgba(18, 18, 20, 0.72);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.28),
      inset 0 -1px 0 rgba(255, 255, 255, 0.08),
      0 8px 22px rgba(0, 0, 0, 0.24),
      0 0 18px rgba(0, 242, 254, 0.16);
    transform: translateY(-1px);
  }

  .mobile-tabs .mobile-tab.is-active {
    color: #fffaf0;
    -webkit-text-fill-color: #fffaf0;
  }

  .method-dialog {
    max-height: calc(100dvh - 20px - var(--safe-top) - var(--safe-bottom));
  }
}

@media (max-width: 480px) {
  .mobile-tab {
    font-size: 0.69rem;
  }
}

@media (display-mode: standalone) and (max-width: 768px) {
  .app-shell {
    padding-top: calc(14px + var(--safe-top));
    padding-bottom: calc(var(--mobile-page-bottom) + 10px);
  }

  .topbar {
    top: var(--safe-top);
    align-items: center !important;
    box-sizing: border-box !important;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .disclaimer {
    margin-top: 10px;
    margin-bottom: 12px;
  }

  .hero {
    margin-bottom: 12px;
  }

  .hero-copy,
  .hero-panel {
    padding: clamp(16px, 5vw, 24px);
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 9.5vw, 3.25rem);
    line-height: 1.04;
  }

  .mobile-tabs {
    bottom: var(--mobile-nav-gap);
    height: calc(65px + env(safe-area-inset-bottom)) !important;
    align-items: center !important;
    box-sizing: border-box !important;
    padding-top: 6px !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
  }
}

@media (max-width: 768px) {
  body.pwa-standalone .app-shell,
  body.ios-standalone .app-shell {
    padding-top: calc(14px + var(--safe-top));
    padding-bottom: calc(var(--mobile-page-bottom) + 10px);
  }

  body.pwa-standalone .topbar,
  body.ios-standalone .topbar {
    top: var(--safe-top);
    align-items: center !important;
    box-sizing: border-box !important;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  body.pwa-standalone .topbar-start,
  body.ios-standalone .topbar-start,
  body.pwa-standalone .topbar-start .brand,
  body.ios-standalone .topbar-start .brand {
    align-items: center !important;
    box-sizing: border-box !important;
  }

  body.pwa-standalone .disclaimer,
  body.ios-standalone .disclaimer {
    margin-top: 10px;
    margin-bottom: 12px;
  }

  body.pwa-standalone .hero,
  body.ios-standalone .hero {
    margin-bottom: 12px;
  }

  body.pwa-standalone .hero-copy,
  body.pwa-standalone .hero-panel,
  body.ios-standalone .hero-copy,
  body.ios-standalone .hero-panel {
    padding: clamp(16px, 5vw, 24px);
  }

  body.pwa-standalone .hero-copy h1,
  body.ios-standalone .hero-copy h1 {
    font-size: clamp(2rem, 9.5vw, 3.25rem);
    line-height: 1.04;
  }

  body.pwa-standalone .mobile-tabs,
  body.ios-standalone .mobile-tabs {
    bottom: var(--mobile-nav-gap);
    height: calc(65px + env(safe-area-inset-bottom)) !important;
    align-items: center !important;
    box-sizing: border-box !important;
    padding-top: 6px !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
  }

  body.pwa-standalone .method-dialog,
  body.ios-standalone .method-dialog {
    max-height: calc(100dvh - 18px - var(--safe-top) - var(--safe-bottom));
  }

  body.pwa-standalone .dialog-frame,
  body.ios-standalone .dialog-frame {
    max-height: calc(100dvh - 18px - var(--safe-top) - var(--safe-bottom));
    padding-bottom: calc(16px + var(--safe-bottom));
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar,
  .tabs,
  .mobile-tabs {
    background:
      linear-gradient(180deg, rgba(35, 44, 41, 0.96), rgba(17, 22, 21, 0.96)),
      #171f1e;
  }
}

.scroll-reveal.motion-soft,
.scroll-reveal.motion-panel,
.scroll-reveal.motion-card {
  transition:
    opacity var(--reveal-duration) var(--reveal-ease) var(--reveal-delay, 0ms),
    transform var(--reveal-duration) var(--reveal-ease) var(--reveal-delay, 0ms) !important;
}

.scroll-reveal.is-complete,
.scroll-reveal.motion-soft.is-complete,
.scroll-reveal.motion-panel.is-complete,
.scroll-reveal.motion-card.is-complete,
.scroll-reveal.is-replaying.is-complete {
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  pointer-events: auto !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
  transition: none !important;
  transition-delay: 0ms !important;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .tab,
  .mobile-tab,
  .settings-button,
  .site-button,
  .preset-chip,
  .tabs,
  .mobile-tabs,
  .scroll-reveal,
  .scroll-reveal.motion-soft,
  .scroll-reveal.motion-panel,
  .scroll-reveal.motion-card {
    transition: none !important;
  }

  .tab.is-active,
  .mobile-tab.is-active,
  .mobile-tab:active,
  .scroll-reveal,
  .scroll-reveal.is-visible,
  .scroll-reveal.is-complete,
  .scroll-reveal.is-replaying,
  .scroll-reveal-visible {
    transform: none !important;
  }

  .scroll-reveal,
  body.motion-ready .scroll-reveal {
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
    pointer-events: auto !important;
  }

  .method-dialog[open],
  .loading-spinner {
    animation: none !important;
  }
}

@media (max-width: 520px) {
  .topbar-start {
    gap: 8px;
  }

  .topbar-start .brand {
    align-items: center;
    min-width: 0;
  }

  .topbar-start .brand > span:last-child {
    display: flex;
    align-items: center;
    min-height: 42px;
    line-height: 1;
  }

  .brand strong {
    font-size: 0.9rem;
    line-height: 1;
    margin: 0;
    transform: none;
  }

  body.pwa-standalone .topbar-start .brand strong,
  body.ios-standalone .topbar-start .brand strong {
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(-1.5px) !important;
  }

  .brand small {
    display: none;
  }

  .settings-button {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .site-button {
    width: 100%;
    min-height: 42px;
    font-size: 0.86rem;
  }

  .hero-copy h1 {
    font-size: clamp(1.65rem, 7vw, 2.15rem);
  }

  .hero-copy,
  .hero-panel {
    padding: 16px;
  }

  .hero-copy p,
  .hero-panel p {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .hero-panel p {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .hero-panel h2 {
    font-size: clamp(1.22rem, 6vw, 1.65rem);
  }

  .method-presets {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .method-presets::-webkit-scrollbar {
    display: none;
  }

  .preset-chip {
    flex: 0 0 auto;
    max-width: min(76vw, 260px);
  }

  .method-signal {
    min-height: 68px;
    padding: 9px;
  }

  .method-signal strong {
    font-size: 0.88rem;
  }

  .metric-card {
    min-height: auto;
    padding: 16px;
  }

  .panel {
    padding: 16px;
  }

  .card-footer {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .rank-row .score-chip {
    grid-column: 2;
    justify-self: start;
  }

  .summary-method {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .results-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (display-mode: standalone) and (max-width: 520px) {
  .hero-copy h1 {
    font-size: clamp(1.72rem, 7.5vw, 2.35rem);
  }

  .hero-copy,
  .hero-panel {
    padding: 15px;
  }
}

@media (max-width: 520px) {
  body.pwa-standalone .hero-copy h1,
  body.ios-standalone .hero-copy h1 {
    font-size: clamp(1.72rem, 7.5vw, 2.35rem);
  }

  body.pwa-standalone .hero-copy,
  body.pwa-standalone .hero-panel,
  body.ios-standalone .hero-copy,
  body.ios-standalone .hero-panel {
    padding: 15px;
  }
}

/* Background visibility and glass surfaces */
html,
body,
[class*="dashboard"] {
  background-color: transparent !important;
  background: transparent !important;
}

body {
  background-color: #030812 !important;
  background-image:
    radial-gradient(circle at calc(16% + var(--bg-wave-x)) calc(14% + var(--bg-wave-y)), rgba(0, 242, 254, 0.11), rgba(0, 242, 254, 0.035) 24%, transparent 48%),
    radial-gradient(ellipse at calc(84% - var(--bg-wave-x)) calc(10% + var(--bg-wave-y)), rgba(74, 144, 226, 0.10), rgba(74, 144, 226, 0.025) 26%, transparent 52%),
    radial-gradient(ellipse at 50% calc(112% - var(--bg-wave-y)), rgba(0, 255, 203, 0.08), transparent 54%),
    linear-gradient(rgba(3, 8, 18, 0.34), rgba(3, 8, 18, 0.46)),
    url("./anxietyflow-background.png") !important;
  background-size: 125% 125%, 145% 120%, 150% 120%, cover, cover !important;
  background-position:
    calc(16% + var(--bg-wave-x)) calc(14% + var(--bg-wave-y)),
    calc(84% - var(--bg-wave-x)) calc(10% + var(--bg-wave-y)),
    50% calc(112% - var(--bg-wave-y)),
    center center,
    center center !important;
  background-attachment: fixed, fixed, fixed, fixed, fixed !important;
  background-repeat: no-repeat !important;
  background-blend-mode: normal !important;
}

.app-shell,
[class*="container"],
[class*="dashboard"] {
  background-color: transparent !important;
  background: transparent !important;
}

.card,
[class*="card"],
[class*="panel"],
[class*="hero"] {
  background-color: rgba(3, 8, 18, 0.45) !important;
  background: rgba(3, 8, 18, 0.45) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(0, 242, 254, 0.12) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37) !important;
}

body::before,
body::after,
.hero::before,
.hero::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

.topbar,
.tabs,
.mobile-tabs {
  background: rgba(18, 18, 20, 0.6) !important;
  background-color: rgba(18, 18, 20, 0.6) !important;
  backdrop-filter: blur(15px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(15px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none !important;
  }
}

/* Legal and medical disclaimer framework */
body.legal-consent-open {
  overflow: hidden;
}

.global-medical-warning {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  min-height: calc(env(safe-area-inset-top) + 35px) !important;
  align-items: center;
  justify-content: center;
  padding: 7px max(14px, env(safe-area-inset-right, 0px)) 7px max(14px, env(safe-area-inset-left, 0px));
  padding-top: calc(env(safe-area-inset-top) + 14px) !important;
  border-bottom: 1px solid rgba(255, 193, 111, 0.18);
  color: #ffe5b4;
  background: rgba(3, 8, 18, 0.46) !important;
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.045), 0 8px 24px rgba(0, 0, 0, 0.22);
  font-size: clamp(0.76rem, 1.8vw, 0.88rem);
  font-weight: 820;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-align: center;
  text-shadow: 0 0 14px rgba(255, 139, 61, 0.32);
  text-transform: uppercase;
}

.topbar {
  top: 34px !important;
}

.legal-consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 42px);
  background: rgba(0, 0, 0, 0.42) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.legal-consent-overlay.is-hidden {
  display: none !important;
}

.legal-consent-panel {
  display: grid;
  width: min(680px, 100%);
  gap: 16px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(0, 242, 254, 0.18) !important;
  border-radius: 16px !important;
  background: rgba(3, 8, 18, 0.8) !important;
  color: var(--text);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(20px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(140%) !important;
}

.legal-consent-kicker {
  color: #ffe5b4;
  font-size: 0.78rem;
  font-weight: 840;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-shadow: 0 0 12px rgba(255, 139, 61, 0.24);
  text-transform: uppercase;
}

.legal-consent-panel h1 {
  margin: 0;
  color: #fffaf0;
  font-size: clamp(1.75rem, 5vw, 2.8rem);
  font-weight: 860;
  letter-spacing: 0;
  line-height: 1.04;
}

.legal-consent-panel p {
  margin: 0;
  color: rgba(242, 238, 231, 0.9);
  font-size: clamp(0.98rem, 2vw, 1.08rem);
  line-height: 1.68;
}

.legal-consent-button {
  justify-self: start;
  min-height: 48px;
  border: 1px solid rgba(255, 229, 180, 0.34);
  border-radius: 12px;
  padding: 0 18px;
  color: #100d09;
  background: linear-gradient(180deg, #ffe5b4, #d7b24a);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  font-weight: 860;
  line-height: 1.1;
}

.legal-consent-button:hover,
.legal-consent-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.48);
  background: linear-gradient(180deg, #fff1cf, #e0bd57);
}

.footer-copyright,
.footer-legal-notice {
  color: rgba(242, 238, 231, 0.82);
}

.footer-legal-notice {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 12px;
}

.footer-legal-notice strong {
  color: #fffaf0;
}

@media (max-width: 520px) {
  .legal-consent-overlay {
    align-items: end;
    padding: 12px;
  }

  .legal-consent-panel {
    padding: 20px;
  }

  .legal-consent-button {
    width: 100%;
  }
}

/* Supplement evidence and medication safety fields */
.supplement-field,
.supplement-safety-alert {
  display: grid;
  min-width: 0;
  gap: 7px;
  padding: 12px 14px;
  border-radius: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.supplement-field {
  border: 1px solid rgba(0, 242, 254, 0.14);
  background:
    linear-gradient(135deg, rgba(0, 242, 254, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(3, 8, 18, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.075);
}

.supplement-field .field-value {
  color: rgba(229, 247, 255, 0.9);
  font-weight: 720;
}

.supplement-evidence-badge,
.badge.supplement-evidence-high,
.badge.supplement-evidence-medium-high,
.badge.supplement-evidence-medium,
.badge.supplement-evidence-low,
.badge.supplement-evidence-neutral {
  color: #c9fbff;
  border-color: rgba(0, 242, 254, 0.46) !important;
  background: rgba(0, 242, 254, 0.12) !important;
  box-shadow:
    0 0 18px rgba(0, 242, 254, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.35);
}

.supplement-evidence-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 242, 254, 0.46);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: var(--text-xs);
  font-weight: 860;
  line-height: 1.1;
}

.supplement-evidence-medium-high {
  color: #d9fff0 !important;
  border-color: rgba(103, 255, 188, 0.42) !important;
  background: rgba(103, 255, 188, 0.11) !important;
  box-shadow: 0 0 16px rgba(103, 255, 188, 0.16);
}

.supplement-evidence-medium {
  color: #ffe8ad !important;
  border-color: rgba(255, 201, 89, 0.42) !important;
  background: rgba(255, 201, 89, 0.12) !important;
  box-shadow: 0 0 16px rgba(255, 201, 89, 0.14);
}

.supplement-evidence-low {
  color: #ffc4bc !important;
  border-color: rgba(255, 110, 110, 0.38) !important;
  background: rgba(255, 110, 110, 0.12) !important;
  box-shadow: 0 0 16px rgba(255, 110, 110, 0.15);
}

.supplement-safety-alert {
  border: 1px solid rgba(255, 110, 110, 0.34) !important;
  background:
    linear-gradient(135deg, rgba(255, 110, 110, 0.16), rgba(255, 173, 75, 0.07)),
    rgba(3, 8, 18, 0.55) !important;
  box-shadow:
    0 0 24px rgba(255, 110, 110, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.supplement-safety-alert .field-label {
  color: rgba(255, 110, 110, 0.9);
  text-shadow: 0 0 12px rgba(255, 110, 110, 0.28);
}

.supplement-safety-alert .field-value {
  color: rgba(255, 218, 205, 0.94);
  font-weight: 760;
}

.supplements-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
  gap: var(--space-5);
  align-items: center;
  margin-bottom: var(--space-4);
  padding: var(--panel-pad);
}

.supplements-hero p,
.supplements-warning p {
  max-width: 980px;
  margin: var(--space-2) 0 0;
  color: rgba(242, 238, 231, 0.84);
  line-height: var(--leading-copy);
}

.supplements-summary-grid {
  display: grid;
  gap: var(--space-3);
}

.supplements-summary-grid > div {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(0, 242, 254, 0.14);
  border-radius: 14px;
  background: rgba(3, 8, 18, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.075);
}

.supplements-summary-grid .stat-label,
.supplements-summary-grid .stat-value {
  line-height: 1;
  white-space: nowrap;
}

.supplements-summary-grid .stat-label {
  color: var(--subtle);
  font-size: 0.78rem;
}

.supplements-summary-grid .stat-value {
  color: var(--text);
  font-weight: 850;
}

.supplements-warning {
  margin-bottom: var(--space-4);
  padding: var(--space-4);
  border-color: rgba(255, 173, 75, 0.22) !important;
}

.supplement-risk-section {
  margin-top: var(--space-5);
}

.supplement-risk-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
  padding: 0 2px;
}

.supplement-risk-heading h2 {
  margin: 4px 0 0;
  color: #fffaf0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 850;
  line-height: 1.1;
}

.supplement-risk-heading > span {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 820;
  white-space: nowrap;
}

.badge.risk-high {
  color: #ffd3cb;
  border-color: rgba(255, 110, 110, 0.44) !important;
  background: rgba(255, 110, 110, 0.14) !important;
  box-shadow: 0 0 16px rgba(255, 110, 110, 0.16);
}

.badge.risk-moderate {
  color: #ffe5b4;
  border-color: rgba(255, 193, 111, 0.4) !important;
  background: rgba(255, 173, 75, 0.13) !important;
}

.badge.risk-low {
  color: #c9fbff;
  border-color: rgba(0, 242, 254, 0.4) !important;
  background: rgba(0, 242, 254, 0.11) !important;
}

@keyframes supplement-critical-pulse {
  0%,
  100% {
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.37),
      0 0 0 rgba(255, 110, 110, 0);
  }

  50% {
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.37),
      0 0 28px rgba(255, 110, 110, 0.18);
  }
}

@media (max-width: 520px) {
  .supplement-risk-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .method-signal,
  .supplement-field {
    display: grid;
    grid-template-columns: minmax(86px, 0.38fr) minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-bottom-color: rgba(255, 255, 255, 0.11);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035) !important;
  }

  .method-signal small,
  .supplement-field .field-label {
    min-width: 0;
    color: rgba(214, 231, 238, 0.72);
    font-size: 0.68rem;
    line-height: 1.25;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }

  .method-signal strong,
  .method-signal em,
  .supplement-field .field-value {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* ── Isolated Breath Pacer ──────────────────────────────────────────────────
   Scoped entirely to .isolated-pacer-* — no global selector pollution.
   Rendered at the top of the Dashboard section by renderDashboard() in app.js.
─────────────────────────────────────────────────────────────────────────── */
.isolated-pacer-container {
  max-width: 480px;
  margin: 0 auto 2.5rem;
  padding: 2rem 1.5rem 1.75rem;
  background: rgba(14, 20, 18, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(0, 242, 254, 0.12);
  border-radius: 20px;
  text-align: center;
}

.isolated-pacer-header {
  margin-bottom: 1.5rem;
}

.isolated-pacer-title {
  margin: 0.25rem 0 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: inherit;
}

.isolated-pacer-desc {
  font-size: 0.82rem;
  opacity: 0.58;
  margin: 0.4rem 0 0;
  line-height: 1.5;
}

.isolated-pacer-ring-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.isolated-pacer-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(0, 242, 254, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: border-color 0.8s ease, box-shadow 0.8s ease;
}

.isolated-pacer-ring.is-inhale {
  border-color: #00f2fe;
  box-shadow: 0 0 24px rgba(0, 242, 254, 0.4);
}

.isolated-pacer-ring.is-exhale {
  border-color: #4facfe;
  box-shadow: 0 0 16px rgba(79, 172, 254, 0.3);
}

.isolated-pacer-ring.is-hold,
.isolated-pacer-ring.is-hold2 {
  border-color: rgba(0, 242, 254, 0.45);
  box-shadow: none;
}

.isolated-pacer-phase {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.88);
}

.isolated-pacer-count {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
  color: #00f2fe;
  min-height: 1.65rem;
}

.isolated-pacer-controls {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.isolated-pacer-btn {
  padding: 0.48rem 1.4rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 242, 254, 0.28);
  background: rgba(0, 242, 254, 0.08);
  color: inherit;
  cursor: pointer;
  font-size: 0.88rem;
  font-family: inherit;
  transition: background 0.15s;
}

.isolated-pacer-btn:hover {
  background: rgba(0, 242, 254, 0.16);
}

.isolated-pacer-btn-secondary {
  border-color: rgba(255, 255, 255, 0.1);
  background: transparent;
  opacity: 0.6;
}

.isolated-pacer-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  opacity: 0.85;
}

@media (max-width: 520px) {
  .isolated-pacer-container {
    padding: 1.5rem 1rem 1.25rem;
  }
}

/* ── Auth modal & button ────────────────────────────────────────────────────
   Additive only — no existing rule is modified.
   Scoped to .auth-button, .auth-overlay, .auth-panel, .auth-*, .google-auth-button.
─────────────────────────────────────────────────────────────────────────── */
.auth-button {
  padding: 0 14px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(0, 242, 254, 0.28);
  background: rgba(0, 242, 254, 0.07);
  color: inherit;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.auth-button:hover {
  background: rgba(0, 242, 254, 0.14);
}

.auth-button.is-signed-in {
  border-color: rgba(0, 242, 254, 0.5);
  background: rgba(0, 242, 254, 0.12);
  color: #00f2fe;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.auth-overlay.is-hidden {
  display: none;
}

.auth-panel {
  position: relative;
  width: min(420px, 100%);
  background: rgba(14, 20, 18, 0.97);
  border: 1px solid rgba(0, 242, 254, 0.18);
  border-radius: 18px;
  padding: 2rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.7);
}

.auth-close-button {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s;
  font-family: inherit;
}

.auth-close-button:hover {
  color: rgba(255, 255, 255, 0.8);
}

.auth-header h2 {
  margin: 0.2rem 0 0;
  font-size: 1.15rem;
}

.auth-header p {
  margin: 0.3rem 0 0;
  font-size: 0.82rem;
  opacity: 0.58;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.auth-field input {
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.15s;
}

.auth-field input:focus {
  border-color: rgba(0, 242, 254, 0.4);
}

.auth-submit-button {
  width: 100%;
  justify-content: center;
}

.google-auth-button {
  width: 100%;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  cursor: pointer;
  font-size: 0.88rem;
  font-family: inherit;
  transition: background 0.15s;
}

.google-auth-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
}

.google-auth-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.auth-mode-row {
  text-align: center;
}

.auth-mode-toggle {
  background: none;
  border: none;
  color: rgba(0, 242, 254, 0.7);
  cursor: pointer;
  font-size: 0.82rem;
  text-decoration: underline;
  font-family: inherit;
}

.auth-mode-toggle:hover {
  color: #00f2fe;
}

.auth-status {
  font-size: 0.8rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  min-height: 1.2em;
}

.auth-status.is-error {
  color: rgba(255, 100, 100, 0.9);
}

/* ─── Legal content hardening additions ───────────────────────────────── */

.legal-notice-inline {
  margin-top: var(--space-3, 0.75rem);
  padding: 0.6rem 0.9rem;
  border-left: 2px solid rgba(255, 173, 75, 0.4);
  border-radius: 0 6px 6px 0;
  background: rgba(255, 173, 75, 0.06);
  color: rgba(242, 238, 231, 0.78);
  font-size: 0.83rem;
  line-height: 1.55;
}

.legal-notice-panel {
  display: grid;
  gap: var(--space-2, 0.5rem);
  margin-top: var(--space-3, 0.75rem);
  padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
  border: 1px solid rgba(255, 173, 75, 0.18);
  border-radius: var(--radius, 12px);
  background: rgba(255, 173, 75, 0.05);
}

.legal-notice-panel p {
  margin: 0;
  color: rgba(242, 238, 231, 0.78);
  font-size: 0.83rem;
  line-height: 1.55;
}

.dialog-legal-accordions {
  display: grid;
  gap: var(--space-3, 0.75rem);
  margin-top: var(--space-5, 1.5rem);
  padding-top: var(--space-4, 1rem);
  border-top: 1px solid var(--surface-border, rgba(255, 255, 255, 0.08));
}

.legal-accordion {
  border: 1px solid var(--surface-border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius, 12px);
  background: rgba(255, 255, 255, 0.026);
}

.legal-accordion-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--muted, rgba(242, 238, 231, 0.55));
  letter-spacing: 0.04em;
  text-transform: uppercase;
  list-style: none;
  user-select: none;
}

.legal-accordion-summary::-webkit-details-marker { display: none; }

.legal-accordion-summary::before {
  content: "▸";
  font-size: 0.7rem;
  transition: transform 0.15s;
}

.legal-accordion[open] .legal-accordion-summary::before {
  transform: rotate(90deg);
}

.legal-accordion-body {
  display: grid;
  gap: var(--space-3, 0.75rem);
  padding: 0 var(--space-4, 1rem) var(--space-4, 1rem);
}

.legal-accordion-body p {
  margin: 0;
  color: rgba(242, 238, 231, 0.75);
  font-size: 0.82rem;
  line-height: 1.6;
}

.footer-legal-links {
  margin-top: var(--space-2, 0.5rem);
  font-size: 0.8rem;
}

.footer-link-btn {
  display: inline;
  padding: 0;
  border: none;
  background: none;
  color: var(--muted, rgba(242, 238, 231, 0.55));
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-link-btn:hover {
  color: var(--text, rgba(242, 238, 231, 0.95));
}

/* Phase 1 visual refresh: scoped to approved educational content surfaces. */
.disclaimer {
  position: relative;
  overflow: hidden;
  padding: 15px 18px 15px 22px;
  border-color: rgba(239, 195, 96, 0.4);
  border-radius: 16px 22px 22px 16px;
  background:
    linear-gradient(105deg, rgba(239, 195, 96, 0.16), rgba(77, 159, 192, 0.07) 68%),
    rgba(10, 16, 25, 0.78);
  color: #f3e7c8;
  line-height: 1.6;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.disclaimer::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #f4c96f, #e09745);
  content: "";
}

.dashboard-explainer,
.methodology-panel,
.top-picks-panel,
.protocols-note,
.protocol-summary-strip,
.sources-note,
.sources-summary-strip,
.safety-map {
  border-color: rgba(124, 185, 211, 0.18) !important;
  border-radius: 24px 18px 26px 18px !important;
  background:
    radial-gradient(circle at 4% 8%, rgba(75, 185, 201, 0.1), transparent 37%),
    linear-gradient(140deg, rgba(15, 27, 42, 0.75), rgba(9, 14, 25, 0.7)) !important;
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.055) !important;
}

.dashboard-explainer p,
.methodology-panel p,
.top-picks-panel .panel-header p,
.protocols-note p,
.sources-note p,
.safety-map p {
  color: #d5d4cd;
}

.methodology-panel .panel-header h2,
.top-picks-panel .panel-header h2,
.safety-section-header h2 {
  color: #fbfaf3;
  letter-spacing: -0.025em;
}

.methods-toolbar,
.sources-tools {
  border-color: rgba(94, 188, 209, 0.24);
  border-radius: 22px 16px 24px 16px;
  background:
    linear-gradient(130deg, rgba(32, 65, 83, 0.34), rgba(10, 16, 27, 0.86)),
    rgba(9, 15, 25, 0.82);
  box-shadow:
    0 17px 38px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.methods-toolbar .search-row input,
.methods-toolbar .sort-control,
.methods-layout .filters select,
.sources-tools .control {
  border-color: rgba(148, 200, 220, 0.28);
  border-radius: 14px;
  background: rgba(7, 15, 27, 0.64);
  color: #f5f5ee;
}

.methods-toolbar .search-row input::placeholder,
.sources-tools .control::placeholder {
  color: rgba(220, 218, 209, 0.7);
}

.methods-toolbar .search-row input:focus,
.methods-toolbar .sort-control:focus-within,
.methods-layout .filters select:focus,
.sources-tools .control:focus {
  border-color: rgba(89, 207, 218, 0.68);
  background: rgba(10, 21, 34, 0.92);
  box-shadow:
    0 0 0 4px rgba(64, 179, 204, 0.18),
    0 12px 25px rgba(0, 0, 0, 0.16);
}

.methods-layout .filters {
  border-color: rgba(118, 189, 211, 0.2) !important;
  border-radius: 18px 24px 20px 26px !important;
  background:
    linear-gradient(155deg, rgba(25, 48, 65, 0.42), rgba(10, 16, 27, 0.72)),
    rgba(8, 14, 24, 0.72) !important;
}

.methods-toolbar .filter-toggle,
.methods-toolbar .reset-button,
.sources-tools .source-reset {
  border: 1px solid rgba(109, 185, 207, 0.23);
  border-radius: 13px;
  color: #e8ebe7;
  background: rgba(78, 145, 171, 0.1);
}

.methods-toolbar .filter-toggle:hover,
.methods-toolbar .filter-toggle:focus-visible,
.methods-toolbar .reset-button:hover,
.methods-toolbar .reset-button:focus-visible,
.sources-tools .source-reset:hover,
.sources-tools .source-reset:focus-visible {
  border-color: rgba(93, 208, 218, 0.52);
  background: rgba(73, 167, 190, 0.17);
  box-shadow: 0 0 0 3px rgba(64, 179, 204, 0.15);
}

.methods-toolbar .preset-chip {
  border-radius: 15px 21px 15px 21px;
  border-color: rgba(130, 185, 211, 0.17);
  background: rgba(45, 83, 103, 0.12);
}

.methods-toolbar .preset-chip small {
  color: #bfc9c7;
}

.methods-toolbar .active-filter-chip {
  border-color: rgba(96, 196, 208, 0.25);
  background: rgba(62, 150, 175, 0.15);
  color: #eef5ef;
}

@media (max-width: 820px) {
  .disclaimer {
    padding: 13px 14px 13px 18px;
    border-radius: 14px 19px 19px 14px;
    line-height: 1.55;
  }

  .dashboard-explainer,
  .protocols-note,
  .sources-note,
  .methods-toolbar,
  .sources-tools,
  .methods-layout .filters {
    border-radius: 18px !important;
  }
}

/* Dashboard product-showcase refinement: dashboard presentation only. */
.dashboard-showcase {
  display: grid;
  gap: 0;
  margin-bottom: clamp(18px, 3vw, 30px);
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid rgba(190, 204, 212, 0.12);
  border-radius: clamp(26px, 3.4vw, 40px);
  background:
    radial-gradient(circle at 6% 0%, rgba(27, 154, 157, 0.14), transparent 31%),
    radial-gradient(circle at 98% 5%, rgba(202, 166, 91, 0.1), transparent 26%),
    linear-gradient(152deg, rgba(7, 14, 24, 0.98), rgba(10, 19, 29, 0.97)) !important;
  box-shadow: 0 30px 68px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 249, 234, 0.055);
  color: #f8f4e9;
}

.dashboard-showcase .site-button,
.dashboard-tool-zone .isolated-pacer-btn {
  border-radius: 999px;
}

.dashboard-showcase .site-button-secondary {
  border-color: rgba(245, 230, 198, 0.19);
  background: rgba(255, 253, 247, 0.055);
  color: #f3eee2;
}

.dashboard-tool-zone {
  grid-area: tool;
  display: flex;
  min-width: 0;
}

.dashboard-tool-zone .isolated-pacer-container {
  display: flex;
  width: 100%;
  max-width: none;
  margin: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(23px, 3.4vw, 36px);
  border: 1px solid rgba(238, 213, 160, 0.14);
  border-radius: clamp(24px, 3vw, 32px);
  background:
    radial-gradient(circle at 50% 43%, rgba(18, 157, 160, 0.18), transparent 45%),
    linear-gradient(145deg, rgba(18, 29, 38, 0.94), rgba(9, 16, 24, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 248, 230, 0.055), 0 20px 44px rgba(0, 0, 0, 0.18);
}

.dashboard-tool-zone .isolated-pacer-title,
.dashboard-tool-zone .isolated-pacer-phase,
.dashboard-tool-zone .isolated-pacer-count {
  color: #fffdf7;
}

.dashboard-tool-zone .isolated-pacer-desc {
  color: rgba(237, 232, 222, 0.76);
}

.dashboard-tool-zone .isolated-pacer-ring {
  border-color: rgba(33, 173, 175, 0.38);
  background: rgba(5, 13, 21, 0.42);
  box-shadow: 0 0 0 1px rgba(242, 218, 169, 0.07), 0 18px 36px rgba(0, 0, 0, 0.2);
}

.dashboard-tool-zone .isolated-pacer-btn-secondary {
  border-color: rgba(245, 230, 198, 0.2);
  background: rgba(255, 253, 247, 0.06);
  color: #f3eee2;
}

.dashboard-metadata-runway {
  grid-area: metadata;
  display: grid;
  grid-template-columns: minmax(230px, 0.82fr) minmax(300px, 1.18fr);
  align-items: start;
  gap: clamp(24px, 4.2vw, 56px);
  padding-top: clamp(24px, 3.8vw, 38px);
  border-top: 1px solid rgba(245, 230, 198, 0.15);
}

.dashboard-showcase .dashboard-metadata-runway h2,
.dashboard-band-header h2 {
  margin: 6px 0 0;
  color: #fffdf7;
}

.dashboard-showcase .dashboard-metadata-runway p,
.dashboard-band-header p,
.dashboard-boundary-band p {
  color: rgba(238, 234, 224, 0.8) !important;
}

.dashboard-workbook-rows {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(245, 230, 198, 0.13);
}

.dashboard-workbook-rows .mini-row {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 13px clamp(10px, 1.4vw, 18px);
  border: 0;
  border-right: 1px solid rgba(245, 230, 198, 0.13);
  border-radius: 0;
  background: transparent;
}

.dashboard-workbook-rows .mini-row:first-child {
  padding-left: 0;
}

.dashboard-workbook-rows .mini-row:last-child {
  border-right: 0;
}

.dashboard-workbook-rows .mini-row span:first-child {
  color: rgba(230, 224, 213, 0.69);
}

.dashboard-workbook-rows .mini-row span:last-child {
  overflow-wrap: anywhere;
  color: #f9f4e8;
}

.dashboard-guide-stage,
.dashboard-discovery-stage,
.dashboard-research-stage {
  min-width: 0;
  padding: clamp(32px, 5.5vw, 58px) clamp(4px, 2.5vw, 28px) 0;
  border-top: 1px solid rgba(245, 230, 198, 0.12);
  background: transparent !important;
}

.dashboard-guide-stage,
.dashboard-discovery-stage {
  margin-bottom: clamp(34px, 5.5vw, 58px);
}

.dashboard-guide-section,
.dashboard-facts-band,
.dashboard-signal-stage,
.dashboard-insight-stage,
.dashboard-analysis-segment {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  color: #f8f4e9;
}

.dashboard-guide-section + .dashboard-boundary-band,
.dashboard-boundary-band + .dashboard-guide-section {
  margin-top: clamp(26px, 4.6vw, 45px);
}

.dashboard-band-header {
  max-width: 890px;
  margin-bottom: clamp(20px, 3vw, 30px);
}

.dashboard-feature-rows,
.dashboard-methodology-rows,
.dashboard-facts-rows,
.dashboard-signal-rows,
.dashboard-insight-rows {
  border-top: 1px solid rgba(245, 230, 198, 0.13);
}

.dashboard-feature-row,
.dashboard-methodology-row {
  display: grid;
  grid-template-columns: minmax(175px, 0.36fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 38px);
  padding: clamp(17px, 2.4vw, 24px) 0;
  border-bottom: 1px solid rgba(245, 230, 198, 0.12);
}

.dashboard-feature-row h3,
.dashboard-methodology-row h3,
.dashboard-insight-group h3 {
  margin: 0;
  color: #fffdf7;
}

.dashboard-feature-row p,
.dashboard-methodology-row p,
.dashboard-insight-group p {
  margin: 0;
  color: rgba(238, 234, 224, 0.78);
  line-height: 1.6;
}

.dashboard-boundary-band {
  padding: clamp(18px, 2.7vw, 25px) clamp(17px, 3vw, 28px);
  border: 0;
  border-left: 3px solid rgba(214, 181, 107, 0.74);
  border-radius: 0 18px 18px 0;
  background: rgba(214, 181, 107, 0.055) !important;
  color: #f8f4e9;
}

.dashboard-facts-band {
  margin-bottom: clamp(30px, 4.5vw, 45px);
}

.dashboard-facts-rows {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-fact-row {
  min-width: 0;
  padding: clamp(17px, 2.5vw, 25px);
  border-right: 1px solid rgba(245, 230, 198, 0.12);
}

.dashboard-fact-row:nth-child(4n + 1) {
  padding-left: 0;
}

.dashboard-fact-row:nth-child(4n) {
  border-right: 0;
}

.dashboard-fact-row small,
.dashboard-signal-group > small {
  color: rgba(230, 224, 213, 0.66);
}

.dashboard-fact-row strong,
.dashboard-signal-group > strong {
  display: block;
  margin: 10px 0;
  color: #fffdf7;
  font-size: clamp(1.22rem, 2vw, 1.72rem);
}

.dashboard-fact-row span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(211, 181, 113, 0.12);
  color: #f1ddad;
  font-size: 0.74rem;
  font-weight: 760;
}

.dashboard-fact-row p,
.dashboard-signal-group > p {
  margin: 11px 0 0;
  color: rgba(238, 234, 224, 0.72);
  line-height: 1.52;
}

.dashboard-signal-rows,
.dashboard-insight-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(22px, 3.3vw, 40px);
}

.dashboard-signal-group,
.dashboard-insight-group {
  min-width: 0;
  padding: clamp(18px, 2.7vw, 27px) 0;
  border-bottom: 1px solid rgba(245, 230, 198, 0.12);
}

.dashboard-insight-stage {
  margin-bottom: clamp(34px, 5vw, 54px);
}

.dashboard-insight-header {
  margin-bottom: 15px;
}

.dashboard-insight-header h3 {
  margin-top: 13px;
}

.dashboard-insight-header p {
  margin-top: 8px;
}

.dashboard-analysis-stage,
.dashboard-chart-stack {
  display: grid;
  gap: 0;
  background: transparent !important;
}

.dashboard-analysis-segment {
  padding: clamp(27px, 4.2vw, 42px) 0;
  border-top: 1px solid rgba(245, 230, 198, 0.12);
}

.dashboard-analysis-stage > .dashboard-analysis-segment:first-child {
  padding-top: 0;
  border-top: 0;
}

.dashboard-research-stage > .dashboard-boundary-band {
  margin-top: clamp(26px, 4.5vw, 44px);
}

.dashboard-showcase .summary-method,
.dashboard-showcase .dashboard-pick,
.dashboard-showcase .rank-row,
.dashboard-showcase .chart-row {
  border-color: rgba(245, 230, 198, 0.09);
  background: transparent;
  color: #f8f4e9;
}

.dashboard-showcase .summary-method:hover,
.dashboard-showcase .dashboard-pick:hover,
.dashboard-showcase .rank-row:hover,
.dashboard-showcase .chart-row:not(.is-static):hover {
  border-color: rgba(33, 173, 175, 0.3);
  background: rgba(33, 173, 175, 0.08);
}

.dashboard-showcase .chart-label,
.dashboard-showcase .chart-value,
.dashboard-showcase .rank-copy strong {
  color: #f8f4e9;
}

.dashboard-showcase .rank-copy small,
.dashboard-showcase .chart-total,
.dashboard-showcase .chart-legend {
  color: rgba(230, 224, 213, 0.68);
}

.dashboard-showcase .bar-track {
  background: rgba(255, 253, 247, 0.07);
}

.dashboard-showcase .bar-fill {
  background: linear-gradient(90deg, #159b9d, #d6b56b);
}

@media (max-width: 980px) {
  .dashboard-metadata-runway {
    grid-template-columns: 1fr;
  }

  .dashboard-workbook-rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-workbook-rows .mini-row:nth-child(2n) {
    border-right: 0;
  }

  .dashboard-workbook-rows .mini-row:nth-child(n + 3) {
    border-top: 1px solid rgba(245, 230, 198, 0.12);
  }

  .dashboard-facts-rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-fact-row:nth-child(2n) {
    border-right: 0;
  }

  .dashboard-fact-row:nth-child(n + 3) {
    border-top: 1px solid rgba(245, 230, 198, 0.12);
  }
}

@media (max-width: 620px) {
  .dashboard-showcase {
    padding: 13px;
    border-radius: 24px;
  }

  .dashboard-guide-stage,
  .dashboard-discovery-stage,
  .dashboard-research-stage {
    padding-left: 4px;
    padding-right: 4px;
  }

  .dashboard-tool-zone .isolated-pacer-container {
    padding: 18px;
    border-radius: 20px;
  }

  .dashboard-workbook-rows,
  .dashboard-feature-row,
  .dashboard-methodology-row,
  .dashboard-signal-rows,
  .dashboard-insight-rows,
  .dashboard-facts-rows {
    grid-template-columns: 1fr;
  }

  .dashboard-workbook-rows .mini-row,
  .dashboard-workbook-rows .mini-row:first-child,
  .dashboard-fact-row,
  .dashboard-fact-row:nth-child(4n + 1) {
    padding: 15px 0;
    border-right: 0;
    border-top: 1px solid rgba(245, 230, 198, 0.12);
  }

  .dashboard-workbook-rows .mini-row:first-child,
  .dashboard-fact-row:first-child {
    border-top: 0;
  }

  .dashboard-feature-row,
  .dashboard-methodology-row {
    gap: 8px;
  }
}

/* Section-based migration for the remaining workbook browse tabs. */
.methods-stage,
.supplements-stage,
.protocol-stage,
.safety-stage,
.sources-stage {
  display: grid;
  gap: clamp(24px, 3.5vw, 38px);
  margin-bottom: clamp(22px, 3vw, 34px);
  padding: clamp(20px, 3.2vw, 36px);
  border: 1px solid rgba(190, 204, 212, 0.12);
  border-radius: clamp(25px, 3.3vw, 39px);
  background:
    radial-gradient(circle at 8% 0%, rgba(27, 154, 157, 0.11), transparent 28%),
    radial-gradient(circle at 96% 1%, rgba(202, 166, 91, 0.07), transparent 24%),
    linear-gradient(152deg, rgba(7, 14, 24, 0.98), rgba(10, 19, 29, 0.97));
  box-shadow: 0 30px 68px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 249, 234, 0.05);
  color: #f8f4e9;
}

.methods-stage-header,
.protocol-stage-header,
.sources-stage-header,
.safety-stage-intro {
  max-width: 770px;
}

.methods-stage-header h1,
.protocol-stage-header h1,
.sources-stage-header h1,
.safety-stage-intro h1,
.supplements-intro-band h1 {
  margin: 8px 0 13px;
  color: #fffdf7;
  font-size: clamp(1.8rem, 3.45vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.methods-stage-header p,
.protocol-stage-header p,
.sources-stage-header p,
.safety-stage-intro p,
.supplements-intro-band p {
  max-width: 700px;
  margin: 0;
  color: rgba(238, 234, 224, 0.82);
  font-size: clamp(0.96rem, 1.2vw, 1.05rem);
  line-height: 1.65;
}

.methods-stage .section-label,
.supplements-stage .section-label,
.protocol-stage .section-label,
.safety-stage .section-label,
.sources-stage .section-label {
  color: #d9bf82;
}

/* Methods directory. */
.methods-stage .methods-toolbar {
  margin: 0;
  padding: clamp(14px, 2vw, 20px);
  border: 1px solid rgba(245, 230, 198, 0.11);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.035);
  box-shadow: none;
}

.methods-stage .methods-layout {
  align-items: start;
  gap: clamp(22px, 3vw, 34px);
}

.methods-stage .method-directory-filters {
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid rgba(245, 230, 198, 0.1);
  border-radius: 22px;
  background: rgba(255, 253, 247, 0.025);
}

.method-directory-results {
  min-width: 0;
}

.methods-stage .results-meta,
.sources-stage .results-meta {
  margin-bottom: clamp(16px, 2.2vw, 23px);
  color: rgba(232, 226, 214, 0.69);
}

.method-directory {
  display: grid;
  gap: clamp(28px, 4.2vw, 42px);
}

.method-directory-group {
  min-width: 0;
}

.method-directory-heading,
.supplement-risk-heading,
.source-group-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(245, 230, 198, 0.16);
}

.method-directory-heading h2,
.supplement-risk-heading h2,
.source-group-header h2 {
  margin: 6px 0 0;
  color: #fffdf7;
  font-size: clamp(1.18rem, 1.7vw, 1.42rem);
  letter-spacing: -0.025em;
}

.method-directory-heading > span,
.supplement-risk-heading > span,
.source-group-header > span {
  flex: 0 0 auto;
  color: rgba(232, 226, 214, 0.68);
  font-size: 0.83rem;
  font-weight: 720;
}

.method-directory-rows {
  display: grid;
}

.method-directory-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.5fr) minmax(235px, 1fr) minmax(145px, 0.74fr);
  align-items: center;
  gap: clamp(16px, 2.5vw, 28px);
  min-width: 0;
  padding: clamp(16px, 2.3vw, 22px) 0;
  border: 0;
  border-bottom: 1px solid rgba(245, 230, 198, 0.1);
  border-radius: 0;
  background: transparent;
  color: #f8f4e9;
  text-align: left;
  transition: background var(--motion), color var(--motion);
}

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

.method-directory-row:hover,
.method-directory-row:focus-visible {
  background: rgba(33, 173, 175, 0.07);
  box-shadow: inset 3px 0 0 rgba(45, 184, 185, 0.75);
}

.method-row-copy {
  min-width: 0;
}

.method-row-copy h3,
.supplement-row-header h3,
.protocol-item-header h2,
.safety-guidance-row h3,
.source-row-copy h3 {
  margin: 9px 0 7px;
  color: #fffdf7;
  font-size: clamp(1.04rem, 1.3vw, 1.17rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.method-row-copy p,
.protocol-item-header p,
.source-row-preview,
.source-row-notes {
  margin: 0;
  color: rgba(238, 234, 224, 0.78);
  font-size: 0.92rem;
  line-height: 1.55;
}

.method-row-context {
  display: block;
  margin-top: 10px;
  color: rgba(224, 216, 199, 0.72);
  font-size: 0.82rem;
  line-height: 1.45;
}

.method-row-signals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 16px;
}

.methods-stage .method-signal {
  min-width: 0;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.methods-stage .method-signal small {
  color: rgba(230, 224, 213, 0.59);
}

.methods-stage .method-signal strong {
  color: #f8f4e9;
}

.method-row-tail {
  display: grid;
  justify-items: start;
  gap: 10px;
  min-width: 0;
}

.method-row-reason {
  color: rgba(230, 224, 213, 0.7);
  font-size: 0.79rem;
  line-height: 1.45;
}

.method-row-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #83d8d5;
  font-size: 0.84rem;
  font-weight: 780;
}

.method-row-action::after {
  content: ">";
}

.methods-stage .method-ranking-note {
  margin: 0;
  padding: clamp(15px, 2vw, 20px) clamp(16px, 2.3vw, 23px);
  border: 0;
  border-left: 2px solid rgba(214, 181, 107, 0.72);
  border-radius: 0 16px 16px 0;
  background: rgba(214, 181, 107, 0.055);
  box-shadow: none;
}

.methods-stage .method-ranking-note p {
  margin: 8px 0 0;
  color: rgba(240, 232, 213, 0.84);
}

/* Supplement risk bands and safety-first rows. */
.supplements-intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: end;
}

.supplements-stage .legal-notice-inline {
  margin-top: 15px;
  padding: 13px 15px;
  border-left: 2px solid rgba(214, 181, 107, 0.72);
  border-radius: 0 14px 14px 0;
  background: rgba(214, 181, 107, 0.06);
  color: #f3dfaf;
}

.supplements-stage .supplements-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  align-self: end;
  border-top: 1px solid rgba(245, 230, 198, 0.15);
  background: transparent;
}

.supplements-stage .supplements-summary-grid > div {
  padding: 13px 12px;
  border: 0;
  border-right: 1px solid rgba(245, 230, 198, 0.12);
  border-radius: 0;
  background: transparent;
}

.supplements-stage .supplements-summary-grid > div:last-child {
  border-right: 0;
}

.supplements-stage .stat-label {
  color: rgba(230, 224, 213, 0.65);
}

.supplements-stage .stat-value {
  color: #f8f4e9;
}

.supplements-stage .supplements-warning,
.protocol-stage .protocols-note,
.sources-stage .sources-note {
  padding: clamp(15px, 2vw, 19px) clamp(16px, 2.3vw, 23px);
  border-left: 3px solid rgba(214, 181, 107, 0.78);
  border-radius: 0 17px 17px 0;
  background: rgba(214, 181, 107, 0.065);
}

.supplements-stage .supplements-warning p,
.protocol-stage .protocols-note p,
.sources-stage .sources-note p {
  margin: 8px 0 0;
  color: rgba(240, 232, 213, 0.84);
  line-height: 1.62;
}

.supplement-risk-directory {
  display: grid;
  gap: clamp(30px, 4vw, 46px);
}

.supplement-risk-band {
  position: relative;
  padding-left: clamp(13px, 1.8vw, 19px);
}

.supplement-risk-band::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 999px;
  background: #60797b;
  content: "";
}

.supplement-risk-band.risk-high::before {
  background: #ed7567;
}

.supplement-risk-band.risk-moderate::before {
  background: #d8aa55;
}

.supplement-risk-band.risk-low::before {
  background: #45b68c;
}

.supplement-risk-rows {
  display: grid;
}

.supplement-risk-row {
  display: grid;
  grid-template-columns: minmax(190px, 0.82fr) minmax(250px, 1.32fr) minmax(220px, 1fr);
  gap: clamp(15px, 2.5vw, 27px);
  align-items: start;
  padding: clamp(17px, 2.4vw, 24px) 0;
  border-bottom: 1px solid rgba(245, 230, 198, 0.1);
}

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

.supplement-row-header .badge-row {
  gap: 6px;
}

.supplement-row-alert {
  min-width: 0;
  padding: 12px 14px;
  border-left: 2px solid rgba(214, 181, 107, 0.75);
  background: rgba(214, 181, 107, 0.055);
}

.supplement-row-alert.is-critical {
  border-left-color: rgba(242, 111, 96, 0.9);
  background: rgba(219, 78, 73, 0.09);
}

.supplement-row-alert .field-value,
.supplement-row-meta .field-value {
  margin-top: 6px;
  color: rgba(238, 234, 224, 0.82);
}

.supplement-row-meta {
  display: grid;
  gap: 12px;
}

.supplements-stage .supplement-field {
  padding: 0;
  border: 0;
  background: transparent;
}

/* Protocol sequence timeline. */
.protocol-summary-band,
.sources-summary-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  border-top: 1px solid rgba(245, 230, 198, 0.15);
}

.protocol-summary-band > div,
.sources-summary-band > div {
  min-width: 0;
  padding: 14px 15px;
  border-right: 1px solid rgba(245, 230, 198, 0.12);
}

.protocol-summary-band > div:last-child,
.sources-summary-band > div:last-child {
  border-right: 0;
}

.protocol-summary-band .stat-label,
.sources-summary-band .stat-label {
  color: rgba(230, 224, 213, 0.64);
}

.protocol-summary-band .stat-value,
.sources-summary-band .stat-value {
  color: #f8f4e9;
}

.protocol-timeline {
  position: relative;
  display: grid;
  gap: clamp(26px, 3.6vw, 38px);
  padding-left: clamp(24px, 3vw, 37px);
}

.protocol-timeline::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 14px;
  width: 1px;
  background: rgba(111, 190, 208, 0.25);
  content: "";
}

.protocol-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.protocol-timeline-marker {
  position: absolute;
  top: 0;
  left: calc(clamp(24px, 3vw, 37px) * -1);
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid rgba(89, 195, 203, 0.43);
  border-radius: 999px;
  background: #0b1724;
  color: #7fd7db;
  font-size: 0.78rem;
  font-weight: 820;
}

.protocol-timeline-content {
  padding: 0 0 clamp(12px, 2vw, 18px) clamp(16px, 2.5vw, 30px);
}

.protocol-item-header {
  max-width: 790px;
}

.protocol-fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 17px 0 18px;
  border-top: 1px solid rgba(245, 230, 198, 0.12);
  border-bottom: 1px solid rgba(245, 230, 198, 0.12);
}

.protocol-stage .protocol-fact-row > div {
  min-width: 135px;
  padding: 10px 16px 10px 0;
  margin-right: 16px;
  border: 0;
  background: transparent;
}

.protocol-step-preview {
  max-width: 780px;
}

.protocol-stage .protocol-steps li {
  border-color: rgba(245, 230, 198, 0.09);
  background: transparent;
  color: rgba(238, 234, 224, 0.8);
}

.protocol-caution-band {
  max-width: 790px;
  margin-top: 15px;
  padding: 12px 15px;
  border-left: 2px solid rgba(214, 181, 107, 0.72);
  background: rgba(214, 181, 107, 0.055);
}

.protocol-caution-band p {
  margin: 7px 0 0;
}

.protocol-stage .protocol-related {
  max-width: 790px;
  margin-top: 15px;
}

.protocol-stage .protocol-related-list {
  margin-top: 8px;
}

.protocol-stage .related-method-pill {
  background: rgba(255, 253, 247, 0.035);
}

.protocol-stage .protocol-details {
  max-width: 790px;
  margin-top: 16px;
  border-color: rgba(245, 230, 198, 0.12);
  background: rgba(255, 253, 247, 0.025);
}

/* Visible safety bands. */
.safety-boundary-band {
  display: grid;
  grid-template-columns: minmax(240px, 0.84fr) minmax(300px, 1.16fr);
  gap: clamp(25px, 4vw, 53px);
  align-items: start;
}

.safety-boundary-alert {
  padding-left: clamp(17px, 2.5vw, 26px);
  border-left: 3px solid rgba(233, 102, 91, 0.84);
}

.safety-boundary-alert h2 {
  margin: 0 0 10px;
  color: #fffdf7;
  font-size: clamp(1.22rem, 2vw, 1.58rem);
}

.safety-boundary-alert > p {
  margin: 0 0 16px;
  color: #f4ded9;
  line-height: 1.62;
}

.safety-stage .legal-notice-panel {
  border-color: rgba(238, 110, 98, 0.27);
  background: rgba(218, 76, 73, 0.09);
}

.safety-map-band {
  display: grid;
  grid-template-columns: minmax(210px, 0.7fr) minmax(300px, 1.3fr);
  gap: clamp(22px, 3.4vw, 42px);
  padding: clamp(20px, 2.7vw, 27px) 0;
  border-top: 1px solid rgba(245, 230, 198, 0.13);
  border-bottom: 1px solid rgba(245, 230, 198, 0.13);
}

.safety-map-band p {
  margin: 8px 0 0;
  color: rgba(238, 234, 224, 0.78);
  line-height: 1.58;
}

.safety-stage .safety-map-grid span {
  border-color: rgba(245, 230, 198, 0.1);
  background: transparent;
  color: rgba(238, 234, 224, 0.78);
}

.safety-topic-directory {
  display: grid;
  gap: clamp(28px, 4vw, 43px);
}

.safety-topic-band {
  position: relative;
  padding-left: clamp(15px, 2.1vw, 23px);
}

.safety-topic-band::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 999px;
  background: #6baeb6;
  content: "";
}

.safety-topic-band.is-urgent::before {
  background: #ed7567;
}

.safety-topic-band.is-clinician::before,
.safety-topic-band.is-boundary::before {
  background: #ddb25f;
}

.safety-topic-band.is-substance::before {
  background: #de9361;
}

.safety-section-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(245, 230, 198, 0.14);
}

.safety-section-header h2 {
  margin: 6px 0 7px;
  color: #fffdf7;
}

.safety-section-header p {
  max-width: 650px;
  margin: 0;
  color: rgba(238, 234, 224, 0.78);
}

.safety-section-count {
  color: rgba(232, 226, 214, 0.7);
}

.safety-guidance-rows {
  display: grid;
}

.safety-guidance-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.55fr) minmax(250px, 1.45fr);
  gap: clamp(16px, 2.6vw, 30px);
  padding: clamp(16px, 2.3vw, 22px) 0;
  border-bottom: 1px solid rgba(245, 230, 198, 0.1);
}

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

.safety-guidance-row h3 {
  margin-top: 9px;
}

.safety-stage .safety-guidance {
  padding: 0;
  border: 0;
  background: transparent;
}

.safety-stage .safety-guidance .field-value {
  color: rgba(238, 234, 224, 0.84);
}

/* Reference directory rows. */
.sources-stage .sources-tools {
  margin: 0;
  padding: clamp(13px, 2vw, 19px);
  border: 1px solid rgba(245, 230, 198, 0.1);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.035);
}

.source-directory {
  display: grid;
  gap: clamp(29px, 4vw, 45px);
}

.source-group {
  position: relative;
  padding-left: clamp(13px, 1.8vw, 19px);
}

.source-group::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 999px;
  background: #4fb4bf;
  content: "";
}

.source-group.is-reddit-source::before {
  background: #d6b56b;
}

.source-group.is-clinical-source::before {
  background: #56be91;
}

.source-rows {
  display: grid;
}

.source-row {
  display: grid;
  grid-template-columns: minmax(230px, 1.18fr) minmax(190px, 0.8fr) auto;
  gap: clamp(16px, 2.6vw, 30px);
  align-items: center;
  padding: clamp(17px, 2.35vw, 23px) 0;
  border-bottom: 1px solid rgba(245, 230, 198, 0.1);
}

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

.source-row-notes {
  margin-top: 8px;
  color: rgba(224, 216, 199, 0.67);
  font-size: 0.84rem;
}

.source-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.source-row-meta > div {
  min-width: 95px;
}

.source-row-meta .stat-label {
  color: rgba(230, 224, 213, 0.6);
}

.source-row-meta .stat-value {
  display: block;
  margin-top: 5px;
  color: rgba(246, 241, 231, 0.88);
  font-size: 0.83rem;
}

.source-row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 8px 14px;
  border: 1px solid rgba(91, 198, 204, 0.27);
  border-radius: 999px;
  background: rgba(33, 173, 175, 0.08);
  color: #dff7f4;
  font-size: 0.84rem;
  font-weight: 780;
  text-decoration: none;
}

.source-row-action:hover,
.source-row-action:focus-visible {
  border-color: rgba(91, 208, 217, 0.54);
  background: rgba(33, 173, 175, 0.17);
  box-shadow: var(--focus-ring);
}

.source-row-action span {
  color: rgba(223, 238, 234, 0.63);
  font-size: 0.75rem;
}

.source-row-action::after {
  content: ">";
}

@media (max-width: 1020px) {
  .method-directory-row,
  .supplement-risk-row,
  .source-row {
    grid-template-columns: 1fr;
  }

  .method-row-tail {
    padding-top: 4px;
  }

  .supplements-intro-band,
  .safety-boundary-band,
  .safety-map-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .methods-stage,
  .supplements-stage,
  .protocol-stage,
  .safety-stage,
  .sources-stage {
    gap: 22px;
    padding: 15px;
    border-radius: 24px;
  }

  .methods-stage .methods-toolbar,
  .sources-stage .sources-tools {
    border-radius: 18px;
  }

  .methods-stage .methods-layout {
    display: grid;
  }

  .methods-stage .method-directory-filters {
    border-radius: 18px;
  }

  .method-directory-heading,
  .supplement-risk-heading,
  .source-group-header,
  .safety-section-header {
    align-items: start;
    flex-direction: column;
    gap: 9px;
  }

  .protocol-summary-band,
  .sources-summary-band,
  .supplements-stage .supplements-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .protocol-summary-band > div:nth-child(2n),
  .sources-summary-band > div:nth-child(2n),
  .supplements-stage .supplements-summary-grid > div:nth-child(2n) {
    border-right: 0;
  }

  .protocol-summary-band > div:nth-child(n + 3),
  .sources-summary-band > div:nth-child(n + 3),
  .supplements-stage .supplements-summary-grid > div:nth-child(n + 3) {
    border-top: 1px solid rgba(245, 230, 198, 0.12);
  }

  .safety-guidance-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .method-row-signals {
    grid-template-columns: 1fr 1fr;
  }

  .protocol-timeline {
    padding-left: 23px;
  }

  .protocol-timeline-marker {
    left: -23px;
    width: 25px;
    height: 25px;
  }

  .protocol-timeline-content {
    padding-left: 14px;
  }

  .source-row-action {
    justify-self: start;
  }
}

/* Reference-locked product showcase system: active, visible presentation surfaces only. */
:root {
  --rf-frame: #0d1012;
  --rf-frame-soft: #13171a;
  --rf-paper: #f8f6f0;
  --rf-paper-soft: #f0ede5;
  --rf-ink: #111315;
  --rf-ink-soft: #555b5b;
  --rf-rule: rgba(17, 19, 21, 0.11);
  --rf-rule-strong: rgba(17, 19, 21, 0.18);
  --rf-teal: #087f82;
  --rf-teal-soft: rgba(8, 127, 130, 0.1);
  --rf-amber: #9a6a18;
  --rf-amber-soft: #f2e5c8;
  --rf-coral: #a34439;
  --rf-coral-soft: #f7dfd8;
  --rf-green: #1f7758;
  --rf-radius-stage: clamp(28px, 4vw, 46px);
  --rf-radius-pill: 999px;
  --rf-shadow: 0 28px 74px rgba(0, 0, 0, 0.2);
  --rf-focus: 0 0 0 3px rgba(8, 127, 130, 0.2);
}

html body {
  background-color: var(--rf-frame) !important;
  background-image:
    radial-gradient(circle at 50% -8%, rgba(194, 163, 99, 0.1), transparent 36%),
    radial-gradient(circle at 86% 10%, rgba(27, 126, 130, 0.14), transparent 31%),
    linear-gradient(180deg, rgba(10, 13, 15, 0.88), rgba(10, 13, 15, 0.95) 42%, rgba(10, 13, 15, 0.98)),
    url("./anxietyflow-background.png") !important;
  background-size: auto, auto, cover, cover !important;
  background-position: center top, right top, center, center !important;
  background-attachment: fixed, fixed, fixed, fixed !important;
  color: #f6f2e9;
}

.app-main-content {
  max-width: 100%;
  margin-inline: auto;
}

body .app-warning-banner {
  overflow: hidden;
  border-bottom-color: rgba(218, 183, 111, 0.3) !important;
  background: rgba(18, 18, 18, 0.82) !important;
  color: #f4e5c4;
  letter-spacing: 0.025em;
  text-shadow: none;
  box-shadow: inset 0 -1px 0 rgba(222, 187, 113, 0.13), 0 10px 28px rgba(0, 0, 0, 0.16);
}

body .app-warning-banner::before {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(225, 191, 118, 0.66), transparent);
  content: "";
}

body .app-header-card {
  box-sizing: border-box;
  padding-inline: clamp(20px, 3vw, 40px);
  border-color: rgba(244, 239, 229, 0.12) !important;
  border-radius: 0 0 clamp(18px, 2.5vw, 28px) clamp(18px, 2.5vw, 28px) !important;
  background: rgba(18, 19, 20, 0.76) !important;
  backdrop-filter: blur(26px) saturate(125%) !important;
  -webkit-backdrop-filter: blur(26px) saturate(125%) !important;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 251, 243, 0.07) !important;
}

body .app-header-card .app-header-title {
  color: #fcfaf4;
  letter-spacing: -0.035em;
}

body .app-header-card .app-header-action,
body .app-header-card .tab {
  border: 1px solid rgba(244, 239, 229, 0.13);
  border-radius: var(--rf-radius-pill);
  background: rgba(248, 246, 240, 0.045);
  color: rgba(249, 246, 238, 0.86);
  box-shadow: none;
}

body .app-header-card .tabs {
  border-color: rgba(244, 239, 229, 0.1) !important;
  border-radius: var(--rf-radius-pill);
  background: rgba(248, 246, 240, 0.035) !important;
  box-shadow: inset 0 1px 0 rgba(255, 251, 242, 0.045);
}

body .app-header-card .app-header-action:hover,
body .app-header-card .app-header-action:focus-visible,
body .app-header-card .tab:hover,
body .app-header-card .tab:focus-visible {
  border-color: rgba(226, 191, 116, 0.42);
  background: rgba(248, 246, 240, 0.1);
  box-shadow: 0 0 0 3px rgba(226, 191, 116, 0.12);
}

body .app-header-card .tab.is-active,
body .app-header-card .app-header-action.is-signed-in {
  border-color: rgba(207, 182, 124, 0.4);
  background: #f7f4ed;
  color: #101315;
  -webkit-text-fill-color: #101315;
}

body .app-shell > .disclaimer {
  max-width: 1500px;
  margin-top: clamp(12px, 1.7vw, 18px);
  margin-inline: auto;
  border-color: rgba(203, 169, 93, 0.29);
  border-radius: 20px;
  background: rgba(28, 26, 21, 0.76);
  color: #f0debb;
  box-shadow: none;
}

/* One paper-like editorial focal surface per active content section. */
.dashboard-showcase,
.methods-stage,
.supplements-stage,
.protocol-stage,
.safety-stage,
.sources-stage {
  color: var(--rf-ink);
  border: 1px solid rgba(255, 253, 248, 0.58);
  border-radius: var(--rf-radius-stage);
  background: var(--rf-paper) !important;
  box-shadow: var(--rf-shadow);
}

.dashboard-showcase {
  gap: 0;
  padding: clamp(22px, 4vw, 52px);
}

.dashboard-guide-stage,
.dashboard-discovery-stage,
.dashboard-research-stage {
  background: transparent !important;
}

.dashboard-showcase .dashboard-metadata-runway p,
.dashboard-showcase .dashboard-band-header p,
.dashboard-showcase .dashboard-boundary-band p,
.dashboard-feature-row p,
.dashboard-methodology-row p,
.dashboard-insight-group p,
.dashboard-fact-row p,
.dashboard-signal-group > p {
  color: var(--rf-ink-soft) !important;
}

.dashboard-showcase .site-button {
  border-color: #111315;
  background: #111315;
  color: #f9f7f0;
}

.dashboard-showcase .site-button-secondary {
  border-color: var(--rf-rule-strong);
  background: transparent;
  color: var(--rf-ink);
}

.dashboard-showcase .site-button:hover,
.dashboard-showcase .site-button:focus-visible {
  box-shadow: var(--rf-focus);
}

.dashboard-tool-zone .isolated-pacer-container {
  border-color: rgba(255, 253, 248, 0.08);
  background:
    radial-gradient(circle at 50% 44%, rgba(13, 137, 140, 0.22), transparent 46%),
    linear-gradient(148deg, #171b1e, #0e1113) !important;
  box-shadow: 0 24px 44px rgba(18, 19, 20, 0.18);
}

.dashboard-metadata-runway,
.dashboard-guide-stage,
.dashboard-discovery-stage,
.dashboard-research-stage,
.dashboard-feature-rows,
.dashboard-methodology-rows,
.dashboard-facts-rows,
.dashboard-signal-rows,
.dashboard-insight-rows,
.dashboard-analysis-segment {
  border-color: var(--rf-rule);
}

.dashboard-showcase .dashboard-metadata-runway h2,
.dashboard-showcase .dashboard-band-header h2,
.dashboard-feature-row h3,
.dashboard-methodology-row h3,
.dashboard-insight-group h3,
.dashboard-fact-row strong,
.dashboard-signal-group > strong,
.dashboard-showcase .chart-label,
.dashboard-showcase .chart-value,
.dashboard-showcase .rank-copy strong {
  color: var(--rf-ink);
}

.dashboard-workbook-rows,
.dashboard-workbook-rows .mini-row,
.dashboard-feature-row,
.dashboard-methodology-row,
.dashboard-fact-row,
.dashboard-signal-group,
.dashboard-insight-group {
  border-color: var(--rf-rule);
}

.dashboard-workbook-rows .mini-row span:first-child,
.dashboard-fact-row small,
.dashboard-signal-group > small,
.dashboard-showcase .rank-copy small,
.dashboard-showcase .chart-total,
.dashboard-showcase .chart-legend {
  color: #70736f;
}

.dashboard-workbook-rows .mini-row span:last-child {
  color: var(--rf-ink);
}

.dashboard-boundary-band {
  border-left-color: var(--rf-amber);
  background: #f2ead8 !important;
  color: var(--rf-ink);
}

.dashboard-fact-row span {
  background: var(--rf-amber-soft);
  color: #674c1a;
}

.dashboard-showcase .summary-method,
.dashboard-showcase .dashboard-pick,
.dashboard-showcase .rank-row,
.dashboard-showcase .chart-row {
  border-color: var(--rf-rule);
  background: transparent;
  color: var(--rf-ink);
}

.dashboard-showcase .summary-method:hover,
.dashboard-showcase .dashboard-pick:hover,
.dashboard-showcase .rank-row:hover,
.dashboard-showcase .chart-row:not(.is-static):hover {
  border-color: rgba(8, 127, 130, 0.24);
  background: var(--rf-teal-soft);
}

.dashboard-showcase .bar-track {
  background: rgba(17, 19, 21, 0.08);
}

.dashboard-showcase .bar-fill {
  background: linear-gradient(90deg, var(--rf-teal), #c49b49);
}

/* Common editorial stage hierarchy for browse tabs. */
.methods-stage,
.supplements-stage,
.protocol-stage,
.safety-stage,
.sources-stage {
  gap: clamp(32px, 5vw, 62px);
  padding: clamp(28px, 5.2vw, 64px);
}

:is(.methods-stage, .protocol-stage, .safety-stage, .sources-stage) :is(.section-title, h1, h2, h3),
.supplements-stage :is(.section-title, h1, h2, h3) {
  color: var(--rf-ink);
}

:is(.methods-stage, .supplements-stage, .protocol-stage, .safety-stage, .sources-stage) p {
  color: var(--rf-ink-soft);
}

:is(.methods-stage, .supplements-stage, .protocol-stage, .safety-stage, .sources-stage) .section-label {
  color: var(--rf-teal);
}

.methods-stage-header,
.protocol-stage-header,
.sources-stage-header,
.safety-stage-intro {
  max-width: 780px;
}

.methods-stage-header h1,
.protocol-stage-header h1,
.sources-stage-header h1,
.safety-stage-intro h1,
.supplements-intro-band h1 {
  color: var(--rf-ink) !important;
  font-size: clamp(2.1rem, 4vw, 3.85rem);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

/* Pill discovery tools and filters. */
.methods-stage .methods-toolbar,
.sources-stage .sources-tools {
  padding: clamp(10px, 1.5vw, 14px);
  border-color: var(--rf-rule);
  border-radius: var(--rf-radius-pill);
  background: var(--rf-paper-soft) !important;
  box-shadow: none;
}

.methods-stage .method-directory-filters {
  border-color: var(--rf-rule) !important;
  border-radius: 24px !important;
  background: var(--rf-paper-soft) !important;
  box-shadow: none !important;
}

.methods-stage .search-row input,
.methods-stage .sort-control,
.methods-stage .method-directory-filters select,
.sources-stage .control {
  border-color: var(--rf-rule);
  border-radius: var(--rf-radius-pill);
  background: #fffdf9;
  color: var(--rf-ink);
}

.methods-stage .search-row input::placeholder,
.sources-stage .control::placeholder {
  color: #777a77;
}

.methods-stage .search-row input:focus,
.methods-stage .sort-control:focus-within,
.methods-stage .method-directory-filters select:focus,
.sources-stage .control:focus {
  border-color: rgba(8, 127, 130, 0.48);
  background: #fffdf9;
  box-shadow: var(--rf-focus);
}

.methods-stage :is(.filter-toggle, .reset-button, .preset-chip, .active-filter-chip),
.sources-stage .source-reset {
  border-color: var(--rf-rule);
  border-radius: var(--rf-radius-pill);
  background: transparent;
  color: var(--rf-ink);
}

.methods-stage :is(.filter-toggle, .reset-button, .preset-chip):hover,
.methods-stage :is(.filter-toggle, .reset-button, .preset-chip):focus-visible,
.sources-stage .source-reset:hover,
.sources-stage .source-reset:focus-visible {
  border-color: rgba(8, 127, 130, 0.35);
  background: var(--rf-teal-soft);
  box-shadow: var(--rf-focus);
}

.methods-stage .active-filter-chip {
  border-color: rgba(8, 127, 130, 0.25);
  background: var(--rf-teal-soft);
  color: var(--rf-teal);
}

/* Methods directory: grouped editorial rows, not item cards. */
.method-directory-group {
  padding-left: clamp(0px, 2vw, 18px);
  border-left-color: rgba(8, 127, 130, 0.33);
}

.method-directory-heading,
.method-directory-row,
.method-row-signals,
.methods-stage .method-signal {
  border-color: var(--rf-rule);
}

.method-directory-heading h2,
.method-directory-row h3 {
  color: var(--rf-ink);
}

.method-directory-row {
  background: transparent;
}

.method-directory-row:hover,
.method-directory-row:focus-visible {
  background: rgba(8, 127, 130, 0.045);
  box-shadow: inset 3px 0 0 var(--rf-teal);
}

.method-directory-row p,
.method-row-context,
.method-row-reason {
  color: var(--rf-ink-soft);
}

.methods-stage .method-signal strong {
  color: var(--rf-ink);
}

.method-row-action {
  border-radius: var(--rf-radius-pill);
  color: var(--rf-teal);
}

/* Supplements: serious safety-first risk bands. */
.supplements-intro-band {
  align-items: start;
  gap: clamp(28px, 4vw, 58px);
}

.supplements-stage .legal-notice-inline,
.supplements-stage .supplements-warning {
  border-color: rgba(154, 106, 24, 0.25);
  border-radius: 22px;
  background: var(--rf-amber-soft) !important;
  color: #60491d;
}

.supplements-stage .legal-notice-inline,
.supplements-stage .supplements-warning p {
  color: #60491d !important;
}

.supplements-stage .supplements-summary-grid {
  border-color: var(--rf-rule);
  background: transparent;
}

.supplements-stage .supplements-summary-grid > div {
  border-color: var(--rf-rule);
}

.supplements-stage .stat-label {
  color: #727571;
}

.supplements-stage .stat-value {
  color: var(--rf-ink);
}

.supplement-risk-band {
  border-top: 1px solid var(--rf-rule);
  padding-top: clamp(19px, 2.7vw, 27px);
}

.supplement-risk-heading,
.supplement-risk-row {
  border-color: var(--rf-rule);
}

.supplement-risk-row {
  background: transparent;
}

.supplement-risk-band.is-high {
  border-top-color: rgba(163, 68, 57, 0.34);
}

.supplement-risk-band.is-moderate {
  border-top-color: rgba(154, 106, 24, 0.32);
}

.supplement-risk-band.is-low {
  border-top-color: rgba(31, 119, 88, 0.25);
}

.supplement-row-alert {
  border-color: rgba(154, 106, 24, 0.2);
  background: var(--rf-amber-soft);
  color: #5d471b;
}

.supplement-row-alert.is-critical {
  border-color: rgba(163, 68, 57, 0.28);
  background: var(--rf-coral-soft);
  color: #68342d;
}

.supplement-row-meta .field-label,
.supplement-row-meta .field-value {
  color: var(--rf-ink-soft);
}

/* Protocols: one continuous timeline. */
.protocol-stage .protocols-note {
  border-color: rgba(154, 106, 24, 0.2);
  border-radius: 22px;
  background: var(--rf-amber-soft) !important;
}

.protocol-stage .protocols-note p {
  color: #614a1e !important;
}

.protocol-summary-band,
.protocol-timeline,
.protocol-timeline-item,
.protocol-stage .protocol-details {
  border-color: var(--rf-rule);
}

.protocol-stage .protocol-summary-band {
  background: transparent;
}

.protocol-timeline::before {
  background: rgba(8, 127, 130, 0.2);
}

.protocol-timeline-marker {
  border-color: rgba(8, 127, 130, 0.22);
  background: var(--rf-teal-soft);
  color: var(--rf-teal);
}

.protocol-stage .protocol-caution-band {
  border-color: rgba(154, 106, 24, 0.23);
  background: var(--rf-amber-soft);
  color: #60491d;
}

.protocol-stage .protocol-details {
  background: var(--rf-paper-soft);
}

/* Safety: visible and serious, with no decorative urgency. */
.safety-boundary-alert {
  border-left-color: var(--rf-coral);
}

.safety-boundary-alert h2 {
  color: var(--rf-ink);
}

.safety-boundary-alert > p {
  color: #633c37 !important;
}

.safety-stage .legal-notice-panel {
  border-color: rgba(163, 68, 57, 0.26);
  border-radius: 22px;
  background: var(--rf-coral-soft) !important;
}

.safety-stage .legal-notice-panel p {
  color: #633c37 !important;
}

.safety-map-band,
.safety-section-header,
.safety-guidance-row {
  border-color: var(--rf-rule);
}

.safety-topic-band::before {
  background: var(--rf-teal);
}

.safety-topic-band.is-urgent::before {
  background: var(--rf-coral);
}

.safety-topic-band.is-clinician::before,
.safety-topic-band.is-boundary::before {
  background: var(--rf-amber);
}

.safety-topic-band.is-substance::before {
  background: #a56437;
}

.safety-stage .safety-map-grid span {
  border-color: var(--rf-rule);
  background: var(--rf-paper-soft);
  color: var(--rf-ink-soft);
}

.safety-stage .safety-guidance .field-value {
  color: var(--rf-ink-soft);
}

/* Sources: concise research directory. */
.sources-summary-band,
.source-group-header,
.source-row {
  border-color: var(--rf-rule);
}

.source-group::before {
  background: var(--rf-teal);
}

.source-group.is-reddit-source::before {
  background: var(--rf-amber);
}

.source-group.is-clinical-source::before {
  background: var(--rf-green);
}

.source-row h3,
.source-row-meta .stat-value {
  color: var(--rf-ink);
}

.source-row-notes,
.source-row-meta .stat-label {
  color: var(--rf-ink-soft);
}

.source-row-action {
  border-color: rgba(8, 127, 130, 0.24);
  background: var(--rf-teal-soft);
  color: var(--rf-teal);
}

.source-row-action:hover,
.source-row-action:focus-visible {
  border-color: rgba(8, 127, 130, 0.45);
  background: rgba(8, 127, 130, 0.15);
  box-shadow: var(--rf-focus);
}

/* Supporting visible surfaces: copy and behavior remain unchanged. */
body .method-dialog::backdrop,
body .auth-overlay,
body .legal-consent-overlay {
  background: rgba(8, 10, 12, 0.7) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body .dialog-frame,
body .settings-frame,
body .legal-consent-panel {
  border-color: rgba(17, 19, 21, 0.12) !important;
  border-radius: clamp(24px, 3vw, 34px) !important;
  background: var(--rf-paper) !important;
  color: var(--rf-ink);
  box-shadow: 0 32px 76px rgba(0, 0, 0, 0.28) !important;
}

body .dialog-frame :is(h1, h2, h3),
body .settings-frame :is(h1, h2, h3),
body .legal-consent-panel :is(h1, h2, h3) {
  color: var(--rf-ink);
}

body .dialog-frame p,
body .settings-frame p,
body .legal-consent-panel p {
  color: var(--rf-ink-soft);
}

body .legal-accordion {
  border-color: var(--rf-rule);
  background: transparent;
}

body .legal-accordion-summary {
  color: var(--rf-ink);
}

body .legal-consent-button {
  border-radius: var(--rf-radius-pill);
  background: #111315;
  color: #faf7f0;
}

body .auth-panel {
  border-color: rgba(244, 239, 229, 0.12) !important;
  border-radius: clamp(26px, 3vw, 36px) !important;
  background: #141719 !important;
  color: #f7f3ea;
  box-shadow: 0 32px 76px rgba(0, 0, 0, 0.38) !important;
}

body .auth-panel :is(input, .auth-field) {
  border-radius: var(--rf-radius-pill);
}

body :is(.auth-submit-button, .google-auth-button, .auth-mode-toggle) {
  border-radius: var(--rf-radius-pill);
}

body .about-footer-card {
  border-color: rgba(244, 239, 229, 0.1) !important;
  border-radius: var(--rf-radius-stage) !important;
  background: #111416 !important;
  box-shadow: none !important;
}

body .mobile-tabs {
  border-color: rgba(244, 239, 229, 0.12) !important;
  border-radius: var(--rf-radius-pill);
  background: rgba(16, 18, 20, 0.91) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
}

body .mobile-tabs .mobile-tab {
  border-radius: var(--rf-radius-pill);
}

body .mobile-tabs .mobile-tab.is-active {
  background: #f7f4ed;
  color: #111315;
}

@media (max-width: 820px) {
  html body {
    background-attachment: scroll, scroll, scroll, scroll !important;
  }

  .dashboard-showcase,
  .methods-stage,
  .supplements-stage,
  .protocol-stage,
  .safety-stage,
  .sources-stage {
    padding: clamp(18px, 5vw, 26px);
    border-radius: 27px;
  }

  .methods-stage .methods-toolbar,
  .sources-stage .sources-tools {
    border-radius: 22px;
  }
}

/* No-card editorial canvas: active browse surfaces only. */
:root {
  --nc-paper: #faf8f2;
  --nc-paper-deep: #f3efe5;
  --nc-ink: #111416;
  --nc-muted: #545a59;
  --nc-rule: rgba(17, 20, 22, 0.12);
  --nc-rule-strong: rgba(17, 20, 22, 0.2);
  --nc-section-space: clamp(48px, 7vw, 92px);
  --nc-row-space: clamp(16px, 2.3vw, 25px);
}

html body {
  background-image:
    radial-gradient(circle at 50% 2%, rgba(202, 168, 96, 0.07), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(22, 106, 110, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(9, 12, 14, 0.94), rgba(9, 12, 14, 0.98) 45%, #090c0e),
    url("./anxietyflow-background.png") !important;
}

.app-main-content {
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
  margin-top: clamp(8px, 2vw, 20px);
  padding: clamp(40px, 6vw, 88px) clamp(20px, 6vw, 120px) clamp(62px, 8vw, 112px);
  border-radius: 0;
  background: var(--nc-paper) !important;
  color: var(--nc-ink);
  box-shadow: none;
  overflow: clip;
}

.app-main-content :is(
  .dashboard-showcase,
  .methods-stage,
  .supplements-stage,
  .protocol-stage,
  .safety-stage,
  .sources-stage
) {
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--nc-ink);
}

.app-main-content :is(
  .dashboard-showcase,
  .methods-stage,
  .supplements-stage,
  .protocol-stage,
  .safety-stage,
  .sources-stage
) {
  max-width: 1600px;
  margin-inline: auto;
}

.app-main-content :is(.methods-stage, .supplements-stage, .protocol-stage, .safety-stage, .sources-stage) {
  gap: var(--nc-section-space);
}

.app-main-content :is(.methods-stage, .supplements-stage, .protocol-stage, .safety-stage, .sources-stage) p {
  color: var(--nc-muted);
}

.app-main-content :is(
  .methods-stage-header h1,
  .supplements-intro-band h1,
  .protocol-stage-header h1,
  .safety-stage-intro h1,
  .sources-stage-header h1
) {
  max-width: 1180px;
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.068em;
}

.app-main-content :is(.methods-stage-header, .protocol-stage-header, .sources-stage-header, .safety-stage-intro) {
  max-width: 1180px;
}

.methods-stage-header > p,
.protocol-stage-header > p,
.sources-stage-header > p {
  max-width: 760px;
}

/* Dashboard: open landing composition with one product preview. */
.dashboard-showcase {
  display: grid;
  gap: 0;
}

.dashboard-lead-stage,
.dashboard-lead-content,
.dashboard-lead-copy,
.dashboard-metadata-runway,
.dashboard-guide-stage,
.dashboard-discovery-stage,
.dashboard-research-stage {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.dashboard-lead-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  grid-template-areas:
    "copy tool"
    "metadata metadata";
  column-gap: clamp(38px, 6vw, 86px);
  row-gap: clamp(45px, 7vw, 84px);
}

.dashboard-lead-copy {
  grid-area: copy;
  align-self: center;
  min-width: 0;
  padding: clamp(18px, 3vw, 38px) 0;
}

.dashboard-lead-copy h1 {
  max-width: 1040px;
  margin: 0;
  color: var(--nc-ink) !important;
  font-size: clamp(3.15rem, 6.4vw, 6rem);
  font-weight: 770;
  line-height: 0.96;
  letter-spacing: -0.075em;
}

.dashboard-lead-summary {
  max-width: 650px;
  margin: clamp(24px, 3vw, 34px) 0 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--nc-muted) !important;
  font-size: clamp(1rem, 1.4vw, 1.13rem);
  line-height: 1.72;
}

.dashboard-lead-boundary {
  display: block;
  max-width: 590px;
  margin-top: clamp(19px, 2.5vw, 27px);
  padding: 0 0 0 clamp(15px, 2vw, 20px);
  border-left: 2px solid rgba(154, 106, 24, 0.7);
  background: transparent !important;
  color: #694e1e;
  font-weight: 620;
  line-height: 1.55;
}

.dashboard-lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: clamp(29px, 4vw, 42px);
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.dashboard-showcase .site-button {
  min-height: 44px;
  padding-inline: clamp(15px, 2vw, 20px);
  border: 1px solid #111416;
  border-radius: var(--rf-radius-pill);
  background: #111416;
  color: #fbf8f0;
}

.dashboard-showcase .site-button-secondary {
  border-color: var(--nc-rule-strong);
  background: transparent;
  color: var(--nc-ink);
}

.dashboard-showcase .site-button:hover,
.dashboard-showcase .site-button:focus-visible {
  border-color: rgba(8, 127, 130, 0.45);
  box-shadow: var(--rf-focus);
}

.dashboard-tool-zone {
  grid-area: tool;
  display: flex;
  min-width: 0;
  align-self: stretch;
}

.dashboard-tool-zone .isolated-pacer-container {
  width: 100%;
  min-height: clamp(430px, 49vw, 570px);
  margin: 0;
  padding: clamp(27px, 4vw, 42px);
  justify-content: center;
  border: 1px solid rgba(243, 229, 199, 0.1) !important;
  border-radius: clamp(28px, 3.5vw, 38px) !important;
  background:
    radial-gradient(circle at 50% 45%, rgba(8, 127, 130, 0.21), transparent 42%),
    linear-gradient(150deg, #161b1d, #0e1214) !important;
  box-shadow: 0 28px 54px rgba(17, 20, 22, 0.16) !important;
}

.dashboard-showcase .section-label {
  color: var(--nc-muted);
}

.dashboard-tool-zone .section-label {
  color: rgba(235, 216, 175, 0.82);
}

.dashboard-tool-zone :is(.isolated-pacer-title, .isolated-pacer-phase, .isolated-pacer-count) {
  color: #f9f5eb;
}

.dashboard-tool-zone .isolated-pacer-desc {
  color: rgba(239, 234, 222, 0.7);
}

.dashboard-tool-zone .isolated-pacer-ring {
  border-color: rgba(21, 158, 161, 0.55);
  background: rgba(7, 12, 14, 0.48);
}

.dashboard-tool-zone .isolated-pacer-btn {
  border-radius: var(--rf-radius-pill);
}

.dashboard-metadata-runway {
  grid-area: metadata;
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(400px, 1.28fr);
  gap: clamp(28px, 5vw, 66px);
  padding-top: clamp(30px, 4vw, 44px);
  border-top: 1px solid var(--nc-rule) !important;
}

.dashboard-metadata-runway h2,
.dashboard-band-header h2 {
  color: var(--nc-ink) !important;
}

.dashboard-metadata-runway p,
.dashboard-band-header p {
  color: var(--nc-muted) !important;
}

.dashboard-workbook-rows {
  border-top-color: var(--nc-rule);
}

.dashboard-workbook-rows .mini-row {
  border-right-color: var(--nc-rule);
}

.dashboard-workbook-rows .mini-row span:first-child {
  color: #727773;
}

.dashboard-workbook-rows .mini-row span:last-child {
  color: var(--nc-ink);
  font-weight: 610;
}

.dashboard-guide-stage,
.dashboard-discovery-stage,
.dashboard-research-stage {
  margin: var(--nc-section-space) 0 0 !important;
  padding: var(--nc-section-space) 0 0 !important;
  border-top: 1px solid var(--nc-rule) !important;
}

.dashboard-guide-section,
.dashboard-boundary-band,
.dashboard-facts-band,
.dashboard-signal-stage,
.dashboard-insight-stage,
.dashboard-analysis-stage,
.dashboard-analysis-segment,
.about-scoring {
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.dashboard-guide-section,
.dashboard-facts-band,
.dashboard-signal-stage,
.dashboard-insight-stage,
.dashboard-analysis-stage,
.dashboard-analysis-segment {
  border: 0 !important;
}

.dashboard-band-header {
  max-width: 1160px;
}

.dashboard-band-header p {
  max-width: 760px;
}

.dashboard-band-header h2 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.dashboard-feature-rows,
.dashboard-methodology-rows,
.dashboard-facts-rows,
.dashboard-signal-rows,
.dashboard-insight-rows {
  border-top-color: var(--nc-rule);
}

.dashboard-feature-row,
.dashboard-methodology-row,
.dashboard-fact-row,
.dashboard-signal-group,
.dashboard-insight-group {
  border-color: var(--nc-rule);
  background: transparent !important;
  box-shadow: none !important;
}

.dashboard-feature-row h3,
.dashboard-methodology-row h3,
.dashboard-insight-group h3,
.dashboard-fact-row strong,
.dashboard-signal-group > strong {
  color: var(--nc-ink) !important;
}

.dashboard-feature-row p,
.dashboard-methodology-row p,
.dashboard-insight-group p,
.dashboard-fact-row p,
.dashboard-signal-group > p {
  color: var(--nc-muted) !important;
}

.dashboard-boundary-band {
  margin-top: clamp(28px, 4vw, 48px);
  padding: clamp(18px, 2.5vw, 25px) 0 clamp(18px, 2.5vw, 25px) clamp(18px, 2.7vw, 27px);
  border: 0 !important;
  border-left: 2px solid rgba(154, 106, 24, 0.64) !important;
  color: var(--nc-ink);
}

.dashboard-boundary-band p {
  color: #65563a !important;
}

.dashboard-fact-row span {
  background: transparent;
  color: #79602d;
}

.dashboard-showcase :is(.summary-method, .dashboard-pick, .rank-row, .chart-row) {
  border-color: var(--nc-rule);
  color: var(--nc-ink);
}

.dashboard-showcase :is(.summary-method, .dashboard-pick, .rank-row, .chart-row) :is(strong, span, em),
.dashboard-showcase :is(.chart-label, .chart-value, .rank-copy strong) {
  color: var(--nc-ink);
}

.dashboard-showcase :is(.rank-copy small, .chart-total, .chart-legend) {
  color: #6c716f;
}

.dashboard-analysis-segment {
  border-top-color: var(--nc-rule) !important;
}

.dashboard-showcase .bar-track {
  background: rgba(17, 20, 22, 0.08);
}

/* Methods: an open directory, with pill discovery controls. */
.methods-stage .methods-toolbar,
.sources-stage .sources-tools {
  padding: 0 0 clamp(20px, 3vw, 30px);
  border: 0 !important;
  border-bottom: 1px solid var(--nc-rule) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.methods-stage .method-directory-filters {
  padding: 0 clamp(18px, 3vw, 30px) 0 0;
  border: 0 !important;
  border-right: 1px solid var(--nc-rule) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.method-directory-group {
  padding: clamp(28px, 4vw, 46px) 0 0;
  border: 0 !important;
  border-top: 1px solid var(--nc-rule) !important;
}

.method-directory-group:first-child {
  padding-top: 0;
  border-top: 0 !important;
}

.method-directory-heading {
  padding-bottom: clamp(18px, 2.7vw, 27px);
  border-color: var(--nc-rule);
}

.method-directory-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.045em;
}

.method-directory-row {
  padding-block: var(--nc-row-space);
  border: 0 !important;
  border-bottom: 1px solid var(--nc-rule) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.method-directory-row:hover,
.method-directory-row:focus-visible {
  background: rgba(8, 127, 130, 0.045) !important;
  box-shadow: inset 3px 0 0 var(--rf-teal) !important;
}

.method-row-action {
  background: transparent;
}

/* Supplements: risk-led safety directory, not supplement tiles. */
.supplements-intro-band,
.supplement-risk-band,
.supplement-risk-row {
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.supplements-stage .supplements-summary-grid {
  border-top: 1px solid var(--nc-rule);
  border-bottom: 1px solid var(--nc-rule);
  background: transparent !important;
}

.supplements-stage .supplements-summary-grid > div {
  border-color: var(--nc-rule);
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.supplements-stage .supplements-warning {
  padding: clamp(18px, 3vw, 26px) 0 clamp(18px, 3vw, 26px) clamp(18px, 3vw, 27px);
  border: 0 !important;
  border-left: 2px solid rgba(154, 106, 24, 0.7) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.supplement-risk-band {
  padding-top: clamp(27px, 4vw, 42px);
  border-top: 1px solid var(--nc-rule) !important;
}

.supplement-risk-heading {
  border-color: var(--nc-rule);
}

.supplement-risk-row {
  border: 0 !important;
  border-bottom: 1px solid var(--nc-rule) !important;
}

.supplement-row-alert {
  border: 0 !important;
  border-left: 2px solid rgba(154, 106, 24, 0.47) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.supplement-row-alert.is-critical {
  border-left-color: rgba(163, 68, 57, 0.72) !important;
  background: transparent !important;
}

/* Protocols: one continuous educational sequence. */
.protocol-stage .protocols-note,
.protocol-stage .protocol-summary-band,
.protocol-timeline-item,
.protocol-stage .protocol-details,
.protocol-stage .protocol-caution-band {
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.protocol-stage .protocols-note {
  padding-left: clamp(18px, 3vw, 27px);
  border: 0 !important;
  border-left: 2px solid rgba(154, 106, 24, 0.65) !important;
}

.protocol-stage .protocol-summary-band {
  border-color: var(--nc-rule);
}

.protocol-timeline-item {
  border-color: var(--nc-rule);
}

.protocol-stage .protocol-caution-band {
  border: 0 !important;
  border-left: 2px solid rgba(154, 106, 24, 0.62) !important;
}

.protocol-stage .protocol-details {
  border-color: var(--nc-rule) !important;
}

/* Safety: one visible opening alert, then divided guidance bands. */
.safety-boundary-band {
  border: 0 !important;
  border-top: 3px solid rgba(163, 68, 57, 0.8) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.safety-boundary-alert {
  padding-left: clamp(18px, 3vw, 29px);
  border-left: 2px solid rgba(163, 68, 57, 0.7);
}

.safety-critical-notice {
  margin-top: clamp(18px, 2.7vw, 26px);
  padding-top: clamp(17px, 2.5vw, 24px);
  border-top: 1px solid rgba(163, 68, 57, 0.24);
}

.safety-critical-notice p,
.safety-critical-notice .legal-notice-inline {
  color: #693f39 !important;
}

.safety-map-band,
.safety-topic-band,
.safety-guidance-row {
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.safety-map-band {
  border-color: var(--nc-rule);
}

.safety-topic-band {
  padding-top: clamp(26px, 4vw, 42px);
  border-top: 1px solid var(--nc-rule);
}

.safety-guidance-row {
  border-color: var(--nc-rule);
}

/* Sources: compact editorial reference directory. */
.sources-summary-band,
.source-group,
.source-row {
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.sources-summary-band {
  border-color: var(--nc-rule);
}

.source-group {
  padding-top: clamp(27px, 4vw, 44px);
  border-top: 1px solid var(--nc-rule);
}

.source-group:first-child {
  padding-top: 0;
  border-top: 0;
}

.source-row {
  border: 0 !important;
  border-bottom: 1px solid var(--nc-rule) !important;
}

@media (max-width: 980px) {
  .app-main-content {
    padding-inline: clamp(18px, 5vw, 38px);
  }

  .dashboard-lead-content {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "tool"
      "metadata";
  }

  .dashboard-tool-zone .isolated-pacer-container {
    min-height: 390px;
  }

  .dashboard-metadata-runway {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .app-main-content {
    margin-top: 14px;
    padding: clamp(30px, 9vw, 42px) clamp(16px, 5vw, 24px) calc(92px + env(safe-area-inset-bottom));
    border-radius: 0;
  }

  .app-main-content :is(
    .dashboard-showcase,
    .methods-stage,
    .supplements-stage,
    .protocol-stage,
    .safety-stage,
    .sources-stage
  ) {
    padding: 0;
    border-radius: 0;
  }

  .dashboard-lead-copy h1 {
    font-size: clamp(2.55rem, 13vw, 3.7rem);
  }

  .dashboard-lead-actions {
    gap: 8px;
  }

  .dashboard-showcase .site-button {
    flex: 1 1 auto;
    justify-content: center;
  }

  .dashboard-workbook-rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-workbook-rows .mini-row:nth-child(2n) {
    border-right: 0;
  }

  .dashboard-feature-row,
  .dashboard-methodology-row {
    grid-template-columns: 1fr;
  }

  .dashboard-facts-rows,
  .dashboard-signal-rows,
  .dashboard-insight-rows {
    grid-template-columns: 1fr;
  }

  .methods-stage .method-directory-filters {
    padding: 0 0 clamp(20px, 5vw, 26px);
    border-right: 0 !important;
    border-bottom: 1px solid var(--nc-rule) !important;
  }
}

@media (max-width: 480px) {
  .dashboard-workbook-rows {
    grid-template-columns: 1fr;
  }

  .dashboard-workbook-rows .mini-row {
    padding-inline: 0;
    border-right: 0;
    border-bottom: 1px solid var(--nc-rule);
  }
}
