:root {
  --bg: #fff8ee;
  --surface: #fffdf8;
  --surface-strong: #fffaf1;
  --surface-soft: #f8ecd9;
  --line: #eadcc8;
  --text: #26323a;
  --muted: #69757f;
  --accent: #f47a20;
  --accent-strong: #bf5109;
  --accent-soft: #ffe2c9;
  --warm: #ef6f4f;
  --sky: #d9f0ff;
  --sky-strong: #236aa2;
  --mint: #d9f5e7;
  --teal: #26776c;
  --lavender: #efe4ff;
  --yellow: #fff1b8;
  --coral: #ffd9cc;
  --slate: #52636f;
  --warning-soft: #fff1bf;
  --success-soft: #ddf6e8;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow: 0 18px 44px rgba(111, 72, 38, 0.1);
  --shadow-soft: 0 10px 28px rgba(111, 72, 38, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

.page-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.35rem 1.5rem 3rem;
}

.config-page .page-shell {
  max-width: 1360px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.4rem 0 1rem;
  border-bottom: 1px solid var(--line);
}

.brand-link,
.header-link {
  color: inherit;
  text-decoration: none;
}

.brand-link {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: 1.9rem;
  letter-spacing: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-link {
  color: var(--muted);
}

.header-button {
  border: 0;
  background: transparent;
  padding: 0;
}

.header-link:hover,
.header-link:focus-visible,
.brand-link:focus-visible,
.header-button:hover,
.header-button:focus-visible {
  color: var(--accent);
  outline: none;
}

.home-main,
.journey-main,
.auth-main,
.brain-main {
  display: grid;
  gap: 1.6rem;
  padding-top: 2rem;
}

.home-main {
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: start;
}

.auth-main {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  align-items: start;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.trust-list span,
.trust-copy {
  display: inline-flex;
  width: fit-content;
  min-height: 1.9rem;
  align-items: center;
  padding: 0 0.7rem;
  border: 1px solid #c9dfd0;
  border-radius: 999px;
  background: #f8fbf8;
  color: #245b3e;
  font-size: 0.9rem;
}

.home-hero,
.journey-header,
.auth-hero,
.brain-hero {
  display: grid;
  gap: 0.8rem;
  max-width: 720px;
}

.brain-hero {
  max-width: none;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1fr);
  align-items: start;
  gap: 2rem;
}

.attention-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
  background: #fbfcfb;
}

.attention-hero-copy {
  display: grid;
  gap: 0.75rem;
}

.system-status-pill {
  display: inline-flex;
  width: fit-content;
  min-height: 2rem;
  align-items: center;
  padding: 0 0.75rem;
  border: 1px solid #ead9ac;
  border-radius: 999px;
  background: var(--warning-soft);
  color: #77531c;
  font-weight: 700;
}

.section-label,
.step-badge {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
.team-header h2,
.step-header h2,
.procurement-path h3,
.supplier-results-header h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.45rem, 5vw, 4.25rem);
  line-height: 1;
}

.team-header h2,
.step-header h2 {
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
  line-height: 1.05;
}

.procurement-path h3,
.supplier-results-header h3,
.scan-card h3,
.recommendations-card h3,
.detail-panel h3,
.execution-card h3,
.pdf-card h3 {
  font-size: 1.25rem;
  line-height: 1.2;
}

.lede,
.step-header p,
.inline-note,
.team-row p,
.simple-agent-card p,
.completion-card p,
.procurement-path p,
.supplier-results-header p,
.scan-card p,
.recommendation-summary p,
.execution-card p,
.pdf-card p {
  margin: 0;
  color: #405047;
  line-height: 1.55;
}

.inline-note.is-error {
  color: #9a3929;
}

.inline-note.is-success {
  color: var(--accent-strong);
}

.button-primary,
.button-secondary,
.button-link,
.row-link,
.table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 2.8rem;
  padding: 0 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

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

.button-primary:hover,
.button-primary:focus-visible,
.button-link:hover,
.button-link:focus-visible,
.row-link:hover,
.row-link:focus-visible,
.table-action:hover,
.table-action:focus-visible {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  transform: translateY(-1px);
  outline: none;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.button-primary:disabled,
.button-secondary:disabled,
.table-action:disabled {
  background: #aab8b1;
  border-color: #aab8b1;
  color: #fff;
  cursor: not-allowed;
  transform: none;
}

.team-card,
.wizard-card,
.simple-agent-card,
.asset-option,
.completion-card,
.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.team-card,
.wizard-card,
.auth-card {
  border-radius: var(--radius-xl);
  padding: 1.2rem;
}

.team-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.team-count {
  color: var(--muted);
}

.team-list,
.field-stack,
.asset-list,
.step-actions,
.field-grid {
  display: grid;
  gap: 0.85rem;
}

.team-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.team-row-empty {
  grid-template-columns: 1fr auto;
}

.team-row strong,
.simple-agent-card strong,
.completion-card strong,
.asset-option strong {
  display: block;
}

.status-pill,
.supplier-count,
.upload-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.status-pill {
  min-width: 5rem;
}

.status-pill.is-active {
  background: var(--success-soft);
  color: #245b3e;
  border-color: #c9dfd0;
}

.status-pill.is-pending {
  background: var(--warning-soft);
  color: #77531c;
  border-color: #ead9ac;
}

.row-link {
  min-height: 2.5rem;
  padding: 0 0.9rem;
}

.journey-layout-simple {
  display: grid;
  grid-template-columns: minmax(0, 900px);
}

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

.config-card {
  width: 100%;
}

.wizard-step,
.auth-panel {
  display: grid;
  gap: 1rem;
}

.auth-tabs,
.mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.auth-tab,
.mode-tab {
  min-height: 2.6rem;
  padding: 0 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--muted);
}

.auth-tab.is-active,
.mode-tab.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.mode-tab:disabled {
  opacity: 0.7;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field span {
  font-weight: 700;
}

.field select,
.field input,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--text);
}

.field select:focus,
.field input:focus,
.field textarea:focus,
.auth-tab:focus-visible,
.mode-tab:focus-visible,
.check-row:focus-within,
.upload-drop:focus-within {
  border-color: var(--accent);
  outline: 2px solid rgba(36, 122, 104, 0.14);
}

.field textarea {
  min-height: 12rem;
  padding: 0.85rem 0.9rem;
  resize: vertical;
  line-height: 1.55;
}

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

.upload-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.simple-agent-card,
.completion-card {
  padding: 0.95rem;
  border-radius: var(--radius-md);
}

.asset-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.95rem;
  border-radius: var(--radius-md);
}

.asset-option input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.25rem;
  accent-color: var(--accent);
}

.completion-card {
  background: var(--success-soft);
  border-color: #c9dfd0;
}

.step-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.procurement-config {
  display: grid;
  gap: 1rem;
}

.phase-indicator {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.phase-indicator li {
  min-height: 2.6rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
}

.phase-indicator li.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.phase-section {
  display: grid;
  gap: 1rem;
}

.phase-header {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fbfcfb;
}

.phase-header h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: 1.35rem;
}

.phase-header p {
  margin: 0;
  color: #405047;
}

.procurement-panel {
  display: grid;
}

.procurement-path {
  display: grid;
  gap: 0.9rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.check-row,
.upload-drop {
  display: grid;
  gap: 0.45rem;
  width: 100%;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fbfcfb;
}

.check-row {
  grid-template-columns: auto 1fr;
  align-items: center;
  font-weight: 700;
}

.check-row input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent);
}

.upload-drop {
  position: relative;
  cursor: pointer;
}

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

.upload-drop strong {
  overflow-wrap: anywhere;
}

.upload-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.supplier-loader {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fbfcfb;
}

.loader-copy,
.supplier-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.progress-track {
  width: 100%;
  height: 0.7rem;
  overflow: hidden;
  border-radius: 999px;
  background: #dce7e1;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--warm));
  transition: width 120ms ease;
}

.supplier-results {
  display: grid;
  gap: 0.85rem;
}

.supplier-table-wrap {
  width: 100%;
  overflow-x: visible;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.recommendation-card-list {
  display: grid;
  gap: 0.85rem;
  padding: 0.85rem;
}

.recommendation-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fbfcfb;
}

.recommendation-card-header,
.recommendation-card-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
}

.recommendation-card-body {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.recommendation-card-body div {
  display: grid;
  gap: 0.25rem;
}

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

.recommendation-card-body p {
  margin: 0;
  color: #2f3d35;
  line-height: 1.45;
}

.supplier-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.supplier-table th,
.supplier-table td {
  padding: 0.75rem 0.65rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.supplier-table th {
  background: var(--surface-soft);
  color: #34483d;
  font-size: 0.88rem;
}

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

.table-action {
  min-height: 2.3rem;
  padding: 0 0.75rem;
  white-space: nowrap;
}

.supplier-empty {
  padding: 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  color: var(--muted);
  background: #fbfcfb;
}

.mini-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.agent-dashboard,
.recommendation-summary,
.detail-panel-header {
  display: grid;
  gap: 1rem;
}

.agent-dashboard {
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: stretch;
}

.agent-status-card,
.procurement-metrics,
.scan-card,
.agent-progress-card,
.workflow-card,
.recommendations-card,
.detail-panel,
.execution-card,
.pdf-card,
.assistant-card,
.brain-panel,
.brain-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fbfcfb;
}

.agent-status-card,
.scan-card,
.agent-progress-card,
.workflow-card,
.recommendations-card,
.detail-panel,
.execution-card,
.pdf-card,
.assistant-card,
.brain-panel,
.brain-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.assistant-card,
.brain-panel {
  background: var(--surface);
  box-shadow: var(--shadow);
}

.assistant-card-header,
.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.assistant-card h2,
.brain-panel h2,
.assistant-response h3,
.brain-card h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-weight: 600;
  letter-spacing: 0;
}

.assistant-card h2,
.brain-panel h2 {
  font-size: clamp(1.45rem, 2vw, 1.9rem);
}

.assistant-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
}

.assistant-field span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.assistant-suggestions,
.assistant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.assistant-suggestions button {
  min-height: 2.2rem;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
}

.assistant-suggestions button:hover,
.assistant-suggestions button:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  outline: none;
}

.assistant-response {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid #c9dfd0;
  border-radius: var(--radius-md);
  background: #f8fbf8;
}

.assistant-response p {
  margin: 0;
  line-height: 1.55;
}

.brain-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.attention-panel,
.brain-panel:nth-child(2) {
  grid-column: span 1;
}

.profile-panel {
  grid-column: 1 / -1;
}

.attention-list,
.module-grid,
.profile-summary {
  display: grid;
  gap: 0.75rem;
}

.attention-card {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.attention-card.priority-high {
  border-left-color: var(--warm);
}

.attention-card.priority-medium {
  border-left-color: var(--accent);
}

.attention-card.priority-low {
  border-left-color: #87968d;
}

.attention-card-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: start;
}

.attention-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.attention-meta span,
.impact-pill {
  display: inline-flex;
  width: fit-content;
  min-height: 1.7rem;
  align-items: center;
  padding: 0 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfcfb;
  color: var(--muted);
  font-size: 0.8rem;
}

.impact-pill {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-color: #bed9ca;
}

.attention-card h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: 1.3rem;
  letter-spacing: 0;
}

.attention-card p {
  margin: 0;
  color: #405047;
  line-height: 1.5;
}

.attention-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.attention-actions .button-primary,
.attention-actions .button-secondary {
  min-height: 2.45rem;
}

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

.brain-card {
  background: #fbfcfb;
  box-shadow: none;
}

.brain-card h3 {
  font-size: 1.12rem;
}

.brain-card p {
  margin: 0.35rem 0 0;
  color: #405047;
  line-height: 1.5;
}

.brain-card .button-secondary,
.brain-card .row-link {
  justify-self: start;
  min-height: 2.45rem;
}

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

.profile-summary div {
  display: grid;
  gap: 0.3rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fbfcfb;
}

.profile-summary strong {
  color: var(--muted);
  font-size: 0.86rem;
}

.profile-summary span {
  color: var(--text);
  line-height: 1.4;
}

.agent-status-card strong {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
  font-weight: 600;
}

.agent-status-card[data-status="recommendations_ready"] {
  border-color: #bed9ca;
  background: #f8fbf8;
}

.procurement-metrics {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.procurement-metrics div {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem;
  border-bottom: 1px solid var(--line);
}

.procurement-metrics div:last-child {
  border-bottom: 0;
}

.procurement-metrics span {
  font-size: 1.45rem;
  font-weight: 750;
  color: var(--accent-strong);
}

.procurement-metrics p {
  margin: 0;
  color: var(--muted);
}

.signal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.signal-list span,
.savings-pill,
.confidence-chip,
.approval-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 1.8rem;
  padding: 0 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  white-space: nowrap;
}

.savings-pill {
  background: var(--success-soft);
  color: #245b3e;
  border-color: #c9dfd0;
  font-weight: 700;
}

.workflow-list {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-list li {
  min-height: 3rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--muted);
  background: var(--surface);
  font-size: 0.86rem;
}

.workflow-list li.is-done {
  background: var(--success-soft);
  color: #245b3e;
  border-color: #c9dfd0;
}

.workflow-list li.is-active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-color: var(--accent);
  font-weight: 700;
}

.recommendation-summary {
  grid-template-columns: 1fr auto;
  align-items: start;
}

.decision-table {
  min-width: 0;
}

.decision-table th,
.decision-table td {
  font-size: 0.88rem;
}

.decision-table th:nth-child(1),
.decision-table td:nth-child(1) {
  width: 15%;
}

.decision-table th:nth-child(2),
.decision-table td:nth-child(2) {
  width: 10%;
}

.decision-table th:nth-child(3),
.decision-table td:nth-child(3) {
  width: 13%;
}

.decision-table th:nth-child(4),
.decision-table td:nth-child(4) {
  width: 15%;
}

.decision-table th:nth-child(5),
.decision-table td:nth-child(5) {
  width: 15%;
}

.decision-table th:nth-child(6),
.decision-table td:nth-child(6) {
  width: 13%;
}

.decision-table th:nth-child(7),
.decision-table td:nth-child(7) {
  width: 19%;
}

.supplier-open-button,
.recommendation-action,
.text-button,
.icon-button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
}

.supplier-open-button {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text);
  font-weight: 750;
  text-align: left;
}

.supplier-open-button:hover,
.supplier-open-button:focus-visible,
.text-button:hover,
.text-button:focus-visible {
  color: var(--accent);
  outline: none;
}

.text-button:disabled {
  color: #aab8b1;
  cursor: not-allowed;
  text-decoration-color: #aab8b1;
}

.confidence-chip {
  min-height: 1.55rem;
  padding: 0 0.5rem;
  font-size: 0.78rem;
}

.recommendation-action {
  display: inline-flex;
  min-height: 2.1rem;
  align-items: center;
  padding: 0 0.65rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
}

.approval-chip {
  display: flex;
  margin-top: 0.45rem;
  min-height: 1.55rem;
  padding: 0 0.5rem;
  font-size: 0.78rem;
}

.approval-chip.is-approved {
  background: var(--success-soft);
  border-color: #c9dfd0;
  color: #245b3e;
}

.approval-chip.is-dismissed,
.approval-chip.is-handled {
  background: #f0f2ef;
  color: var(--muted);
}

.approval-chip.is-explanation {
  background: var(--warning-soft);
  border-color: #ead9ac;
  color: #77531c;
}

.detail-panel {
  background: #ffffff;
}

.detail-panel-header {
  grid-template-columns: 1fr auto;
  align-items: start;
}

.icon-button {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}

.icon-button:hover,
.icon-button:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  outline: none;
}

.detail-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

.detail-list div {
  display: grid;
  gap: 0.25rem;
}

.detail-list dt {
  color: var(--muted);
  font-weight: 700;
}

.detail-list dd {
  margin: 0;
  color: #2f3d35;
  line-height: 1.55;
}

.approval-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.approval-copy {
  flex-basis: 100%;
}

.text-button {
  min-height: 2.5rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.execution-card {
  background: #f8fbf8;
  border-color: #c9dfd0;
}

.pdf-card {
  background: transparent;
}

@media (max-width: 920px) {
  .home-main,
  .auth-main,
  .agent-dashboard,
  .brain-hero,
  .brain-grid,
  .profile-summary,
  .attention-hero,
  .recommendation-card-body {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 640px) {
  .page-shell {
    padding: 1rem 1rem 2.5rem;
  }

  .site-header,
  .header-actions,
  .team-header,
  .assistant-card-header,
  .panel-header,
  .team-row,
  .loader-copy,
  .supplier-results-header,
  .recommendation-summary,
  .detail-panel-header {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .team-header,
  .header-actions,
  .assistant-card-header,
  .panel-header,
  .loader-copy,
  .supplier-results-header,
  .detail-panel-header {
    display: flex;
  }

  .attention-card-header,
  .recommendation-card-header,
  .recommendation-card-actions {
    grid-template-columns: 1fr;
    display: grid;
  }

  .assistant-form,
  .module-grid,
  .phase-indicator {
    grid-template-columns: 1fr;
  }

  .assistant-form .button-primary {
    width: 100%;
  }

  .recommendation-summary {
    display: grid;
  }

  .team-row {
    display: grid;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.7rem;
  }

  .workflow-list {
    grid-template-columns: 1fr;
  }

  .procurement-metrics {
    grid-template-columns: 1fr;
  }

  .approval-actions {
    display: grid;
    align-items: stretch;
  }

  .approval-actions .button-primary,
  .approval-actions .button-secondary,
  .approval-actions .text-button {
    width: 100%;
  }

  .supplier-table-wrap {
    overflow: visible;
  }

  .supplier-table {
    min-width: 0;
  }

  .supplier-table thead {
    display: none;
  }

  .supplier-table,
  .supplier-table tbody,
  .supplier-table tr,
  .supplier-table td {
    display: block;
  }

  .supplier-table tr {
    padding: 0.85rem;
    border-bottom: 1px solid var(--line);
  }

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

  .supplier-table td {
    display: grid;
    grid-template-columns: minmax(7.25rem, 38%) minmax(0, 1fr);
    gap: 0.7rem;
    width: 100%;
    padding: 0.25rem 0;
    border-bottom: 0;
  }

  .decision-table th:nth-child(n),
  .decision-table td:nth-child(n) {
    width: 100%;
  }

  .supplier-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 700;
  }

  .supplier-table td:last-child {
    align-items: center;
  }
}

/* Warm wellness design primitives */
.wellness-app {
  background: var(--bg);
}

.ui-card,
.content-tile,
.onboarding-panel,
.empty-state,
.team-card,
.wizard-card,
.simple-agent-card,
.asset-option,
.completion-card,
.auth-card,
.agent-status-card,
.procurement-metrics,
.scan-card,
.agent-progress-card,
.workflow-card,
.recommendations-card,
.detail-panel,
.execution-card,
.pdf-card,
.assistant-card,
.brain-panel,
.brain-card {
  border-color: rgba(188, 153, 116, 0.42);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.ui-button,
.button-primary,
.button-secondary,
.button-link,
.row-link,
.table-action,
.recommendation-action {
  min-height: 3rem;
  border-radius: 999px;
  font-weight: 750;
  letter-spacing: 0;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

body {
  color: var(--text);
  font-family: "Nunito", "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif;
}

.page-shell {
  max-width: 1180px;
  padding-top: 1rem;
}

.config-page .page-shell {
  max-width: 1240px;
}

.site-header {
  min-height: 4.25rem;
  padding: 0.35rem 0;
  border-bottom: 0;
}

.brand-link {
  display: inline-flex;
  min-height: 2.85rem;
  align-items: center;
  border-radius: 999px;
  color: var(--text);
  font-family: "Nunito", "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif;
  font-size: 1.7rem;
  font-weight: 850;
}

.brand-link::after {
  content: "";
  width: 0.52rem;
  height: 0.52rem;
  margin-left: 0.38rem;
  border-radius: 999px;
  background: var(--accent);
}

.header-link,
.header-button {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  padding: 0 0.95rem;
  border: 1px solid rgba(188, 153, 116, 0.36);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--slate);
  font-weight: 750;
}

.header-link:hover,
.header-link:focus-visible,
.brand-link:focus-visible,
.header-button:hover,
.header-button:focus-visible {
  border-color: var(--accent);
  color: var(--accent-strong);
  outline: 3px solid rgba(244, 122, 32, 0.16);
}

.soft-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.25rem 0 1rem;
}

.soft-tab,
.category-chip {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  padding: 0 0.95rem;
  border: 1px solid rgba(188, 153, 116, 0.36);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--slate);
  font-weight: 800;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.soft-tab:hover,
.soft-tab:focus-visible,
.category-chip:hover,
.category-chip:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
  outline: none;
  transform: translateY(-1px);
}

.soft-tab.is-active,
.category-chip.is-active {
  border-color: transparent;
  background: var(--text);
  color: #fffdf8;
}

.home-main,
.journey-main,
.auth-main,
.brain-main {
  gap: 1.25rem;
  padding-top: 1.25rem;
}

.auth-main {
  grid-template-columns: minmax(280px, 0.88fr) minmax(320px, 0.92fr);
  align-items: stretch;
  gap: 1.25rem;
}

.journey-header,
.auth-hero {
  position: relative;
  min-height: 18rem;
  align-content: center;
  overflow: hidden;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid rgba(188, 153, 116, 0.34);
  border-radius: var(--radius-xl);
  background: var(--yellow);
  box-shadow: var(--shadow-soft);
}

.journey-header {
  max-width: none;
  min-height: 14.5rem;
  background: var(--sky);
}

.auth-card,
.wizard-card {
  padding: clamp(1rem, 2.5vw, 1.5rem);
}

.section-label,
.step-badge,
.mini-label {
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 850;
}

h1,
.team-header h2,
.step-header h2,
.procurement-path h3,
.supplier-results-header h3,
.assistant-card h2,
.brain-panel h2,
.assistant-response h3,
.brain-card h3,
.attention-card h3,
.agent-status-card strong,
.phase-header h3,
.scan-card h3,
.recommendations-card h3,
.detail-panel h3,
.execution-card h3,
.pdf-card h3 {
  font-family: "Nunito", "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif;
  font-weight: 850;
  letter-spacing: 0;
}

h1 {
  max-width: 11ch;
  font-size: clamp(2.35rem, 5vw, 4.1rem);
  line-height: 0.98;
}

.journey-header h1,
.auth-hero h1 {
  max-width: 12ch;
}

.lede,
.step-header p,
.inline-note,
.team-row p,
.simple-agent-card p,
.completion-card p,
.procurement-path p,
.supplier-results-header p,
.scan-card p,
.recommendation-summary p,
.execution-card p,
.pdf-card p,
.phase-header p,
.brain-card p,
.attention-card p,
.assistant-response p {
  color: var(--slate);
}

.button-primary {
  min-height: 3.15rem;
  padding: 0 1.25rem;
  border-color: var(--accent);
  background: var(--accent);
  color: #fffdf8;
  box-shadow: 0 12px 24px rgba(244, 122, 32, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible,
.button-link:hover,
.button-link:focus-visible,
.row-link:hover,
.row-link:focus-visible,
.table-action:hover,
.table-action:focus-visible {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  box-shadow: 0 14px 28px rgba(191, 81, 9, 0.18);
}

.button-secondary,
.row-link,
.table-action {
  border-color: rgba(188, 153, 116, 0.48);
  background: #fffdf8;
  color: var(--accent-strong);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
  outline: 3px solid rgba(244, 122, 32, 0.16);
}

.button-primary:disabled,
.button-secondary:disabled,
.table-action:disabled {
  border-color: #d7c7b4;
  background: #d7c7b4;
  color: #fffdf8;
  box-shadow: none;
}

.trust-list span,
.trust-copy,
.status-pill,
.supplier-count,
.upload-pill,
.system-status-pill,
.attention-meta span,
.impact-pill,
.savings-pill,
.confidence-chip,
.approval-chip,
.signal-list span {
  min-height: 2rem;
  border-color: rgba(188, 153, 116, 0.38);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--slate);
  font-weight: 800;
}

.trust-list span:nth-child(1),
.signal-list span:nth-child(1),
.attention-meta span:nth-child(1) {
  background: var(--mint);
  color: #205d4f;
}

.trust-list span:nth-child(2),
.signal-list span:nth-child(2),
.attention-meta span:nth-child(2) {
  background: var(--sky);
  color: #245f8d;
}

.trust-list span:nth-child(3),
.signal-list span:nth-child(3),
.attention-meta span:nth-child(3) {
  background: var(--lavender);
  color: #5b4a7d;
}

.system-status-pill,
.status-pill.is-pending,
.approval-chip.is-explanation {
  border-color: #e8cf86;
  background: var(--yellow);
  color: #765316;
}

.status-pill.is-active,
.savings-pill,
.approval-chip.is-approved {
  border-color: #a8ddc1;
  background: var(--mint);
  color: #205d4f;
}

.field select,
.field input,
.field textarea {
  min-height: 3.25rem;
  border-color: rgba(188, 153, 116, 0.52);
  border-radius: 999px;
  background: #fffdf8;
}

.field textarea {
  border-radius: var(--radius-lg);
}

.field select:focus,
.field input:focus,
.field textarea:focus,
.auth-tab:focus-visible,
.mode-tab:focus-visible,
.check-row:focus-within,
.upload-drop:focus-within {
  border-color: var(--accent);
  outline: 3px solid rgba(244, 122, 32, 0.16);
}

.auth-tabs,
.mode-tabs {
  padding: 0.35rem;
  border-radius: 999px;
  background: var(--surface-soft);
}

.auth-tab,
.mode-tab {
  min-height: 2.6rem;
  border-color: transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--slate);
  font-weight: 850;
}

.auth-tab.is-active,
.mode-tab.is-active {
  border-color: transparent;
  background: #fffdf8;
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.wellness-figure {
  position: relative;
  width: min(15rem, 100%);
  min-height: 8.8rem;
  margin-top: 1.15rem;
  border-radius: 2rem;
  background: #fffdf8;
  box-shadow: inset 0 0 0 1px rgba(188, 153, 116, 0.26);
}

.hero-figure {
  width: 12rem;
  min-height: 7.2rem;
  background: var(--sky);
}

.journey-figure {
  position: absolute;
  right: 1.5rem;
  bottom: 1.4rem;
  width: 12.5rem;
  min-height: 7.5rem;
  background: #fffdf8;
}

.auth-figure {
  background: var(--coral);
}

.figure-sun,
.figure-cloud,
.figure-smile {
  position: absolute;
  display: block;
}

.figure-sun {
  top: 1rem;
  left: 1rem;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: inset -0.35rem -0.35rem 0 rgba(191, 81, 9, 0.18);
}

.figure-cloud {
  right: 1rem;
  bottom: 1.2rem;
  width: 6.6rem;
  height: 2.8rem;
  border-radius: 999px;
  background: var(--mint);
}

.figure-cloud::before,
.figure-cloud::after {
  content: "";
  position: absolute;
  bottom: 1rem;
  border-radius: 999px;
  background: inherit;
}

.figure-cloud::before {
  left: 0.8rem;
  width: 2.7rem;
  height: 2.7rem;
}

.figure-cloud::after {
  right: 0.9rem;
  width: 3.2rem;
  height: 3.2rem;
}

.figure-smile {
  left: 4.8rem;
  bottom: 1.35rem;
  width: 3.2rem;
  height: 1.5rem;
  border-bottom: 0.28rem solid var(--text);
  border-radius: 0 0 999px 999px;
}

.brain-main {
  gap: 1rem;
}

.attention-hero {
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(1rem, 2vw, 1.4rem);
  overflow: hidden;
  padding: clamp(1.1rem, 2.6vw, 1.6rem);
  background: var(--yellow);
}

.attention-hero h1 {
  max-width: 12ch;
}

.attention-list,
.module-grid,
.profile-summary {
  gap: 0.85rem;
}

.attention-card {
  border-left: 0;
  background: #fffdf8;
  box-shadow: none;
}

.attention-card.priority-high {
  border-color: rgba(239, 111, 79, 0.36);
  background: var(--coral);
}

.attention-card.priority-medium {
  border-color: rgba(244, 122, 32, 0.32);
  background: var(--accent-soft);
}

.attention-card.priority-low {
  border-color: rgba(38, 119, 108, 0.3);
  background: var(--mint);
}

.attention-card-header {
  align-items: start;
}

.attention-actions .button-primary,
.attention-actions .button-secondary {
  min-height: 2.55rem;
}

.brain-grid {
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  gap: 1rem;
}

.assistant-card,
.brain-panel {
  padding: clamp(1rem, 2vw, 1.35rem);
}

.assistant-card {
  background: var(--mint);
}

.assistant-response {
  border-color: rgba(188, 153, 116, 0.36);
  border-radius: var(--radius-lg);
  background: #fffdf8;
}

.assistant-suggestions button {
  min-height: 2.45rem;
  padding: 0 0.95rem;
  border-color: transparent;
  background: #fffdf8;
  color: var(--slate);
  font-weight: 850;
}

.assistant-suggestions button:nth-child(2n) {
  background: var(--sky);
  color: #245f8d;
}

.assistant-suggestions button:nth-child(3n) {
  background: var(--lavender);
  color: #5b4a7d;
}

.assistant-form {
  padding: 0.35rem;
  border: 1px solid rgba(188, 153, 116, 0.3);
  border-radius: 999px;
  background: #fffdf8;
}

.assistant-form .field input {
  border-color: transparent;
  background: transparent;
}

.assistant-form .field input:focus {
  outline: none;
}

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

.brain-card {
  min-height: 12rem;
  align-content: space-between;
  background: #fffdf8;
  box-shadow: none;
}

.brain-card:nth-child(1) {
  background: var(--accent-soft);
}

.brain-card:nth-child(2) {
  background: var(--sky);
}

.brain-card:nth-child(3) {
  background: var(--lavender);
}

.brain-card:nth-child(4) {
  background: var(--mint);
}

.brain-card:nth-child(5) {
  background: var(--yellow);
}

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

.profile-summary div {
  border-color: rgba(188, 153, 116, 0.36);
  border-radius: var(--radius-lg);
  background: #fffdf8;
  box-shadow: none;
}

.phase-indicator {
  padding: 0.45rem;
  border-radius: 999px;
  background: var(--surface-soft);
}

.phase-indicator li {
  min-height: 2.75rem;
  border-color: transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--slate);
  text-align: center;
}

.phase-indicator li.is-active {
  border-color: transparent;
  background: #fffdf8;
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.phase-header {
  padding: 1.2rem;
  border-color: rgba(188, 153, 116, 0.32);
  border-radius: var(--radius-xl);
  background: var(--sky);
  box-shadow: none;
}

.phase-section:nth-of-type(3n) .phase-header {
  background: var(--mint);
}

.phase-section:nth-of-type(4n) .phase-header {
  background: var(--lavender);
}

.agent-dashboard {
  gap: 1rem;
}

.agent-status-card {
  background: var(--accent-soft);
}

.agent-status-card[data-status="recommendations_ready"] {
  border-color: rgba(38, 119, 108, 0.32);
  background: var(--mint);
}

.procurement-metrics {
  grid-template-columns: 1fr;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.procurement-metrics div {
  margin-bottom: 0.75rem;
  border: 1px solid rgba(188, 153, 116, 0.32);
  border-radius: var(--radius-lg);
  background: #fffdf8;
}

.procurement-metrics div:last-child {
  margin-bottom: 0;
  border-bottom: 1px solid rgba(188, 153, 116, 0.32);
}

.procurement-metrics span {
  color: var(--accent-strong);
}

.scan-card,
.pdf-card,
.agent-progress-card,
.workflow-card,
.recommendations-card,
.detail-panel,
.execution-card {
  padding: clamp(1rem, 2vw, 1.25rem);
}

.scan-card {
  background: var(--yellow);
}

.pdf-card {
  background: var(--lavender);
}

.upload-drop,
.check-row {
  border-color: rgba(188, 153, 116, 0.36);
  border-radius: var(--radius-lg);
  background: #fffdf8;
}

.agent-progress-card {
  background: var(--sky);
}

.progress-track {
  height: 0.9rem;
  background: rgba(255, 253, 248, 0.85);
}

.progress-track span {
  background: var(--accent);
  transition: width 220ms ease;
}

.workflow-card {
  background: #fffdf8;
}

.workflow-list {
  gap: 0.5rem;
}

.workflow-list li {
  border-color: rgba(188, 153, 116, 0.36);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
}

.workflow-list li.is-done {
  border-color: rgba(38, 119, 108, 0.28);
  background: var(--mint);
  color: #205d4f;
}

.workflow-list li.is-active {
  border-color: rgba(244, 122, 32, 0.36);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.recommendations-card {
  background: #fffdf8;
}

.supplier-table-wrap {
  border: 0;
  border-radius: var(--radius-xl);
  background: transparent;
}

.recommendation-card-list {
  padding: 0;
}

.recommendation-card {
  border-color: rgba(188, 153, 116, 0.36);
  background: var(--surface-strong);
  box-shadow: none;
}

.recommendation-card:nth-child(2n) {
  background: var(--sky);
}

.recommendation-card:nth-child(3n) {
  background: var(--mint);
}

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

.recommendation-action {
  border-color: transparent;
  background: var(--text);
  color: #fffdf8;
}

.recommendation-action:hover,
.recommendation-action:focus-visible {
  border-color: transparent;
  background: var(--accent-strong);
  color: #fffdf8;
  outline: 3px solid rgba(244, 122, 32, 0.16);
}

.supplier-empty,
.empty-state {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  padding: 1.4rem;
  border: 1px dashed rgba(188, 153, 116, 0.48);
  border-radius: var(--radius-xl);
  background: var(--yellow);
  color: var(--slate);
  text-align: center;
}

.supplier-empty::before,
.empty-state::before {
  content: "";
  width: 4.2rem;
  height: 3.2rem;
  border-radius: 2rem 2rem 1rem 1rem;
  background: var(--accent);
  box-shadow:
    1.8rem 0.35rem 0 var(--mint),
    -1.6rem 0.5rem 0 var(--sky);
}

.detail-panel {
  background: var(--lavender);
}

.detail-list div {
  padding: 0.8rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.8);
}

.execution-card {
  background: var(--mint);
}

.icon-button {
  border-color: rgba(188, 153, 116, 0.48);
  background: #fffdf8;
}

.text-button {
  color: var(--slate);
  font-weight: 750;
}

.simple-agent-card,
.completion-card,
.asset-option,
.team-row {
  border-color: rgba(188, 153, 116, 0.36);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: none;
}

.completion-card {
  background: var(--mint);
}

@media (max-width: 920px) {
  .journey-figure {
    position: relative;
    right: auto;
    bottom: auto;
  }

  .auth-main,
  .attention-hero,
  .brain-grid,
  .agent-dashboard,
  .recommendation-card-body {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .page-shell {
    padding: 0.85rem 0.85rem 2rem;
  }

  .site-header {
    min-height: auto;
  }

  .soft-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.7rem;
  }

  .soft-tab {
    flex: 0 0 auto;
  }

  .auth-main,
  .journey-main,
  .brain-main {
    padding-top: 0.5rem;
  }

  .auth-hero,
  .journey-header,
  .attention-hero,
  .assistant-card,
  .brain-panel,
  .wizard-card,
  .auth-card {
    border-radius: 24px;
  }

  .auth-tabs,
  .mode-tabs,
  .phase-indicator,
  .assistant-form {
    border-radius: var(--radius-xl);
  }

  .phase-indicator {
    grid-template-columns: 1fr;
  }

  .assistant-form {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .assistant-form .field input {
    border-color: rgba(188, 153, 116, 0.52);
    background: #fffdf8;
  }

  .module-grid,
  .profile-summary {
    grid-template-columns: 1fr;
  }

  .wellness-figure {
    width: 100%;
  }

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

  h1 {
    max-width: 12ch;
    font-size: 2.45rem;
  }
}
