/* 中文产品界面：保留 STYLE.md 的扁平暖白基调，移除终端模拟语言。 */
:root {
  color-scheme: light;
  --canvas: #fdfcfc;
  --ink: #201d1d;
  --ink-deep: #0f0000;
  --charcoal: #302c2c;
  --body: #424245;
  --mute: #646262;
  --stone: #6e6e73;
  --ash: #9a9898;
  --surface-soft: #f8f7f7;
  --surface-card: #f1eeee;
  --hairline: rgba(15, 0, 0, 0.12);
  --hairline-strong: #646262;
  --danger: #ff3b30;
  --danger-hover: #d70015;
  --warning: #ff9f0a;
  --success: #30d158;
  --sans:
    "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC",
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:
    "JetBrains Mono Variable", "IBM Plex Mono", "Sarasa Mono SC",
    "Noto Sans Mono CJK SC", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  --pico-font-family-sans-serif: var(--sans);
  --pico-font-family-monospace: var(--mono);
  --pico-font-size: 100%;
  --pico-line-height: 1.5;
  --pico-border-radius: 4px;
  --pico-primary: var(--ink);
  --pico-primary-background: var(--ink);
  --pico-primary-border: var(--ink);
  --pico-primary-hover: var(--ink-deep);
  --pico-primary-hover-background: var(--ink-deep);
  --pico-primary-hover-border: var(--ink-deep);
  --pico-primary-focus: transparent;
  --pico-form-element-background-color: var(--surface-soft);
  --pico-form-element-border-color: var(--hairline);
  --pico-form-element-focus-color: transparent;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  box-shadow: none !important;
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--sans);
  font-style: normal;
}

body > header,
body > main,
body > footer {
  padding-right: 0;
  padding-left: 0;
}

main {
  flex: 1 0 auto;
  margin: 0;
}

article,
section,
form,
fieldset,
input,
select,
button {
  margin-bottom: 0;
}

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

h1,
h2,
h3,
strong {
  color: var(--ink);
}

h1,
h2,
h3 {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.5;
}

a {
  color: var(--ink);
}

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

.hidden {
  display: none !important;
}

/* Navigation */

.primary-nav {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--hairline);
}

.brand {
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Controls */

.button,
button.button {
  display: inline-flex;
  width: auto;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  margin: 0;
  background: var(--ink);
  color: var(--canvas);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 2;
  padding: 4px 20px;
  text-decoration: none;
}

.button:hover,
button.button:hover {
  border-color: var(--ink-deep);
  background: var(--ink-deep);
  color: var(--canvas);
}

.button.secondary,
button.button.secondary {
  border-color: var(--hairline-strong);
  background: var(--canvas);
  color: var(--ink);
}

.button.secondary:hover,
button.button.secondary:hover {
  border-color: var(--ink);
  background: var(--surface-soft);
  color: var(--ink);
}

.button.danger,
button.button.danger {
  border-color: var(--danger);
  background: var(--canvas);
  color: var(--danger);
}

.button.danger:hover,
button.button.danger:hover {
  border-color: var(--danger-hover);
  background: var(--danger-hover);
  color: var(--canvas);
}

.button.small,
button.button.small {
  min-height: 36px;
  padding: 2px 12px;
  font-size: 13px;
}

button:disabled,
input:disabled {
  border-color: var(--hairline);
  background: var(--surface-card);
  color: var(--ash);
  cursor: not-allowed;
  opacity: 1;
}

.input,
.select,
input.input,
select.select,
input[type="text"],
input[type="password"],
input[type="search"] {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  margin: 0;
  background: var(--surface-soft);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  padding: 8px 12px;
}

.input:focus,
.select:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="search"]:focus {
  border-color: var(--ink);
  background: var(--canvas);
  outline: 0;
}

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

.field label,
.field-label {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

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

.form-hint,
.search-help,
small {
  color: var(--mute);
  font-size: 13px;
  line-height: 1.7;
}

.form-hint,
.search-help {
  margin: 8px 0 0;
}

.message {
  display: none;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--body);
  font-size: 13px;
  line-height: 1.6;
  padding: 8px 12px;
}

.message.show {
  display: block;
}

.message.error {
  border-color: var(--danger);
  color: var(--danger-hover);
}

.message.success {
  border-color: var(--success);
  color: #147b32;
}

.eyebrow,
.page-path {
  margin: 0 0 12px;
  color: var(--mute);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.verified-pill,
.security-ready,
.security-muted,
.status-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid var(--hairline-strong);
  border-radius: 4px;
  background: var(--canvas);
  color: var(--mute);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  padding: 2px 8px;
}

.verified-pill,
.security-ready,
.status-badge.enabled {
  border-color: #1f9e45;
  color: #147b32;
}

.security-muted {
  border-color: var(--ash);
  color: var(--stone);
}

.status-badge.pending {
  border-color: var(--warning);
  color: #9a5f00;
}

/* Home */

.home-main {
  min-height: 0;
}

.hero {
  max-width: 820px;
  padding: clamp(72px, 10vw, 120px) 0 64px;
}

.announcement {
  margin-bottom: 20px;
  color: var(--mute);
  font-size: 14px;
  font-weight: 600;
}

.hero h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 36px;
  color: var(--body);
  font-size: 17px;
  line-height: 1.8;
}

.search-form {
  display: grid;
  max-width: 760px;
  gap: 10px;
}

.search-form > label {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

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

.lookup-controls input {
  min-width: 0;
  min-height: 48px;
  font-family: var(--mono);
  font-size: 15px;
}

.assurance-grid {
  display: grid;
  max-width: 960px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.assurance-grid article {
  display: grid;
  gap: 6px;
  border-right: 1px solid var(--hairline);
  border-radius: 0;
  background: transparent;
  padding: 24px;
}

.assurance-grid article:first-child {
  padding-left: 0;
}

.assurance-grid article:last-child {
  border-right: 0;
}

.assurance-grid strong {
  font-size: 15px;
}

.assurance-grid p {
  margin: 0;
  color: var(--mute);
  font-size: 13px;
  line-height: 1.7;
}

/* Shared page heading */

.page-main {
  padding: 0;
}

.page-heading {
  max-width: 960px;
  padding: 64px 0 40px;
}

.page-heading h1 {
  margin-bottom: 8px;
  font-size: 30px;
}

.page-heading > p:last-child {
  max-width: 760px;
  margin-bottom: 0;
}

/* Public query */

.status-panel {
  display: grid;
  min-height: 260px;
  place-items: center;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  background: var(--canvas);
  padding: 32px 0;
  text-align: left;
}

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

.spinner {
  width: 24px;
  height: 24px;
  margin-bottom: 20px;
  animation: loading-spin 800ms linear infinite;
  border: 2px solid var(--hairline);
  border-top-color: var(--ink);
  border-radius: 9999px;
}

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

.notice-icon {
  margin-bottom: 16px;
  color: var(--danger);
  font-size: 16px;
}

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

.notice-copy {
  max-width: 600px;
  margin-bottom: 24px;
  color: var(--mute);
}

.query-layout {
  display: grid;
  align-items: start;
  gap: 64px;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
}

.employee-card,
.secure-access,
.secure-unavailable,
.private-results {
  border-radius: 0;
  background: var(--canvas);
}

.employee-card {
  border-top: 1px solid var(--hairline-strong);
  padding: 0;
}

.employee-profile {
  display: grid;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--hairline);
  grid-template-columns: 72px minmax(0, 1fr);
  padding: 16px 0;
}

.employee-avatar {
  display: grid;
  overflow: hidden;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid var(--hairline-strong);
  border-radius: 9999px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 22px;
}

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

.employee-profile h2 {
  margin: 8px 0 2px;
  font-size: 20px;
}

.employee-id {
  margin: 0;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.employee-details {
  padding: 32px 0 0;
}

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

.employee-details h2 {
  margin-bottom: 4px;
  font-size: 24px;
}

.employee-details-head p {
  margin-bottom: 0;
  color: var(--mute);
  font-size: 13px;
}

.field-list {
  margin: 0;
}

.field-row {
  display: grid;
  gap: 16px;
  border-top: 1px solid var(--hairline);
  grid-template-columns: minmax(110px, 0.38fr) minmax(0, 0.62fr);
  padding: 12px 0;
}

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

.field-row dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.card-footer {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--hairline);
  margin-top: 8px;
  padding-top: 12px;
  color: var(--mute);
  font-size: 12px;
}

.secure-access,
.secure-unavailable {
  position: sticky;
  top: 16px;
  border-top: 1px solid var(--hairline-strong);
  border-bottom: 1px solid var(--hairline);
  padding: 16px 0;
}

.secure-access-copy h2,
.secure-unavailable h2 {
  margin: 12px 0 8px;
  font-size: 22px;
}

.secure-access-copy > p:last-child,
.secure-unavailable p {
  margin-bottom: 24px;
  color: var(--body);
  font-size: 14px;
}

.secure-access .eyebrow {
  margin-top: 16px;
}

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

.totp-public-form > label {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}

.otp-input,
input.otp-input {
  min-height: 48px;
  font-family: var(--mono);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-align: left;
}

.totp-public-form .button {
  width: 100%;
  margin-top: 8px;
}

.private-results {
  margin-top: 96px;
  border-top: 1px solid var(--hairline-strong);
  padding-top: 24px;
}

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

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

.private-results-head h2 {
  margin: 12px 0 4px;
  font-size: 26px;
}

.private-results-head p {
  margin-bottom: 0;
  color: var(--mute);
  font-size: 13px;
}

.access-timer {
  border: 1px solid var(--ink);
  border-radius: 4px;
  color: var(--ink);
  font-size: 14px;
  padding: 4px 8px;
  white-space: nowrap;
}

.security-code-card {
  display: grid;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 16px 0;
}

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

.security-code-card code {
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.private-field-list {
  margin: 32px 0;
}

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

.payment-public-card,
.payment-admin-card {
  min-width: 0;
  border-top: 1px solid var(--hairline);
  border-radius: 0;
  background: var(--canvas);
  padding: 16px 0 0;
}

.payment-public-card {
  width: 100%;
  max-width: 320px;
  justify-self: center;
}

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

.payment-image-frame,
.payment-preview {
  display: grid;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--hairline);
  border-radius: 0;
  background: var(--surface-soft);
}

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

.payment-image-frame span,
.payment-preview span {
  color: var(--mute);
  font-size: 12px;
}

/* Admin login */

.auth-wrap {
  display: grid;
  min-height: 0;
  place-items: start center;
  padding: clamp(64px, 8vw, 96px) 0;
}

.auth-card {
  width: min(100%, 560px);
  border-top: 1px solid var(--hairline-strong);
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  background: var(--canvas);
  padding: 32px 0;
}

.auth-card h1 {
  margin-bottom: 8px;
  font-size: 30px;
}

.auth-card > p {
  margin-bottom: 32px;
  color: var(--body);
}

.auth-card .button {
  width: 100%;
}

/* Admin dashboard */

.admin-main {
  padding: 64px 0 96px;
}

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

.admin-toolbar h1 {
  margin-bottom: 4px;
  font-size: 30px;
}

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

.toolbar-actions,
.editor-actions,
.totp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-grid {
  display: grid;
  align-items: start;
  gap: 48px;
  grid-template-columns: 280px minmax(0, 1fr);
}

.panel {
  overflow: visible;
  border-top: 1px solid var(--hairline-strong);
  border-radius: 0;
  background: var(--canvas);
}

.panel:first-child {
  position: sticky;
  top: 16px;
}

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

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

.panel-body {
  padding: 16px 0 0;
}

.setup-progress {
  display: grid;
  margin: 0 0 32px;
  padding: 0;
  border-bottom: 1px solid var(--hairline);
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
}

.setup-progress li {
  display: grid;
  gap: 2px;
  border-right: 1px solid var(--hairline);
  padding: 12px;
}

.setup-progress li:first-child {
  padding-left: 0;
}

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

.setup-progress li > span {
  color: var(--mute);
  font-size: 12px;
}

.setup-progress small {
  font-size: 11px;
}

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

.employee-list {
  display: grid;
  max-height: 60vh;
  overflow-y: auto;
}

.employee-list-item {
  display: grid;
  width: 100%;
  min-height: 0;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  gap: 3px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px 0;
  text-align: left;
}

.employee-list-item:hover,
.employee-list-item.active {
  background: var(--surface-soft);
  color: var(--ink);
}

.employee-list-item.active strong,
.employee-list-item.active small {
  padding-left: 12px;
}

.employee-list-item.active {
  border-left: 3px solid var(--ink);
}

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

.employee-list-item small {
  color: var(--mute);
  font-size: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  align-self: center;
  border-radius: 9999px;
  background: var(--ash);
  grid-column: 2;
  grid-row: 1 / span 2;
}

.status-dot.active {
  background: var(--success);
}

.empty-list {
  color: var(--mute);
  font-size: 13px;
  line-height: 1.7;
  padding: 16px 0;
}

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

.config-section {
  display: grid;
  gap: 24px;
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
}

.config-heading {
  display: grid;
  gap: 16px;
  grid-template-columns: 64px minmax(0, 1fr);
}

.config-heading > span {
  color: var(--mute);
  white-space: nowrap;
}

.config-heading h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.config-heading p {
  margin: 0;
  color: var(--mute);
  font-size: 13px;
}

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

.avatar-preview {
  display: grid;
  overflow: hidden;
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--hairline-strong);
  border-radius: 9999px;
  background: var(--surface-soft);
  color: var(--mute);
  font-size: 11px;
  text-align: center;
}

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

.file-control {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

input.file-native {
  position: absolute;
  overflow: hidden;
  width: 1px !important;
  min-width: 0;
  height: 1px !important;
  min-height: 0;
  border: 0;
  margin: -1px;
  opacity: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.file-control label {
  margin: 0;
}

.file-name {
  min-width: 0;
  color: var(--mute);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.file-control.compact {
  display: grid;
  align-items: stretch;
  gap: 6px;
}

.file-control.compact .button {
  width: 100%;
}

.dynamic-fields {
  display: grid;
}

.dynamic-row {
  display: grid;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--hairline);
  grid-template-columns: minmax(120px, 0.38fr) minmax(0, 0.62fr) 56px;
  padding: 8px 0;
}

.icon-button {
  display: grid;
  width: 52px;
  height: 36px;
  min-height: 36px;
  place-items: center;
  border: 1px solid var(--danger);
  border-radius: 4px;
  margin: 0;
  background: var(--canvas);
  color: var(--danger);
  font-family: var(--sans);
  font-size: 12px;
  padding: 0;
}

.editor-actions {
  border-top: 1px solid var(--hairline);
  margin-top: 16px;
  padding-top: 16px;
}

.editor-meta {
  display: none;
  border-radius: 4px;
  background: var(--surface-card);
  color: var(--mute);
  font-size: 12px;
  line-height: 1.7;
  padding: 12px 16px;
  white-space: pre-line;
}

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

.protected-settings {
  display: grid;
  gap: 24px;
  border-top: 1px solid var(--hairline-strong);
  border-radius: 0;
  background: var(--canvas);
  margin-top: 32px;
  padding-top: 16px;
}

.section-heading h3 {
  margin: 0;
  font-size: 16px;
}

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

.section-copy {
  margin: -16px 0 0;
  color: var(--body);
  font-size: 13px;
}

.protected-lock-note {
  margin: -8px 0 0;
  border: 1px solid var(--warning);
  border-radius: 4px;
  color: #8f5a00;
  font-size: 13px;
  line-height: 1.6;
  padding: 8px 12px;
}

.protected-settings.is-locked .totp-actions,
.protected-settings.is-locked .protected-block,
.protected-settings.is-locked #save-private {
  opacity: 0.45;
}

.totp-enrollment {
  display: grid;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  background: var(--surface-soft);
  grid-template-columns: 168px minmax(0, 1fr);
  padding: 16px;
}

.totp-enrollment > img {
  width: 168px;
  height: 168px;
  border: 1px solid var(--hairline);
  border-radius: 0;
  background: white;
}

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

.totp-enrollment p {
  margin-bottom: 8px;
  color: var(--mute);
  font-size: 12px;
}

.totp-enrollment code {
  display: block;
  margin-bottom: 12px;
  border-radius: 4px;
  background: var(--surface-card);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  overflow-wrap: anywhere;
  padding: 8px 12px;
}

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

.totp-confirm .otp-input {
  min-width: 0;
  min-height: 40px;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.verification-card-heading {
  border-top: 1px solid var(--hairline-strong);
  margin-top: 16px;
  padding-top: 16px;
}

.protected-block {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
}

.mono-input {
  font-family: var(--mono);
}

.payment-admin-card {
  display: grid;
  gap: 8px;
}

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

/* Footer */

.footer-section {
  margin-top: 64px;
  border-top: 1px solid var(--hairline);
  color: var(--mute);
  font-size: 14px;
  padding: 32px 0;
}

.footer-links {
  display: grid;
  border-bottom: 1px solid var(--hairline);
  grid-template-columns: repeat(3, 1fr);
}

.footer-links > * {
  border-right: 1px solid var(--hairline);
  padding: 8px 16px;
  text-align: center;
}

.footer-links > *:last-child {
  border-right: 0;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 0;
}

/* Responsive */

@media (max-width: 960px) {
  .query-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .query-layout {
    gap: 48px;
  }

  .secure-access,
  .secure-unavailable,
  .panel:first-child {
    position: static;
  }

  .admin-grid {
    gap: 40px;
  }

  .employee-list {
    max-height: 280px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-links > *:nth-child(2) {
    border-right: 0;
  }

  .footer-links > *:last-child {
    border-top: 1px solid var(--hairline);
    border-right: 1px solid var(--hairline);
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 32px, 1100px);
  }

  .admin-toolbar {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 32px;
  }

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

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

  .payment-public-card:last-child,
  .payment-admin-card:last-child {
    grid-column: 1 / -1;
    width: min(100%, calc(50% - 8px));
    justify-self: center;
  }
}

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

  .primary-nav {
    min-height: 52px;
  }

  .brand {
    font-size: 14px;
  }

  .hero {
    padding: 56px 0 40px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-copy {
    font-size: 15px;
  }

  .lookup-controls {
    grid-template-columns: 1fr;
  }

  .lookup-controls .button {
    width: 100%;
  }

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

  .assurance-grid article,
  .assurance-grid article:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
    padding: 18px 0;
  }

  .assurance-grid article:last-child {
    border-bottom: 0;
  }

  .page-heading {
    padding: 40px 0 28px;
  }

  .page-heading h1,
  .admin-toolbar h1 {
    font-size: 28px;
  }

  .query-layout {
    gap: 40px;
  }

  .employee-details-head,
  .private-results-head,
  .section-heading,
  .admin-toolbar,
  .footer-meta {
    align-items: stretch;
    flex-direction: column;
  }

  .employee-details-head {
    display: flex;
  }

  .employee-details-head .button {
    width: 100%;
  }

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

  .security-code-card {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

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

  .payment-public-card:last-child {
    grid-column: auto;
    width: 100%;
  }

  .private-results {
    margin-top: 48px;
  }

  .admin-main {
    padding: 48px 0;
  }

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

  .setup-progress li,
  .setup-progress li:first-child {
    border-right: 1px solid var(--hairline);
    border-bottom: 0;
    padding: 8px;
  }

  .setup-progress li:first-child {
    padding-left: 0;
  }

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

  .setup-progress small {
    display: none;
  }

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

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

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

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

  .config-heading {
    gap: 4px;
    grid-template-columns: 1fr;
  }

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

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

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

  .totp-confirm {
    flex-direction: column;
  }

  .totp-confirm .button,
  .editor-actions .button {
    width: 100%;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-links > *,
  .footer-links > *:nth-child(2),
  .footer-links > *:last-child {
    border-top: 0;
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
    text-align: left;
  }
}

@media (max-width: 420px) {
  .primary-nav {
    gap: 8px;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-actions .button {
    min-height: 34px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .hero h1,
  .page-heading h1,
  .admin-toolbar h1 {
    font-size: 28px;
  }

  .employee-profile {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .employee-avatar {
    width: 60px;
    height: 60px;
  }

  .toolbar-actions,
  .editor-actions {
    flex-direction: column;
  }

  .toolbar-actions .button,
  .editor-actions .button {
    width: 100%;
  }
}
