:root {
  color-scheme: light;
  --ink: #1f2a2e;
  --muted: #607077;
  --line: #c9d3d6;
  --paper: #f6f8f7;
  --panel: #ffffff;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --warn: #8a4b12;
  --bad: #9f1239;
}

.operations-page { padding-bottom: 64px; }
.operations-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.operations-pane { min-width: 0; }
.compact-list { display: grid; gap: 8px; margin-bottom: 18px; }
.compact-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.compact-list span, .definition-list dd { color: var(--muted); }
.compact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; }
.compact-form .form-wide, .compact-form .form-result { grid-column: 1 / -1; }
.compact-form textarea, .decision-form textarea { min-height: 76px; resize: vertical; }
.form-result { min-height: 20px; color: var(--teal-dark); }
.definition-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.definition-list > div { border-bottom: 1px solid var(--line); padding: 10px 0; }
.definition-list dt { font-weight: 700; }
.definition-list dd { margin: 4px 0 0; }
.export-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.button-link { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 6px; background: var(--teal); color: white; font-weight: 700; text-decoration: none; }
.button-link.ghost { background: white; color: var(--ink); border: 1px solid var(--line-strong); }
.report-table-wrap { overflow-x: auto; }
.report-table { width: 100%; border-collapse: collapse; min-width: 780px; }
.report-table th, .report-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.report-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.decision-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-width: min(360px, 100%); }
.decision-form textarea, .decision-form .form-result { grid-column: 1 / -1; }

@media (max-width: 820px) {
  .operations-grid, .compact-form { grid-template-columns: 1fr; }
  .compact-form .form-wide, .compact-form .form-result { grid-column: auto; }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

button, input, select {
  font: inherit;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

button:hover { background: var(--accent-dark); }
button:disabled { background: #9ca3af; cursor: not-allowed; }
button.ghost { background: #e7ecec; color: var(--ink); border: 1px solid var(--line); }

input, select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
}

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 28px; line-height: 1.2; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(460px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}

.login-form {
  display: grid;
  gap: 10px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.brand-block {
  display: grid;
  gap: 8px;
  align-items: start;
}

.brand-logo {
  display: block;
  width: min(190px, 100%);
  height: auto;
}

.topbar-title {
  justify-self: center;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.topbar form, .topbar-nav {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.role {
  color: var(--muted);
  font-size: 13px;
}

.nav-link {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.wizard-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px;
}

.wizard-shell {
  display: grid;
  gap: 14px;
  align-content: start;
}

.hidden {
  display: none !important;
}

.band {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px;
}

.warning {
  color: var(--warn);
  background: #fff8ed;
}

.gate {
  border-color: #f4b4c6;
  background: #fff5f7;
}

.eyebrow {
  margin-bottom: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--accent-dark);
  font-weight: 700;
}

.muted, .stub {
  color: var(--muted);
}

.error {
  color: var(--bad);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 8px;
  text-align: center;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
}

.steps li.active {
  background: #dff4ef;
  border-color: var(--accent);
}

.flow-form {
  display: grid;
  gap: 14px;
}

.grid-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
}

.segmented legend {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--muted);
}

.segmented label {
  display: flex;
  gap: 6px;
  align-items: center;
}

.segmented input {
  width: auto;
  min-height: auto;
}

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

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

.upload-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdfd;
}

.photo-card {
  border-color: #9fbfba;
}

.required-label,
.recommended-label,
.optional-label {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.required-label {
  color: #7f1d1d;
  background: #fee2e2;
}

.recommended-label {
  color: #71410a;
  background: #fef3c7;
}

.optional-label {
  color: #334155;
  background: #e2e8f0;
}

.upload-actions,
.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.file-control {
  display: grid;
  gap: 8px;
}

.upload-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.file-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(130px, 0.8fr) minmax(120px, 0.6fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fbfdfd;
}

.file-row.upload-error {
  border-color: #b42318;
  background: #fff1f0;
  box-shadow: 0 0 0 2px rgba(180, 35, 24, 0.14);
}

.file-row.upload-error .file-name {
  color: #8f1710;
  font-weight: 700;
}

.upload-error-help {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: #8f1710;
  font-size: 14px;
  font-weight: 650;
}

.file-name {
  overflow-wrap: anywhere;
}

.facts-table {
  display: grid;
  gap: 8px;
}

.fact-row, .exception-row, .packet-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 120px;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.exception-row {
  grid-template-columns: 1fr 1fr 1.4fr;
}

.packet-grid {
  display: grid;
  gap: 8px;
}

.summary-grid,
.summary-list,
.confirmation-details {
  display: grid;
  gap: 8px;
}

.summary-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.45fr) minmax(220px, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.accepted {
  border-color: #9fd4c8;
  background: #f0fdfa;
}

.claim-list,
.artifact-list,
.document-groups,
.field-readiness-list {
  display: grid;
  gap: 10px;
}

.claim-card,
.artifact-card,
.document-group {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, auto) minmax(120px, auto);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.artifact-card {
  grid-template-columns: minmax(180px, 0.45fr) minmax(240px, 1fr);
  color: var(--ink);
  text-decoration: none;
}

.document-group {
  grid-template-columns: 220px 1fr;
  align-items: start;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #0f5132;
  background: #d1fae5;
  font-weight: 700;
  font-size: 13px;
}

.assistant-panel {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: grid;
  justify-items: end;
  gap: 8px;
  width: min(390px, calc(100vw - 28px));
  pointer-events: none;
}

.assistant-header {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  padding: 8px 10px 8px 8px;
  border: 1px solid rgba(20, 124, 137, 0.22);
  border-radius: 999px;
  background: rgba(247, 251, 251, 0.94);
  box-shadow: 0 14px 34px rgba(15, 46, 54, 0.16);
  pointer-events: auto;
  backdrop-filter: blur(8px);
}

.assistant-title {
  margin: 0;
  font-size: 14px;
}

.assistant-subtitle,
.assistant-intro,
.assistant-answer,
.assistant-footer {
  margin: 0;
}

.assistant-subtitle {
  max-width: 250px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.assistant-intro,
.assistant-answer {
  line-height: 1.5;
}

.assistant-orb {
  position: relative;
  width: 68px;
  height: 68px;
  min-height: 68px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #147c89;
  background: radial-gradient(circle at 35% 28%, #f2feff 0, #9be9ee 24%, #0f8aa0 62%, #12333c 100%);
  color: #fff;
  display: inline-grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(15, 138, 160, 0.24);
  cursor: pointer;
}

.assistant-orb::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(15, 138, 160, 0.25);
  border-radius: 50%;
  animation: assistant-pulse 2.8s ease-in-out infinite;
}

.assistant-face {
  font-weight: 800;
  font-size: 11px;
}

.assistant-3d-canvas {
  width: 68px;
  height: 68px;
  display: none;
  border-radius: 50%;
}

.assistant-panel[data-assistant3d="ready"] .assistant-3d-canvas {
  display: block;
}

.assistant-panel[data-assistant3d="ready"] .assistant-face {
  display: none;
}

.assistant-panel.assistant-thinking .assistant-orb {
  box-shadow: 0 8px 22px rgba(15, 138, 160, 0.32), 0 0 0 4px rgba(215, 167, 82, 0.14);
}

.assistant-body {
  display: grid;
  gap: 10px;
  width: min(390px, calc(100vw - 28px));
  padding: 14px;
  border: 1px solid rgba(20, 124, 137, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 48px rgba(15, 46, 54, 0.2);
  animation: assistant-open 160ms ease-out;
  pointer-events: auto;
  backdrop-filter: blur(10px);
}

.assistant-body[hidden] {
  display: none !important;
}

.assistant-close {
  justify-self: end;
  width: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.assistant-close:hover,
.assistant-close:focus-visible {
  color: var(--ink);
  background: #eef4f4;
}

.assistant-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #174e42;
  background: #dff4ef;
  font-size: 13px;
  font-weight: 700;
}

.assistant-actions {
  display: none !important;
  flex-wrap: wrap;
  gap: 8px;
}

.assistant-open .assistant-actions {
  display: none;
}

.assistant-actions button {
  min-height: 36px;
  padding: 0 12px;
  background: #e7ecec;
  color: var(--ink);
  border: 1px solid var(--line);
}

.assistant-actions button:hover {
  background: #dff4ef;
}

.assistant-question {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.assistant-question input {
  min-height: 38px;
}

@keyframes assistant-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes assistant-pulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.08; transform: scale(1.18); }
}

@keyframes assistant-open {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.assistant-footer {
  color: var(--muted);
  font-size: 13px;
}

.compact-list {
  margin: 6px 0 0;
  padding-left: 18px;
}

.confirmation-message {
  white-space: pre-line;
  padding: 12px;
  border: 1px solid #9fd4c8;
  background: #fff;
  border-radius: 6px;
}

.readiness-breakdown {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.readiness-group {
  display: grid;
  gap: 8px;
}

.readiness-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.85fr) minmax(110px, 0.45fr) minmax(180px, 1.3fr) minmax(140px, 0.8fr);
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.readiness-row span:nth-child(2) {
  font-weight: 700;
}

.status-present {
  border-left: 4px solid var(--accent);
}

.status-missing-blocker {
  border-left: 4px solid var(--bad);
}

.status-missing-recommended,
.status-needs-confirmation,
.status-low-confidence,
.status-carrier-specific {
  border-left: 4px solid var(--warn);
}

.status-optional {
  border-left: 4px solid var(--line);
}

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

pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-height: 120px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fbfdfd;
  border-radius: 6px;
}

@media (max-width: 980px) {
  .wizard-layout, .grid-three, .upload-controls, .upload-card-grid, .drafts {
    grid-template-columns: 1fr;
  }

  .file-row, .fact-row, .exception-row, .packet-row, .readiness-row, .summary-row, .claim-card, .artifact-card, .document-group {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .topbar-title {
    justify-self: start;
    text-align: left;
  }

  .topbar form, .topbar-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .assistant-panel {
    right: 14px;
    bottom: 14px;
    max-width: none;
  }

  .assistant-question {
    grid-template-columns: 1fr;
  }

  .assistant-question button {
    width: 100%;
  }
}

/* Pre-launch product UI refresh */
:root {
  --ink: #17252b;
  --muted: #5f6f75;
  --line: #d5dee0;
  --paper: #f4f7f6;
  --panel: #ffffff;
  --accent: #087f79;
  --accent-dark: #075f5b;
  --accent-soft: #e3f3f0;
  --gold: #b9822e;
  --gold-soft: #fff6e6;
  --navy: #173d57;
  --warn: #845015;
  --bad: #9f1239;
  --shadow: 0 8px 24px rgba(23, 37, 43, 0.07);
}

body {
  line-height: 1.5;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(8, 127, 121, 0.22);
  outline-offset: 2px;
}

button {
  font-weight: 700;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

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

button.ghost {
  background: #fff;
}

input,
select,
textarea {
  border-color: #c7d2d5;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(8, 127, 121, 0.1);
}

h1,
h2,
h3 {
  color: var(--ink);
  letter-spacing: 0;
}

.product-name {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.topbar,
.reviewer-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  grid-template-columns: minmax(180px, 230px) minmax(220px, 1fr) auto;
  min-height: 88px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(23, 37, 43, 0.04);
  color: var(--ink);
}

.brand-block {
  gap: 5px;
}

.brand-logo {
  width: 142px;
  max-height: 42px;
  object-fit: contain;
  object-position: left center;
}

.claimstream-brand-banner {
  display: block;
  width: min(230px, 100%);
  height: 66px;
  object-fit: contain;
  object-position: left center;
  background: #fff;
}

.topbar-context {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 0;
}

.topbar-context .eyebrow {
  margin: 0;
}

.topbar-title {
  color: var(--ink);
  font-size: 18px;
}

.topbar-nav,
.reviewer-topbar nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 6px;
  color: #31515d;
  font-size: 14px;
  font-weight: 700;
}

.nav-link:hover {
  background: #eff4f3;
  color: var(--accent-dark);
}

.nav-link-primary {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.wizard-layout,
.reviewer-main {
  width: min(1200px, 100%);
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 96px;
}

.page-stack,
.admin-panel,
.reviewer-main {
  display: grid;
  gap: 18px;
}

.admin-panel,
.admin-panel > *,
.admin-panel .report-table-wrap {
  min-width: 0;
  max-width: 100%;
}

.wizard-shell {
  gap: 18px;
}

.page-intro,
.status-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 126px;
  padding: 22px 24px;
  color: var(--ink);
  background: #fff;
  border-left: 4px solid var(--accent);
  border-bottom: 1px solid var(--line);
}

.page-intro h2,
.status-hero h2 {
  margin-bottom: 6px;
  font-size: 24px;
}

.page-intro p,
.status-hero p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

.stage-chip {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 32px;
  padding: 5px 11px;
  color: #17564e;
  background: var(--accent-soft);
  border: 1px solid #b9ddd7;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.steps {
  position: relative;
  gap: 0;
  border: 1px solid var(--line);
  background: #fff;
}

.steps li {
  position: relative;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 11px 12px;
  color: var(--muted);
  font-weight: 700;
}

.steps li:last-child {
  border-right: 0;
}

.steps li.complete {
  color: var(--accent-dark);
}

.steps li.active {
  color: var(--accent-dark);
  background: var(--accent-soft);
  box-shadow: inset 0 -3px 0 var(--accent);
}

.band,
.panel {
  padding: 22px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}

.flow-form {
  gap: 18px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e4eaeb;
}

.section-heading h2,
.section-heading p,
.section-number {
  margin: 0;
}

.section-heading > p {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.section-number {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.grid-three {
  align-items: start;
  gap: 16px;
}

.grid-three label,
.login-form label {
  display: grid;
  gap: 6px;
  color: #30474f;
  font-size: 13px;
  font-weight: 700;
}

.segmented {
  min-height: 68px;
  background: #fbfdfc;
}

.upload-card-grid {
  gap: 12px;
}

.upload-card {
  min-height: 210px;
  padding: 16px;
  background: #fbfdfc;
  border-color: #d6e0e1;
}

.upload-card h3 {
  margin-bottom: 6px;
  font-size: 16px;
}

.required-label,
.recommended-label,
.optional-label,
.status-badge {
  border-radius: 999px;
}

.wizard-actions {
  justify-content: flex-end;
  padding-top: 8px;
}

.wizard-actions .ghost:first-child {
  margin-right: auto;
}

.status-hero {
  border-left-color: var(--gold);
}

.status-hero .stage-chip {
  color: #6d4918;
  background: var(--gold-soft);
  border-color: #ecd1a3;
}

.metric-compact {
  display: grid;
  min-width: 120px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.metric-compact strong {
  color: var(--navy);
  font-size: 30px;
}

.metric-compact span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.claim-card {
  grid-template-columns: minmax(230px, 0.8fr) minmax(300px, 1.2fr) auto;
  min-height: 126px;
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  box-shadow: 0 3px 12px rgba(23, 37, 43, 0.04);
}

.claim-card h3 {
  margin-bottom: 4px;
  font-size: 18px;
}

.claim-card p {
  margin-bottom: 4px;
}

.saved-drafts-notice {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: 24px;
  padding: 20px;
  margin-bottom: 18px;
  border: 1px solid #d7a541;
  border-left: 5px solid #b77708;
  background: #fffaf0;
}

.saved-drafts-notice h2,
.saved-drafts-notice p {
  margin-top: 0;
}

.saved-draft-actions {
  display: grid;
  gap: 10px;
}

.saved-draft-actions form,
.finish-draft-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.saved-draft-actions .form-result,
.finish-draft-form .form-result {
  flex-basis: 100%;
  margin: 0;
}

@media (max-width: 760px) {
  .saved-drafts-notice {
    grid-template-columns: 1fr;
  }
}

.claim-progress {
  display: grid;
  gap: 14px;
}

.mini-journey {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.mini-journey span {
  position: relative;
  padding-top: 9px;
  color: #7a888d;
  border-top: 3px solid #dce3e4;
  font-size: 10px;
  font-weight: 700;
}

.mini-journey span.done {
  color: var(--accent-dark);
  border-color: var(--accent);
}

.mini-journey span.current {
  color: #7b531c;
  border-color: var(--gold);
}

.text-action {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.text-action:hover {
  text-decoration: underline;
}

.empty-state {
  padding: 34px 18px;
  text-align: center;
  border: 1px dashed #bfcacc;
}

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

.metric-card {
  display: grid;
  gap: 4px;
  min-height: 124px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: 8px;
}

.metric-card.attention {
  border-top-color: var(--gold);
}

.metric-card.ready {
  border-top-color: var(--accent);
}

.metric-card span,
.metric-card small {
  color: var(--muted);
}

.metric-card span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-card strong {
  color: var(--ink);
  font-size: 30px;
}

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

.artifact-card {
  grid-template-columns: 0.55fr 1fr;
  min-height: 76px;
  border-left: 3px solid #aec8c5;
  transition: border-color 140ms ease, background 140ms ease;
}

.artifact-card:hover {
  border-left-color: var(--accent);
  background: #f7fbfa;
}

.admin-card-actions {
  display: grid;
  gap: 5px;
}

.admin-card-actions a {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.review-submit-callout,
.next-action-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px;
  color: #fff;
  background: #123b5d;
  border-left: 5px solid var(--accent);
}

.review-submit-callout h2,
.review-submit-callout p,
.next-action-panel h2,
.next-action-panel p {
  margin: 0 0 5px;
  color: inherit;
}

.review-submit-callout .eyebrow,
.next-action-panel .eyebrow {
  color: #bde7e2;
}

.review-submit-button,
.next-action-panel .button,
.queue-continue,
.admin-card-actions > .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  color: #fff;
  background: var(--accent);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.admin-card-actions details {
  font-size: 13px;
}

.admin-card-actions summary,
.advanced-workflow-controls summary {
  color: var(--accent-dark);
  cursor: pointer;
  font-weight: 800;
}

.admin-card-actions details a {
  display: block;
  margin-top: 8px;
}

.review-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.claim-status-heading {
  margin: 2px 0 7px;
}

.claim-status-band {
  display: grid;
  gap: 7px;
}

.claim-status-band > p {
  margin: 0;
}

.review-flow li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 9px 10px;
  color: #66767b;
  background: #edf1f2;
  border-top: 4px solid #cbd5d7;
  font-size: 12px;
}

.review-flow li > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: #fff;
  background: #7b898e;
  border-radius: 50%;
}

.review-flow li.complete {
  color: var(--accent-dark);
  border-color: var(--accent);
}

.review-flow li.complete > span,
.review-flow li.active > span {
  background: var(--accent);
}

.review-flow li.active {
  color: #173a49;
  background: #e7f4f2;
  border-color: var(--accent);
}

.advanced-workflow-controls {
  margin-top: 16px;
}

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

.bundle-contents > div {
  display: grid;
  gap: 3px;
  padding: 12px;
  background: #f5f8f8;
  border-left: 3px solid #9fc8c3;
}

.bundle-contents span {
  color: var(--muted);
  font-size: 13px;
}

.queue-table .queue-continue {
  color: #fff;
}

.integration-list {
  display: grid;
}

.integration-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid #e7ecec;
}

.integration-list > div:last-child {
  border-bottom: 0;
}

.pending-badge {
  color: #7b531c;
  background: var(--gold-soft);
}

.neutral-badge {
  color: #536268;
  background: #edf1f1;
}

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

.reviewer-main .panel {
  margin: 0;
}

.reviewer-main table {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}

.reviewer-main th {
  color: #53666d;
  background: #f0f5f4;
  font-size: 11px;
  letter-spacing: 0;
}

.reviewer-main td,
.reviewer-main th {
  border-color: #e2e8e9;
}

.reviewer-notice {
  padding: 14px 16px;
  color: #654518;
  background: var(--gold-soft);
  border-left: 4px solid var(--gold);
  border-bottom: 1px solid #ecd7b5;
}

.reviewer-notice p {
  margin: 3px 0 0;
}

.reviewer-main .ai-panel {
  background: #f6fbfa;
  border-left: 4px solid var(--accent);
}

.reviewer-main button {
  background: var(--accent);
}

.reviewer-main button.secondary {
  background: #52666e;
}

.reviewer-main .stage,
.reviewer-main .status-pill {
  color: #17564e;
  background: var(--accent-soft);
}

.reviewer-main .status-pill.pending {
  color: #7b531c;
  background: var(--gold-soft);
}

.reviewer-fields-panel {
  grid-column: 1 / -1;
}

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

.reviewer-field {
  min-width: 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.reviewer-field-heading,
.field-decision-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.reviewer-field-heading > div {
  display: grid;
  gap: 3px;
}

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

.field-decision-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 10px;
}

.login-body {
  background: #eef3f2;
}

.login-panel {
  width: min(520px, 100%);
  padding: 30px;
  box-shadow: var(--shadow);
}

.login-brand {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 20px;
  align-items: center;
}

.login-brand h1 {
  margin-bottom: 7px;
  color: var(--navy);
  font-size: 32px;
}

.login-lead {
  margin: 0;
  color: var(--muted);
}

.login-logo {
  width: 150px;
  height: auto;
}

.login-product-banner {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  background: #fff;
}

.login-divider {
  height: 1px;
  margin: 22px 0;
  background: var(--line);
}

.login-help {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.mfa-qr-frame {
  display: grid;
  place-items: center;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mfa-qr-code {
  display: block;
  width: min(260px, 78vw);
  height: auto;
  aspect-ratio: 1;
  image-rendering: pixelated;
}

.mfa-manual-setup {
  margin: 0 0 18px;
}

.mfa-setup-key {
  overflow-wrap: anywhere;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.mfa-choice-panel {
  width: min(620px, 100%);
}

.mfa-method-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.mfa-method-button {
  display: grid;
  gap: 5px;
  width: 100%;
  min-height: 88px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.mfa-method-button:not(:disabled):hover,
.mfa-method-button:not(:disabled):focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(8, 127, 121, 0.12);
}

.mfa-method-button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.72;
}

.mfa-method-button > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mfa-method-badge {
  padding: 2px 7px;
  border-radius: 999px;
  background: #dff3ef;
  color: #075f5b;
  font-size: 11px;
  font-weight: 700;
}

.muted-badge {
  background: #edf1f2;
  color: var(--muted);
}

.mfa-consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 9px;
  align-items: start;
  line-height: 1.4;
}

.mfa-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.mfa-factor-summary {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.mfa-factor-summary li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.mfa-factor-summary span {
  color: #075f5b;
  font-weight: 700;
}

.assistant-panel {
  right: 20px;
  bottom: 20px;
}

.assistant-header {
  border-color: rgba(8, 127, 121, 0.28);
  background: rgba(255, 255, 255, 0.97);
}

.assistant-orb {
  width: 64px;
  height: 64px;
  min-height: 64px;
  border-color: var(--accent);
  background: #0d8a86;
}

.assistant-3d-canvas {
  width: 64px;
  height: 64px;
}

.assistant-body {
  border-color: #b8d7d3;
}

@media (max-width: 980px) {
  .review-submit-callout,
  .next-action-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .review-flow {
    grid-template-columns: 1fr;
  }

  .bundle-contents {
    grid-template-columns: 1fr;
  }

  .review-flow li {
    min-height: 44px;
  }

  .metric-grid,
  .artifact-list,
  .reviewer-main .grid,
  .reviewer-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar,
  .reviewer-topbar {
    position: static;
    grid-template-columns: 1fr auto;
  }

  .topbar-context {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-items: start;
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }

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

@media (max-width: 640px) {
  .wizard-layout,
  .reviewer-main {
    padding: 18px 14px 96px;
  }

  .topbar,
  .reviewer-topbar {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .topbar-nav,
  .reviewer-topbar nav {
    justify-content: flex-start;
  }

  .topbar-context {
    grid-column: auto;
    grid-row: auto;
  }

  .page-intro,
  .status-hero,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading > p {
    text-align: left;
  }

  .metric-grid,
    .artifact-list,
    .reviewer-main .grid,
    .reviewer-fields,
    .login-brand {
    grid-template-columns: 1fr;
  }

  .login-logo {
    width: 130px;
  }

  .steps li {
    font-size: 11px;
  }

  .mini-journey span {
    font-size: 9px;
  }

  .integration-list > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .reviewer-main table,
  .reviewer-main .queue-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
}

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

/* Launch intake workspace: dense, customer-facing claim collection */
.workspace-page {
  --workspace-navy: #08285b;
  --workspace-ink: #0d1f42;
  --workspace-teal: #087f79;
  --workspace-teal-soft: #e4f3f1;
  --workspace-blue: #2367c9;
  --workspace-gold: #b87808;
  --workspace-red: #c23b45;
  --workspace-line: #d8e0e8;
  --workspace-soft: #f7f9fb;
  color: var(--workspace-ink);
  background: #fff;
}

.workspace-page .workspace-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  grid-template-columns: minmax(250px, 1fr) minmax(240px, 1fr) minmax(320px, 1fr);
  min-height: 64px;
  padding: 9px 24px;
  color: #fff;
  background: var(--workspace-navy);
  border: 0;
  box-shadow: none;
}

.workspace-page .workspace-topbar .product-name,
.workspace-page .workspace-topbar .topbar-title,
.workspace-page .workspace-topbar .nav-link {
  color: #fff;
}

.workspace-page .workspace-topbar .product-name {
  font-size: 21px;
  line-height: 1.05;
}

.workspace-page .workspace-topbar .topbar-title {
  font-size: 18px;
  font-weight: 750;
}

.workspace-page .workspace-topbar .brand-block {
  gap: 2px;
}

.workspace-page .workspace-topbar .claimstream-brand-banner {
  width: min(238px, 100%);
  height: 54px;
}

.workspace-page .powered-by {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #cbd8ec;
  font-size: 11px;
}

.workspace-page .powered-by .brand-logo {
  width: 34px;
  height: 18px;
  object-fit: contain;
  filter: brightness(1.2);
}

.workspace-page .workspace-topbar .nav-link {
  min-height: 34px;
  padding: 0 9px;
  font-size: 13px;
}

.workspace-page .workspace-topbar .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.workspace-page .topbar-logout {
  min-height: 34px;
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.38);
}

.workspace-page .topbar-logout:hover {
  background: rgba(255, 255, 255, 0.12);
}

.workspace-layout {
  width: min(1440px, 100%);
  max-width: 1440px;
  padding: 0 28px 72px;
}

.workspace-page .wizard-shell {
  gap: 0;
}

.workspace-page .numbered-steps {
  min-height: 94px;
  padding: 18px 88px 14px;
  border: 0;
  border-bottom: 1px solid var(--workspace-line);
  background: #fff;
}

.workspace-page .numbered-steps li {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  margin-top: 17px;
  padding: 0;
  color: #586377;
  background: transparent;
  border: 0;
  border-top: 2px solid #d7dee6;
  font-size: 13px;
  font-weight: 650;
}

.workspace-page .numbered-steps li.complete,
.workspace-page .numbered-steps li.active {
  color: var(--workspace-ink);
  background: transparent;
  border-top-color: var(--workspace-teal);
  box-shadow: none;
}

.workspace-page .numbered-steps .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-top: -17px;
  color: #607087;
  background: #fff;
  border: 1px solid #cbd5df;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
}

.workspace-page .numbered-steps li.complete .step-number,
.workspace-page .numbered-steps li.active .step-number {
  color: #fff;
  background: var(--workspace-teal);
  border-color: var(--workspace-teal);
}

.workspace-page .flow-form {
  gap: 0;
}

.intake-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 42px;
  align-items: start;
  padding: 22px 4px 0;
}

.intake-main {
  min-width: 0;
}

.intake-intro {
  padding: 8px 0 20px;
}

.intake-intro .eyebrow {
  display: none;
}

.intake-intro h2 {
  margin-bottom: 4px;
  color: var(--workspace-ink);
  font-size: 22px;
  line-height: 1.25;
}

.intake-intro p {
  max-width: 780px;
  margin: 0;
  color: #5d687c;
  font-size: 13px;
}

.intake-section {
  padding: 0 0 24px;
}

.intake-section > h2,
.evidence-heading h2 {
  margin-bottom: 12px;
  color: var(--workspace-ink);
  font-size: 18px;
}

.workspace-page .grid-three {
  gap: 18px;
}

.workspace-page .grid-three label {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px;
  min-width: 0;
  color: #1e2e4a;
  font-size: 12px;
  font-weight: 750;
}

.workspace-page .grid-three label input,
.workspace-page .grid-three label select,
.workspace-page .grid-three label small {
  grid-column: 1 / -1;
  min-width: 0;
  width: 100%;
}

.workspace-page .grid-three label small {
  color: #647087;
  font-size: 11px;
  font-weight: 500;
}

.claim-scope-section {
  border-top: 1px solid #d8e0e8;
  padding-top: 22px;
}

.claim-scope-heading {
  margin-bottom: 12px;
}

.claim-scope-heading h2 {
  margin-bottom: 4px;
  color: var(--workspace-ink);
  font-size: 18px;
}

.claim-scope-heading p {
  margin: 0;
  color: #5d687c;
  font-size: 12px;
}

.claim-scope-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr);
  gap: 14px 18px;
}

.claim-scope-grid label {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px;
  color: #1e2e4a;
  font-size: 12px;
  font-weight: 750;
}

.claim-scope-grid input,
.claim-scope-grid textarea {
  grid-column: 1 / -1;
  width: 100%;
  border-color: #cbd5df;
  border-radius: 4px;
}

.claim-scope-grid textarea {
  min-height: 96px;
  resize: vertical;
}

.claim-items {
  display: grid;
  gap: 8px;
}

.claim-items-header,
.claim-item-row {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(90px, .7fr) minmax(120px, .9fr) minmax(120px, .9fr) minmax(110px, .8fr) 38px;
  gap: 10px;
  align-items: end;
}

.claim-items-header {
  padding: 0 8px;
  color: #647087;
  font-size: 11px;
  font-weight: 750;
}

.claim-item-row {
  padding: 12px;
  border: 1px solid #d8e0e8;
  border-radius: 6px;
  background: #f8fafb;
}

.claim-item-row label {
  display: grid;
  gap: 6px;
  color: #1e2e4a;
  font-size: 11px;
  font-weight: 750;
}

.claim-item-row label > span {
  display: none;
}

.claim-item-row label small {
  color: #647087;
  font-size: 10px;
  font-weight: 500;
}

.claim-item-row input {
  width: 100%;
  min-width: 0;
}

.claim-item-total {
  display: grid;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid #cbd5df;
  border-radius: 4px;
  background: #fff;
  color: #1e2e4a;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.claim-item-remove {
  width: 38px;
  min-height: 42px;
  padding: 0;
  border: 1px solid #cbd5df;
  border-radius: 4px;
  background: #fff;
  color: #536172;
  font-size: 22px;
  line-height: 1;
}

.claim-item-remove:hover,
.claim-item-remove:focus-visible {
  border-color: #a4312f;
  color: #a4312f;
}

.claim-item-row:only-child .claim-item-remove {
  visibility: hidden;
}

.add-claim-item {
  margin-top: 10px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #147f7b;
  border-radius: 4px;
  background: #fff;
  color: #0d6d69;
  font-weight: 750;
}

.claim-details-grid {
  margin-top: 18px;
}

.claim-details-field {
  grid-column: 1 / -1;
}

.field-required {
  color: var(--workspace-red);
  font-size: 10px;
  font-weight: 750;
}

.workspace-page input {
  min-height: 42px;
  border-color: #cbd5df;
  border-radius: 4px;
}

.claim-type-picker {
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}

.claim-type-picker legend {
  margin-bottom: 9px;
  color: #1e2e4a;
  font-size: 12px;
  font-weight: 750;
}

.claim-type-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 300px));
  gap: 18px;
}

.claim-type-option {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  min-height: 122px;
  padding: 18px;
  background: #fff;
  border: 1px solid #cbd5df;
  border-radius: 4px;
  cursor: pointer;
}

.claim-type-option:has(input:checked) {
  background: #fbfefe;
  border-color: var(--workspace-teal);
  box-shadow: inset 0 0 0 1px var(--workspace-teal);
}

.claim-type-option input {
  width: 18px;
  min-height: auto;
  margin: 3px 0 0;
  accent-color: var(--workspace-teal);
}

.claim-type-option span {
  display: grid;
  gap: 7px;
}

.claim-type-option strong {
  color: #17213a;
  font-size: 15px;
}

.claim-type-option small {
  color: #606b7f;
  font-size: 12px;
  line-height: 1.45;
}

.evidence-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}

.evidence-heading h2,
.evidence-heading p {
  margin-bottom: 0;
}

.evidence-heading p {
  color: #647087;
  font-size: 12px;
}

.evidence-table {
  overflow: hidden;
  border: 1px solid var(--workspace-line);
  border-radius: 5px;
}

.evidence-table-head,
.evidence-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(260px, 1.35fr) minmax(110px, 0.55fr) minmax(190px, 0.85fr);
  gap: 14px;
  align-items: center;
}

.evidence-table-head {
  min-height: 38px;
  padding: 8px 14px;
  color: #293851;
  background: var(--workspace-soft);
  border-bottom: 1px solid var(--workspace-line);
  font-size: 11px;
  font-weight: 800;
}

.evidence-row {
  padding: 11px 14px;
  background: #fff;
  border-bottom: 1px solid var(--workspace-line);
}

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

.evidence-document h3,
.evidence-document p,
.evidence-help {
  margin: 0;
}

.evidence-document h3 {
  color: #182743;
  font-size: 13px;
  line-height: 1.25;
}

.evidence-priority {
  margin-top: 3px !important;
  font-size: 10px;
  font-weight: 750;
}

.evidence-priority.required { color: var(--workspace-red); }
.evidence-priority.recommended { color: var(--workspace-gold); }
.evidence-priority.helpful { color: var(--workspace-blue); }
.evidence-priority.optional { color: #476b9a; }

.evidence-help {
  color: #637086;
  font-size: 11px;
  line-height: 1.4;
}

.evidence-status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 9px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.evidence-status.required { color: #a62e38; background: #fff5f5; border-color: #f1b9bd; }
.evidence-status.recommended { color: #8b5c09; background: #fff9ec; border-color: #eed49e; }
.evidence-status.helpful,
.evidence-status.optional { color: #1f5da8; background: #f2f7ff; border-color: #b9d3f3; }
.evidence-status.added { color: #0c675f; background: #edf9f7; border-color: #a8d8d2; }

.workspace-page .evidence-row .upload-actions {
  flex-wrap: nowrap;
  gap: 5px;
}

.workspace-page .evidence-row button {
  min-height: 34px;
  padding: 0 11px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
}

.workspace-page .evidence-row .upload-button {
  color: var(--workspace-teal);
  background: #fff;
  border: 1px solid var(--workspace-teal);
}

.workspace-page .evidence-row .upload-button:hover {
  color: #fff;
  background: var(--workspace-teal);
}

.workspace-page .camera-button {
  color: #33465f;
}

.workspace-page .evidence-row .upload-list {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
}

.workspace-page .evidence-row .upload-list > .muted {
  display: none;
}

.workspace-page .evidence-row .file-row {
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 0.7fr) auto;
  padding: 8px 10px;
  color: #435269;
  background: #f7fbfa;
  border-color: #cfe4e1;
  font-size: 11px;
}

.workspace-page .evidence-row .remove-file {
  min-height: 30px;
  color: #8d2d36;
  background: #fff;
  border: 1px solid #e5b7bb;
}

.workspace-page .consent-panel {
  display: grid;
  gap: 9px;
  margin: 0 0 28px;
  padding: 16px 18px;
  background: #f8fafb;
  border: 1px solid var(--workspace-line);
  border-radius: 5px;
}

.workspace-page .consent-panel legend {
  padding: 0 6px;
  color: var(--workspace-ink);
  font-size: 13px;
  font-weight: 800;
}

.workspace-page .consent-panel label {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
  color: #46546a;
  font-size: 11px;
}

.workspace-page .consent-panel input {
  width: 16px;
  min-height: auto;
  margin: 2px 0 0;
  accent-color: var(--workspace-teal);
}

.request-summary {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 13px;
  align-self: start;
  padding: 20px 20px 18px;
  background: var(--workspace-soft);
  border: 1px solid #edf1f5;
  border-radius: 5px;
}

.request-summary > h2 {
  margin: 0;
  color: var(--workspace-ink);
  font-size: 16px;
}

.completion-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #435169;
  font-size: 11px;
}

.completion-heading strong {
  font-weight: 600;
}

.completion-track {
  height: 7px;
  overflow: hidden;
  background: #d6dce3;
  border-radius: 999px;
}

.completion-track span {
  display: block;
  width: 20%;
  height: 100%;
  background: var(--workspace-teal);
  border-radius: inherit;
  transition: width 180ms ease;
}

.summary-section,
.summary-assurance,
.summary-help {
  padding-top: 13px;
  border-top: 1px solid #d4dce5;
}

.summary-section h3,
.summary-help h3 {
  margin-bottom: 9px;
  color: #22324f;
  font-size: 11px;
}

.provided-list {
  display: grid;
  gap: 9px;
  margin: 0;
}

.provided-list > div,
.document-counts li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #526076;
  font-size: 11px;
}

.provided-list dt {
  color: #34445c;
}

.provided-list dd {
  max-width: 150px;
  margin: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.document-counts {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.document-counts li {
  padding-left: 8px;
  border-left: 3px solid currentColor;
}

.document-counts li.required { color: var(--workspace-red); }
.document-counts li.recommended { color: var(--workspace-gold); }
.document-counts li.helpful { color: var(--workspace-blue); }
.document-counts li.optional { color: #476b9a; }
.document-counts li span { color: #526076; }
.document-counts li strong { color: #6a7487; font-weight: 600; }

.summary-assurance,
.summary-help {
  display: grid;
  gap: 7px;
}

.summary-assurance p,
.summary-help p {
  margin: 0;
  color: #56647a;
  font-size: 11px;
  line-height: 1.45;
}

.summary-help a {
  color: #185fb5;
  overflow-wrap: anywhere;
}

.summary-actions {
  display: grid;
  gap: 8px;
  padding-top: 3px;
}

.summary-actions > button[type="submit"] {
  min-height: 43px;
  background: var(--workspace-teal);
  border-radius: 4px;
}

.summary-actions .text-button {
  min-height: 32px;
  color: #1658a9;
  background: transparent;
}

.claim-preparation-status {
  display: grid;
  gap: 8px;
  padding: 11px 12px;
  color: #173d3a;
  background: #edf8f6;
  border: 1px solid #8bc9c0;
  border-radius: 4px;
}

.claim-preparation-status[hidden] {
  display: none;
}

.claim-preparation-copy {
  display: grid;
  gap: 2px;
}

.claim-preparation-copy strong {
  font-size: 13px;
}

.claim-preparation-copy span {
  color: #526766;
  font-size: 11px;
  line-height: 1.4;
}

.claim-preparation-track {
  height: 7px;
  overflow: hidden;
  background: #cfe4e1;
  border-radius: 3px;
}

.claim-preparation-track span {
  display: block;
  width: 34%;
  height: 100%;
  background: var(--workspace-teal);
  border-radius: inherit;
  animation: claim-preparation-progress 1.35s ease-in-out infinite;
}

.claim-preparation-track span[data-stage="complete"] {
  width: 100%;
  animation: none;
}

@keyframes claim-preparation-progress {
  from { transform: translateX(-105%); }
  to { transform: translateX(295%); }
}

.workspace-page .assistant-workspace {
  right: auto;
  left: 20px;
  bottom: 20px;
  width: min(380px, calc(100vw - 28px));
}

.workspace-page .assistant-workspace .assistant-header {
  justify-content: flex-start;
}

.workspace-page .assistant-workspace .assistant-body {
  width: min(380px, calc(100vw - 28px));
}

.workspace-page .assistant-workspace .assistant-body[hidden] {
  display: none;
}

.workspace-page .assistant-workspace:not(.assistant-open) {
  width: auto;
}

.workspace-page .assistant-workspace:not(.assistant-open) .assistant-header {
  padding: 4px;
}

.workspace-page .assistant-workspace:not(.assistant-open) .assistant-header > div {
  display: none;
}

.workspace-page .assistant-summary {
  position: static;
  z-index: auto;
  justify-items: stretch;
  width: 100%;
  pointer-events: auto;
}

.workspace-page .assistant-summary .assistant-header {
  justify-content: flex-start;
  width: 100%;
  padding: 7px;
  background: #fff;
  border-radius: 6px;
  box-shadow: none;
}

.workspace-page .assistant-summary .assistant-orb,
.workspace-page .assistant-summary .assistant-3d-canvas {
  width: 52px;
  height: 52px;
  min-height: 52px;
}

.workspace-page .assistant-summary .assistant-body {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  box-shadow: none;
}

.workspace-page .assistant-summary .assistant-body[hidden] {
  display: none;
}

.workspace-page .assistant-summary .assistant-question {
  grid-template-columns: 1fr;
}

.workspace-page .assistant-summary .assistant-question button {
  width: 100%;
}

@media (max-width: 1180px) {
  .workspace-page .workspace-topbar {
    grid-template-columns: minmax(230px, auto) 1fr auto;
  }

  .intake-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 26px;
  }

  .evidence-table-head,
  .evidence-row {
    grid-template-columns: minmax(180px, 1fr) minmax(190px, 1fr) minmax(95px, 0.5fr) minmax(130px, 0.7fr);
  }

  .workspace-page .evidence-row .upload-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 900px) {
  .workspace-page .workspace-topbar {
    position: static;
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
  }

  .workspace-page .workspace-topbar .topbar-context {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-items: start;
    padding-top: 8px;
    border-top-color: rgba(255, 255, 255, 0.2);
  }

  .workspace-page .workspace-topbar .topbar-nav {
    justify-content: flex-end;
  }

  .workspace-page .numbered-steps {
    padding-inline: 28px;
  }

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

  .request-summary {
    position: static;
  }

  .evidence-table-head {
    display: none;
  }

  .evidence-row {
    grid-template-columns: minmax(190px, 1fr) minmax(180px, 1fr) auto;
  }

  .evidence-row > .evidence-help {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .evidence-row > .upload-actions {
    grid-column: 3;
    grid-row: 1 / 3;
  }
}

@media (max-width: 640px) {
  .workspace-page .workspace-topbar {
    grid-template-columns: 1fr;
    padding: 12px 14px;
  }

  .workspace-page .workspace-topbar .topbar-context {
    grid-column: auto;
    grid-row: auto;
  }

  .workspace-page .workspace-topbar .topbar-nav {
    justify-content: flex-start;
  }

  .claimstream-brand-banner,
  .workspace-page .workspace-topbar .claimstream-brand-banner {
    width: min(260px, 100%);
    height: auto;
  }

  .workspace-page .powered-by .brand-logo {
    display: none;
  }

  .workspace-layout {
    padding: 0 14px 92px;
  }

  .workspace-page .numbered-steps {
    min-height: 82px;
    padding: 17px 4px 10px;
  }

  .workspace-page .numbered-steps li {
    font-size: 10px;
  }

  .workspace-page .numbered-steps .step-number {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .intake-grid {
    gap: 20px;
    padding-top: 14px;
  }

  .intake-intro h2 {
    font-size: 20px;
  }

  .workspace-page .grid-three,
  .claim-scope-grid,
  .claim-type-options {
    grid-template-columns: 1fr;
  }

  .claim-items-header {
    display: none;
  }

  .claim-item-row {
    grid-template-columns: minmax(0, 1fr) minmax(90px, .5fr);
    align-items: end;
  }

  .claim-item-row label:first-child {
    grid-column: 1 / -1;
  }

  .claim-item-row label > span {
    display: block;
  }

  .claim-item-total {
    min-width: 0;
  }

  .claim-type-options {
    gap: 10px;
  }

  .claim-type-option {
    min-height: 100px;
  }

  .evidence-row {
    grid-template-columns: 1fr auto;
    gap: 8px 10px;
  }

  .evidence-row > .evidence-help {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .evidence-row > .upload-actions {
    grid-column: 1 / -1;
    grid-row: auto;
    align-items: stretch;
    flex-direction: row;
  }

  .workspace-page .evidence-row .file-row {
    grid-template-columns: 1fr;
  }

  .workspace-page .assistant-workspace {
    right: 14px;
    left: 14px;
    bottom: 14px;
    width: auto;
  }

  .workspace-page .assistant-workspace .assistant-header {
    max-width: calc(100vw - 28px);
  }

  .workspace-page .assistant-workspace .assistant-body {
    width: calc(100vw - 28px);
  }
}
.bundle-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Reports workspace */
.report-tabs, .report-preset-strip, .report-command-bar, .report-output-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.report-tabs { border-bottom: 1px solid #bdcccf; margin-bottom: 18px; }
.report-tab, .report-preset, .text-button { background: transparent; color: #16484a; border: 0; box-shadow: none; }
.report-tab { border-bottom: 3px solid transparent; border-radius: 0; padding: 12px 16px; }
.report-tab.is-active { border-bottom-color: #07877f; font-weight: 700; }
.report-preset-strip { margin-bottom: 16px; }
.report-preset { border: 1px solid #9eb6b8; border-radius: 4px; padding: 9px 12px; }
.report-preset.is-active { background: #e1f3f1; border-color: #07877f; }
.report-designer { border-top: 1px solid #bdcccf; padding-top: 18px; }
.report-designer-heading { max-width: 520px; display: grid; gap: 6px; margin-bottom: 18px; }
.report-field-picker { display: grid; grid-template-columns: minmax(240px,1fr) 48px minmax(240px,1fr) 48px; gap: 12px; align-items: center; max-width: 920px; }
.report-field-list { display: grid; gap: 6px; }
.report-field-list select { width: 100%; min-height: 260px; padding: 6px; }
.report-field-list option { padding: 6px 8px; }
.report-field-actions { display: grid; gap: 10px; }
.report-field-actions button { width: 44px; height: 44px; padding: 0; font-size: 25px; }
.report-picker-help { margin: 8px 0 18px; }
.report-filter-grid { display: grid; grid-template-columns: repeat(4,minmax(160px,1fr)); gap: 14px; border: 1px solid #bdcccf; padding: 16px; margin: 0 0 18px; }
.report-filter-grid legend { font-weight: 700; padding: 0 6px; }
.report-filter-grid label { display: grid; gap: 5px; }
.report-command-bar { min-height: 46px; }
.report-output { margin-top: 20px; }
.report-output-heading { justify-content: space-between; }
.report-summary { display: grid; grid-template-columns: repeat(4,minmax(140px,1fr)); gap: 1px; background: #bdcccf; border: 1px solid #bdcccf; margin: 12px 0 18px; }
.report-summary div { background: #fff; padding: 12px; display: grid; gap: 4px; }
.report-summary span { color: #546a6d; text-transform: capitalize; font-size: .85rem; }
.report-table-wrap { overflow-x: auto; border: 1px solid #bdcccf; }
.report-table-wrap table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.report-table-wrap th, .report-table-wrap td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #d9e2e3; }
.report-table-wrap th { background: #eef4f4; }
.report-row .muted { display: block; }
@media (max-width: 820px) {
  .report-field-picker { grid-template-columns: 1fr 46px; }
  .report-field-actions { grid-column: 2; }
  .report-field-list:nth-of-type(2) { grid-column: 1; grid-row: 2; }
  .report-filter-grid { grid-template-columns: repeat(2,minmax(140px,1fr)); }
  .report-summary { grid-template-columns: repeat(2,minmax(120px,1fr)); }
}
@media (max-width: 520px) {
  .report-filter-grid, .report-summary { grid-template-columns: 1fr; }
}

.claim-details-editor {
  scroll-margin-top: 24px;
}

.claim-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.claim-edit-field {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.claim-edit-field textarea {
  width: 100%;
  min-height: 72px;
  box-sizing: border-box;
}

.claim-line-items {
  display: grid;
  gap: 8px;
}

.claim-line-item {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) minmax(70px, .6fr) minmax(100px, .8fr) minmax(120px, .9fr) 42px;
  gap: 8px;
  align-items: center;
}

.claim-line-item input {
  min-width: 0;
}

.icon-button {
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

@media (max-width: 760px) {
  .claim-edit-grid { grid-template-columns: 1fr; }
  .claim-line-item { grid-template-columns: 1fr 1fr; }
  .claim-line-item [data-line-field="description"] { grid-column: 1 / -1; }
}
