:root {
  --ink: #12292f;
  --ink-soft: #53676b;
  --paper: #f6f2e9;
  --surface: #fffdf8;
  --line: #d9ded8;
  --teal: #087f77;
  --teal-dark: #075f5a;
  --mint: #dff4eb;
  --amber: #d7852f;
  --danger: #b33b38;
  --shadow: 0 24px 70px rgba(31, 61, 61, 0.12);
  --radius: 24px;
  color: var(--ink);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(65, 170, 148, 0.13), transparent 31rem),
    radial-gradient(circle at 92% 90%, rgba(216, 133, 47, 0.1), transparent 29rem),
    var(--paper);
}

button,
input,
select {
  font: inherit;
}

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

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(8, 127, 119, 0.25);
  outline-offset: 3px;
}

.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(18, 41, 47, 0.18);
}

.header-link {
  color: var(--ink-soft);
  font-size: 14px;
  text-decoration: none;
}

.header-link:hover {
  color: var(--teal-dark);
}

.hero {
  display: grid;
  min-height: calc(100vh - 176px);
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: clamp(48px, 8vw, 108px);
  padding: 64px 0 92px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 25px;
  height: 2px;
  background: var(--teal);
  content: "";
}

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

.hero h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 38px;
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.8;
}

.search-form {
  display: flex;
  width: min(100%, 650px);
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(18, 41, 47, 0.12);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 18px 50px rgba(31, 61, 61, 0.1);
  backdrop-filter: blur(12px);
}

.search-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 13px 16px;
}

.search-form input::placeholder {
  color: #8b9998;
}

.search-form input:focus {
  outline: 0;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  cursor: pointer;
  font-weight: 750;
  padding: 12px 22px;
  text-decoration: none;
  transition:
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.button:hover {
  background: var(--teal-dark);
  box-shadow: 0 10px 24px rgba(7, 95, 90, 0.18);
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

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

.button.secondary:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.button.danger {
  background: #fff4f1;
  color: var(--danger);
}

.button.small {
  min-height: 38px;
  padding: 8px 13px;
  font-size: 13px;
}

.search-help,
.form-hint {
  margin: 12px 0 0 4px;
  color: #71817f;
  font-size: 13px;
}

.hero-visual {
  position: relative;
  padding: 26px;
}

.hero-visual::before {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(8, 127, 119, 0.2);
  border-radius: 48% 52% 44% 56% / 55% 43% 57% 45%;
  content: "";
  transform: rotate(7deg);
}

.sample-card {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  border: 1px solid rgba(18, 41, 47, 0.1);
  border-radius: 36px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.sample-card-top {
  height: 138px;
  background:
    linear-gradient(135deg, rgba(8, 127, 119, 0.95), rgba(6, 81, 77, 0.98)),
    var(--teal);
}

.sample-card-body {
  padding: 0 40px 40px;
}

.sample-avatar {
  display: grid;
  width: 116px;
  height: 116px;
  margin: -58px 0 24px;
  place-items: center;
  border: 7px solid var(--surface);
  border-radius: 32px;
  background: #d8b28a;
  color: white;
  font-family: Georgia, serif;
  font-size: 38px;
  box-shadow: 0 10px 30px rgba(18, 41, 47, 0.16);
}

.verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 11px;
}

.verified-pill::before {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  content: "✓";
  font-size: 11px;
}

.sample-card h2 {
  margin: 15px 0 5px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.sample-role {
  margin-bottom: 27px;
  color: var(--ink-soft);
}

.sample-detail {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
  padding: 16px 0 0;
}

.sample-detail strong {
  color: var(--ink);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0 0 64px;
}

.trust-item {
  border-top: 1px solid rgba(18, 41, 47, 0.16);
  padding: 20px 0;
}

.trust-item strong {
  display: block;
  margin-bottom: 8px;
}

.trust-item span {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.page-main {
  padding: 46px 0 90px;
}

.page-intro {
  max-width: 700px;
  margin-bottom: 34px;
}

.page-intro h1 {
  margin-bottom: 12px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 600;
  letter-spacing: -0.055em;
}

.page-intro p {
  color: var(--ink-soft);
  line-height: 1.75;
}

.status-panel {
  display: grid;
  min-height: 420px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.76);
  padding: 36px;
  text-align: center;
}

.status-panel.compact {
  min-height: 260px;
}

.spinner {
  width: 38px;
  height: 38px;
  margin: 0 auto 18px;
  animation: spin 800ms linear infinite;
  border: 3px solid rgba(8, 127, 119, 0.16);
  border-top-color: var(--teal);
  border-radius: 50%;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.notice-icon {
  display: grid;
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 18px;
  background: #fff0dc;
  color: var(--amber);
  font-size: 28px;
}

.notice-title {
  margin-bottom: 8px;
  font-size: 22px;
}

.notice-copy {
  max-width: 480px;
  margin: 0 auto 24px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.employee-card {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(18, 41, 47, 0.12);
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--shadow);
  grid-template-columns: minmax(300px, 0.68fr) minmax(0, 1.32fr);
}

.employee-profile {
  display: flex;
  min-height: 570px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(160deg, rgba(6, 91, 85, 0.96), rgba(18, 41, 47, 0.98)),
    var(--ink);
  color: white;
  padding: 56px 36px;
  text-align: center;
}

.employee-avatar {
  display: grid;
  overflow: hidden;
  width: clamp(150px, 18vw, 206px);
  height: clamp(150px, 18vw, 206px);
  margin-bottom: 28px;
  place-items: center;
  border: 6px solid rgba(255, 255, 255, 0.88);
  border-radius: 52px;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  font-family: Georgia, serif;
  font-size: 58px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.employee-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.employee-profile h2 {
  margin: 20px 0 6px;
  font-size: 32px;
  letter-spacing: -0.04em;
}

.employee-id {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.employee-details {
  padding: clamp(40px, 7vw, 76px);
}

.employee-details-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.employee-details h1 {
  margin-bottom: 7px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 600;
  letter-spacing: -0.055em;
}

.employee-details-head p {
  color: var(--ink-soft);
}

.field-list {
  margin: 0;
}

.field-row {
  display: grid;
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(100px, 0.36fr) minmax(0, 0.64fr);
  padding: 19px 0;
}

.field-row dt {
  color: var(--ink-soft);
}

.field-row dd {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  margin-top: 22px;
  padding-top: 22px;
}

.auth-wrap {
  display: grid;
  min-height: calc(100vh - 178px);
  place-items: center;
  padding: 46px 0 90px;
}

.auth-card {
  width: min(100%, 460px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(28px, 6vw, 48px);
}

.auth-card h1 {
  margin-bottom: 10px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 38px;
  letter-spacing: -0.045em;
}

.auth-card > p {
  margin-bottom: 30px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.form-stack {
  display: grid;
  gap: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
.field-label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.input,
.select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  padding: 11px 13px;
}

.input:focus,
.select:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(8, 127, 119, 0.12);
}

.message {
  display: none;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
  padding: 12px 14px;
}

.message.show {
  display: block;
}

.message.error {
  background: #fff0ed;
  color: #8f2e2b;
}

.message.success {
  background: var(--mint);
  color: var(--teal-dark);
}

.admin-main {
  padding: 26px 0 90px;
}

.admin-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 30px;
}

.admin-toolbar h1 {
  margin-bottom: 6px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.055em;
}

.admin-toolbar p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-grid {
  display: grid;
  align-items: start;
  gap: 24px;
  grid-template-columns: minmax(300px, 0.82fr) minmax(440px, 1.18fr);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 18px 50px rgba(31, 61, 61, 0.07);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 22px 24px;
}

.panel-head h2 {
  margin: 0;
  font-size: 19px;
}

.panel-body {
  padding: 24px;
}

.list-filter {
  margin-bottom: 16px;
}

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

.employee-list-item {
  display: grid;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  gap: 4px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 15px;
  text-align: left;
}

.employee-list-item:hover,
.employee-list-item.active {
  border-color: var(--teal);
  background: #f5fcf9;
}

.employee-list-item strong,
.employee-list-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-list-item small {
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.status-dot {
  align-self: center;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9ca7a5;
  grid-column: 2;
  grid-row: 1 / span 2;
}

.status-dot.active {
  background: #23a37a;
  box-shadow: 0 0 0 4px rgba(35, 163, 122, 0.12);
}

.empty-list {
  color: var(--ink-soft);
  line-height: 1.7;
  padding: 28px 10px;
  text-align: center;
}

.load-more {
  width: 100%;
  margin-top: 14px;
}

.avatar-editor {
  display: flex;
  align-items: center;
  gap: 18px;
}

.avatar-preview {
  display: grid;
  overflow: hidden;
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px dashed #a8b5b2;
  border-radius: 24px;
  background: #eff5f2;
  color: var(--ink-soft);
  font-size: 12px;
  text-align: center;
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-input {
  max-width: 100%;
  color: var(--ink-soft);
  font-size: 13px;
}

.dynamic-fields {
  display: grid;
  gap: 10px;
}

.dynamic-row {
  display: grid;
  align-items: center;
  gap: 8px;
  grid-template-columns: minmax(105px, 0.4fr) minmax(0, 0.6fr) 38px;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: #fff0ed;
  color: var(--danger);
  cursor: pointer;
  font-size: 18px;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 22px;
}

.editor-meta {
  display: none;
  border-radius: 12px;
  background: #eff5f2;
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.7;
  padding: 11px 13px;
}

.editor-meta.show {
  display: block;
}

.protected-settings {
  display: grid;
  gap: 22px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 28px;
}

.section-heading,
.private-results-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.section-heading .eyebrow {
  margin-bottom: 9px;
}

.section-heading h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.section-copy {
  margin: -12px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.status-badge {
  border-radius: 999px;
  background: #ecefed;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 11px;
  white-space: nowrap;
}

.status-badge.pending {
  background: #fff0dc;
  color: #9d5b1e;
}

.status-badge.enabled {
  background: var(--mint);
  color: var(--teal-dark);
}

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

.totp-enrollment {
  display: grid;
  align-items: center;
  gap: 22px;
  border: 1px solid #bcd9cf;
  border-radius: 18px;
  background: #f1faf6;
  grid-template-columns: 184px minmax(0, 1fr);
  padding: 20px;
}

.totp-enrollment > img {
  width: 184px;
  height: 184px;
  border: 8px solid white;
  border-radius: 14px;
  background: white;
}

.totp-enrollment strong {
  display: block;
  margin-bottom: 6px;
}

.totp-enrollment p {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.totp-enrollment code {
  display: block;
  margin-bottom: 14px;
  border-radius: 9px;
  background: white;
  color: var(--teal-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
  padding: 9px 10px;
}

.totp-confirm {
  display: flex;
  gap: 8px;
}

.otp-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 21px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.22em;
  text-align: center;
}

.totp-confirm .otp-input {
  min-width: 0;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-align: left;
}

.protected-block {
  display: grid;
  gap: 10px;
  border-top: 1px dashed var(--line);
  padding-top: 20px;
}

.mono-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

.payment-admin-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
  padding: 12px;
}

.payment-admin-card strong {
  font-size: 13px;
}

.payment-admin-card input {
  width: 100%;
  color: var(--ink-soft);
  font-size: 11px;
}

.payment-preview {
  display: grid;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 10px;
  background:
    linear-gradient(45deg, #eff2ef 25%, transparent 25%),
    linear-gradient(-45deg, #eff2ef 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eff2ef 75%),
    linear-gradient(-45deg, transparent 75%, #eff2ef 75%),
    white;
  background-position:
    0 0,
    0 6px,
    6px -6px,
    -6px 0;
  background-size: 12px 12px;
}

.payment-preview span {
  color: var(--ink-soft);
  font-size: 12px;
}

.payment-preview img,
.payment-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.secure-access {
  display: grid;
  align-items: center;
  gap: clamp(28px, 6vw, 70px);
  border: 1px solid rgba(8, 127, 119, 0.2);
  border-radius: 28px;
  background:
    radial-gradient(circle at 8% 10%, rgba(8, 127, 119, 0.08), transparent 22rem),
    var(--surface);
  box-shadow: 0 18px 50px rgba(31, 61, 61, 0.08);
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  margin-top: 28px;
  padding: clamp(28px, 6vw, 54px);
}

.secure-access h2 {
  margin-bottom: 10px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.045em;
}

.secure-access-copy > p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.totp-public-form {
  display: grid;
  gap: 11px;
}

.totp-public-form > label {
  font-size: 13px;
  font-weight: 800;
}

.otp-group {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.private-results {
  border: 1px solid rgba(18, 41, 47, 0.12);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
  margin-top: 28px;
  padding: clamp(28px, 6vw, 58px);
}

.private-results-head {
  margin-bottom: 28px;
}

.private-results-head h2 {
  margin: 14px 0 8px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(32px, 5vw, 50px);
  font-weight: 600;
  letter-spacing: -0.05em;
}

.private-results-head p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.access-timer {
  border-radius: 12px;
  background: var(--ink);
  color: white;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px;
  padding: 10px 13px;
}

.security-code-card {
  display: grid;
  align-items: center;
  gap: 16px;
  border: 1px solid #c6ded5;
  border-radius: 16px;
  background: #eff9f5;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin-bottom: 26px;
  padding: 18px;
}

.security-code-card > span {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
}

.security-code-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.private-field-list {
  margin-bottom: 28px;
}

.payment-public-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  padding: 14px;
  text-align: center;
}

.payment-public-card h3 {
  margin: 13px 0 3px;
  font-size: 15px;
}

.payment-image-frame {
  display: grid;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 13px;
  background: #f1f3f1;
}

.payment-image-frame span {
  color: var(--ink-soft);
  font-size: 13px;
}

.hidden {
  display: none !important;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(18, 41, 47, 0.13);
  color: var(--ink-soft);
  font-size: 13px;
  padding: 28px 0 34px;
}

@media (max-width: 920px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 54px;
  }

  .hero-visual {
    width: min(100%, 560px);
    margin: 0 auto;
  }

  .employee-card,
  .admin-grid,
  .secure-access {
    grid-template-columns: 1fr;
  }

  .employee-profile {
    min-height: 440px;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    min-height: 72px;
  }

  .brand-text {
    display: none;
  }

  .hero {
    gap: 54px;
    padding: 46px 0 68px;
  }

  .hero h1 {
    font-size: clamp(46px, 15vw, 66px);
  }

  .search-form {
    display: grid;
  }

  .hero-visual {
    padding: 9px;
  }

  .sample-card {
    min-height: 460px;
    border-radius: 28px;
  }

  .sample-card-body {
    padding: 0 25px 30px;
  }

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

  .employee-profile {
    min-height: 390px;
    padding: 46px 22px;
  }

  .employee-details {
    padding: 34px 22px;
  }

  .employee-details-head,
  .card-footer,
  .admin-toolbar,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .field-row {
    gap: 6px;
    grid-template-columns: 1fr;
  }

  .admin-toolbar {
    display: flex;
  }

  .toolbar-actions .button {
    flex: 1;
  }

  .panel-body,
  .panel-head {
    padding: 19px;
  }

  .dynamic-row {
    grid-template-columns: 1fr 38px;
  }

  .dynamic-row .field-key {
    grid-column: 1;
  }

  .dynamic-row .field-value {
    grid-column: 1;
  }

  .dynamic-row .icon-button {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .avatar-editor {
    align-items: flex-start;
    flex-direction: column;
  }

  .totp-enrollment {
    grid-template-columns: 1fr;
  }

  .totp-enrollment > img {
    margin: 0 auto;
  }

  .totp-confirm,
  .section-heading,
  .private-results-head {
    align-items: stretch;
    flex-direction: column;
  }

  .totp-confirm {
    display: flex;
  }

  .payment-admin-grid,
  .payment-public-grid {
    grid-template-columns: 1fr;
  }

  .payment-admin-card {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .payment-preview {
    grid-row: 1 / span 3;
  }

  .otp-group,
  .security-code-card {
    grid-template-columns: 1fr;
  }
}

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