:root {
  --canvas: #eef4f1;
  --surface: #ffffff;
  --surface-soft: #f7faf8;
  --ink: #17313a;
  --muted: #687982;
  --line: #d7e3df;
  --primary: #0b6c67;
  --primary-dark: #07524f;
  --primary-soft: #e2f0ec;
  --coral: #c55b42;
  --coral-soft: #f9eae5;
  --green: #147a56;
  --green-soft: #e3f3eb;
  --red: #b44349;
  --red-soft: #f9e7e8;
  --shadow: 0 16px 38px rgba(24, 52, 54, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family:
    Inter, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

button {
  min-height: 42px;
  border: 1px solid var(--primary);
  border-radius: 7px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-weight: 750;
  line-height: 1.2;
  padding: 10px 15px;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

button:hover:not(:disabled) {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 6px 14px rgba(7, 82, 79, 0.18);
}

button:active:not(:disabled) {
  transform: translateY(1px);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(11, 108, 103, 0.28);
  outline-offset: 2px;
}

button:disabled,
.file-button.disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 108, 103, 0.11);
  outline: 0;
}

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

label {
  display: grid;
  gap: 7px;
  color: #3e555c;
  font-size: 14px;
  font-weight: 720;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.18;
}

h2 {
  font-size: 21px;
  line-height: 1.28;
}

h3 {
  font-size: 16px;
  line-height: 1.35;
}

p {
  color: var(--muted);
  line-height: 1.6;
}

a {
  color: var(--primary-dark);
  font-weight: 720;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.hidden,
.workflow-hidden {
  display: none !important;
}

.app-shell {
  width: min(1280px, calc(100% - 40px));
  margin: 26px auto 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.topbar h1 {
  color: #102d35;
}

.eyebrow {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: uppercase;
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-actions span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.ghost-btn,
.btn-secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.ghost-btn:hover:not(:disabled),
.btn-secondary:hover:not(:disabled) {
  border-color: #b6cbc4;
  background: var(--surface-soft);
  box-shadow: none;
}

.return-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 15px;
  text-decoration: none;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 408px;
  gap: 22px;
  align-items: stretch;
}

.auth-copy {
  min-height: 436px;
  border: 1px solid #0a5e5a;
  border-radius: 8px;
  background: #0b625e;
  color: #fff;
  padding: clamp(28px, 5vw, 52px);
  display: grid;
  align-content: center;
  gap: 17px;
}

.auth-copy .eyebrow,
.auth-copy p {
  color: rgba(255, 255, 255, 0.76);
}

.auth-copy h2 {
  max-width: 620px;
  color: #fff;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.22;
}

.auth-route {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.auth-route div {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 14px;
}

.auth-route span {
  color: #bfe3d8;
  font-size: 12px;
  font-weight: 850;
}

.auth-panel {
  padding: 26px;
  align-self: center;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
  padding: 4px;
  margin-bottom: 20px;
}

.segmented button {
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.segmented button.active {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 2px 7px rgba(24, 52, 54, 0.09);
}

.auth-form {
  display: grid;
  gap: 15px;
}

.register-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.register-code-row button {
  min-width: 116px;
}

.turnstile-slot {
  min-height: 65px;
  overflow: hidden;
}

.message {
  min-height: 22px;
  color: var(--red);
  font-size: 14px;
}

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

.status-rail {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 12px;
}

.summary-block {
  overflow: hidden;
  border: 1px solid #0b625e;
  border-radius: 8px;
  background: #0b625e;
  color: #fff;
  padding: 18px;
}

.summary-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.summary-code {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 750;
}

.summary-block .status-badge {
  background: #d4eee5;
  color: #07524f;
}

.summary-focus {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.summary-focus span,
.summary-date {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.summary-focus strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
}

.summary-focus p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

.summary-date {
  display: block;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
}

.status-steps {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 7px;
  display: grid;
  gap: 2px;
}

.status-step {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border-color: transparent;
  background: transparent;
  border-radius: 6px;
  color: var(--muted);
  padding: 9px 8px;
  text-align: left;
  box-shadow: none;
}

.status-step > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
  font-size: 13px;
}

.status-step strong {
  color: inherit;
  font-size: 13px;
}

.status-step small {
  color: inherit;
  font-size: 11px;
  line-height: 1.45;
}

.step-dot {
  width: 23px;
  height: 23px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #6c7c82;
  font-size: 12px;
  font-weight: 850;
}

.status-step.done .step-dot {
  border-color: #a8d8c2;
  background: var(--green-soft);
  color: var(--green);
}

.status-step.active {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.status-step:hover:not(:disabled) {
  border-color: transparent;
  background: var(--surface-soft);
  color: var(--ink);
  box-shadow: none;
}

.status-step.active:hover:not(:disabled) {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.status-step.active .step-dot {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.workspace {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.admin-view-tabs {
  display: flex;
  align-items: end;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}

.admin-view-tabs button {
  min-height: 40px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  padding: 8px 14px;
}

.admin-view-tabs button:hover:not(:disabled) {
  background: var(--surface-soft);
  color: var(--ink);
  box-shadow: none;
}

.admin-view-tabs button.active {
  border-bottom-color: var(--primary);
  color: var(--primary-dark);
}

.notice {
  border: 1px solid #e5b7a8;
  border-radius: 7px;
  background: var(--coral-soft);
  color: #873d2d;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.55;
}

.work-panel {
  position: relative;
  padding: clamp(18px, 2.2vw, 28px);
  display: grid;
  gap: 18px;
}

.list-table {
  display: grid;
  border-top: 1px solid var(--line);
}

.list-header,
.list-row {
  display: grid;
  align-items: center;
  column-gap: 14px;
  min-width: 0;
  border-bottom: 1px solid var(--line);
}

.list-header {
  min-height: 38px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.list-row {
  min-height: 68px;
  color: #496067;
  font-size: 13px;
  padding: 10px 0;
}

.list-row.active {
  background: #f0f8f5;
  box-shadow: inset 3px 0 0 var(--primary);
  padding-left: 12px;
}

.list-row > strong,
.list-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.list-row strong {
  color: var(--ink);
  font-size: 14px;
}

.list-row small,
.list-row > span small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.35;
}

.application-list-row {
  grid-template-columns:
    minmax(190px, 1.5fr) minmax(94px, 0.8fr) minmax(72px, 0.6fr)
    minmax(126px, 0.9fr) auto;
}

.user-list-row {
  grid-template-columns:
    minmax(150px, 1fr) minmax(200px, 1.35fr) minmax(160px, 1fr)
    minmax(92px, 0.7fr) auto;
}

.identity-list-row {
  grid-template-columns:
    minmax(160px, 1.1fr) minmax(100px, 0.75fr) minmax(90px, 0.7fr)
    minmax(124px, 0.9fr) auto;
}

.distributor-list-row {
  grid-template-columns:
    minmax(170px, 1.2fr) minmax(120px, 0.9fr) minmax(96px, 0.7fr)
    minmax(108px, 0.8fr) minmax(112px, 0.85fr) minmax(70px, 0.6fr)
    minmax(270px, 1.8fr);
}

.distributor-user-list-row {
  grid-template-columns:
    minmax(170px, 1.2fr) minmax(180px, 1.25fr) minmax(130px, 0.9fr)
    minmax(110px, 0.8fr) minmax(150px, 1fr);
}

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

.distributor-history {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
}

.distributor-history summary {
  color: var(--primary-dark);
  cursor: pointer;
  font-size: 14px;
  font-weight: 780;
}

.compact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.compact-actions button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.process-panel.is-current {
  border-color: #a9d2c9;
  box-shadow: 0 20px 42px rgba(10, 94, 90, 0.12);
}

.process-panel.is-current::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 22px;
  width: 54px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--coral);
}

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

.panel-heading > div {
  display: grid;
  gap: 5px;
}

.panel-heading .eyebrow {
  color: var(--coral);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

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

.info-cell {
  min-width: 0;
  border-left: 3px solid #b5ddd4;
  background: var(--surface-soft);
  padding: 12px 13px;
}

.info-cell span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.info-cell strong {
  display: block;
  color: var(--ink);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.progress-wrap {
  display: grid;
  gap: 8px;
  padding: 13px 14px;
  border-left: 3px solid var(--primary);
  background: var(--surface-soft);
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #40565d;
  font-size: 14px;
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: #e2ebe7;
  overflow: hidden;
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width 180ms ease;
}

.step-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.step-tab {
  min-height: 37px;
  border-color: var(--line);
  background: #fff;
  color: #4a5f66;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 720;
  box-shadow: none;
}

.step-tab span {
  display: inline-grid;
  width: 19px;
  height: 19px;
  margin-right: 6px;
  border-radius: 50%;
  background: #e8efec;
  color: #577077;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}

.step-tab.active {
  border-color: #a6d0c7;
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.step-tab.active span {
  background: var(--primary);
  color: #fff;
}

.step-tab:hover:not(:disabled) {
  background: var(--surface-soft);
  box-shadow: none;
}

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

.form-section-heading {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.form-section-heading .eyebrow {
  color: var(--muted);
}

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

.field-row {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #354e56;
  font-size: 14px;
  font-weight: 780;
}

.required-mark {
  color: var(--red);
}

.field-help {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.random-row {
  grid-column: 1 / -1;
}

.random-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 10px;
  align-items: center;
}

.form-navigation {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.form-navigation > span {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.upload-box,
.identity-callout {
  border: 1px dashed #a8c8c0;
  border-radius: 7px;
  background: #f8fbfa;
  padding: 17px;
  display: grid;
  gap: 13px;
}

.identity-callout {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-style: solid;
}

.identity-callout > div:first-child {
  display: grid;
  gap: 5px;
}

.identity-callout strong {
  color: var(--ink);
}

.identity-callout p {
  font-size: 14px;
}

.file-button {
  width: fit-content;
  min-height: 42px;
  border: 1px solid var(--primary);
  border-radius: 7px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  padding: 11px 14px;
}

.file-button input {
  display: none;
}

.file-preview-list,
.identity-grid,
.generated-list,
.notification-list {
  display: grid;
  gap: 10px;
}

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

.identity-item,
.file-item,
.generated-item,
.notification-item {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
  padding: 13px;
  display: grid;
  gap: 8px;
}

.file-item strong,
.generated-item strong,
.notification-item strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.identity-item video,
.identity-item img,
.media-preview video,
.media-preview img {
  width: 100%;
  max-height: 240px;
  border-radius: 6px;
  background: #102f35;
  object-fit: contain;
}

.pdf-preview {
  width: 100%;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.list-button {
  width: 100%;
  min-height: 0;
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

.list-button:hover:not(:disabled),
.list-button.active {
  border-color: #9acbc0;
  background: var(--primary-soft);
  box-shadow: none;
}

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

.identity-mini {
  min-width: 0;
  border-top: 2px solid #b5ddd4;
  background: var(--surface-soft);
  padding: 10px 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
}

.identity-mini span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

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

.check-item {
  min-width: 0;
  border-top: 3px solid var(--line);
  background: var(--surface-soft);
  padding: 12px;
  display: grid;
  gap: 4px;
}

.check-item > span {
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: transparent;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 850;
}

.check-item.done {
  border-color: var(--green);
}

.check-item.done > span {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

.check-item strong {
  font-size: 13px;
  line-height: 1.35;
}

.check-item small {
  color: var(--muted);
  font-size: 12px;
}

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

.notification-item p,
.notification-item span {
  grid-column: 1 / -1;
  font-size: 13px;
}

.notification-item span {
  color: var(--muted);
  font-size: 12px;
}

.shipment-card,
.result-card {
  display: grid;
  gap: 7px;
  padding: 15px;
  border-left: 3px solid var(--primary);
  background: var(--primary-soft);
}

.shipment-card > span,
.result-card > span {
  color: #416167;
  font-size: 13px;
  font-weight: 760;
}

.shipment-card p {
  font-size: 13px;
}

.result-number {
  color: var(--primary-dark);
  font-size: 27px;
  font-weight: 900;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

/* Administrator workspace */
.admin-body .auth-copy {
  background: #2a5158;
  border-color: #2a5158;
}

.admin-body .summary-block {
  background: #2a5158;
  border-color: #2a5158;
}

.admin-body .panel-heading .eyebrow {
  color: #27758a;
}

.admin-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

.admin-overview div {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 8px;
}

.admin-overview span,
.admin-overview strong {
  display: block;
}

.admin-overview span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
}

.admin-overview strong {
  color: #fff;
  margin-top: 2px;
  font-size: 18px;
}

.admin-detail-section {
  display: grid;
  gap: 13px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.admin-callout {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-left: 3px solid #27758a;
  background: #edf6f8;
}

.manual-payment-form {
  padding: 15px;
  border: 1px solid #cfe3de;
  background: #f7fbf9;
}

.manual-payment-form .form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.manual-payment-form small,
.payment-summary small {
  color: var(--muted);
  font-size: 12px;
}

.payment-summary .info-cell strong a {
  color: var(--primary-dark);
  font-weight: 700;
}

.admin-detail-section .identity-grid {
  margin-top: 1px;
}

/* Standalone identity verification */
.verify-body {
  min-height: 100vh;
  background: #eaf2ef;
}

.verify-shell {
  width: min(1000px, calc(100% - 40px));
  margin: 24px auto 52px;
  display: grid;
  gap: 14px;
}

.verify-header {
  min-height: 128px;
  border: 1px solid #0b625e;
  border-radius: 8px;
  background: #0b625e;
  box-shadow: var(--shadow);
  color: #fff;
  padding: 23px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.verify-header h1,
.verify-header p {
  color: #fff;
}

.verify-header .eyebrow,
.verify-header #verify-subtitle {
  color: rgba(255, 255, 255, 0.74);
}

.verify-header > div {
  display: grid;
  gap: 6px;
}

.verify-header .status-badge {
  background: #d4eee5;
  color: var(--primary-dark);
  flex: 0 0 auto;
}

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

.verify-step {
  min-height: 62px;
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  text-align: left;
  gap: 9px;
  box-shadow: none;
}

.verify-step:hover:not(:disabled) {
  background: var(--surface-soft);
  box-shadow: none;
}

.verify-step span {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #e7efec;
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
}

.verify-step strong {
  font-size: 13px;
  line-height: 1.3;
}

.verify-step.active {
  border-color: #9dccc1;
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.verify-step.active span {
  background: var(--primary);
  color: #fff;
}

.verify-step.done span {
  background: var(--green-soft);
  color: var(--green);
}

.verify-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.verify-mobile-gate {
  display: grid;
  gap: 10px;
  min-width: 0;
  border-color: #b8d9d1;
  background: #f7fbf9;
  padding: 20px;
}

.verify-mobile-gate h2 {
  margin: 0;
}

.mobile-handoff-grid {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  min-width: 0;
  margin-top: 4px;
}

.qr-handoff,
.link-handoff {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.qr-handoff {
  justify-items: center;
  text-align: center;
}

.qr-handoff strong,
.link-handoff strong {
  color: var(--ink);
}

.qr-handoff span,
.link-handoff > span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.qr-frame {
  display: grid;
  width: 156px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #d8e5e1;
  border-radius: 7px;
  background: #fff;
  padding: 8px;
}

.qr-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.email-handoff-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.email-handoff-row .field-help {
  flex: 1 1 180px;
}

.mobile-link-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-width: 0;
  margin-top: 4px;
}

.mobile-link-box input {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.verify-stage {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  background: #102f35;
  display: grid;
  place-items: center;
}

#verify-video {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
}

.verify-card[data-step="1"] #verify-video {
  transform: scaleX(-1);
}

.capture-stage-status {
  position: absolute;
  z-index: 7;
  top: 16px;
  left: 16px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 6px;
  background: rgba(5, 34, 40, 0.82);
  color: #fff;
  padding: 6px 10px;
  backdrop-filter: blur(8px);
}

.capture-stage-status strong {
  color: inherit;
  font-size: 12px;
}

.capture-status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #8fd8c6;
  box-shadow: 0 0 0 4px rgba(143, 216, 198, 0.14);
}

.verify-stage[data-capture-state="preparing"] .capture-status-dot {
  background: #ffd17a;
  box-shadow: 0 0 0 4px rgba(255, 209, 122, 0.15);
}

.verify-stage[data-capture-state="recording"] .capture-status-dot {
  background: #ff786f;
  box-shadow: 0 0 0 4px rgba(255, 120, 111, 0.18);
  animation: capture-recording-pulse 1.2s ease-out infinite;
}

.upload-progress {
  display: grid;
  gap: 7px;
}

.upload-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #d8e5e1;
}

.upload-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width 160ms linear;
}

.upload-progress strong {
  color: var(--primary-dark);
  font-size: 13px;
}

.toolbar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.toolbar-row input {
  flex: 1 1 280px;
  min-width: 0;
}

.list-helper {
  margin: -4px 0 2px;
  color: var(--muted);
  font-size: 13px;
}

.admin-note-preview {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.integration-form {
  margin-top: 18px;
}

.integration-form details {
  border-top: 1px solid var(--line);
  padding: 13px 0;
}

.integration-form summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.integration-form details > :not(summary) {
  margin-top: 14px;
}

.form-editor {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.form-editor summary {
  cursor: pointer;
  color: var(--primary-dark);
  font-weight: 800;
}

.form-editor .auth-form {
  margin-top: 16px;
}

.form-editor-section {
  min-width: 0;
  margin: 0;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.form-editor-section + .form-editor-section {
  margin-top: 2px;
}

.form-editor-section legend {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  padding: 0 8px 0 0;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.check-row input {
  width: 16px;
  height: 16px;
}

.user-item .info-grid {
  margin-top: 10px;
}

.verify-real-face-guide {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 50% 38%,
      rgba(106, 185, 179, 0.3),
      transparent 38%
    ),
    linear-gradient(180deg, #17626a, #0b4149 78%);
}

.verify-real-face-guide::before {
  content: "";
  position: absolute;
  top: 12%;
  left: 50%;
  width: min(360px, 76%);
  aspect-ratio: 1;
  border: 1px solid rgba(206, 248, 239, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 30px rgba(163, 224, 211, 0.035),
    0 0 0 62px rgba(163, 224, 211, 0.025);
  transform: translateX(-50%);
}

.human-guide-portrait {
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 50%;
  width: auto;
  height: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  transform: translateX(-50%);
}

.line-person-guide {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.line-person-guide path,
.line-person-guide ellipse,
.line-person-guide circle {
  vector-effect: non-scaling-stroke;
}

.line-guide-shirt {
  fill: rgba(95, 153, 154, 0.44);
  stroke: rgba(217, 255, 246, 0.92);
  stroke-width: 2;
}

.line-guide-shirt-detail {
  fill: none;
  stroke: rgba(189, 237, 227, 0.42);
  stroke-linecap: round;
  stroke-width: 1.4;
}

.line-guide-neck path:first-child,
.line-guide-face,
.line-guide-ear {
  fill: rgba(229, 190, 165, 0.19);
  stroke: rgba(236, 255, 250, 0.96);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.line-guide-neck path:last-child {
  fill: none;
  stroke: rgba(218, 248, 240, 0.42);
  stroke-linecap: round;
  stroke-width: 1.4;
}

.line-guide-hair {
  fill: rgba(5, 34, 40, 0.82);
  stroke: rgba(222, 255, 247, 0.88);
  stroke-linejoin: round;
  stroke-width: 2;
}

.line-guide-hair-detail,
.line-guide-brow,
.line-guide-nose,
.line-guide-mouth,
.line-guide-cheek,
.line-guide-eye-turn path {
  fill: none;
  stroke: rgba(231, 255, 249, 0.94);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.line-guide-hair-detail,
.line-guide-cheek {
  opacity: 0.46;
  stroke-width: 1.3;
}

.line-guide-eye-turn path {
  fill: rgba(211, 246, 238, 0.08);
  stroke-width: 1.7;
}

.line-guide-eye-turn circle:not(.line-guide-eye-glint) {
  fill: #d9fff6;
}

.line-guide-eye-glint {
  fill: #17626a;
}

.line-guide-head,
.line-guide-features,
.line-guide-ear,
.line-guide-eye-turn,
.line-guide-brow,
.line-guide-nose,
.line-guide-mouth {
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform, opacity;
}

.line-guide-head {
  transform-origin: center 82%;
}

.line-guide-shoulders {
  transform-box: fill-box;
  transform-origin: center bottom;
}

.verify-real-face-guide.is-animating .line-guide-shoulders {
  animation: line-guide-breathe 3.6s ease-in-out infinite;
}

.verify-real-face-guide.is-animating .line-guide-head {
  animation: line-guide-head-turn 7.2s cubic-bezier(0.42, 0, 0.2, 1) infinite;
}

.verify-real-face-guide.is-animating .line-guide-features {
  animation: line-guide-features-turn 7.2s cubic-bezier(0.42, 0, 0.2, 1)
    infinite;
}

.verify-real-face-guide.is-animating .line-guide-ear--left {
  animation: line-guide-left-ear 7.2s ease-in-out infinite;
}

.verify-real-face-guide.is-animating .line-guide-ear--right {
  animation: line-guide-right-ear 7.2s ease-in-out infinite;
}

.verify-real-face-guide.is-animating .line-guide-eye-turn--left,
.verify-real-face-guide.is-animating .line-guide-brow--left {
  animation: line-guide-left-eye 7.2s ease-in-out infinite;
}

.verify-real-face-guide.is-animating .line-guide-eye-turn--right,
.verify-real-face-guide.is-animating .line-guide-brow--right {
  animation: line-guide-right-eye 7.2s ease-in-out infinite;
}

.verify-real-face-guide.is-animating .line-guide-nose {
  animation: line-guide-nose-turn 7.2s ease-in-out infinite;
}

.verify-real-face-guide.is-animating .line-guide-mouth {
  animation: line-guide-mouth-turn 7.2s ease-in-out infinite;
}

.verify-real-face-guide.is-animating .line-guide-eye-blink {
  animation: line-guide-blink 3.6s ease-in-out infinite;
}

.human-guide-pose {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  will-change: opacity, filter;
}

.human-guide-pose img {
  position: absolute;
  top: 0;
  left: 50%;
  display: block;
  width: auto;
  max-width: none;
  height: 100%;
  user-select: none;
}

.human-guide-pose--front {
  opacity: 1;
}

.human-guide-pose--front img {
  transform: translateX(-16.6667%);
}

.human-guide-pose--left img {
  transform: translateX(-50%);
}

.human-guide-pose--right img {
  transform: translateX(-83.3333%);
}

.verify-real-face-guide.is-animating .human-guide-pose--front {
  animation: human-guide-front 7.2s linear infinite;
}

.verify-real-face-guide.is-animating .human-guide-pose--left {
  animation: human-guide-left 7.2s linear infinite;
}

.verify-real-face-guide.is-animating .human-guide-pose--right {
  animation: human-guide-right 7.2s linear infinite;
}

.face-turn-indicator {
  position: absolute;
  z-index: 3;
  top: 17%;
  left: 50%;
  width: min(224px, 62%);
  height: 58px;
  border-top: 1px solid rgba(224, 253, 246, 0.52);
  border-radius: 50%;
  opacity: 0.72;
  transform: translate(-50%, -50%);
}

.face-turn-indicator::before,
.face-turn-indicator::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 8px;
  height: 8px;
  border-top: 1px solid rgba(224, 253, 246, 0.82);
}

.face-turn-indicator::before {
  left: 1px;
  border-left: 1px solid rgba(224, 253, 246, 0.82);
  transform: rotate(-45deg);
}

.face-turn-indicator::after {
  right: 1px;
  border-right: 1px solid rgba(224, 253, 246, 0.82);
  transform: rotate(45deg);
}

.face-turn-indicator i {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 9px;
  height: 9px;
  border: 2px solid #d7fff5;
  border-radius: 50%;
  background: #3f9e91;
  box-shadow: 0 0 0 5px rgba(163, 230, 214, 0.13);
  transform: translateX(-50%);
}

.verify-real-face-guide.is-animating .face-turn-indicator i {
  animation: line-guide-direction-dot 7.2s cubic-bezier(0.42, 0, 0.2, 1)
    infinite;
}

.face-demo-scene {
  position: absolute;
  top: 35px;
  right: 0;
  bottom: 108px;
  left: 0;
  perspective: 650px;
  transform-style: preserve-3d;
}

.face-demo-shadow {
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: min(330px, 72%);
  height: 30px;
  border-radius: 50%;
  background: rgba(2, 23, 29, 0.36);
  filter: blur(10px);
  transform: translateX(-50%);
}

.face-demo-shoulders {
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 50%;
  width: min(310px, 70%);
  height: 105px;
  overflow: hidden;
  border: 1px solid rgba(231, 248, 244, 0.28);
  border-bottom: 0;
  border-radius: 50% 50% 10px 10px / 80% 80% 12px 12px;
  background:
    linear-gradient(
      90deg,
      transparent 48%,
      rgba(255, 255, 255, 0.2) 50%,
      transparent 52%
    ),
    linear-gradient(135deg, #7c9fa5 0 38%, #9db8ba 39% 61%, #78979e 62%);
  box-shadow:
    inset 0 18px 22px rgba(255, 255, 255, 0.1),
    0 18px 24px rgba(0, 0, 0, 0.2);
  transform: translateX(-50%);
}

.face-demo-collar {
  position: absolute;
  top: -23px;
  left: 50%;
  width: 90px;
  height: 58px;
  border: 8px solid #dce9e7;
  border-top: 0;
  border-radius: 0 0 50% 50%;
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.16);
  transform: translateX(-50%);
}

.face-demo-neck {
  position: absolute;
  z-index: 2;
  bottom: 75px;
  left: 50%;
  width: 64px;
  height: 80px;
  border-radius: 14px 14px 24px 24px;
  background:
    linear-gradient(
      90deg,
      rgba(120, 68, 53, 0.24),
      transparent 28% 72%,
      rgba(105, 57, 46, 0.24)
    ),
    #dca283;
  box-shadow:
    inset 0 10px 12px rgba(101, 50, 40, 0.18),
    0 5px 8px rgba(0, 0, 0, 0.14);
  transform: translateX(-50%);
}

.face-demo-head-turn {
  position: absolute;
  z-index: 3;
  bottom: 124px;
  left: 50%;
  width: 158px;
  height: 198px;
  transform: translateX(-50%);
  transform-style: preserve-3d;
  transform-origin: 50% 74%;
  will-change: transform;
  animation: face-model-turn 5.4s cubic-bezier(0.45, 0, 0.22, 1) infinite;
}

.face-demo-head {
  position: absolute;
  z-index: 2;
  inset: 0 8px;
  overflow: hidden;
  border: 1px solid rgba(102, 58, 47, 0.32);
  border-radius: 48% 48% 45% 45% / 38% 38% 56% 56%;
  background:
    radial-gradient(
      circle at 34% 42%,
      rgba(255, 229, 207, 0.74),
      transparent 22%
    ),
    radial-gradient(
      circle at 65% 60%,
      rgba(181, 99, 76, 0.15),
      transparent 24%
    ),
    linear-gradient(
      102deg,
      #c98568 0,
      #e8ae8c 31%,
      #f0bc98 52%,
      #d49172 78%,
      #ba715b 100%
    );
  box-shadow:
    inset 16px 0 22px rgba(105, 55, 44, 0.13),
    inset -18px -3px 24px rgba(104, 51, 43, 0.18),
    0 16px 24px rgba(0, 0, 0, 0.24);
  transform: translateZ(2px);
  transform-style: preserve-3d;
}

.face-demo-ear {
  position: absolute;
  z-index: 1;
  top: 79px;
  width: 25px;
  height: 49px;
  border: 1px solid rgba(104, 57, 47, 0.36);
  border-radius: 52% 48% 46% 54%;
  background:
    radial-gradient(
      ellipse at center,
      transparent 0 28%,
      rgba(116, 62, 50, 0.22) 30% 38%,
      transparent 40%
    ),
    #d79476;
  box-shadow: inset 0 0 10px rgba(119, 61, 48, 0.22);
}

.face-demo-ear--left {
  left: -1px;
  animation: face-left-ear-turn 5.4s ease-in-out infinite;
}

.face-demo-ear--right {
  right: -1px;
  transform: scaleX(-1);
  animation: face-right-ear-turn 5.4s ease-in-out infinite;
}

.face-demo-hair-cap {
  position: absolute;
  z-index: 5;
  top: -8px;
  right: -7px;
  left: -7px;
  height: 78px;
  border-radius: 52% 52% 28% 24% / 72% 72% 25% 24%;
  background:
    repeating-linear-gradient(
      108deg,
      transparent 0 9px,
      rgba(255, 255, 255, 0.05) 10px 11px
    ),
    linear-gradient(100deg, #211a19, #4a342d 50%, #211a19);
  box-shadow:
    inset 0 -12px 15px rgba(0, 0, 0, 0.22),
    0 3px 4px rgba(0, 0, 0, 0.18);
  transform: translateZ(5px);
}

.face-demo-hair-cap::after {
  content: "";
  position: absolute;
  top: 28px;
  left: 50%;
  width: 2px;
  height: 45px;
  background: rgba(226, 192, 166, 0.36);
  transform: rotate(6deg);
}

.face-demo-hair-side {
  position: absolute;
  z-index: 5;
  top: 45px;
  width: 22px;
  height: 83px;
  background: linear-gradient(90deg, #211a19, #4a342d);
  box-shadow: inset 0 -8px 9px rgba(0, 0, 0, 0.2);
}

.face-demo-hair-side--left {
  left: -2px;
  border-radius: 70% 25% 62% 18%;
}

.face-demo-hair-side--right {
  right: -2px;
  border-radius: 25% 70% 18% 62%;
  transform: scaleX(-1);
}

.face-demo-brow {
  position: absolute;
  z-index: 7;
  top: 82px;
  width: 34px;
  height: 6px;
  border-top: 3px solid #51372f;
  border-radius: 50%;
  transform: translateZ(11px);
}

.face-demo-brow--left {
  left: 28px;
  transform: translateZ(11px) rotate(-4deg);
  animation: face-left-brow-turn 5.4s ease-in-out infinite;
}

.face-demo-brow--right {
  right: 28px;
  transform: translateZ(11px) rotate(4deg);
  animation: face-right-brow-turn 5.4s ease-in-out infinite;
}

.face-demo-eye {
  position: absolute;
  z-index: 8;
  top: 94px;
  width: 29px;
  height: 10px;
  overflow: hidden;
  border-top: 2px solid rgba(76, 43, 36, 0.72);
  border-bottom: 1px solid rgba(76, 43, 36, 0.32);
  border-radius: 55% 45% 52% 48%;
  background: #fff8ed;
  box-shadow: 0 3px 5px rgba(108, 55, 42, 0.12);
  transform: translateZ(13px);
}

.face-demo-eye--left {
  left: 29px;
  animation: face-left-eye-turn 5.4s ease-in-out infinite;
}

.face-demo-eye--right {
  right: 29px;
  transform: translateZ(13px) scaleX(-1);
  animation: face-right-eye-turn 5.4s ease-in-out infinite;
}

.face-demo-eye i {
  position: absolute;
  top: 1px;
  left: 10px;
  width: 8px;
  height: 8px;
  border: 2px solid #6b4a36;
  border-radius: 50%;
  background: #1e2524;
  box-shadow: 0 0 0 1px #d5b48e;
  animation: face-eye-gaze 5.4s ease-in-out infinite;
}

.face-demo-cheek {
  position: absolute;
  z-index: 6;
  top: 113px;
  width: 34px;
  height: 22px;
  border-radius: 50%;
  background: rgba(187, 85, 76, 0.14);
  filter: blur(4px);
}

.face-demo-cheek--left {
  left: 20px;
}

.face-demo-cheek--right {
  right: 20px;
}

.face-demo-nose {
  position: absolute;
  z-index: 9;
  top: 91px;
  left: 50%;
  width: 15px;
  height: 50px;
  border-right: 2px solid rgba(132, 72, 56, 0.3);
  border-bottom: 2px solid rgba(132, 72, 56, 0.38);
  border-radius: 20% 45% 55% 42%;
  background: linear-gradient(
    90deg,
    rgba(255, 222, 195, 0.24),
    transparent 70%
  );
  box-shadow: 4px 5px 8px rgba(111, 57, 44, 0.12);
  transform: translateX(-50%) translateZ(20px) rotate(5deg);
  animation: face-nose-turn 5.4s ease-in-out infinite;
}

.face-demo-mouth {
  position: absolute;
  z-index: 8;
  bottom: 34px;
  left: 50%;
  width: 43px;
  height: 9px;
  border-top: 2px solid rgba(126, 58, 58, 0.66);
  border-bottom: 2px solid rgba(151, 75, 71, 0.38);
  border-radius: 44% 56% 55% 45%;
  box-shadow: 0 3px 5px rgba(105, 49, 42, 0.11);
  transform: translateX(-50%) translateZ(14px);
  animation: face-mouth-turn 5.4s ease-in-out infinite;
}

.face-demo-chin {
  position: absolute;
  z-index: 7;
  bottom: 12px;
  left: 50%;
  width: 52px;
  height: 16px;
  border-bottom: 2px solid rgba(122, 66, 52, 0.2);
  border-radius: 50%;
  transform: translateX(-50%) translateZ(7px);
  animation: face-chin-turn 5.4s ease-in-out infinite;
}

.verify-real-face-guide::after {
  content: "";
  position: absolute;
  z-index: 8;
  inset: 0;
  background: linear-gradient(180deg, transparent 56%, rgba(5, 34, 40, 0.28));
}

.face-guide-canvas {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.face-guide-loading {
  position: absolute;
  z-index: 9;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(210, 246, 237, 0.28);
  border-radius: 6px;
  background: rgba(4, 38, 44, 0.78);
  color: rgba(234, 255, 250, 0.84);
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 800;
  transform: translate(-50%, -50%);
}

.verify-real-face-guide.is-ready .face-guide-loading {
  display: none;
}

.verify-frame {
  position: absolute;
  z-index: 2;
  border: 3px solid rgba(255, 255, 255, 0.94);
  box-shadow:
    0 0 0 999px rgba(4, 25, 30, 0.34),
    0 0 22px rgba(199, 255, 238, 0.28);
  pointer-events: none;
}

.verify-frame.face {
  inset: 10% 24%;
  border: 0;
  box-shadow: 0 0 0 999px rgba(4, 25, 30, 0.34);
}

.verify-frame.face::before {
  content: "";
  position: absolute;
  inset: 0 16% 18%;
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-radius: 48% 48% 45% 45% / 38% 38% 54% 54%;
  box-shadow: 0 0 22px rgba(199, 255, 238, 0.28);
}

.verify-frame.face::after {
  content: "";
  position: absolute;
  right: 2%;
  bottom: 1%;
  left: 2%;
  height: 24%;
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-bottom: 0;
  border-radius: 52% 52% 0 0 / 100% 100% 0 0;
  box-shadow: 0 0 22px rgba(199, 255, 238, 0.28);
}

.verify-frame.face::before,
.verify-frame.face::after {
  display: none;
}

.face-guide-outline {
  display: none;
}

.verify-frame.face .face-guide-outline {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: rgba(244, 255, 252, 0.96);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 3px rgba(179, 241, 226, 0.62))
    drop-shadow(0 0 10px rgba(83, 181, 162, 0.28));
  transition: opacity 200ms ease;
}

.verify-frame.face .face-guide-outline path {
  vector-effect: non-scaling-stroke;
}

.verify-stage.has-real-face-guide .face-guide-outline {
  opacity: 0.9;
}

.verify-frame.passport {
  inset: 13% 28%;
  border-radius: 11px;
}

.verify-frame.passport-wide {
  inset: 7% 24%;
  border-radius: 11px;
}

.verify-motion {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

.motion-face {
  display: none;
}

.motion-passport-cover {
  top: 50%;
  left: 50%;
  width: 132px;
  height: 185px;
  transform: translate(-50%, -50%);
  animation: passport-cover-align 5.1s ease-in-out infinite;
}

.motion-passport-cover::before,
.motion-passport-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
}

.motion-passport-cover::before {
  z-index: 1;
  border: 3px solid rgba(255, 255, 255, 0.9);
  background:
    radial-gradient(
      circle at 50% 38%,
      transparent 0 19px,
      rgba(234, 202, 122, 0.82) 20px 22px,
      transparent 23px
    ),
    linear-gradient(rgba(234, 202, 122, 0.7) 0 0) 50% 66% / 58px 2px no-repeat,
    linear-gradient(rgba(234, 202, 122, 0.7) 0 0) 50% 72% / 42px 2px no-repeat,
    #9c2637;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.27);
}

.motion-passport-cover::after {
  z-index: 2;
  left: -45%;
  width: 34%;
  border-radius: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.38),
    transparent
  );
  transform: skewX(-12deg);
  animation: passport-cover-glint 5.1s ease-in-out infinite;
}

.motion-passport-bio {
  top: 50%;
  left: 50%;
  z-index: 1;
  width: min(190px, 46vw);
  height: min(280px, 68vw);
  min-height: 200px;
  perspective: 1000px;
  transform: translate(-50%, -50%);
}

.passport-open-guide,
.passport-open-book {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.passport-open-book {
  position: relative;
  display: grid;
  grid-template-rows: 1fr 10px 1fr;
  border: 7px solid #8d1d30;
  border-radius: 8px;
  background: #8d1d30;
  box-shadow: 0 24px 34px rgba(0, 0, 0, 0.34);
  overflow: hidden;
  animation: passport-spread-turn 5.4s ease-in-out infinite;
}

.passport-open-book::before,
.passport-open-book::after {
  content: "";
  position: absolute;
  z-index: 3;
  right: 0;
  left: 0;
  height: 7px;
  background: #b53b4d;
}

.passport-open-book::before {
  top: 0;
}

.passport-open-book::after {
  bottom: 0;
}

.passport-open-page {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      125deg,
      transparent 0 42%,
      rgba(133, 173, 185, 0.13) 43% 44%,
      transparent 45% 100%
    ),
    repeating-linear-gradient(
      0deg,
      rgba(39, 111, 129, 0.07) 0 1px,
      transparent 1px 7px
    ),
    #e8f3f1;
}

.passport-open-page--bio {
  border-top: 1px solid rgba(19, 76, 88, 0.2);
}

.passport-open-page--security {
  border-bottom: 1px solid rgba(19, 76, 88, 0.2);
}

.passport-page-ribbon {
  position: absolute;
  top: 10px;
  right: 14px;
  left: 14px;
  height: 6px;
  border-top: 2px solid #b4374a;
  border-bottom: 1px solid rgba(180, 55, 74, 0.55);
}

.passport-page-portrait {
  position: absolute;
  top: 30px;
  left: 15px;
  width: 42px;
  height: 54px;
  border: 2px solid rgba(17, 74, 86, 0.38);
  background:
    radial-gradient(ellipse at 50% 29%, #7898a1 0 17%, transparent 18%),
    radial-gradient(ellipse at 50% 76%, #7898a1 0 32%, transparent 33%), #cedfdd;
}

.passport-page-line {
  position: absolute;
  left: 68px;
  height: 4px;
  background: rgba(18, 78, 89, 0.48);
}

.passport-page-line--one {
  top: 34px;
  right: 16px;
}

.passport-page-line--two {
  top: 49px;
  right: 33px;
}

.passport-page-line--three {
  top: 64px;
  right: 22px;
}

.passport-machine-lines {
  position: absolute;
  right: 14px;
  bottom: 9px;
  left: 14px;
  height: 18px;
  opacity: 0.58;
  background: repeating-linear-gradient(
    0deg,
    #356f7c 0 2px,
    transparent 2px 4px
  );
}

.passport-spine {
  position: relative;
  z-index: 4;
  background:
    linear-gradient(
      180deg,
      rgba(46, 7, 16, 0.75),
      rgba(241, 153, 153, 0.24) 40%,
      rgba(46, 7, 16, 0.75)
    ),
    #751324;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.34),
    inset 0 -2px 4px rgba(0, 0, 0, 0.34);
}

.passport-watermark {
  position: absolute;
  top: 25px;
  left: 50%;
  width: 70px;
  height: 70px;
  border: 2px solid rgba(41, 126, 145, 0.38);
  border-radius: 50%;
  background:
    repeating-radial-gradient(
      circle at center,
      rgba(26, 123, 145, 0.24) 0 2px,
      transparent 3px 8px
    ),
    repeating-linear-gradient(
      45deg,
      transparent 0 7px,
      rgba(25, 126, 147, 0.17) 8px 9px
    );
  opacity: 0.66;
  transform: translateX(-50%);
  animation: passport-watermark-glint 5.4s ease-in-out infinite;
}

.passport-security-lines {
  position: absolute;
  top: 23px;
  right: 17px;
  bottom: 30px;
  left: 17px;
  border-top: 2px solid rgba(40, 120, 140, 0.28);
  border-bottom: 2px solid rgba(40, 120, 140, 0.28);
}

.capture-instruction {
  position: absolute;
  z-index: 7;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: grid;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(5, 34, 40, 0.9);
  color: #fff;
  padding: 12px 13px 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.capture-instruction-copy {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.capture-instruction-copy small {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  color: #a9ded2;
  padding-right: 10px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.capture-prompt {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

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

.capture-cue {
  min-width: 0;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.62);
  padding: 5px 6px;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.capture-cue i {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.capture-cue b {
  min-width: 0;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capture-cue.active {
  border-color: rgba(166, 232, 216, 0.68);
  background: rgba(117, 204, 183, 0.18);
  color: #d7fff5;
}

.capture-cue.active i {
  background: #b4eadc;
  color: #0a524f;
  animation: capture-cue-pulse 1.2s ease-in-out infinite;
}

.capture-cue.done {
  color: #a9ded2;
}

.capture-timeline {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.capture-timeline span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #aee7d9;
  transition: width 90ms linear;
}

.capture-countdown {
  --countdown-progress: 0deg;
  position: absolute;
  z-index: 8;
  top: 15px;
  right: 15px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: conic-gradient(
    #b8eddf var(--countdown-progress),
    rgba(255, 255, 255, 0.18) 0
  );
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.capture-countdown::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: rgba(5, 34, 40, 0.94);
}

.capture-countdown strong,
.capture-countdown span {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
}

.capture-countdown strong {
  margin-top: -9px;
  color: #fff;
  font-size: 23px;
  font-weight: 900;
}

.capture-countdown span {
  align-self: end;
  margin-bottom: 10px;
  color: #a9ded2;
  font-size: 9px;
  font-weight: 800;
}

.capture-success {
  position: absolute;
  z-index: 9;
  top: 50%;
  left: 50%;
  width: min(280px, calc(100% - 42px));
  display: grid;
  justify-items: center;
  gap: 7px;
  border: 1px solid rgba(186, 238, 225, 0.5);
  border-radius: 8px;
  background: rgba(5, 50, 52, 0.94);
  color: #fff;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  transform: translate(-50%, -56%);
  animation: capture-success-in 300ms ease-out both;
}

.capture-success > span {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #c9f0e6;
  color: #0a5d58;
  display: grid;
  place-items: center;
  font-size: 25px;
  font-weight: 900;
}

.capture-success strong {
  color: #fff;
  font-size: 17px;
}

.capture-success small {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.verify-stage.is-flashing::after {
  content: "";
  position: absolute;
  z-index: 10;
  inset: 0;
  background: #fff;
  pointer-events: none;
  animation: camera-flash 260ms ease-out both;
}

.verify-content {
  padding: 24px;
  display: grid;
  align-content: start;
  gap: 17px;
}

.verify-content > div:first-child {
  display: grid;
  gap: 7px;
}

.verify-content .eyebrow {
  color: var(--coral);
}

.capture-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.verify-done {
  padding: 30px;
  display: grid;
  gap: 10px;
  border-top: 4px solid var(--green);
}

@keyframes face-model-turn {
  0%,
  17%,
  52%,
  58%,
  100% {
    transform: translateX(-50%) rotateY(0deg);
  }
  27%,
  46% {
    transform: translateX(calc(-50% - 13px)) rotateY(-48deg);
  }
  68%,
  91% {
    transform: translateX(calc(-50% + 13px)) rotateY(48deg);
  }
}

@keyframes face-left-eye-turn {
  0%,
  17%,
  52%,
  58%,
  100% {
    left: 29px;
    width: 29px;
    opacity: 1;
  }
  27%,
  46% {
    left: 14px;
    width: 14px;
    opacity: 0.16;
  }
  68%,
  91% {
    left: 35px;
    width: 31px;
    opacity: 1;
  }
}

@keyframes face-right-eye-turn {
  0%,
  17%,
  52%,
  58%,
  100% {
    right: 29px;
    width: 29px;
    opacity: 1;
  }
  27%,
  46% {
    right: 35px;
    width: 31px;
    opacity: 1;
  }
  68%,
  91% {
    right: 14px;
    width: 14px;
    opacity: 0.16;
  }
}

@keyframes face-left-brow-turn {
  0%,
  17%,
  52%,
  58%,
  100% {
    left: 28px;
    width: 34px;
    opacity: 1;
  }
  27%,
  46% {
    left: 14px;
    width: 17px;
    opacity: 0.2;
  }
  68%,
  91% {
    left: 34px;
    width: 36px;
    opacity: 1;
  }
}

@keyframes face-right-brow-turn {
  0%,
  17%,
  52%,
  58%,
  100% {
    right: 28px;
    width: 34px;
    opacity: 1;
  }
  27%,
  46% {
    right: 34px;
    width: 36px;
    opacity: 1;
  }
  68%,
  91% {
    right: 14px;
    width: 17px;
    opacity: 0.2;
  }
}

@keyframes face-left-ear-turn {
  0%,
  17%,
  52%,
  58%,
  100% {
    opacity: 1;
  }
  27%,
  46% {
    opacity: 0.1;
  }
  68%,
  91% {
    opacity: 1;
  }
}

@keyframes face-right-ear-turn {
  0%,
  17%,
  52%,
  58%,
  100% {
    opacity: 1;
  }
  27%,
  46% {
    opacity: 1;
  }
  68%,
  91% {
    opacity: 0.1;
  }
}

@keyframes face-nose-turn {
  0%,
  17%,
  52%,
  58%,
  100% {
    left: 50%;
  }
  27%,
  46% {
    left: 38%;
  }
  68%,
  91% {
    left: 62%;
  }
}

@keyframes face-mouth-turn {
  0%,
  17%,
  52%,
  58%,
  100% {
    left: 50%;
  }
  27%,
  46% {
    left: 43%;
  }
  68%,
  91% {
    left: 57%;
  }
}

@keyframes face-chin-turn {
  0%,
  17%,
  52%,
  58%,
  100% {
    left: 50%;
  }
  27%,
  46% {
    left: 47%;
  }
  68%,
  91% {
    left: 53%;
  }
}

@keyframes face-eye-gaze {
  0%,
  17%,
  52%,
  58%,
  100% {
    transform: translateX(0);
  }
  27%,
  46% {
    transform: translateX(-2px);
  }
  68%,
  91% {
    transform: translateX(2px);
  }
}

@keyframes passport-cover-align {
  0% {
    transform: translate(-58%, -54%) rotate(-4deg) scale(0.92);
  }
  30%,
  48% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }
  66% {
    transform: translate(-50%, -50%) rotateY(8deg) rotate(1deg) scale(1);
  }
  82%,
  100% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }
}

@keyframes passport-cover-glint {
  0%,
  45% {
    transform: translateX(0) skewX(-12deg);
    opacity: 0;
  }
  57% {
    opacity: 0.7;
  }
  72%,
  100% {
    transform: translateX(520%) skewX(-12deg);
    opacity: 0;
  }
}

@keyframes passport-spread-turn {
  0%,
  100% {
    transform: rotateY(0deg) rotateZ(0deg);
  }
  24% {
    transform: rotateY(-18deg) rotateZ(-1.2deg);
  }
  50% {
    transform: rotateY(0deg) rotateZ(0deg);
  }
  76% {
    transform: rotateY(18deg) rotateZ(1.2deg);
  }
}

@keyframes capture-recording-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 120, 111, 0.48);
  }
  100% {
    box-shadow: 0 0 0 8px rgba(255, 120, 111, 0);
  }
}

@keyframes capture-cue-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes capture-success-in {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -56%) scale(1);
  }
}

@keyframes camera-flash {
  from {
    opacity: 0.88;
  }
  to {
    opacity: 0;
  }
}

@keyframes passport-watermark-glint {
  0%,
  100% {
    filter: brightness(1);
    opacity: 0.58;
  }
  24%,
  76% {
    filter: brightness(1.32);
    opacity: 0.9;
  }
}

@keyframes line-guide-breathe {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(1.004);
  }
}

@keyframes line-guide-head-turn {
  0%,
  18%,
  52%,
  58%,
  100% {
    transform: translateX(0) rotate(0deg) scaleX(1);
  }
  30%,
  44% {
    transform: translateX(-12px) rotate(-1deg) scaleX(0.93);
  }
  70%,
  90% {
    transform: translateX(12px) rotate(1deg) scaleX(0.93);
  }
}

@keyframes line-guide-features-turn {
  0%,
  18%,
  52%,
  58%,
  100% {
    transform: translateX(0);
  }
  30%,
  44% {
    transform: translateX(-8px);
  }
  70%,
  90% {
    transform: translateX(8px);
  }
}

@keyframes line-guide-left-ear {
  0%,
  18%,
  52%,
  58%,
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  30%,
  44% {
    opacity: 0.34;
    transform: translateX(5px) scale(0.74);
  }
  70%,
  90% {
    opacity: 1;
    transform: translateX(-2px) scale(1.08);
  }
}

@keyframes line-guide-right-ear {
  0%,
  18%,
  52%,
  58%,
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  30%,
  44% {
    opacity: 1;
    transform: translateX(2px) scale(1.08);
  }
  70%,
  90% {
    opacity: 0.34;
    transform: translateX(-5px) scale(0.74);
  }
}

@keyframes line-guide-left-eye {
  0%,
  18%,
  52%,
  58%,
  100% {
    transform: translateX(0) scaleX(1);
  }
  30%,
  44% {
    transform: translateX(3px) scaleX(0.58);
  }
  70%,
  90% {
    transform: translateX(-2px) scaleX(1.06);
  }
}

@keyframes line-guide-right-eye {
  0%,
  18%,
  52%,
  58%,
  100% {
    transform: translateX(0) scaleX(1);
  }
  30%,
  44% {
    transform: translateX(2px) scaleX(1.06);
  }
  70%,
  90% {
    transform: translateX(-3px) scaleX(0.58);
  }
}

@keyframes line-guide-nose-turn {
  0%,
  18%,
  52%,
  58%,
  100% {
    transform: translateX(0);
  }
  30%,
  44% {
    transform: translateX(-10px);
  }
  70%,
  90% {
    transform: translateX(10px);
  }
}

@keyframes line-guide-mouth-turn {
  0%,
  18%,
  52%,
  58%,
  100% {
    transform: translateX(0) scaleX(1);
  }
  30%,
  44% {
    transform: translateX(-5px) scaleX(0.92);
  }
  70%,
  90% {
    transform: translateX(5px) scaleX(0.92);
  }
}

@keyframes line-guide-blink {
  0%,
  8%,
  10%,
  48%,
  52%,
  100% {
    transform: scaleY(1);
  }
  9%,
  50% {
    transform: scaleY(0.08);
  }
}

@keyframes line-guide-direction-dot {
  0%,
  18%,
  52%,
  58%,
  100% {
    left: 50%;
  }
  30%,
  44% {
    left: 3%;
  }
  70%,
  90% {
    left: 97%;
  }
}

@keyframes human-guide-front {
  0%,
  20.25%,
  51.5%,
  58.25%,
  94%,
  100% {
    filter: blur(0);
    opacity: 1;
  }
  22%,
  49.75%,
  60%,
  92.25% {
    filter: blur(1px);
    opacity: 0;
  }
}

@keyframes human-guide-left {
  0%,
  20.25%,
  51.5%,
  100% {
    filter: blur(1px);
    opacity: 0;
  }
  22%,
  49.75% {
    filter: blur(0);
    opacity: 1;
  }
}

@keyframes human-guide-right {
  0%,
  58.25%,
  94%,
  100% {
    filter: blur(1px);
    opacity: 0;
  }
  60%,
  92.25% {
    filter: blur(0);
    opacity: 1;
  }
}

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

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

  .status-rail {
    position: static;
  }

  .status-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .status-step {
    min-height: 84px;
  }

  .identity-grid,
  .checklist-grid,
  .verify-card {
    grid-template-columns: 1fr;
  }

  .verify-stage,
  #verify-video {
    min-height: 430px;
  }

  .list-table {
    overflow-x: auto;
  }

  .list-table .list-header,
  .list-table .list-row {
    min-width: 720px;
  }

  #distributor-list .list-header,
  #distributor-list .list-row,
  .distributor-users-table .list-header,
  .distributor-users-table .list-row {
    min-width: 980px;
  }

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

@media (max-width: 700px) {
  .app-shell,
  .verify-shell {
    width: min(100% - 24px, 1280px);
    margin-top: 14px;
  }

  .topbar,
  .panel-heading,
  .verify-header,
  .identity-callout {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    gap: 12px;
  }

  .topbar h1 {
    font-size: 25px;
  }

  .account-actions {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .admin-view-tabs {
    overflow-x: auto;
  }

  .distributor-summary-grid {
    grid-template-columns: 1fr;
  }

  .auth-copy {
    min-height: 0;
    padding: 27px 23px;
  }

  .auth-copy h2 {
    font-size: 28px;
  }

  .auth-panel {
    padding: 20px;
  }

  .status-steps {
    grid-template-columns: 1fr 1fr;
  }

  .status-step {
    min-height: 76px;
  }

  .work-panel {
    padding: 18px;
  }

  .info-grid,
  .result-overview,
  .section-grid,
  .identity-mini-grid {
    grid-template-columns: 1fr;
  }

  .random-control {
    grid-template-columns: 1fr;
  }

  .register-code-row {
    grid-template-columns: 1fr;
  }

  .register-code-row button {
    width: 100%;
  }

  .form-navigation {
    grid-template-columns: 1fr 1fr;
  }

  .form-navigation > span {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .form-navigation button {
    grid-row: 2;
  }

  .identity-callout {
    display: grid;
    grid-template-columns: 1fr;
  }

  .identity-callout .action-row {
    width: 100%;
  }

  .identity-callout .action-row button {
    flex: 1 1 170px;
  }

  .generated-item,
  .notification-item {
    grid-template-columns: 1fr;
  }

  .verify-header {
    min-height: 0;
    padding: 20px;
    display: grid;
  }

  .verify-header .status-badge {
    justify-self: start;
  }

  .verify-stage,
  #verify-video {
    min-height: clamp(420px, 124vw, 520px);
  }

  .verify-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .verify-step {
    min-height: 62px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 4px;
    padding: 7px 4px;
    text-align: center;
  }

  .verify-step strong {
    font-size: 11px;
  }

  .verify-content {
    padding: 18px;
  }

  .mobile-link-box {
    grid-template-columns: 1fr;
  }

  .verify-mobile-gate {
    padding: 18px;
  }

  .mobile-handoff-grid {
    grid-template-columns: 1fr;
  }

  .qr-handoff {
    justify-self: start;
    justify-items: start;
    text-align: left;
  }

  .qr-frame {
    width: 138px;
  }

  .motion-passport-cover {
    width: 110px;
    height: 155px;
    top: 41%;
  }

  .motion-passport-bio {
    width: min(184px, 48vw);
    height: min(276px, 72vw);
    top: 40%;
  }

  .verify-frame.face {
    inset: 7% 16% 27%;
  }

  .verify-frame.passport {
    inset: 8% 25% 27%;
  }

  .verify-frame.passport-wide {
    inset: 5% 20% 27%;
  }

  .capture-instruction {
    right: 9px;
    bottom: 9px;
    left: 9px;
    gap: 8px;
    padding: 10px 10px 9px;
  }

  .capture-instruction-copy {
    gap: 8px;
  }

  .capture-instruction-copy small {
    padding-right: 8px;
    font-size: 10px;
  }

  .capture-prompt {
    font-size: 12px;
  }

  .capture-cue {
    min-height: 32px;
    gap: 4px;
    padding: 4px;
  }

  .capture-cue i {
    width: 16px;
    height: 16px;
    font-size: 9px;
  }

  .capture-cue b {
    font-size: 10px;
  }

  .capture-stage-status {
    top: 10px;
    left: 10px;
  }

  .capture-countdown {
    top: 10px;
    right: 10px;
    width: 58px;
    height: 58px;
  }
}

/* Queue-first operations layout and mobile-safe detail views. */
.admin-operations-overview {
  display: grid;
  gap: 14px;
}

.panel-subtitle {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.queue-panel,
.directory-panel {
  gap: 14px;
}

.queue-panel .panel-heading,
.directory-panel .panel-heading {
  align-items: center;
}

.admin-operations-overview .list-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-operations-overview .list-header,
.admin-operations-overview .list-row {
  min-width: 900px;
}

.admin-detail-header {
  position: sticky;
  top: 12px;
  z-index: 5;
  margin: -2px -2px 0;
  padding: 4px 2px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.admin-detail-header .compact-actions {
  justify-content: flex-end;
}

.portal-body .status-step {
  cursor: default;
}

.portal-body .step-tabs {
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 3px;
  -webkit-overflow-scrolling: touch;
}

.portal-body .step-tab {
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  .admin-detail-header {
    position: static;
  }

  .admin-operations-overview .list-header,
  .admin-operations-overview .list-row {
    min-width: 900px;
  }
}

@media (max-width: 700px) {
  .admin-operations-overview .list-header,
  .admin-operations-overview .list-row {
    min-width: 860px;
  }

  .queue-panel .panel-heading,
  .directory-panel .panel-heading {
    align-items: stretch;
  }

  .queue-panel .panel-heading > .compact-actions {
    justify-content: space-between;
  }

  .admin-detail-header .compact-actions {
    justify-content: flex-start;
  }

  .admin-detail-section {
    padding-top: 16px;
  }

  .portal-body .summary-block {
    padding: 15px;
  }

  .portal-body .status-step {
    min-height: 68px;
    padding: 8px 7px;
  }

  .portal-body .status-step > span:last-child {
    font-size: 12px;
  }

  .portal-body .status-step small {
    font-size: 10px;
  }

  .capture-actions button,
  .capture-actions .file-button {
    flex: 1 1 100%;
    width: 100%;
    text-align: center;
  }

  .verify-content {
    padding: 18px;
  }
}
