:root {
  color-scheme: light;
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-soft: #fbfaf7;
  --ink: #171717;
  --muted: #5d6268;
  --line: #ddd7cc;
  --accent: #0f6b63;
  --accent-dark: #094a45;
  --warn: #9a5b00;
  --risk: #9b2f2f;
  --good: #1e6f43;
  --shadow: 0 18px 45px rgba(34, 31, 25, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(246, 244, 239, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-weight: 750;
  color: var(--ink);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  min-width: 0;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
}

.hero-main,
.panel,
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-main {
  padding: 34px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 4.3rem);
  max-width: 780px;
}

h2 {
  font-size: 1.55rem;
  padding-top: 4px;
}

h3 {
  font-size: 1.05rem;
}

.lede {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 800px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--accent-dark);
  background: var(--accent-dark);
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.button.secondary {
  background: transparent;
  color: var(--accent-dark);
}

.button:disabled {
  border-color: var(--line);
  background: #f0eee8;
  color: var(--muted);
  cursor: not-allowed;
  opacity: 1;
}

[hidden] {
  display: none !important;
}

.fact-panel {
  padding: 24px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #e7f2eb;
  color: var(--good);
  font-weight: 750;
  font-size: 0.86rem;
  margin-bottom: 18px;
}

.status-pill[data-state="signed-out"],
.status-pill[data-state="local"] {
  background: #ece7dc;
  color: var(--muted);
}

.status-pill[data-state="signed-in"] {
  background: #e7f2eb;
  color: var(--good);
}

.fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.fact {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.fact span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.fact strong {
  display: block;
  margin-top: 2px;
  font-size: 1.05rem;
}

.section {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px;
  box-shadow: var(--shadow);
}

.section > p:first-of-type {
  margin-top: 14px;
}

.callout {
  background: var(--surface-soft);
  border-left: 4px solid var(--accent);
  padding: 16px 18px;
  margin: 18px 0;
}

.callout.warning {
  border-left-color: var(--warn);
}

.callout.risk {
  border-left-color: var(--risk);
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

ul,
ol {
  padding-left: 1.35rem;
}

li + li {
  margin-top: 6px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  overflow-wrap: anywhere;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  vertical-align: top;
  text-align: left;
}

.data-table th {
  color: var(--muted);
  font-size: 0.86rem;
}

.data-table td:nth-child(2),
.data-table td:nth-child(3),
.data-table td:nth-child(4),
.data-table th:nth-child(2),
.data-table th:nth-child(3),
.data-table th:nth-child(4) {
  text-align: right;
}

.source-list a {
  word-break: break-word;
}

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

.home-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.home-card h3 {
  font-size: 1.15rem;
}

.home-card p {
  margin: 0;
  color: var(--muted);
}

.home-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  background: #ece7dc;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.form-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-weight: 750;
}

.field small {
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font: inherit;
  padding: 11px 12px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.generated-link {
  display: none;
  margin-top: 18px;
  padding: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.generated-link.is-visible {
  display: block;
}

.copy-box {
  width: 100%;
  min-height: 220px;
  margin-top: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
}

.status-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.status-card {
  padding: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.status-card h3 {
  margin-bottom: 8px;
}

.status-card p {
  margin: 0;
  color: var(--muted);
}

.status-card .home-meta {
  margin-top: 12px;
}

.tag.open {
  background: #fff0cf;
  color: #7a4b00;
}

.tag.closed,
.tag.published {
  background: #e7f2eb;
  color: var(--good);
}

.tag.ready {
  background: #e3eef7;
  color: #23506f;
}

.error-text {
  color: var(--risk);
}

.app-body {
  overflow-x: hidden;
  background: #f5f3ee;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 72px;
}

.app-flow-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 18px;
}

.app-flow-hero > *,
.task-grid > *,
.dashboard-strip > *,
.flow-roadmap > *,
.workspace-form > *,
.app-form-compact > * {
  min-width: 0;
}

.hero-copy {
  min-height: 390px;
  display: grid;
  align-content: center;
  padding: 36px 0;
}

.hero-copy h1 {
  font-size: clamp(2.35rem, 5.4vw, 5.15rem);
  max-width: 900px;
}

.hero-copy .lede {
  max-width: 760px;
}

.next-step-panel,
.task-card,
.dashboard-strip article,
.flow-roadmap article,
.workflow-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.next-step-panel {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 24px;
}

.panel-label,
.section-kicker {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

.next-step-panel > strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.18;
}

.next-step-panel p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.flow-meter {
  height: 10px;
  overflow: hidden;
  background: #ece7dc;
  border: 1px solid var(--line);
}

.flow-meter span {
  display: block;
  width: 8%;
  height: 100%;
  background: var(--accent);
  transition: width 220ms ease;
}

.summary-pairs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.summary-pairs span,
.dashboard-strip span,
.flow-roadmap span,
.task-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.summary-pairs strong,
.dashboard-strip strong {
  display: block;
  margin-top: 2px;
  line-height: 1.25;
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.task-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  min-height: 210px;
  padding: 20px;
  color: var(--ink);
  text-decoration: none;
}

.task-card:hover {
  border-color: var(--accent);
}

.task-card > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #e7f2eb;
  color: var(--accent-dark);
}

.task-card strong {
  display: block;
  font-size: 1.2rem;
  line-height: 1.2;
}

.task-card p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.task-card em,
.flow-roadmap em {
  align-self: end;
  justify-self: start;
  min-height: 28px;
  padding: 4px 9px;
  background: #ece7dc;
  color: var(--muted);
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 800;
}

.task-card[data-state="ready"] em {
  background: #e7f2eb;
  color: var(--good);
}

.dashboard-strip {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr 1fr;
  gap: 14px;
  margin: 18px 0;
}

.dashboard-strip article {
  padding: 18px;
  box-shadow: none;
}

.flow-roadmap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.flow-roadmap article {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
  box-shadow: none;
  border: 0;
}

.flow-roadmap strong {
  line-height: 1.2;
}

.flow-roadmap article[data-state="done"] em {
  background: #e7f2eb;
  color: var(--good);
}

.workflow-shell {
  margin-top: 18px;
  padding: 28px;
}

.work-section {
  scroll-margin-top: 82px;
}

.workspace-form {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
}

.workspace-form .field:first-child,
.workspace-form .field:nth-child(2) {
  grid-column: span 2;
}

.workspace-form button {
  min-height: 47px;
}

.app-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.app-hero > div,
.app-summary,
.app-panel,
.brief-block,
.listing-card,
.debrief-card,
.suggestion-card,
.mini-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.app-hero > div {
  padding: 28px;
}

.app-hero h1 {
  font-size: clamp(2rem, 6vw, 4rem);
}

.app-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 18px;
}

.metric {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.metric:first-child {
  border-top: 0;
  padding-top: 0;
}

.metric span,
.mini-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.metric strong,
.mini-card strong {
  display: block;
  margin-top: 2px;
  font-size: 1.08rem;
}

.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 18px;
  align-items: start;
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 18px;
  align-items: end;
  margin-top: 18px;
}

.auth-card {
  display: grid;
  gap: 6px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  padding: 18px;
}

.auth-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.auth-card strong {
  overflow-wrap: anywhere;
}

.auth-card p {
  margin: 0;
  color: var(--muted);
}

.today-stack,
.brief-layout,
.listing-stack,
.debrief-output,
.suggestion-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.mini-card {
  padding: 16px;
  background: var(--surface-soft);
  box-shadow: none;
}

.section-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.section-heading-row p {
  color: var(--muted);
  margin: 8px 0 0;
}

.voice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.prompt-chips button {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--accent-dark);
  font: inherit;
  font-weight: 700;
  min-height: 34px;
  padding: 0 10px;
}

.voice-status,
.muted-line,
.empty-state {
  color: var(--muted);
}

.action-empty {
  border: 1px dashed var(--line);
  padding: 18px;
}

.action-empty strong {
  color: var(--ink);
}

.action-empty p {
  margin: 4px 0 0;
}

.sticky-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.sticky-actions .voice-status {
  margin: 0;
}

.app-form-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-form-compact .app-full,
.app-form-compact button {
  grid-column: 1 / -1;
}

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

.brief-block {
  padding: 18px;
  background: var(--surface-soft);
  box-shadow: none;
}

.brief-block ul {
  margin-bottom: 0;
}

.listing-card,
.debrief-card,
.suggestion-card {
  padding: 18px;
  background: var(--surface-soft);
  box-shadow: none;
}

.listing-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.listing-card h3,
.debrief-card h3 {
  margin-bottom: 4px;
}

.listing-card p,
.debrief-card p,
.suggestion-card p {
  margin-top: 0;
}

.skill-note {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 16px 18px;
  background: #e3eef7;
  border: 1px solid #c4d8e8;
}

.skill-note strong {
  color: #23506f;
}

.skill-note p {
  margin: 0;
  color: var(--muted);
}

.skill-note span {
  font-weight: 800;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  white-space: nowrap;
  background: #e7f2eb;
  color: var(--good);
  font-size: 0.84rem;
  font-weight: 800;
  padding: 0 10px;
}

.ai-action {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
}

.ai-action span {
  color: var(--muted);
  font-size: 0.9rem;
}

.approval-panel {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #d4a72c;
  background: #fff8df;
}

.approval-panel[data-outcome="auto_approved"] {
  border-color: #79a98a;
  background: #e7f2eb;
}

.approval-panel[data-outcome="failed"] {
  border-color: #bb6b65;
  background: #fff0ee;
}

.approval-panel div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.approval-panel span,
.approval-panel small,
.approval-reasons {
  color: var(--muted);
  font-size: 0.82rem;
}

.approval-panel p {
  margin: 0;
}

.approved-divider {
  margin-top: 18px;
  color: var(--good);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skill-evaluation {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
}

.skill-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.skill-header span,
.skill-decision-grid span,
.missing-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.skill-header strong {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 9px;
  background: #e7f2eb;
  color: var(--good);
  font-size: 0.84rem;
}

.skill-decision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.skill-decision-grid article {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.skill-decision-grid strong {
  font-size: 0.94rem;
  line-height: 1.35;
}

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

.skill-section {
  background: var(--surface);
  border: 1px solid var(--line);
}

.skill-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 800;
}

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

.skill-section summary span::after {
  content: " +";
  color: var(--muted);
}

.skill-section[open] summary span::after {
  content: " -";
}

.skill-section summary em {
  flex: 0 0 auto;
  padding: 3px 7px;
  background: #ece7dc;
  color: var(--muted);
  font-style: normal;
  font-size: 0.76rem;
  font-weight: 800;
}

.skill-section[open] summary {
  border-bottom: 1px solid var(--line);
}

.skill-section ul {
  margin: 10px 12px 12px;
}

.skill-section .missing-label {
  margin: 12px 12px 0;
}

.review-list {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 12px;
}

.review-list ul {
  margin: 8px 0 0;
}

.compact-actions {
  margin-top: 12px;
}

.compact-actions .button {
  min-height: 36px;
}

.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 820px) {
  .hero,
  .app-flow-hero,
  .app-hero,
  .app-grid,
  .auth-grid,
  .task-grid,
  .dashboard-strip,
  .flow-roadmap,
  .workspace-form,
  .skill-decision-grid,
  .skill-section-grid,
  .split,
  .home-list,
  .brief-layout,
  .app-form-compact {
    grid-template-columns: 1fr;
  }

  .hero-main,
  .workflow-shell,
  .app-hero > div,
  .section,
  .fact-panel {
    padding: 22px;
  }

  .hero-copy {
    min-height: 0;
    padding: 18px 0 6px;
  }

  .task-card {
    min-height: 0;
  }

  .workspace-form .field:first-child,
  .workspace-form .field:nth-child(2) {
    grid-column: auto;
  }

  .section-heading-row,
  .listing-card-head {
    display: grid;
  }

  .voice-actions {
    justify-content: flex-start;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    display: grid;
    gap: 10px 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .nav-links a {
    overflow-wrap: anywhere;
  }

  .data-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* First-five internal report review */
.reviewer-body {
  background: #f7f7f7;
}

.reviewer-nav {
  grid-template-columns: 1fr auto 1fr;
}

.reviewer-private-label {
  color: var(--buddy-muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.reviewer-shell {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 52px 0 96px;
}

.reviewer-auth {
  max-width: 560px;
  margin: 50px auto;
  padding: 38px;
  border: 1px solid var(--buddy-border);
  border-radius: 22px;
  background: #fff;
}

.reviewer-auth h1 {
  margin-top: 8px;
  font-size: 2.7rem;
}

.reviewer-auth > p {
  color: var(--buddy-muted);
}

.reviewer-prereq {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid #eed6a7;
  border-radius: 12px;
  background: #fff8e8;
}

.reviewer-prereq strong {
  color: #73520c;
}

.reviewer-prereq p {
  margin: 4px 0 0;
  color: #73520c;
  font-size: 0.86rem;
}

.reviewer-auth-form {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.reviewer-auth-form label {
  font-weight: 750;
}

.review-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.review-summary button {
  display: flex;
  min-height: 74px;
  padding: 16px 18px;
  border: 1px solid var(--buddy-border);
  border-radius: 14px;
  background: #fff;
  color: var(--buddy-ink);
  font: inherit;
  text-align: left;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.review-summary button[aria-pressed="true"] {
  border-color: var(--buddy-ink);
  box-shadow: 0 0 0 1px var(--buddy-ink);
}

.review-summary button span {
  color: var(--buddy-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.review-summary button strong {
  font-size: 1.45rem;
}

.reviewer-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) minmax(560px, 1.3fr);
  gap: 24px;
  align-items: start;
}

.review-queue,
.review-detail {
  min-height: 420px;
  border: 1px solid var(--buddy-border);
  border-radius: 18px;
  background: #fff;
}

.review-queue {
  overflow: hidden;
}

.review-queue-card {
  display: grid;
  width: 100%;
  gap: 7px;
  padding: 20px;
  border: 0;
  border-bottom: 1px solid #eeeeee;
  background: #fff;
  color: var(--buddy-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.review-queue-card:hover {
  background: var(--buddy-soft);
}

.review-queue-card > span:not(.review-status),
.review-queue-card small {
  color: var(--buddy-muted);
}

.review-status {
  display: inline-flex;
  width: max-content;
  padding: 5px 9px;
  border-radius: 20px;
  background: #edf0fa;
  color: #465590;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: capitalize;
}

.review-status[data-status="needs_buyer_input"] {
  background: #fff2d8;
  color: #835a05;
}

.review-status[data-status="ready"] {
  background: #e8f4ec;
  color: #246941;
}

.review-status[data-status="failed"] {
  background: #fbeaea;
  color: #8e3030;
}

.review-detail {
  position: sticky;
  top: 104px;
  padding: 28px;
}

.review-detail-empty,
.review-empty,
.release-success {
  display: grid;
  min-height: 300px;
  padding: 24px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.review-detail-empty > span,
.release-success > span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: #e8f4ec;
  color: #246941;
  font-size: 1.3rem;
}

.review-detail-empty p,
.review-empty p,
.release-success p {
  max-width: 420px;
  color: var(--buddy-muted);
}

.review-detail-head h2 {
  margin-top: 10px;
  font-size: 2rem;
}

.review-detail-head p {
  color: var(--buddy-muted);
  text-transform: capitalize;
}

.review-proposed {
  display: grid;
  gap: 6px;
  margin-top: 24px;
  padding: 20px;
  border-radius: 14px;
  background: var(--buddy-warm);
}

.review-proposed span {
  color: var(--buddy-muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.review-proposed strong {
  font-size: 1.12rem;
}

.review-release-preview {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.review-release-preview article {
  padding: 14px;
  border-radius: 12px;
  background: var(--buddy-soft);
}

.review-release-preview article strong {
  font-size: 0.78rem;
  text-transform: capitalize;
}

.review-release-preview article p {
  margin: 5px 0 0;
  color: var(--buddy-muted);
  font-size: 0.84rem;
}

.review-gates {
  margin-top: 26px;
}

.review-gates > div {
  display: flex;
  padding: 9px 0;
  border-bottom: 1px solid #eeeeee;
  justify-content: space-between;
  gap: 20px;
}

.review-gates > div span {
  color: var(--buddy-muted);
  font-size: 0.84rem;
}

.review-gates strong {
  color: #8e3030;
  font-size: 0.8rem;
  text-transform: capitalize;
}

.review-gates strong[data-state="pass"] {
  color: #246941;
}

.release-checklist {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--buddy-border);
}

.release-checklist > label:not(.review-note) {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  font-size: 0.9rem;
}

.release-checklist input {
  min-height: auto;
  accent-color: var(--buddy-coral);
}

.review-note {
  display: grid;
  gap: 7px;
  margin-top: 8px;
  font-weight: 750;
}

.review-note small {
  color: var(--buddy-muted);
  font-weight: 500;
}

.review-note textarea {
  min-height: 84px;
}

@media (max-width: 820px) {
  .reviewer-nav {
    display: flex;
  }

  .reviewer-private-label {
    display: none;
  }

  .reviewer-shell {
    width: calc(100% - 32px);
    padding-top: 28px;
  }

  .reviewer-auth {
    padding: 26px 20px;
  }

  .review-summary {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .review-summary button {
    min-width: 170px;
    scroll-snap-align: start;
  }

  .reviewer-layout {
    grid-template-columns: 1fr;
  }

  .review-detail {
    position: static;
    padding: 22px 18px;
  }
}

/* Buyer workspace redesign: calm consumer flow, progressive disclosure */
.app-body {
  --buddy-coral: #e45f48;
  --buddy-coral-dark: #c84632;
  --buddy-ink: #222222;
  --buddy-muted: #6a6a6a;
  --buddy-border: #dddddd;
  --buddy-canvas: #ffffff;
  --buddy-soft: #f7f7f7;
  --buddy-warm: #fff8f5;
  background: var(--buddy-canvas);
  color: var(--buddy-ink);
  line-height: 1.45;
}

.app-body h1,
.app-body h2,
.app-body h3 {
  letter-spacing: -0.035em;
}

.buddy-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid #ebebeb;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.buddy-nav {
  width: min(1200px, calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
}

.example-nav-link {
  justify-self: end;
  color: var(--buddy-ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.buddy-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  color: var(--buddy-coral-dark);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  min-height: 44px;
}

.buddy-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: var(--buddy-coral);
  color: #fff;
  font-weight: 850;
}

.buddy-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: center;
}

.mobile-nav-item {
  display: none;
}

.buddy-nav button,
.buddy-footer button,
.quiet-button,
.back-button {
  border: 0;
  background: transparent;
  color: var(--buddy-ink);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.buddy-footer button {
  min-height: 44px;
}

.buddy-nav-links button {
  min-height: 44px;
  padding: 0 15px;
  border-radius: 24px;
}

.buddy-nav-links button:hover,
.quiet-button:hover {
  background: var(--buddy-soft);
}

.nav-count {
  display: inline-grid;
  min-width: 22px;
  min-height: 22px;
  margin-left: 4px;
  place-items: center;
  border-radius: 50%;
  background: var(--buddy-soft);
  font-size: 0.78rem;
}

.account-trigger {
  justify-self: end;
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 5px 7px 5px 13px;
  border: 1px solid var(--buddy-border) !important;
  border-radius: 24px;
  background: #fff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.account-trigger > span:first-child {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--buddy-ink);
  color: #fff;
}

.buddy-shell {
  min-width: 0;
  min-height: calc(100vh - 76px);
}

.buddy-view {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 96px;
}

.shell-fallback {
  max-width: 720px;
  margin: 0 auto 24px;
  padding: 18px;
  border: 1px solid #d6a34b;
  border-radius: 14px;
  background: #fff9ed;
}

.shell-fallback strong,
.shell-fallback span {
  display: block;
}

.shell-fallback .button {
  margin-top: 12px;
}

.entry-hero {
  min-width: 0;
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 0 76px;
  text-align: center;
}

.entry-hero .eyebrow,
.section-kicker,
.step-count {
  color: var(--buddy-coral-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.entry-hero h1 {
  margin-top: 10px;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.98;
}

.entry-lede {
  max-width: 680px;
  margin: 24px auto 0;
  color: var(--buddy-muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.listing-entry {
  width: 100%;
  max-width: 790px;
  margin: 38px auto 0;
  text-align: left;
}

.listing-entry > label {
  display: block;
  margin: 0 0 9px 18px;
  font-size: 0.84rem;
  font-weight: 750;
}

.listing-entry-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 74px;
  padding: 8px 9px 8px 20px;
  border: 1px solid var(--buddy-border);
  border-radius: 38px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.listing-entry-control:focus-within {
  border-color: var(--buddy-ink);
  box-shadow: 0 0 0 2px var(--buddy-ink), 0 10px 34px rgba(0, 0, 0, 0.1);
}

.listing-entry-control input {
  min-width: 0;
  width: 100%;
  min-height: 50px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--buddy-ink);
  font: inherit;
  font-size: 1.04rem;
}

.entry-icon {
  font-size: 1.2rem;
}

.button {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 750;
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.coral {
  border-color: var(--buddy-coral);
  background: var(--buddy-coral);
  color: #fff;
}

.button.coral:hover {
  border-color: var(--buddy-coral-dark);
  background: var(--buddy-coral-dark);
  color: #fff;
}

.button.secondary {
  border-color: var(--buddy-ink);
  background: #fff;
  color: var(--buddy-ink);
}

.listing-entry-control .button {
  min-height: 56px;
  border-radius: 28px;
  padding-inline: 26px;
}

.field-hint {
  margin: 12px 18px 0;
  color: var(--buddy-muted);
  font-size: 0.86rem;
}

.trust-row {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 28px;
  color: var(--buddy-muted);
  font-size: 0.9rem;
}

.trust-row i {
  display: inline-grid;
  width: 20px;
  height: 20px;
  margin-right: 5px;
  place-items: center;
  border-radius: 50%;
  background: #e8f4ec;
  color: #1f7045;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 850;
}

.example-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.75fr);
  gap: 64px;
  align-items: center;
  padding: 64px;
  border-radius: 28px;
  background: var(--buddy-warm);
}

.example-panel h2 {
  max-width: 640px;
  margin-top: 8px;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.example-panel p {
  max-width: 610px;
  color: var(--buddy-muted);
}

.text-link {
  display: inline-flex;
  gap: 8px;
  margin-top: 12px;
  color: var(--buddy-ink);
  font-weight: 750;
}

.report-preview {
  padding: 28px;
  border: 1px solid #ead7d0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(92, 54, 39, 0.12);
}

.preview-label,
.panel-label {
  color: var(--buddy-muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-preview > strong {
  display: block;
  margin-top: 12px;
  font-size: 1.55rem;
  line-height: 1.2;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.preview-grid span {
  padding: 12px;
  border-radius: 12px;
  background: var(--buddy-soft);
  color: var(--buddy-muted);
  font-size: 0.78rem;
  text-align: center;
}

.preview-grid b {
  display: block;
  color: var(--buddy-ink);
  font-size: 1.2rem;
}

.returning-section {
  margin-top: 72px;
}

.flow-topbar {
  display: grid;
  grid-template-columns: 90px 1fr 90px;
  align-items: center;
  gap: 24px;
  max-width: 920px;
  margin: -26px auto 46px;
}

.flow-progress {
  position: relative;
  height: 28px;
  padding-top: 13px;
  text-align: center;
}

.flow-progress-bar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  overflow: hidden;
  border-radius: 3px;
  background: #eeeeee;
}

.flow-progress-bar::after {
  content: "";
  display: block;
  width: var(--request-progress, 25%);
  height: 100%;
  border-radius: 3px;
  background: var(--buddy-coral);
  transition: width 220ms ease;
}

.flow-progress small {
  color: var(--buddy-muted);
  font-size: 0.72rem;
}

.back-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--buddy-border);
  border-radius: 50%;
  font-size: 1.2rem;
}

.request-layout {
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(260px, 340px);
  justify-content: center;
  gap: 72px;
  align-items: start;
}

.request-main,
.request-step,
.request-aside,
.decision-stack,
.listing-card,
.listing-card-head {
  min-width: 0;
}

.guided-request,
.request-step {
  display: block;
}

.request-step h1,
.profile-header h1,
.results-header h1,
.processing-card h1,
.account-layout h1 {
  margin: 8px 0 14px;
  font-size: clamp(2.25rem, 5vw, 3.8rem);
  line-height: 1.04;
}

.buddy-view h1[tabindex="-1"]:focus,
.request-step h1[tabindex="-1"]:focus {
  outline: none;
}

.request-step > p:not(.step-count),
.profile-header > p:last-child,
.results-header > div > p:last-child,
.processing-card > p,
.account-layout > div > p:last-child {
  max-width: 650px;
  color: var(--buddy-muted);
  font-size: 1.06rem;
}

.request-step .field {
  margin-top: 24px;
}

.request-review-card {
  display: grid;
  gap: 7px;
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--buddy-border);
  border-radius: 16px;
  background: var(--buddy-soft);
}

.request-review-card strong {
  overflow-wrap: anywhere;
  font-size: 1.05rem;
}

.request-review-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--buddy-muted);
  font-size: 0.88rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.request-review-card .quiet-button {
  justify-self: start;
  margin-top: 5px;
  padding: 0;
  color: var(--buddy-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.app-body .field label {
  margin-bottom: 8px;
  color: var(--buddy-ink);
  font-weight: 750;
}

.app-body .field label span {
  color: var(--buddy-muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.app-body input,
.app-body textarea,
.app-body select {
  min-height: 52px;
  border: 1px solid #b8b8b8;
  border-radius: 12px;
  background: #fff;
  color: var(--buddy-ink);
  font: inherit;
}

.app-body textarea {
  min-height: 140px;
}

.app-body input:focus,
.app-body textarea:focus,
.app-body select:focus,
.app-body button:focus-visible,
.app-body a:focus-visible {
  outline: 3px solid rgba(228, 95, 72, 0.28);
  outline-offset: 2px;
  border-color: var(--buddy-ink);
}

.step-continue {
  width: 100%;
  margin-top: 28px;
}

.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.choice-chips,
.prompt-chips {
  display: flex;
  gap: 10px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.choice-chips button,
.prompt-chips button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--buddy-border);
  border-radius: 24px;
  background: #fff;
  color: var(--buddy-ink);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.choice-chips button:hover,
.choice-chips button[aria-pressed="true"],
.prompt-chips button:hover {
  border-color: var(--buddy-ink);
  background: var(--buddy-soft);
}

.voice-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

.voice-status {
  color: var(--buddy-muted);
  font-size: 0.82rem;
}

.preference-snapshot,
.structured-voice-output {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--buddy-border);
  border-radius: 16px;
  background: var(--buddy-warm);
}

.preference-snapshot {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.preference-signed-out {
  grid-column: 1 / -1;
}

.preference-signed-out strong {
  display: block;
  margin-top: 4px;
}

.preference-signed-out .quiet-button {
  min-height: 44px;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.preference-snapshot strong,
.structured-voice-heading strong {
  display: block;
  margin-top: 4px;
}

.preference-snapshot p,
.structured-voice-output p {
  margin: 5px 0 0;
  color: var(--buddy-muted);
  font-size: 0.9rem;
}

.preference-freshness {
  display: grid;
  justify-items: end;
  gap: 4px;
  color: var(--buddy-muted);
  font-size: 0.76rem;
}

.preference-freshness .quiet-button {
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.structured-voice-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.structured-voice-heading span,
.structured-voice-grid article > span {
  color: var(--buddy-muted);
  font-size: 0.75rem;
  font-weight: 750;
}

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

.structured-voice-grid article {
  min-width: 0;
  padding: 14px;
  border-radius: 12px;
  background: #fff;
}

.upload-zone {
  display: grid;
  min-height: 210px;
  margin-top: 26px;
  padding: 28px;
  place-items: center;
  align-content: center;
  border: 1px dashed #aaa;
  border-radius: 18px;
  background: var(--buddy-soft);
  text-align: center;
}

.upload-zone input[type="file"] {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.upload-button {
  margin-top: 0.35rem;
  cursor: pointer;
}

.upload-zone input[type="file"]:focus-visible + .document-selection,
.upload-zone:focus-within {
  outline: 3px solid rgba(232, 93, 70, 0.28);
  outline-offset: 3px;
}

.document-selection {
  width: 100%;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.document-selection ul {
  margin: 0.25rem 0 0;
  padding-left: 1.2rem;
  text-align: left;
}

.upload-zone.is-coming-soon {
  border-style: solid;
  background: #fafafa;
}

.upload-zone strong,
.upload-zone span {
  display: block;
}

.upload-zone > span:last-of-type,
.inline-notice {
  color: var(--buddy-muted);
  font-size: 0.84rem;
}

.upload-icon {
  display: grid !important;
  width: 46px;
  height: 46px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  font-size: 1.3rem;
}

.inline-notice {
  margin-top: 10px;
}

.depth-options {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.stage-input-panels,
.selected-stage-confirmation,
.request-confirmation-grid,
.stage-scope-summary {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.stage-input-panel,
.selected-stage-confirmation,
.request-confirmation-grid section,
.stage-scope-summary {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--buddy-border);
  border-radius: 14px;
  background: #fff;
}

.stage-input-panel label {
  display: block;
  margin-top: 12px;
  font-weight: 750;
}

.stage-input-panel textarea,
.stage-input-panel input {
  width: 100%;
  margin-top: 8px;
}

.stage-input-panel p,
.selected-stage-confirmation p,
.request-confirmation-grid p,
.stage-scope-summary p {
  margin: 4px 0 0;
  color: var(--buddy-muted);
  font-size: 0.86rem;
}

.selected-stage-confirmation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  background: var(--buddy-warm);
}

.selected-stage-confirmation .panel-label {
  grid-column: 1 / -1;
}

.selected-stage-confirmation .quiet-button {
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.request-confirmation-grid strong,
.stage-scope-summary strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.depth-options label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--buddy-border);
  border-radius: 16px;
  cursor: pointer;
}

.depth-options label:has(input:checked) {
  border-color: var(--buddy-ink);
  box-shadow: 0 0 0 1px var(--buddy-ink);
}

.depth-options input {
  min-height: auto;
  accent-color: var(--buddy-coral);
}

.depth-options strong,
.depth-options small {
  display: block;
}

.depth-options small {
  margin-top: 4px;
  color: var(--buddy-muted);
}

.request-reassurance,
.privacy-note {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding: 18px;
  border-radius: 14px;
  background: #f2f7f3;
}

.privacy-note {
  align-items: flex-start;
}

.privacy-note p {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.privacy-note strong,
.privacy-note p > span {
  display: block;
}

.request-reassurance p,
.privacy-note p {
  margin: 3px 0 0;
  color: var(--buddy-muted);
  font-size: 0.84rem;
}

.request-aside {
  position: sticky;
  top: 110px;
  padding: 26px;
  border: 1px solid var(--buddy-border);
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.request-aside > strong {
  display: block;
  margin-top: 10px;
  font-size: 1.25rem;
  overflow-wrap: anywhere;
}

.request-aside > p {
  color: var(--buddy-muted);
}

.processing-card {
  max-width: 720px;
  margin: 20px auto;
  text-align: center;
}

.processing-progress {
  height: 6px;
  max-width: 560px;
  margin: 26px auto 0;
  overflow: hidden;
  border-radius: 4px;
  background: #eeeeee;
}

.processing-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--buddy-coral);
  transition: width 220ms ease;
}

.processing-orbit {
  display: grid;
  width: 86px;
  height: 86px;
  margin: 0 auto 24px;
  place-items: center;
  border: 1px solid #f0b8ad;
  border-radius: 50%;
  background: var(--buddy-warm);
  color: var(--buddy-coral-dark);
  font-size: 2rem;
}

.analysis-timeline {
  max-width: 560px;
  margin: 42px auto;
  padding: 0;
  text-align: left;
  list-style: none;
}

.analysis-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  min-height: 72px;
}

.analysis-timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 0;
  left: 14px;
  width: 2px;
  background: #e5e5e5;
}

.analysis-timeline i {
  z-index: 1;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid #d2d2d2;
  border-radius: 50%;
  background: #fff;
  color: #fff;
  font-style: normal;
  font-size: 0.76rem;
}

.analysis-timeline .is-complete i {
  border-color: #277451;
  background: #277451;
}

.analysis-timeline .is-active i {
  border: 7px solid #f5c2b8;
  background: var(--buddy-coral);
}

.analysis-timeline strong,
.analysis-timeline small {
  display: block;
}

.analysis-timeline small {
  margin-top: 3px;
  color: var(--buddy-muted);
}

.results-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--buddy-border);
}

.decision-stack {
  margin-top: 32px;
}

.decision-stack .listing-card {
  overflow: hidden;
  border: 1px solid var(--buddy-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
}

.decision-stack .listing-card-head {
  padding: 0 0 18px;
}

.decision-stack .listing-card > *:not(.listing-card-head) {
  margin-right: 0;
  margin-left: 0;
}

.decision-stack .listing-card {
  padding: 28px;
}

.decision-stack .listing-card h3,
.decision-stack .listing-card p,
.decision-stack .listing-card li {
  overflow-wrap: anywhere;
}

.decision-card-label {
  display: block;
  margin-bottom: 7px;
  color: var(--buddy-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.decision-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid #eeeeee;
}

.decision-summary-copy {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 650;
}

.decision-score {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: var(--buddy-warm);
  color: var(--buddy-coral-dark);
}

.decision-score strong,
.decision-score span {
  display: block;
  line-height: 1;
}

.decision-score strong {
  font-size: 1.55rem;
}

.decision-score span {
  margin-top: 5px;
  color: var(--buddy-muted);
  font-size: 0.68rem;
}

.decision-priority-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 0 24px;
}

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

.request-saved-summary {
  margin-top: 4px;
  padding: 20px;
  border-radius: 14px;
  background: var(--buddy-warm);
}

.request-saved-summary strong {
  font-size: 1.15rem;
}

.request-saved-summary p {
  margin: 5px 0 0;
  color: var(--buddy-muted);
}

.decision-priority {
  padding: 18px;
  border-radius: 14px;
  background: var(--buddy-soft);
}

.decision-priority[data-kind="strength"] {
  background: #f0f7f2;
}

.decision-priority[data-kind="risk"] {
  background: #fff5f2;
}

.decision-priority[data-kind="action"] {
  background: #f5f3fb;
}

.decision-priority > strong {
  font-size: 0.9rem;
}

.decision-priority ul {
  margin: 10px 0 0;
  padding-left: 1.05rem;
  color: var(--buddy-muted);
  font-size: 0.86rem;
}

.decision-priority li + li {
  margin-top: 8px;
}

.decision-card .ai-action {
  display: flex;
  margin-top: 0;
  padding: 18px 0;
  border-top: 1px solid #eeeeee;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.decision-card .ai-action span {
  color: var(--buddy-muted);
  font-size: 0.82rem;
}

.report-details {
  margin-top: 18px;
  padding: 18px 0;
  border-top: 1px solid #eeeeee;
}

.report-details > summary {
  color: var(--buddy-ink);
  font-weight: 750;
  cursor: pointer;
}

.report-details .skill-evaluation {
  margin-top: 18px;
}

.released-candidate {
  padding: 8px 0 24px;
}

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

.released-sections article {
  padding: 18px;
  border-radius: 14px;
  background: var(--buddy-soft);
}

.released-sections h3 {
  font-size: 0.88rem;
  text-transform: capitalize;
}

.released-sections p,
.released-sources,
.evidence-boundary {
  color: var(--buddy-muted);
  font-size: 0.86rem;
}

.released-sources {
  margin-top: 18px;
}

.released-sources summary {
  color: var(--buddy-ink);
  font-weight: 750;
  cursor: pointer;
}

.evidence-boundary {
  margin-top: 18px;
  padding: 14px;
  border-left: 3px solid var(--buddy-border);
}

.decision-actions {
  display: flex;
  gap: 10px;
  padding: 20px 0 28px;
  border-top: 1px solid #eeeeee;
}

.decision-stack .status-badge,
.decision-stack .review-badge {
  border-radius: 20px;
}

.polished-empty {
  padding: 80px 24px;
  border: 1px dashed var(--buddy-border);
  border-radius: 20px;
  text-align: center;
}

.polished-empty > span {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--buddy-soft);
  font-size: 1.4rem;
}

.polished-empty p {
  color: var(--buddy-muted);
}

.profile-header,
.account-layout {
  max-width: 920px;
  margin: 0 auto 42px;
}

.request-return-banner {
  display: flex;
  max-width: 920px;
  margin: 0 auto 28px;
  padding: 20px 22px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--buddy-border);
  border-radius: 18px;
  background: var(--buddy-warm);
  box-shadow: 0 12px 34px rgba(34, 34, 34, 0.06);
}

.request-return-banner[hidden] {
  display: none;
}

.request-return-banner strong {
  display: block;
  max-width: 620px;
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 1.05rem;
}

.request-return-banner p {
  margin: 5px 0 0;
  color: var(--buddy-muted);
  font-size: 0.9rem;
}

.request-return-banner .button {
  flex: 0 0 auto;
}

.profile-card {
  max-width: 920px;
  margin: 24px auto 0;
  padding: 32px;
  border: 1px solid var(--buddy-border);
  border-radius: 20px;
  background: #fff;
}

.profile-card .section-heading-row {
  margin-bottom: 22px;
}

.account-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 70px;
  align-items: start;
}

.account-card {
  padding: 28px;
  border: 1px solid var(--buddy-border);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
}

.pending-import {
  margin-top: 18px;
  border-color: #f0b8ad;
  background: var(--buddy-warm);
}

.pending-import > span,
.pending-import > strong,
.pending-import > p {
  display: block;
}

.pending-import > span {
  color: var(--buddy-coral-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pending-import > strong {
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.backend-note {
  margin-top: 18px;
  color: var(--buddy-muted);
  font-size: 0.84rem;
}

.buddy-footer {
  display: flex;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 38px;
  border-top: 1px solid var(--buddy-border);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--buddy-muted);
  font-size: 0.82rem;
}

.buddy-footer p {
  margin: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 1120px) {
  .buddy-view {
    width: min(760px, calc(100% - 48px));
  }

  .request-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .request-aside {
    display: none;
  }

  .flow-topbar {
    width: min(760px, 100%);
  }

  .example-panel {
    gap: 32px;
    padding: 42px;
  }
}

@media (max-width: 820px) {
  .buddy-nav {
    width: calc(100% - 32px);
    min-height: 64px;
    grid-template-columns: 1fr auto;
  }

  .buddy-brand > span:last-child,
  .account-trigger > span:last-child {
    display: none;
  }

  .example-nav-link {
    display: none;
  }

  .buddy-nav-links {
    position: fixed;
    z-index: 60;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 8px 10px max(8px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--buddy-border);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(14px);
  }

  .buddy-nav-links button {
    min-height: 48px;
    padding: 0 5px;
    border-radius: 10px;
    font-size: 0.75rem;
  }

  .desktop-nav-item {
    display: none !important;
  }

  .mobile-nav-item {
    display: grid;
    min-width: 0;
    place-items: center;
    align-content: center;
    gap: 2px;
  }

  .mobile-nav-item > span:first-child {
    font-size: 1rem;
    line-height: 1;
  }

  .mobile-add-action > span:first-child {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: var(--buddy-coral);
    color: #fff;
  }

  .buddy-nav-links .nav-count {
    display: inline-grid;
  }

  .buddy-view {
    width: calc(100% - 32px);
    padding: 34px 0 72px;
  }

  .entry-hero {
    padding: 28px 0 48px;
    text-align: left;
  }

  .entry-hero h1 {
    max-width: 100%;
    font-size: clamp(2.75rem, 12vw, 3.2rem);
    overflow-wrap: anywhere;
  }

  .entry-lede {
    margin-left: 0;
  }

  .listing-entry {
    margin-top: 28px;
  }

  .listing-entry > label {
    margin-left: 0;
  }

  .listing-entry-control {
    grid-template-columns: auto 1fr;
    min-height: 64px;
    padding: 7px 14px;
    border-radius: 18px;
  }

  .listing-entry-control .button {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 6px;
    border-radius: 12px;
  }

  .field-hint {
    margin-left: 0;
  }

  .trust-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
    margin-top: 22px;
  }

  .example-panel {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 28px 22px;
    border-radius: 20px;
  }

  .example-panel h2 {
    font-size: 2.25rem;
    overflow-wrap: anywhere;
  }

  .flow-topbar {
    grid-template-columns: 48px 1fr 70px;
    gap: 12px;
    margin: -10px 0 30px;
  }

  .request-layout,
  .account-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .request-aside {
    display: none;
  }

  .request-step h1,
  .profile-header h1,
  .results-header h1,
  .processing-card h1,
  .account-layout h1 {
    font-size: 2.45rem;
  }

  .step-actions {
    align-items: stretch;
  }

  .step-actions .button {
    flex: 1;
  }

  .sticky-mobile {
    position: sticky;
    z-index: 10;
    bottom: 0;
    margin-right: -16px;
    margin-left: -16px;
    padding: 14px 16px max(14px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--buddy-border);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
  }

  .request-step {
    padding-bottom: 12px;
  }

  .choice-chips {
    gap: 8px;
  }

  .choice-chips button {
    min-height: 42px;
    padding: 0 13px;
    font-size: 0.9rem;
  }

  .decision-stack .listing-card {
    padding: 20px 18px;
  }

  .results-header {
    align-items: stretch;
    flex-direction: column;
  }

  .results-header .button {
    width: 100%;
  }

  .decision-priority-grid {
    grid-template-columns: 1fr;
  }

  .released-sections {
    grid-template-columns: 1fr;
  }

  .decision-summary {
    align-items: start;
  }

  .decision-summary-copy {
    font-size: 1.05rem;
  }

  .decision-card .ai-action,
  .decision-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .decision-actions .button {
    width: 100%;
  }

  .profile-card,
  .account-card {
    padding: 22px 18px;
  }

  .request-return-banner {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }

  .request-return-banner .button {
    width: 100%;
  }

  .buddy-footer {
    width: calc(100% - 32px);
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 92px;
  }
}

@media (max-width: 480px) {
  .buddy-view,
  .buddy-footer {
    width: calc(100% - 24px);
  }

  .entry-hero h1,
  .request-step h1,
  .profile-header h1,
  .results-header h1,
  .processing-card h1,
  .account-layout h1 {
    font-size: clamp(2rem, 11vw, 2.7rem);
    line-height: 1.02;
  }

  .preference-snapshot,
  .structured-voice-grid,
  .request-confirmation-grid,
  .selected-stage-confirmation {
    grid-template-columns: 1fr;
  }

  .selected-stage-confirmation .quiet-button {
    justify-self: start;
  }

  .preference-freshness {
    justify-items: start;
  }

  .step-actions:not(.sticky-mobile),
  .voice-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .step-actions:not(.sticky-mobile) .button,
  .voice-actions .button {
    width: 100%;
  }

  .upload-zone {
    min-height: 0;
    padding: 22px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
