:root {
  --ink-950: #10211d;
  --ink-800: #263b35;
  --ink-600: #52645f;
  --ink-400: #86938f;
  --green-900: #0a493e;
  --green-800: #0f5f4f;
  --green-700: #147460;
  --green-100: #dff3ec;
  --green-50: #effaf6;
  --amber-700: #8c5a05;
  --amber-100: #fff0ca;
  --amber-50: #fff9e9;
  --red-700: #a93838;
  --red-100: #fde4e1;
  --red-50: #fff5f4;
  --blue-700: #28637c;
  --blue-100: #dceff7;
  --blue-50: #f1f8fb;
  --surface: #ffffff;
  --surface-muted: #f4f7f5;
  --surface-strong: #e8eeeb;
  --border: #d8e0dc;
  --shadow-sm: 0 8px 24px rgba(16, 33, 29, 0.08);
  --shadow-lg: 0 26px 70px rgba(16, 33, 29, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --focus: 0 0 0 3px rgba(20, 116, 96, 0.28);
  color-scheme: light;
  font-family: Inter, Roboto, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #dfe8e4;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink-950);
  background:
    radial-gradient(circle at 10% 10%, rgba(255,255,255,.82), transparent 28%),
    linear-gradient(135deg, #eef4f1 0%, #dce7e2 100%);
}

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

button,
a,
select,
textarea,
input {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
textarea:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: var(--ink-950);
  color: white;
  text-decoration: none;
  transition: top .2s ease;
}

.skip-link:focus {
  top: 12px;
}

.prototype-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: var(--ink-950);
}

.prototype-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1500px, 100%);
  min-height: 48px;
  margin: 0 auto;
  padding: 8px 24px;
}

.prototype-banner strong,
.prototype-banner span {
  display: inline-block;
}

.prototype-banner strong {
  margin-right: 10px;
  font-size: .88rem;
}

.prototype-banner span {
  color: #bfd1ca;
  font-size: .78rem;
}

.prototype-banner__link {
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  text-underline-offset: 3px;
}

.site-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: calc(100vh - 48px);
}

.review-panel {
  padding: 28px 24px 60px;
  border-right: 1px solid rgba(16, 33, 29, .12);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(18px);
  overflow-y: auto;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px 14px 14px 4px;
  background: var(--green-800);
  color: white;
  font-weight: 900;
  font-size: 1.3rem;
  box-shadow: 0 10px 24px rgba(15, 95, 79, .23);
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
}

.brand-lockup strong {
  letter-spacing: .08em;
}

.brand-lockup small {
  margin-top: 3px;
  color: var(--ink-600);
}

.review-section {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.review-section h2 {
  margin: 0 0 12px;
  font-size: .82rem;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-600);
}

.review-note {
  color: var(--ink-800);
}

.review-note ul {
  margin: 0 0 14px;
  padding-left: 20px;
  font-size: .86rem;
  line-height: 1.55;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}

.segment {
  min-height: 38px;
  padding: 8px 6px;
  border: 0;
  border-radius: 7px;
  color: var(--ink-600);
  background: transparent;
  font-size: .78rem;
  font-weight: 700;
}

.segment.is-active {
  color: var(--green-900);
  background: white;
  box-shadow: 0 2px 9px rgba(16,33,29,.1);
}

.screen-nav {
  display: grid;
  gap: 6px;
}

.screen-nav button {
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--ink-800);
  background: transparent;
  text-align: left;
}

.screen-nav button:hover {
  background: rgba(255,255,255,.72);
}

.screen-nav button.is-active {
  border-color: #b7d4c8;
  background: var(--green-50);
  color: var(--green-900);
}

.screen-nav code {
  color: var(--ink-400);
  font-size: .7rem;
}

.screen-nav span {
  font-size: .84rem;
  font-weight: 650;
}

.field-label {
  display: block;
  margin: 12px 0 6px;
  color: var(--ink-800);
  font-size: .82rem;
  font-weight: 700;
}

.select-control,
textarea,
.text-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: white;
  color: var(--ink-950);
}

.select-control,
.text-input {
  min-height: 46px;
  padding: 10px 12px;
}

textarea {
  padding: 12px;
  resize: vertical;
  line-height: 1.45;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green-800);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.prototype-stage {
  display: grid;
  align-content: start;
  justify-items: center;
  min-width: 0;
  padding: 24px 28px 60px;
  overflow: auto;
}

.device-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 960px);
  margin-bottom: 16px;
  padding: 0 4px;
}

.device-toolbar strong,
.device-toolbar span {
  display: block;
}

.device-toolbar strong {
  font-size: .95rem;
}

.device-toolbar span {
  margin-top: 3px;
  color: var(--ink-600);
  font-size: .72rem;
}

.viewport-control {
  display: flex;
  gap: 6px;
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--ink-800);
  background: white;
  font-size: 1.2rem;
}

.icon-button.is-active {
  color: var(--green-900);
  border-color: #9dc8b9;
  background: var(--green-50);
}

.device-frame {
  position: relative;
  width: min(390px, 100%);
  min-height: 760px;
  border: 10px solid var(--ink-950);
  border-radius: 42px;
  background: var(--surface-muted);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: width .3s ease, min-height .3s ease, border-radius .3s ease;
}

.device-frame[data-viewport="wide"] {
  width: min(960px, 100%);
  min-height: 700px;
  border-radius: 28px;
}

.device-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  padding: 5px 18px 2px;
  background: white;
  color: var(--ink-950);
  font-size: .65rem;
  font-weight: 800;
}

.app-root {
  min-height: 722px;
  background: var(--surface-muted);
}

.keyboard-hint {
  width: min(100%, 960px);
  margin: 18px 0 0;
  color: var(--ink-600);
  font-size: .75rem;
  text-align: center;
}

.app-screen {
  min-height: 722px;
  background: var(--surface-muted);
}

.app-screen--white {
  background: white;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(16,33,29,.08);
  background: rgba(255,255,255,.96);
}

.app-header__title {
  min-width: 0;
}

.app-header__title strong,
.app-header__title span {
  display: block;
}

.app-header__title strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-header__title span {
  margin-top: 2px;
  color: var(--ink-600);
  font-size: .7rem;
}

.app-header__actions {
  display: flex;
  gap: 6px;
}

.app-icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 13px;
  color: var(--ink-800);
  background: var(--surface-muted);
  font-size: 1rem;
}

.app-content {
  padding: 18px 16px 100px;
}

.app-content--flush {
  padding: 0 0 100px;
}

.hero {
  padding: 30px 18px 26px;
  color: white;
  background:
    linear-gradient(145deg, rgba(9,68,57,.98), rgba(20,116,96,.94)),
    var(--green-800);
}

.hero--welcome {
  display: flex;
  min-height: 440px;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 0 0 34px 34px;
}

.hero__mark {
  display: grid;
  width: 66px;
  height: 66px;
  margin-bottom: auto;
  place-items: center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 21px 21px 21px 7px;
  background: rgba(255,255,255,.13);
  font-size: 1.9rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 7px;
  color: inherit;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.hero h1,
.page-title,
.section-title,
.dialog-card h2 {
  margin: 0;
  line-height: 1.12;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(2rem, 8vw, 3rem);
}

.hero p {
  max-width: 34rem;
  margin: 14px 0 0;
  color: #dceae5;
  line-height: 1.55;
}

.content-card {
  margin: 14px 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: white;
  box-shadow: 0 4px 14px rgba(16,33,29,.04);
}

.content-card--flat {
  box-shadow: none;
}

.content-card--tint {
  border-color: #b9d9cd;
  background: var(--green-50);
}

.content-card--amber {
  border-color: #ead29b;
  background: var(--amber-50);
}

.content-card--red {
  border-color: #ecc0bb;
  background: var(--red-50);
}

.content-card--blue {
  border-color: #bddae6;
  background: var(--blue-50);
}

.section-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 12px;
}

.section-title {
  font-size: 1.08rem;
}

.section-title-row p,
.muted {
  color: var(--ink-600);
}

.section-title-row p {
  margin: 4px 0 0;
  font-size: .8rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 17px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
}

.button--full {
  width: 100%;
}

.button--primary {
  border: 1px solid var(--green-800);
  background: var(--green-800);
  color: white;
}

.button--primary:hover {
  background: var(--green-900);
}

.button--secondary {
  border: 1px solid var(--border);
  background: white;
  color: var(--ink-950);
}

.button--danger {
  border: 1px solid var(--red-700);
  background: var(--red-700);
  color: white;
}

.button--quiet {
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: var(--green-800);
}

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

.trust-intro {
  display: grid;
  gap: 10px;
  margin: 16px;
}

.trust-intro__item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
}

.trust-intro__icon,
.category-icon,
.avatar,
.status-icon {
  display: grid;
  place-items: center;
}

.trust-intro__icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--green-900);
  font-weight: 900;
}

.trust-intro strong,
.trust-intro span {
  display: block;
}

.trust-intro span {
  margin-top: 3px;
  color: var(--ink-600);
  font-size: .8rem;
  line-height: 1.45;
}

.search-card {
  display: grid;
  gap: 10px;
  margin: -26px 16px 0;
  padding: 16px;
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.search-field {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-muted);
}

.search-field span {
  color: var(--ink-400);
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink-950);
}

.area-chip,
.chip,
.status-chip {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  font-size: .73rem;
  font-weight: 750;
}

.area-chip {
  width: fit-content;
  border: 1px solid #b7d4c8;
  background: var(--green-50);
  color: var(--green-900);
}

.chip {
  border: 1px solid var(--border);
  background: white;
  color: var(--ink-800);
}

.chip.is-active {
  border-color: var(--green-700);
  background: var(--green-100);
  color: var(--green-900);
}

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

.category-card {
  min-height: 110px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
  color: var(--ink-950);
  text-align: left;
}

.category-card:hover,
.category-card.is-active {
  border-color: #9dc8b9;
  background: var(--green-50);
}

.category-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--surface-strong);
  font-size: 1.1rem;
}

.category-card strong,
.category-card small {
  display: block;
}

.category-card small {
  margin-top: 5px;
  color: var(--ink-600);
}

.result-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.result-toolbar__actions {
  display: flex;
  gap: 6px;
}

.provider-list {
  display: grid;
  gap: 12px;
}

.provider-card {
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: white;
  color: var(--ink-950);
  text-align: left;
  overflow: hidden;
}

.provider-card:hover {
  border-color: #9dc8b9;
  box-shadow: 0 8px 24px rgba(16,33,29,.07);
}

.provider-card__visual {
  position: relative;
  display: grid;
  min-height: 116px;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(15,95,79,.18), rgba(40,99,124,.08)),
    repeating-linear-gradient(45deg, #eaf1ee 0 12px, #f7faf8 12px 24px);
}

.provider-card__visual .visual-symbol {
  font-size: 2.2rem;
}

.operating-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.92);
  color: var(--ink-800);
  font-size: .68rem;
  font-weight: 800;
}

.provider-card__body {
  padding: 14px;
}

.provider-card__body h3 {
  margin: 0;
  font-size: 1rem;
}

.provider-card__meta {
  margin: 5px 0 10px;
  color: var(--ink-600);
  font-size: .78rem;
}

.claim-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.status-chip--current {
  background: var(--green-100);
  color: var(--green-900);
}

.status-chip--pending,
.status-chip--expiring {
  background: var(--amber-100);
  color: var(--amber-700);
}

.status-chip--expired,
.status-chip--rejected,
.status-chip--revoked {
  background: var(--red-100);
  color: var(--red-700);
}

.status-chip--info,
.status-chip--not-checked,
.status-chip--not-supplied {
  background: var(--surface-strong);
  color: var(--ink-600);
}

.map-canvas {
  position: relative;
  min-height: 520px;
  border-radius: 18px;
  background:
    linear-gradient(32deg, transparent 48%, rgba(255,255,255,.9) 49% 53%, transparent 54%),
    linear-gradient(-27deg, transparent 42%, rgba(255,255,255,.82) 43% 47%, transparent 48%),
    radial-gradient(circle at 32% 24%, #c9e2d5 0 8%, transparent 8.5%),
    radial-gradient(circle at 70% 72%, #c9e2d5 0 10%, transparent 10.5%),
    #dde8e2;
  overflow: hidden;
}

.map-label {
  position: absolute;
  padding: 5px 7px;
  border-radius: 7px;
  background: rgba(255,255,255,.8);
  color: var(--ink-600);
  font-size: .68rem;
}

.map-pin {
  position: absolute;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 4px solid white;
  border-radius: 50% 50% 50% 8px;
  background: var(--green-800);
  color: white;
  box-shadow: 0 8px 18px rgba(16,33,29,.2);
  transform: rotate(-45deg);
}

.map-pin span {
  transform: rotate(45deg);
}

.map-pin--amber {
  background: var(--amber-700);
}

.profile-hero {
  padding: 20px 16px 18px;
  background: white;
}

.profile-identity {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 14px;
  align-items: center;
}

.avatar {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--green-100), var(--blue-100));
  color: var(--green-900);
  font-size: 1.5rem;
  font-weight: 900;
}

.profile-identity h1 {
  margin: 0;
  font-size: 1.28rem;
}

.profile-identity p {
  margin: 4px 0 0;
  color: var(--ink-600);
  font-size: .8rem;
}

.profile-location {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 16px;
  padding: 12px;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: .78rem;
  line-height: 1.45;
}

.trust-scorecard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.trust-stat {
  padding: 12px 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
}

.trust-stat strong,
.trust-stat span {
  display: block;
}

.trust-stat strong {
  color: var(--green-900);
  font-size: 1.2rem;
}

.trust-stat span {
  margin-top: 3px;
  color: var(--ink-600);
  font-size: .65rem;
}

.claim-list {
  display: grid;
  gap: 10px;
}

.claim-card {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 11px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: white;
}

.claim-card--button {
  width: 100%;
  color: var(--ink-950);
  text-align: left;
}

.status-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--surface-strong);
  font-weight: 900;
}

.status-icon--current {
  background: var(--green-100);
  color: var(--green-900);
}

.status-icon--pending,
.status-icon--expiring {
  background: var(--amber-100);
  color: var(--amber-700);
}

.status-icon--expired,
.status-icon--rejected {
  background: var(--red-100);
  color: var(--red-700);
}

.claim-card h3 {
  margin: 0;
  font-size: .9rem;
}

.claim-card p {
  margin: 4px 0 0;
  color: var(--ink-600);
  font-size: .74rem;
  line-height: 1.45;
}

.claim-card__state {
  padding-top: 2px;
  color: var(--ink-400);
  font-size: .68rem;
  font-weight: 800;
  white-space: nowrap;
}

.claim-detail {
  padding: 4px 2px 2px;
}

.claim-detail dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px 10px;
  margin: 16px 0;
  font-size: .8rem;
}

.claim-detail dt {
  color: var(--ink-600);
}

.claim-detail dd {
  margin: 0;
  font-weight: 650;
}

.limit-box {
  padding: 12px;
  border-left: 4px solid var(--amber-700);
  border-radius: 0 10px 10px 0;
  background: var(--amber-50);
  color: var(--amber-700);
  font-size: .76rem;
  line-height: 1.5;
}

.app-bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 7;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 74px;
  padding: 8px 6px 12px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.97);
}

.app-bottom-nav button {
  display: grid;
  gap: 3px;
  justify-items: center;
  border: 0;
  background: transparent;
  color: var(--ink-600);
  font-size: .66rem;
  font-weight: 750;
}

.app-bottom-nav button.is-active {
  color: var(--green-800);
}

.app-bottom-nav .nav-icon {
  display: grid;
  width: 32px;
  height: 26px;
  place-items: center;
  border-radius: var(--radius-pill);
  font-size: .9rem;
}

.app-bottom-nav button.is-active .nav-icon {
  background: var(--green-100);
}

.progress-ring {
  --progress: 70%;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--green-700) var(--progress), var(--surface-strong) 0);
}

.progress-ring::after {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: white;
  content: attr(data-label);
  font-size: .8rem;
  font-weight: 900;
}

.overview-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
}

.checklist {
  display: grid;
  gap: 9px;
}

.check-item {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
}

.check-item__number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: var(--surface-strong);
  color: var(--ink-600);
  font-size: .74rem;
  font-weight: 900;
}

.check-item.is-complete .check-item__number {
  background: var(--green-100);
  color: var(--green-900);
}

.check-item.is-action .check-item__number {
  background: var(--amber-100);
  color: var(--amber-700);
}

.check-item strong,
.check-item small {
  display: block;
}

.check-item small {
  margin-top: 3px;
  color: var(--ink-600);
  font-size: .7rem;
}

.upload-box {
  padding: 20px;
  border: 2px dashed #b5c5be;
  border-radius: 16px;
  background: var(--surface-muted);
  text-align: center;
}

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

.upload-box span {
  margin: 6px auto 14px;
  max-width: 28rem;
  color: var(--ink-600);
  font-size: .76rem;
  line-height: 1.45;
}

.upload-progress {
  height: 8px;
  margin: 12px 0 6px;
  border-radius: var(--radius-pill);
  background: var(--surface-strong);
  overflow: hidden;
}

.upload-progress span {
  display: block;
  width: 62%;
  height: 100%;
  margin: 0;
  background: var(--amber-700);
}

.timeline {
  display: grid;
  gap: 0;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding-bottom: 18px;
}

.timeline-item:not(:last-child)::before {
  position: absolute;
  left: 16px;
  top: 34px;
  bottom: 0;
  width: 2px;
  background: var(--border);
  content: "";
}

.timeline-dot {
  display: grid;
  width: 34px;
  height: 34px;
  z-index: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--ink-600);
  font-size: .75rem;
  font-weight: 900;
}

.timeline-item.is-current .timeline-dot {
  background: var(--green-100);
  color: var(--green-900);
}

.timeline-item.is-action .timeline-dot {
  background: var(--amber-100);
  color: var(--amber-700);
}

.timeline-item h3 {
  margin: 4px 0 2px;
  font-size: .86rem;
}

.timeline-item p {
  margin: 0;
  color: var(--ink-600);
  font-size: .74rem;
  line-height: 1.45;
}

.ops-shell {
  min-height: 722px;
  background: #edf1ef;
}

.ops-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 10px 16px;
  background: var(--ink-950);
  color: white;
}

.ops-topbar small {
  color: #b9cbc4;
}

.ops-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 662px;
}

.ops-sidebar {
  padding: 15px 12px;
  border-right: 1px solid var(--border);
  background: white;
}

.ops-sidebar button {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-800);
  text-align: left;
}

.ops-sidebar button.is-active {
  background: var(--green-50);
  color: var(--green-900);
  font-weight: 800;
}

.ops-main {
  padding: 18px;
  min-width: 0;
}

.ops-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.ops-stat {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
}

.ops-stat strong,
.ops-stat span {
  display: block;
}

.ops-stat strong {
  font-size: 1.5rem;
}

.ops-stat span {
  color: var(--ink-600);
  font-size: .7rem;
}

.queue-table {
  width: 100%;
  margin-top: 14px;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
  overflow: hidden;
  font-size: .76rem;
}

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

.queue-table th {
  background: var(--surface-muted);
  color: var(--ink-600);
  font-size: .67rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

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

.case-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, .8fr);
  gap: 14px;
}

.evidence-preview {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:
    linear-gradient(rgba(255,255,255,.86), rgba(255,255,255,.86)),
    repeating-linear-gradient(0deg, #dae4df 0 1px, transparent 1px 28px);
  text-align: center;
}

.evidence-preview__doc {
  width: min(280px, 90%);
  padding: 20px;
  border: 1px solid #b8c4bf;
  background: white;
  box-shadow: var(--shadow-sm);
}

.evidence-preview__doc strong,
.evidence-preview__doc span {
  display: block;
}

.evidence-preview__doc span {
  margin-top: 10px;
  color: var(--ink-600);
  font-size: .7rem;
}

.redacted-line {
  height: 7px;
  margin: 9px 0;
  border-radius: 3px;
  background: var(--ink-950);
  opacity: .82;
}

.redacted-line:nth-child(odd) {
  width: 72%;
}

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

.radio-card {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
}

.radio-card input {
  margin-top: 3px;
}

.radio-card strong,
.radio-card span {
  display: block;
}

.radio-card span {
  margin-top: 3px;
  color: var(--ink-600);
  font-size: .72rem;
}

.state-panel {
  display: grid;
  min-height: 600px;
  place-items: center;
  padding: 30px 20px;
  text-align: center;
}

.state-panel__icon {
  display: grid;
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 24px;
  background: var(--surface-strong);
  color: var(--green-900);
  font-size: 2rem;
}

.state-panel h2 {
  margin: 0;
  font-size: 1.3rem;
}

.state-panel p {
  max-width: 30rem;
  margin: 9px auto 18px;
  color: var(--ink-600);
  line-height: 1.5;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: #dce4e0;
}

.skeleton::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
  content: "";
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}

.skeleton-line {
  height: 12px;
  margin: 10px 0;
  border-radius: 6px;
}

.skeleton-card {
  height: 130px;
  margin: 12px 0;
  border-radius: 16px;
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

.toast {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 88px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--ink-950);
  color: white;
  box-shadow: var(--shadow-lg);
  font-size: .78rem;
}

.toast button {
  border: 0;
  background: transparent;
  color: #a9e7d2;
  font-weight: 800;
}

.dialog-card {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  color: var(--ink-950);
  box-shadow: var(--shadow-lg);
  overflow: auto;
}

.dialog-card::backdrop {
  background: rgba(16,33,29,.58);
  backdrop-filter: blur(4px);
}

.dialog-card form {
  padding: 22px;
}

.dialog-card--compact {
  width: min(440px, calc(100% - 32px));
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dialog-card p {
  color: var(--ink-600);
  line-height: 1.5;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.form-status {
  min-height: 20px;
  margin-bottom: 0;
  color: var(--green-800) !important;
  font-size: .8rem;
  font-weight: 700;
}

@media (min-width: 760px) {
  .device-frame[data-viewport="wide"] .app-content {
    padding-left: 28px;
    padding-right: 28px;
  }

  .device-frame[data-viewport="wide"] .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .device-frame[data-viewport="wide"] .provider-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .device-frame[data-viewport="wide"] .hero--welcome {
    min-height: 360px;
  }

  .device-frame[data-viewport="wide"] .trust-intro {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 920px) {
  .site-shell {
    grid-template-columns: 1fr;
  }

  .review-panel {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
    padding-bottom: 24px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .brand-lockup {
    grid-column: 1 / -1;
  }

  .review-section {
    min-width: 0;
  }

  .review-section:nth-of-type(2),
  .review-note {
    grid-column: 1 / -1;
  }

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

@media (max-width: 620px) {
  .prototype-banner__inner {
    align-items: flex-start;
    padding: 8px 14px;
  }

  .prototype-banner span {
    display: none;
  }

  .site-shell {
    display: block;
  }

  .review-panel {
    display: block;
    padding: 18px 14px;
  }

  .brand-lockup {
    margin-bottom: 16px;
  }

  .screen-nav {
    grid-template-columns: 1fr;
    max-height: 220px;
    overflow-y: auto;
  }

  .prototype-stage {
    padding: 16px 0 36px;
  }

  .device-toolbar,
  .keyboard-hint {
    padding-left: 14px;
    padding-right: 14px;
  }

  .device-frame,
  .device-frame[data-viewport="wide"] {
    width: 100%;
    min-height: 760px;
    border-width: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .device-status {
    display: none;
  }

  .app-root,
  .app-screen,
  .ops-shell {
    min-height: 760px;
  }

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

  .ops-sidebar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .ops-sidebar button {
    min-width: max-content;
  }

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

  .dialog-actions {
    flex-direction: column-reverse;
  }

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

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