: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);
}

@font-face {
  font-family: "Koitin Sans";
  src: url("/fonts/SourceSans3VF-Upright.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

* {
  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;
}

.button-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary);
  border-radius: 7px;
  background: var(--primary);
  color: #fff;
  font-weight: 750;
  padding: 10px 15px;
  text-decoration: none;
}

.button-link:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.checkout-shell {
  max-width: 760px;
}

.checkout-panel {
  margin-top: 26px;
}

.service-config-row,
.service-order-row {
  display: grid;
  grid-template-columns:
    minmax(140px, 1.2fr) minmax(120px, 1fr)
    110px 100px 90px;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.service-config-row strong,
.service-order-row strong,
.service-order-row small {
  display: block;
}

.service-config-row small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.service-order-row {
  grid-template-columns: minmax(180px, 1.4fr) 130px minmax(180px, 1fr) 90px;
}

@media (max-width: 760px) {
  .service-config-row,
  .service-order-row {
    grid-template-columns: 1fr;
  }
}

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;
}

.auth-link-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -7px;
}

.auth-link-row button,
.auth-form-heading button {
  min-height: auto;
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  box-shadow: none;
  padding: 3px 0;
}

.auth-link-row button:hover:not(:disabled),
.auth-form-heading button:hover:not(:disabled) {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  text-decoration: underline;
}

.auth-form-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.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-width: 0;
  min-height: 65px;
  overflow: visible;
}

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

.message.success {
  color: var(--green);
}

.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;
}

#identity-link-output {
  overflow-wrap: anywhere;
}

#identity-link-output a {
  color: inherit;
  font-weight: 700;
}

.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;
}

.integration-test-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding: 12px 0 2px;
  border-top: 1px solid var(--line);
}

.integration-test-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.integration-test-row small {
  color: var(--muted);
}

.integration-test-row button {
  flex: 0 0 auto;
}

.key-diagnostic {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #c8ddd8;
  background: #f4faf8;
}

.key-diagnostic > div:first-child {
  display: grid;
  gap: 4px;
}

.key-diagnostic textarea {
  min-height: 96px;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.key-diagnostic .action-row {
  align-items: center;
  justify-content: space-between;
}

.key-diagnostic .action-row small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.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-review-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 4px;
}

.identity-review-grid .identity-item video,
.identity-review-grid .identity-item img {
  height: clamp(250px, 34vw, 420px);
  max-height: 420px;
}

.identity-review-summary {
  margin-top: 4px;
}

.identity-review-note {
  margin-top: 4px;
}

.identity-review-actions {
  justify-content: flex-end;
}

.media-file-action {
  min-width: 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.media-file-action a {
  color: var(--primary-dark);
  font-weight: 700;
}

.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(4, 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-card.is-document-step {
  grid-template-columns: minmax(0, 1fr);
}

.verify-card.is-document-step .verify-stage {
  display: none;
}

.verify-card.is-document-step .verify-content {
  width: min(100%, 900px);
  min-height: 520px;
  margin: 0 auto;
  padding: 36px;
  grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
  align-items: start;
  align-content: center;
}

.verify-card.is-document-step .verify-content > :not(.passport-upload-example),
.verify-card.is-document-step .media-preview,
.verify-card.is-document-step .capture-actions,
.verify-card.is-document-step .passport-upload-choice-help,
.verify-card.is-document-step .upload-progress,
.verify-card.is-document-step .message {
  grid-column: 2;
}

.passport-upload-example {
  grid-column: 1;
  grid-row: 1 / span 20;
  display: grid;
  gap: 10px;
  margin: 0;
}

.passport-upload-example-image {
  position: relative;
  overflow: hidden;
  border: 1px solid #d8e5e1;
  border-radius: 7px;
  background: #f5f8f7;
  box-shadow: 0 10px 28px rgba(25, 63, 61, 0.1);
}

.passport-upload-example-image img {
  display: block;
  width: 100%;
  height: auto;
}

.passport-upload-example-image > span {
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 5px;
  background: rgba(8, 74, 70, 0.92);
  color: #fff;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
}

.passport-upload-example figcaption {
  display: grid;
  gap: 4px;
  line-height: 1.45;
}

.passport-upload-example figcaption strong {
  color: var(--ink);
  font-size: 14px;
}

.passport-upload-example figcaption span,
.passport-upload-example figcaption small {
  color: var(--muted);
  font-size: 12px;
}

.passport-upload-example figcaption small {
  color: #7a8d88;
}

.file-button.file-button-secondary {
  border-color: var(--primary);
  background: #fff;
  color: var(--primary-dark);
}

.file-button.file-button-secondary:hover {
  background: var(--primary-soft);
}

.passport-upload-choice-help {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.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="3"] #verify-video,
.verify-card[data-step="4"] #verify-video {
  object-fit: contain;
}

.verify-card[data-step="2"] #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);
}

.camera-switch-button {
  position: absolute;
  z-index: 8;
  top: 86px;
  right: 16px;
  min-height: 38px;
  border: 1px solid rgba(224, 250, 243, 0.55);
  background: rgba(6, 53, 58, 0.86);
  color: #fff;
  padding: 8px 12px;
  font-size: 12px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
}

.camera-switch-button:hover:not(:disabled) {
  border-color: rgba(224, 250, 243, 0.8);
  background: rgba(8, 76, 79, 0.94);
}

.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 .human-guide-pose {
  transition: opacity 650ms ease;
}
.verify-stage[data-guide-direction="left"] .human-guide-pose--front,
.verify-stage[data-guide-direction="right"] .human-guide-pose--front {
  opacity: 0;
}
.verify-stage[data-guide-direction="left"] .human-guide-pose--left,
.verify-stage[data-guide-direction="right"] .human-guide-pose--right {
  opacity: 1;
}

.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%);
}

.face-turn-indicator i {
  transition: left 650ms ease;
}
.verify-stage[data-guide-direction="left"] .face-turn-indicator i {
  left: 10%;
}
.verify-stage[data-guide-direction="right"] .face-turn-indicator i {
  left: 90%;
}

.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-preflight {
  color: var(--muted);
  line-height: 1.7;
}
.verify-body .verify-stage {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 0;
}
.verify-viewport {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  height: clamp(320px, 44vw, 420px);
  overflow: hidden;
}
.verify-body #verify-video {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.verify-body .capture-instruction {
  position: relative;
  inset: auto;
  margin: 0;
  border: 0;
  border-top: 1px solid #527275;
  border-radius: 0;
  background: #102f35;
  box-shadow: none;
  backdrop-filter: none;
}
.verify-body .motion-passport-bio,
.verify-body .motion-passport-cover {
  top: 50%;
}
.verify-body .verify-frame.face {
  inset: 6% 16%;
}
.verify-body .verify-frame.passport-wide {
  inset: 6% 20%;
}
.verify-body .verify-frame.passport {
  inset: 8% 25%;
}
.verify-work-guide {
  border-left: 3px solid var(--primary);
  padding: 12px 16px;
  background: #eef7fd;
}
.verify-card.is-reviewing {
  grid-template-columns: minmax(0, 1fr);
}
.verify-card.is-reviewing .verify-content {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr);
}
.verify-card.is-reviewing .passport-upload-example {
  display: none;
}
.verify-card.is-reviewing .verify-content > :not(.passport-upload-example) {
  grid-column: 1;
}
.verify-work-guide p {
  margin: 6px 0 14px;
  line-height: 1.65;
}
.verify-work-guide summary {
  cursor: pointer;
}
.verify-check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0;
  line-height: 1.5;
}
.verify-body .verify-check-row input,
.identity-review-controls .verify-check-row input {
  flex: 0 0 18px;
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--primary);
}
.verify-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.verify-summary-grid article {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
}
.verify-summary-grid .media-preview {
  min-height: 80px;
}
.verify-summary-grid video,
.verify-summary-grid img {
  max-height: 240px;
  width: 100%;
  object-fit: contain;
}
.identity-review-controls {
  margin: 16px 0;
}
.identity-review-controls fieldset {
  min-width: 0;
  border: 1px solid var(--line);
  padding: 12px;
  margin: 10px 0;
}
.identity-review-controls select {
  width: 100%;
  min-width: 0;
}
.identity-review-history article {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  overflow-wrap: anywhere;
}
.verify-direction {
  display: block;
  color: #fff;
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.verify-stage[data-guide-direction="left"] .passport-open-book {
  transform: rotateY(-18deg);
}
.verify-stage[data-guide-direction="right"] .passport-open-book {
  transform: rotateY(18deg);
}
.verify-stage[data-guide-direction="left"] .motion-passport-cover {
  transform: translate(-50%, -50%) rotate(-7deg);
}
.verify-card[data-step="2"] #verify-preview video {
  transform: scaleX(-1);
}
.verify-body .capture-cues {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.verify-body .capture-cue {
  min-width: 0;
}
.verify-body .capture-cue b {
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .verify-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .verify-body .capture-cue b {
    font-size: 10px;
  }
  .verify-body .action-row {
    flex-wrap: wrap;
  }
  .verify-body .action-row button {
    max-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .verify-real-face-guide .human-guide-pose,
  .face-turn-indicator i,
  .passport-open-book,
  .motion-passport-cover {
    transition: none;
  }
}

.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%);
  transition: transform 800ms ease;
}

.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);
  opacity: 0;
}

.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;
  transition: transform 1000ms ease;
}

.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%);
  transition: opacity 1000ms ease;
}

.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;
}

.stage-capture-button {
  width: 100%;
  min-height: 44px;
  border-color: rgba(221, 249, 242, 0.86);
  background: #eefbf7;
  color: #075b57;
  font-size: 14px;
  box-shadow: none;
}

.stage-capture-button:hover:not(:disabled) {
  border-color: #fff;
  background: #fff;
  color: #064c49;
  box-shadow: none;
}

.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,
  .integration-test-row {
    align-items: stretch;
    flex-direction: column;
  }

  .integration-test-row button {
    width: 100%;
  }

  .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(2, 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;
  }

  .verify-card.is-document-step .verify-content {
    width: 100%;
    min-height: 0;
    padding: 18px;
    grid-template-columns: minmax(0, 1fr);
  }

  .verify-card.is-document-step
    .verify-content
    > :not(.passport-upload-example),
  .verify-card.is-document-step .passport-upload-example,
  .verify-card.is-document-step .media-preview,
  .verify-card.is-document-step .capture-actions,
  .verify-card.is-document-step .passport-upload-choice-help,
  .verify-card.is-document-step .upload-progress,
  .verify-card.is-document-step .message {
    grid-column: 1;
    grid-row: auto;
  }

  .passport-upload-example {
    width: min(100%, 330px);
    justify-self: center;
  }

  .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;
  }

  .camera-switch-button {
    top: 78px;
    right: 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;
}

/* koitin.com administrator workspace: restrained, high-clarity service console. */
.admin-body {
  --canvas: #f7f9fa;
  --surface: #ffffff;
  --surface-soft: #eef7fd;
  --ink: #1b1b1b;
  --muted: #565c65;
  --line: #dfe1e2;
  --primary: #005ea8;
  --primary-dark: #1a4480;
  --primary-soft: #e7f2fb;
  --green: #2e8540;
  --green-soft: #e7f4e4;
  --red: #d83933;
  --red-soft: #fce8e6;
  --shadow: 0 2px 8px rgba(27, 27, 27, 0.08);
  background: var(--canvas);
  font-family:
    "Koitin Sans",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}

.admin-body .list-table,
.admin-body input,
.admin-body select,
.admin-body textarea,
.admin-body button {
  font-family: inherit;
}

.admin-body .list-row,
.admin-body .status-badge,
.admin-body .summary-block {
  font-variant-numeric: tabular-nums;
}

.admin-body .admin-shell {
  width: 100%;
  min-height: 100vh;
  margin: 0;
}

.admin-body .topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 1px 3px rgba(27, 27, 27, 0.06);
}

.admin-trust-strip {
  color: rgba(255, 255, 255, 0.9);
  background: #071e34;
  font-size: 12px;
  font-weight: 650;
}

.admin-trust-strip-inner,
.admin-toolbar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1440px, calc(100% - 56px));
  margin: 0 auto;
}

.admin-trust-strip-inner {
  min-height: 30px;
  display: flex;
  justify-content: flex-start;
}

.admin-trust-logo {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  box-sizing: border-box;
  border: 1px solid #005ea8;
  border-radius: 4px;
  background: #071e34;
  color: #fff;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.admin-toolbar-main {
  min-height: 76px;
  padding: 10px 0;
}

.admin-toolbar-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.admin-page-heading {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.admin-body .topbar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: #d83933;
}

.admin-body .topbar h1 {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.15;
}

.admin-body:not(.admin-authenticated) .admin-toolbar-tools {
  display: none;
}

.admin-body .auth-copy {
  border-color: #071e34;
  border-radius: 7px;
  background: #071e34;
}

.admin-body .auth-copy .eyebrow,
.admin-body .auth-copy p {
  color: #c3d2de;
}

.admin-body .auth-route span {
  color: #8ab4df;
}

/* Login is one joined service-workspace surface, not two unrelated floating cards. */
.admin-body .auth-layout {
  width: min(1440px, calc(100% - 56px));
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: 0;
  margin: 36px auto 60px;
  border: 1px solid #dfe1e2;
  border-radius: 0;
  background: #071e34;
  box-shadow: 0 8px 24px rgba(7, 30, 52, 0.12);
  overflow: hidden;
}

.admin-body .auth-copy {
  min-height: 472px;
  border: 0;
  border-radius: 0;
  background: #071e34;
  padding: clamp(32px, 5vw, 64px);
}

.admin-body .auth-copy h2 {
  max-width: 650px;
  font-size: clamp(30px, 3.15vw, 44px);
  letter-spacing: -0.025em;
}

.admin-body .auth-route {
  max-width: 680px;
  gap: 0;
  margin-top: 18px;
}

.admin-body .auth-route div {
  min-height: 54px;
  border-top-color: rgba(217, 234, 247, 0.22);
}

.admin-body .auth-route div:last-child {
  border-bottom: 1px solid rgba(217, 234, 247, 0.22);
}

.admin-body .auth-panel {
  align-self: stretch;
  border: 0;
  border-left: 1px solid #dfe1e2;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  padding: clamp(30px, 4vw, 52px);
}

.admin-body .auth-panel::before {
  content: "管理员登录";
  display: block;
  margin-bottom: 22px;
  border-bottom: 1px solid #dfe1e2;
  color: #071e34;
  font-size: 18px;
  font-weight: 760;
  padding-bottom: 13px;
}

.admin-body .auth-panel .auth-form button {
  min-height: 46px;
  margin-top: 5px;
}

.admin-body .eyebrow {
  color: #1a4480;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.admin-toolbar-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-global-search {
  display: block;
  width: min(320px, 27vw);
}

.admin-global-search input {
  min-height: 38px;
  border-radius: 5px;
  font-size: 13px;
}

.notification-indicator {
  color: #d83933;
  font-size: 18px;
  line-height: 1;
}

.admin-body .account-actions {
  gap: 8px;
}

.admin-body .account-actions button {
  min-height: 36px;
  border-radius: 5px;
  padding: 7px 10px;
  font-size: 13px;
}

.admin-body .toolbar-primary-action {
  border-color: #005ea8;
  background: #005ea8;
}

.admin-body .toolbar-primary-action:hover:not(:disabled) {
  border-color: #1a4480;
  background: #1a4480;
  box-shadow: none;
}

.admin-body .admin-avatar,
.admin-body .toolbar-logout {
  border-color: transparent;
  background: transparent;
  color: #1b1b1b;
  box-shadow: none;
}

.admin-body .admin-avatar {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
}

.admin-body .avatar-mark {
  display: inline-grid;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #005ea8;
  color: #fff;
  place-items: center;
  font-size: 12px;
}

.admin-body .admin-avatar:hover:not(:disabled),
.admin-body .toolbar-logout:hover:not(:disabled) {
  border-color: #dfe1e2;
  background: #eef7fd;
  color: #1a4480;
  box-shadow: none;
}

.admin-body .dashboard {
  display: grid;
  grid-template-columns: 254px minmax(0, 1fr);
  width: min(1440px, calc(100% - 56px));
  margin: 0 auto;
  gap: 28px;
  padding: 28px 0 56px;
}

.admin-body .admin-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  border-radius: 7px;
  background: #071e34;
  box-shadow: 0 2px 7px rgba(7, 30, 52, 0.2);
  padding: 18px 12px;
}

.sidebar-brand {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  margin: 0 6px 13px;
  padding: 0 7px 16px;
}

.sidebar-brand a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 22px;
  font-weight: 780;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.sidebar-brand-mark {
  display: inline-grid;
  width: 30px;
  height: 30px;
  border: 2px solid #d9eaf7;
  border-radius: 50%;
  background: #005ea8;
  color: #fff;
  place-items: center;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

.sidebar-brand a span {
  color: #8ab4df;
}

.sidebar-brand small,
.sidebar-section-title {
  color: #b9c9d8;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.admin-primary-navigation {
  display: grid;
  gap: 2px;
}

.admin-body .admin-primary-navigation button {
  min-height: 38px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #d9e4ee;
  box-shadow: none;
  padding: 9px 11px;
  text-align: left;
  font-size: 14px;
  font-weight: 650;
}

.admin-body .admin-primary-navigation button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: none;
}

.admin-body .admin-primary-navigation button.active {
  border-left-color: #4ea4e8;
  background: #005ea8;
  color: #fff;
}

.admin-body .admin-primary-navigation .nav-unavailable {
  color: #8299ad;
  opacity: 0.72;
}

.sidebar-queue {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.sidebar-section-title {
  margin: 0 7px;
  font-weight: 760;
  text-transform: uppercase;
}

.admin-body .summary-block {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  background: #0b2944;
  padding: 13px;
}

.admin-body .summary-block p,
.admin-body .summary-block .summary-date,
.admin-body .summary-block .summary-focus span {
  color: #c3d2de;
}

.admin-body .status-steps {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  background: #0b2944;
  padding: 5px;
}

.admin-body .status-step {
  color: #c3d2de;
  font-size: 12px;
}

.admin-body .status-step small {
  color: #aabfd0;
}

.admin-body .status-step.active,
.admin-body .status-step.active:hover:not(:disabled) {
  background: #164a78;
  color: #fff;
}

.admin-body .step-dot {
  border-color: #4f6d87;
  color: #dbe8f2;
}

.admin-body .status-step.active .step-dot {
  border-color: #6eb8f0;
  background: #005ea8;
}

.admin-body .workspace {
  gap: 20px;
}

.admin-body .panel {
  border-color: #dfe1e2;
  border-radius: 7px;
  box-shadow: 0 1px 4px rgba(27, 27, 27, 0.08);
}

.admin-body .work-panel {
  gap: 18px;
  padding: clamp(20px, 2.2vw, 30px);
}

.admin-body .panel-heading .eyebrow {
  color: #1a4480;
}

.admin-body .panel-subtitle,
.admin-body .list-row,
.admin-body p {
  color: #565c65;
}

.admin-body .status-badge {
  border-radius: 4px;
  background: #e7f2fb;
  color: #005ea8;
  font-weight: 750;
}

.admin-body .list-table {
  overflow: hidden;
  border: 1px solid #dfe1e2;
  border-top: 0;
}

.admin-body .list-header {
  min-height: 42px;
  background: #eef7fd;
  color: #3d4d5c;
  padding: 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.admin-body .list-row {
  padding: 11px 12px;
}

.admin-body .list-row:hover {
  background: #eef7fd;
}

.admin-body .list-row.active {
  background: #e7f2fb;
  box-shadow: inset 3px 0 #005ea8;
}

.admin-body button,
.admin-body .button-link,
.admin-body .file-button {
  border-radius: 5px;
}

.admin-body
  button:not([role="tab"]):not(.notification-indicator):not(.ghost-btn):not(
    .btn-secondary
  ):not(.status-step):not(.step-tab):not(.admin-avatar):not(
    .toolbar-logout
  ):not(.admin-primary-navigation button) {
  border-color: #005ea8;
  background: #005ea8;
}

.admin-body
  button:not([role="tab"]):not(.notification-indicator):not(.ghost-btn):not(
    .btn-secondary
  ):not(.status-step):not(.step-tab):not(.admin-avatar):not(
    .toolbar-logout
  ):not(.admin-primary-navigation button):hover:not(:disabled) {
  border-color: #1a4480;
  background: #1a4480;
  box-shadow: none;
}

.admin-body .ghost-btn,
.admin-body .btn-secondary {
  border-color: #005ea8;
  background: #fff;
  color: #005ea8;
}

.admin-body .ghost-btn:hover:not(:disabled),
.admin-body .btn-secondary:hover:not(:disabled) {
  border-color: #1a4480;
  background: #eef7fd;
  color: #1a4480;
}

.admin-body input,
.admin-body select,
.admin-body textarea {
  border-color: #a9aeb1;
  border-radius: 5px;
}

.admin-body input:focus,
.admin-body select:focus,
.admin-body textarea:focus {
  border-color: #005ea8;
  box-shadow: 0 0 0 3px rgba(0, 94, 168, 0.2);
}

.admin-body button:focus-visible,
.admin-body a:focus-visible {
  outline-color: #fdb81e;
}

.admin-body .notice,
.admin-body .progress-wrap {
  border-color: #005ea8;
  border-left: 4px solid #005ea8;
  border-radius: 0;
  background: #eef7fd;
  color: #17365d;
}

.admin-body .info-cell {
  border-left-color: #005ea8;
  background: #f7f9fa;
}

.admin-body .process-panel.is-current::before {
  background: #005ea8;
}

.admin-body .process-panel.is-current {
  border-color: #8ab4df;
  box-shadow: 0 2px 8px rgba(0, 94, 168, 0.14);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

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

  .admin-trust-strip-inner,
  .admin-toolbar-main {
    width: min(100% - 32px, 760px);
  }

  .admin-toolbar-main {
    align-items: flex-start;
  }

  .admin-toolbar-tools {
    align-items: flex-end;
    flex-direction: column;
  }

  .admin-global-search {
    width: 100%;
  }

  .admin-body .dashboard {
    grid-template-columns: 1fr;
    width: min(100% - 32px, 760px);
  }

  .admin-body .auth-layout {
    grid-template-columns: 1fr;
    width: min(100% - 32px, 760px);
    margin: 24px auto 42px;
  }

  .admin-body .auth-copy {
    min-height: auto;
    padding: 34px;
  }

  .admin-body .auth-panel {
    border-top: 1px solid #dfe1e2;
    border-left: 0;
  }

  .admin-body .admin-sidebar {
    position: static;
    max-height: none;
  }

  .admin-primary-navigation {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sidebar-queue {
    display: none;
  }
}

@media (max-width: 620px) {
  .admin-trust-strip-inner {
    min-height: 28px;
  }

  .admin-toolbar-main {
    display: grid;
    gap: 12px;
    width: min(100% - 32px, 760px);
    padding: 16px 0;
  }

  .admin-toolbar-tools,
  .admin-body .account-actions {
    width: 100%;
    align-items: stretch;
    flex-wrap: wrap;
  }

  .admin-body .auth-copy,
  .admin-body .auth-panel {
    padding: 26px 22px;
  }

  .admin-body .auth-copy h2 {
    font-size: 29px;
  }

  .admin-body .admin-avatar {
    flex: 1;
  }

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

.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;
  }
}

/* Final login composition override: shared service surface, never a floating card. */
.admin-body .auth-layout,
.admin-body .auth-copy,
.admin-body .auth-panel {
  border-radius: 0;
}

.admin-body .auth-panel {
  box-shadow: none;
}

/* Client portal: the same restrained ITIN service language as the management workspace. */
.portal-body {
  --canvas: #f7f9fa;
  --surface: #ffffff;
  --surface-soft: #eef7fd;
  --ink: #1b1b1b;
  --muted: #565c65;
  --line: #dfe1e2;
  --primary: #005ea8;
  --primary-dark: #1a4480;
  --primary-soft: #e7f2fb;
  --coral: #d83933;
  --coral-soft: #fce8e6;
  --green: #2e8540;
  --green-soft: #e7f4e4;
  --red: #d83933;
  --red-soft: #fce8e6;
  --shadow: 0 2px 8px rgba(7, 30, 52, 0.08);
  background: #f7f9fa;
  color: #1b1b1b;
  font-family:
    "Koitin Sans",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}

.portal-body .app-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 56px;
}

.portal-body .topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  min-height: 76px;
  margin: 0 calc((100vw - min(1180px, calc(100vw - 48px))) / -2);
  border-bottom: 1px solid #dfe1e2;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 2px rgba(7, 30, 52, 0.06);
  padding: 13px max(24px, calc((100vw - 1180px) / 2));
}

.portal-body .topbar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: #d83933;
}

.portal-heading {
  display: flex;
  align-items: center;
  gap: 11px;
}

.portal-brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  border: 3px solid #d9eaf7;
  border-radius: 50%;
  background: #005ea8;
  color: #fff;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.portal-body .topbar h1 {
  color: #071e34;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.portal-body .eyebrow {
  color: #1a4480;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.portal-body .account-actions span {
  color: #565c65;
}

.portal-body .account-actions button,
.portal-body button,
.portal-body .button-link,
.portal-body .file-button {
  border-color: #005ea8;
  border-radius: 5px;
  background: #005ea8;
}

.portal-body .account-actions button:hover:not(:disabled),
.portal-body button:hover:not(:disabled),
.portal-body .button-link:hover,
.portal-body .file-button:hover:not(:disabled) {
  border-color: #1a4480;
  background: #1a4480;
  box-shadow: none;
}

.portal-body .ghost-btn,
.portal-body .btn-secondary,
.portal-body .return-link {
  border-color: #005ea8;
  border-radius: 5px;
  background: #fff;
  color: #005ea8;
}

.portal-body .ghost-btn:hover:not(:disabled),
.portal-body .btn-secondary:hover:not(:disabled) {
  border-color: #1a4480;
  background: #eef7fd;
  color: #1a4480;
}

.portal-body input,
.portal-body select,
.portal-body textarea {
  border-color: #a9aeb1;
  border-radius: 5px;
  font-family: inherit;
}

.portal-body input:focus,
.portal-body select:focus,
.portal-body textarea:focus {
  border-color: #005ea8;
  box-shadow: 0 0 0 3px rgba(0, 94, 168, 0.2);
}

.portal-body .auth-layout {
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 0;
  margin: 38px 0 56px;
  border: 1px solid #dfe1e2;
  border-radius: 0;
  background: #071e34;
  box-shadow: 0 8px 24px rgba(7, 30, 52, 0.12);
  overflow: hidden;
}

.portal-body .auth-copy {
  min-height: 474px;
  border: 0;
  border-radius: 0;
  background: #071e34;
  padding: clamp(32px, 5vw, 62px);
}

.portal-body .auth-copy .eyebrow,
.portal-body .auth-copy p {
  color: #c3d2de;
}

.portal-body .auth-copy h2 {
  max-width: 630px;
  font-size: clamp(29px, 3.05vw, 42px);
  letter-spacing: -0.025em;
}

.portal-body .auth-route {
  max-width: 650px;
  gap: 0;
  margin-top: 18px;
}

.portal-body .auth-route div {
  min-height: 54px;
  border-top-color: rgba(217, 234, 247, 0.22);
}

.portal-body .auth-route div:last-child {
  border-bottom: 1px solid rgba(217, 234, 247, 0.22);
}

.portal-body .auth-route span {
  color: #8ab4df;
}

.portal-body .auth-panel {
  align-self: stretch;
  border: 0;
  border-left: 1px solid #dfe1e2;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  padding: clamp(30px, 4vw, 50px);
}

.portal-body .segmented {
  border-color: #d9eaf7;
  border-radius: 5px;
  background: #eef7fd;
}

.portal-body .segmented button {
  background: transparent;
  color: #565c65;
}

.portal-body .segmented button.active {
  background: #fff;
  color: #005ea8;
  box-shadow: 0 1px 4px rgba(7, 30, 52, 0.1);
}

.portal-body .auth-link-row button,
.portal-body .auth-form-heading button {
  border-color: transparent;
  background: transparent;
  color: #005ea8;
  box-shadow: none;
}

.portal-body .auth-link-row button:hover:not(:disabled),
.portal-body .auth-form-heading button:hover:not(:disabled) {
  border-color: transparent;
  background: transparent;
  color: #1a4480;
  text-decoration: underline;
}

.portal-body .panel {
  border-color: #dfe1e2;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(7, 30, 52, 0.08);
}

.portal-body .dashboard {
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.portal-body .status-rail {
  top: 98px;
  gap: 10px;
}

.portal-body .summary-block {
  border-color: #071e34;
  border-radius: 6px;
  background: #071e34;
  padding: 18px;
}

.portal-body .summary-block p,
.portal-body .summary-block .summary-date,
.portal-body .summary-block .summary-focus span {
  color: #c3d2de;
}

.portal-body .status-steps {
  border-color: #dfe1e2;
  border-radius: 6px;
  padding: 6px;
}

.portal-body .status-step.active,
.portal-body .status-step.active:hover:not(:disabled) {
  background: #e7f2fb;
  color: #005ea8;
}

.portal-body .status-step.active .step-dot {
  border-color: #005ea8;
  background: #005ea8;
}

.portal-body .status-step {
  border-color: transparent;
  background: transparent;
  color: #565c65;
  box-shadow: none;
}

.portal-body .status-step:hover:not(:disabled) {
  border-color: transparent;
  background: #eef7fd;
  color: #1b1b1b;
  box-shadow: none;
}

.portal-body .step-dot {
  border-color: #a9aeb1;
}

.portal-body .notice,
.portal-body .progress-wrap {
  border-color: #005ea8;
  border-left: 4px solid #005ea8;
  border-radius: 0;
  background: #eef7fd;
  color: #17365d;
}

.portal-body .work-panel {
  padding: clamp(20px, 2.4vw, 30px);
}

.portal-body .panel-heading .eyebrow,
.portal-body .form-section-heading .eyebrow {
  color: #1a4480;
}

.portal-body .process-panel.is-current {
  border-color: #8ab4df;
  box-shadow: 0 2px 8px rgba(0, 94, 168, 0.13);
}

.portal-body .process-panel.is-current::before {
  background: #d83933;
}

.portal-body .progress-track {
  border-radius: 0;
  background: #dfe1e2;
}

.portal-body .progress-bar {
  border-radius: 0;
  background: #005ea8;
}

.portal-body .step-tab {
  border-color: #a9aeb1;
  border-radius: 5px;
  background: #fff;
  color: #3d4551;
  box-shadow: none;
}

.portal-body .step-tab.active {
  border-color: #005ea8;
  background: #e7f2fb;
  color: #005ea8;
}

.portal-body .step-tab.active span {
  background: #005ea8;
}

.portal-body .info-cell {
  border-left-color: #005ea8;
  background: #f7f9fa;
}

.signature-request-list {
  display: grid;
  gap: 18px;
}

.signature-request {
  display: grid;
  gap: 14px;
  padding: 18px 0 4px;
  border-top: 1px solid #dfe1e2;
}

.signature-request:first-child {
  border-top: 0;
}

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

.signature-request-heading h3,
.signature-request-heading p,
.signature-document-summary h2,
.signature-document-summary p {
  margin: 0;
}

.signature-request-heading p,
.signature-complete-time,
.signature-instruction p {
  color: #565c65;
  font-size: 14px;
}

.signature-pad-wrap {
  display: grid;
  gap: 12px;
}

.signature-canvas {
  display: block;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 3 / 1;
  border: 2px solid #8ab4df;
  border-radius: 4px;
  background: #fff;
  cursor: crosshair;
  touch-action: none;
}

.signature-canvas:focus-visible {
  outline: 3px solid rgba(0, 94, 168, 0.28);
  outline-offset: 2px;
}

.signature-pad-actions {
  display: flex;
  justify-content: flex-end;
}

.signature-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  color: #3d4551;
  font-size: 14px;
  line-height: 1.5;
}

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

.signature-handoff {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-left: 4px solid #005ea8;
  background: #eef7fd;
}

.signature-handoff img {
  width: 160px;
  height: 160px;
  border: 1px solid #dfe1e2;
  background: #fff;
}

.signature-handoff p {
  margin: 6px 0 12px;
  color: #565c65;
}

.signature-body {
  min-height: 100vh;
  margin: 0;
  border-top: 5px solid #005ea8;
  background: #f7f9fa;
  color: #1b1b1b;
}

.signature-body .signature-canvas {
  aspect-ratio: 16 / 7;
}

.signature-shell {
  width: min(calc(100% - 32px), 760px);
  margin: 0 auto;
  padding: 26px 0 48px;
}

.signature-page-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 1px solid #dfe1e2;
}

.signature-page-header h1 {
  margin: 2px 0 0;
  font-size: clamp(24px, 4vw, 34px);
}

.signature-page-panel {
  display: grid;
  gap: 16px;
  padding: 24px 0;
}

.signature-document-summary {
  display: grid;
  gap: 8px;
}

.signature-document-summary dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 0;
}

.signature-document-summary dl div {
  padding: 12px;
  border-left: 3px solid #005ea8;
  background: #eef7fd;
}

.signature-document-summary dt {
  color: #565c65;
  font-size: 12px;
}

.signature-document-summary dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.signature-instruction {
  padding: 14px;
  border-left: 4px solid #005ea8;
  background: #eef7fd;
}

.signature-instruction p {
  margin: 5px 0 0;
}

.signature-success-mark {
  display: grid;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #2e8540;
  color: #fff;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
}

@media (max-width: 700px) {
  .signature-request-heading,
  .signature-handoff {
    grid-template-columns: 1fr;
  }

  .signature-request-heading {
    display: grid;
  }

  .signature-handoff img {
    width: min(160px, 100%);
    height: auto;
  }

  .signature-document-summary dl {
    grid-template-columns: 1fr;
  }

  .signature-shell {
    width: min(calc(100% - 24px), 760px);
    padding-top: 18px;
  }
}

.portal-body .upload-box,
.portal-body .identity-callout {
  border-color: #8ab4df;
  border-radius: 5px;
  background: #eef7fd;
}

.portal-body .status-badge {
  border-radius: 4px;
  background: #e7f2fb;
  color: #005ea8;
}

.portal-body .list-row:hover,
.portal-body .generated-item:hover {
  background: #eef7fd;
}

@media (max-width: 980px) {
  .portal-body .topbar {
    position: static;
    margin: 0 calc((100vw - min(calc(100% - 32px), 760px)) / -2);
    padding: 13px max(16px, calc((100vw - 760px) / 2));
  }

  .portal-body .app-shell {
    width: min(calc(100% - 32px), 760px);
  }

  .portal-body .auth-layout,
  .portal-body .dashboard {
    grid-template-columns: 1fr;
  }

  .portal-body .auth-copy {
    min-height: auto;
  }

  .portal-body .auth-panel {
    border-top: 1px solid #dfe1e2;
    border-left: 0;
  }
}

@media (max-width: 620px) {
  .portal-body .app-shell {
    width: min(calc(100% - 32px), 760px);
  }

  .portal-body .topbar {
    min-height: 66px;
  }

  .portal-body .topbar h1 {
    font-size: 21px;
  }

  .portal-body .auth-copy,
  .portal-body .auth-panel {
    padding: 26px 22px;
  }

  .portal-body .auth-copy h2 {
    font-size: 29px;
  }
}

/* Final client-login composition: one shared surface, never two floating cards. */
.portal-body #auth-view,
.portal-body #auth-view .auth-copy,
.portal-body #auth-view .auth-panel {
  border-radius: 0;
}

.portal-body #auth-view .auth-panel {
  box-shadow: none;
}

/* Blog CMS: the same restrained administrative surface as the work queues. */
.admin-body .blog-workspace {
  min-height: 420px;
}

.admin-body .dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 0 24px;
  border: 1px solid #dfe1e2;
  background: #dfe1e2;
}

.admin-body .dashboard-metrics > div {
  display: grid;
  gap: 6px;
  padding: 17px;
  background: #fff;
}

.admin-body .dashboard-metrics span,
.admin-body .dashboard-recent small {
  color: #565c65;
  font-size: 13px;
}

.admin-body .dashboard-metrics strong {
  color: #071e34;
  font-size: 28px;
}

.admin-body .dashboard-recent h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.admin-body .dashboard-recent > button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 180px;
  width: 100%;
  border: 0;
  border-top: 1px solid #dfe1e2;
  border-radius: 0;
  background: #fff;
  padding: 13px 4px;
  color: #1b1b1b;
  text-align: left;
}

.admin-body .dashboard-recent > button:hover {
  background: #eef7fd;
}
.admin-body .dashboard-recent > button > span:first-child {
  display: grid;
  gap: 3px;
}
.admin-body .dashboard-recent time {
  color: #565c65;
  font-size: 12px;
  text-align: right;
}

@media (max-width: 760px) {
  .admin-body .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-body .dashboard-recent > button {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }
  .admin-body .dashboard-recent time {
    grid-column: 1 / -1;
    text-align: left;
  }
}

.admin-body .blog-filter-row {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(140px, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.admin-body .blog-table .list-header,
.admin-body .blog-table .list-row {
  grid-template-columns: minmax(220px, 2fr) 82px 100px 90px 150px 150px minmax(
      170px,
      1fr
    );
}

.admin-body .blog-table small {
  display: block;
  margin-top: 3px;
  color: #565c65;
}

.admin-body .blog-editor {
  display: grid;
  gap: 18px;
}

.admin-body .blog-editor > label,
.admin-body .blog-editor label {
  display: grid;
  gap: 7px;
  color: #1b1b1b;
  font-weight: 600;
}

.admin-body .blog-editor label small {
  color: #565c65;
  font-size: 12px;
  font-weight: 400;
}

.admin-body .blog-editor textarea {
  min-height: 82px;
  resize: vertical;
}

.admin-body .blog-cover-preview {
  display: grid;
  place-items: center;
  min-height: 140px;
  max-width: 420px;
  overflow: hidden;
  border: 1px solid #dfe1e2;
  background: #f7f9fa;
  color: #565c65;
}

.admin-body .blog-cover-preview img {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: cover;
}

.admin-body .blog-editor-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.admin-body .blog-markdown {
  min-height: 360px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
}

.admin-body .markdown-preview {
  min-height: 360px;
  overflow-wrap: anywhere;
  border: 1px solid #dfe1e2;
  background: #fff;
  padding: 15px;
  color: #1b1b1b;
  line-height: 1.65;
}

.admin-body .markdown-preview > :first-child {
  margin-top: 0;
}
.admin-body .markdown-preview img {
  max-width: 100%;
  height: auto;
}
.admin-body .markdown-preview pre {
  overflow: auto;
  background: #eef7fd;
  padding: 12px;
}
.admin-body .markdown-preview a {
  color: #005ea8;
}

.admin-body .blog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-body .danger-btn,
.admin-body button.danger-btn {
  border-color: #d83933;
  background: #d83933;
  color: #fff;
}

.admin-body .notice-error {
  border-left-color: #d83933;
  background: #fce8e6;
  color: #5c1d18;
}

.admin-body .empty-state {
  padding: 22px;
  color: #565c65;
}

@media (max-width: 1100px) {
  .admin-body .blog-filter-row,
  .admin-body .blog-editor-columns {
    grid-template-columns: 1fr;
  }
  .admin-body .blog-table {
    overflow-x: auto;
  }
  .admin-body .blog-table .list-header,
  .admin-body .blog-table .list-row {
    min-width: 1040px;
  }
}

/* Blog editor: writing canvas with a compact settings rail. */
.admin-body .blog-workspace {
  max-width: 1440px;
  margin: 0 auto;
}

.admin-body .blog-editor-layout {
  background: #fff;
  border: 1px solid #dfe1e2;
}

.admin-body .blog-editor-toolbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 18px;
  border-bottom: 1px solid #dfe1e2;
  background: #fff;
}

.admin-body .blog-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.admin-body .icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid #8ab4df;
  border-radius: 4px;
  background: #fff;
  color: #005ea8;
  font-size: 20px;
  line-height: 1;
}

.admin-body .blog-more-actions {
  position: relative;
}
.admin-body .blog-more-actions summary {
  list-style: none;
  cursor: pointer;
}
.admin-body .blog-more-actions summary::-webkit-details-marker {
  display: none;
}
.admin-body .blog-more-actions > button {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 4;
  min-width: 92px;
  white-space: nowrap;
}

.admin-body .blog-save-state {
  color: #565c65;
  font-size: 13px;
}

.admin-body .blog-save-state.is-error,
.admin-body .is-error {
  color: #b3241e;
}

.admin-body .blog-editor-notice {
  margin: 14px 18px 0;
}

.admin-body .blog-edit-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
}

.admin-body .blog-content-fields {
  display: grid;
  gap: 22px;
  min-width: 0;
  padding: 30px clamp(22px, 4vw, 58px) 42px;
}

.admin-body .blog-content-fields > label,
.admin-body .blog-settings-sidebar label {
  display: grid;
  gap: 7px;
  color: #1b1b1b;
  font-size: 14px;
  font-weight: 600;
}

.admin-body .blog-title-field input {
  width: 100%;
  border: 0;
  border-bottom: 2px solid #dfe1e2;
  border-radius: 0;
  padding: 8px 0 12px;
  color: #1b1b1b;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.admin-body .blog-title-field input:focus {
  border-bottom-color: #005ea8;
  box-shadow: none;
}

.admin-body .blog-slug-field {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  padding-bottom: 4px;
}

.admin-body .blog-slug-field > span {
  border: 1px solid #dfe1e2;
  border-right: 0;
  border-radius: 4px 0 0 4px;
  background: #f7f9fa;
  padding: 10px 0 10px 11px;
  color: #565c65;
  font-size: 13px;
}

.admin-body .blog-slug-field input {
  min-width: 180px;
  flex: 1;
  border-radius: 0 4px 4px 0;
}

.admin-body .blog-slug-field small {
  flex-basis: 100%;
  margin-top: 4px;
  color: #565c65;
  font-weight: 400;
}

.admin-body .blog-content-fields textarea[name="summary"] {
  min-height: 96px;
}

.admin-body .blog-markdown-field {
  display: grid;
  gap: 8px;
}

.admin-body .blog-markdown-field > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
}

.admin-body .blog-markdown-field small {
  color: #565c65;
  font-size: 12px;
  font-weight: 400;
}

.admin-body #blog-markdown-editor {
  min-height: 520px;
  border: 1px solid #dfe1e2;
}

.admin-body #blog-markdown-editor .cherry {
  min-height: 520px;
  border: 0;
  border-radius: 0;
}

.admin-body .blog-settings-sidebar {
  position: static;
  max-height: 320px;
  overflow-y: auto;
  border-left: 1px solid #dfe1e2;
  background: #f7f9fa;
}

.admin-body .blog-settings-sidebar > summary {
  cursor: pointer;
  padding: 14px 20px;
  font-weight: 600;
  color: #005ea8;
}

.admin-body .blog-edit-main > .blog-markdown-field {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 20px 24px 32px;
  border-top: 1px solid #dfe1e2;
}

.admin-menu-toggle {
  display: none;
}

.admin-body .blog-settings-sidebar > section,
.admin-body .blog-seo-settings {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 20px;
  border-bottom: 1px solid #dfe1e2;
}

.admin-body .blog-settings-sidebar h3,
.admin-body .blog-seo-settings summary {
  margin: 0;
  color: #1b1b1b;
  font-size: 15px;
  font-weight: 700;
}

.admin-body .blog-settings-sidebar dl {
  display: grid;
  gap: 9px;
  margin: 0;
}

.admin-body .blog-settings-sidebar dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.admin-body .blog-settings-sidebar dt,
.admin-body .blog-settings-sidebar dd {
  margin: 0;
  color: #565c65;
  font-size: 13px;
}

.admin-body .blog-settings-sidebar dd {
  color: #1b1b1b;
  text-align: right;
}

.admin-body .blog-cover-preview {
  aspect-ratio: 16 / 9;
  width: 100%;
  min-height: 0;
  max-width: none;
}

.admin-body .blog-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-body .blog-tag-chip {
  min-height: 26px;
  padding: 3px 7px;
  border: 1px solid #8ab4df;
  border-radius: 3px;
  background: #eef7fd;
  color: #1a4480;
  font-size: 12px;
}

.admin-body .blog-seo-settings summary {
  cursor: pointer;
}

.admin-body .blog-seo-settings[open] summary {
  margin-bottom: 3px;
}

.admin-body .blog-seo-settings label > span {
  display: flex;
  justify-content: space-between;
}

.admin-body .seo-preview {
  display: grid;
  gap: 4px;
  border-left: 3px solid #005ea8;
  background: #eef7fd;
  padding: 10px;
}

.admin-body .seo-preview small {
  color: #565c65;
  overflow-wrap: anywhere;
}
.admin-body .seo-preview strong {
  color: #1a4480;
  font-size: 14px;
}
.admin-body .seo-preview p {
  margin: 0;
  color: #565c65;
  font-size: 13px;
}
.admin-body .blog-editor-loading {
  padding: 48px;
  color: #565c65;
}

@media (max-width: 980px) {
  .admin-body .blog-edit-main {
    grid-template-columns: 1fr;
  }
  .admin-body .admin-menu-toggle {
    display: block;
    width: 100%;
    text-align: left;
    border: 1px solid #565c65;
  }
  .admin-body .admin-primary-navigation:not(.is-open) {
    display: none;
  }
  .admin-body .sidebar-brand {
    display: none;
  }
  .admin-body .blog-edit-main > .blog-markdown-field {
    padding: 18px 16px;
  }
  .admin-body .blog-settings-sidebar {
    position: static;
    max-height: none;
    border-top: 1px solid #dfe1e2;
    border-left: 0;
  }
  .admin-body #blog-markdown-editor,
  .admin-body #blog-markdown-editor .cherry {
    min-height: 440px;
  }
}

@media (max-width: 620px) {
  .admin-body .blog-editor-toolbar {
    flex-wrap: wrap;
    padding: 10px 12px;
  }
  .admin-body .blog-toolbar-actions {
    width: 100%;
    margin-left: 0;
  }
  .admin-body .blog-toolbar-actions button:not(.icon-btn) {
    flex: 1;
  }
  .admin-body .blog-content-fields {
    gap: 18px;
    padding: 22px 16px 30px;
  }
  .admin-body .blog-markdown-field > div:first-child {
    display: grid;
  }
  .admin-body .blog-settings-sidebar > section,
  .admin-body .blog-seo-settings {
    padding: 18px 16px;
  }
  .admin-body #blog-markdown-editor,
  .admin-body #blog-markdown-editor .cherry {
    min-height: 400px;
  }
}

/* Admin information architecture and shared workspace states */
.admin-page-description {
  max-width: 680px;
  margin: 3px 0 0;
  color: #565c65;
  font-size: 13px;
  line-height: 1.45;
}

.admin-body .notification-indicator {
  display: inline-grid;
  width: 36px;
  min-height: 36px;
  border: 1px solid #dfe1e2;
  border-radius: 5px;
  background: #fff;
  box-shadow: none;
  padding: 0;
  color: #d83933;
  place-items: center;
}

.admin-body .notification-indicator:hover:not(:disabled) {
  border-color: #8ab4df;
  background: #eef7fd;
  box-shadow: none;
}

.admin-body .notification-indicator svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.sidebar-nav-group-label {
  margin: 13px 11px 3px;
  color: #8fa8bc;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.sidebar-nav-group-label:first-child {
  margin-top: 1px;
}

.admin-body #admin-settings-view {
  gap: 20px;
}

.admin-body #admin-settings-view:not(.hidden) {
  display: grid;
}

.admin-filter-toolbar {
  justify-content: flex-start;
  margin: 18px 0 12px;
}

.admin-body .segmented-filter {
  display: inline-flex;
  gap: 0;
  border: 1px solid #8d9297;
  border-radius: 5px;
  overflow: hidden;
}

.admin-body .segmented-filter button {
  min-height: 34px;
  border: 0;
  border-right: 1px solid #8d9297;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  padding: 6px 13px;
  color: #1a4480;
}

.admin-body .segmented-filter button:last-child {
  border-right: 0;
}

.admin-body .segmented-filter button:hover:not(:disabled) {
  background: #eef7fd;
  box-shadow: none;
}

.admin-body .segmented-filter button.active {
  background: #005ea8;
  color: #fff;
}

.billing-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.billing-list-row {
  grid-template-columns:
    minmax(150px, 1.15fr) minmax(140px, 1fr) minmax(140px, 1fr)
    minmax(105px, 0.75fr) minmax(100px, 0.7fr) minmax(100px, 0.7fr)
    minmax(160px, 1fr);
  min-width: 980px;
}

.report-section {
  margin-top: 22px;
  border-top: 1px solid #dfe1e2;
  padding-top: 20px;
}

.report-section .panel-heading {
  margin-bottom: 10px;
}

.report-status-list {
  border: 1px solid #dfe1e2;
  background: #fff;
}

.report-status-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  border-bottom: 1px solid #dfe1e2;
  padding: 9px 13px;
}

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

.report-status-list strong {
  color: #005ea8;
  font-variant-numeric: tabular-nums;
}

.settings-subheading {
  margin-top: 28px;
  border-top: 1px solid #dfe1e2;
  padding-top: 24px;
}

.notification-workspace-list .notification-item {
  grid-template-columns: minmax(260px, 1.5fr) minmax(180px, 0.8fr) minmax(
      220px,
      1fr
    );
}

@media (max-width: 980px) {
  .sidebar-nav-group-label {
    grid-column: 1 / -1;
    margin-top: 11px;
  }

  .sidebar-nav-group-label:first-child {
    margin-top: 0;
  }

  .notification-workspace-list .notification-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .admin-page-description {
    font-size: 12px;
  }

  .admin-body .notification-indicator {
    flex: 0 0 38px;
  }

  .admin-body .segmented-filter {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-body .segmented-filter button {
    border-right: 1px solid #8d9297;
    padding-inline: 8px;
  }
}
