:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  background: #f5f7fb;
  color: #1d2433;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
}

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

button {
  cursor: pointer;
}

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar {
  background: #ffffff;
  color: #172033;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  border-right: 1px solid #e2e8f0;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #1769e0;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
}

.brand h1,
.brand p,
.topbar h2,
.topbar p {
  margin: 0;
}

.brand h1 {
  font-size: 18px;
}

.brand p,
.topbar p,
.hint {
  color: #7e8ba0;
  font-size: 13px;
}

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

.nav-item {
  display: block;
  border: 0;
  border-radius: 8px;
  padding: 12px;
  background: transparent;
  color: #556276;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.nav-item.active {
  background: #edf5ff;
  color: #1769e0;
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #66758a;
  font-size: 13px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #e0a92f;
}

.dot.ok {
  background: #2eb67d;
}

.view {
  display: none;
  padding: 28px;
}

.view.active {
  display: block;
}

.topbar {
  min-height: 58px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.topbar h2 {
  font-size: 24px;
  color: #121826;
}

.panel,
.workspace {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 8px 28px rgba(18, 24, 38, 0.06);
}

.narrow {
  max-width: 620px;
}

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

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #4a5568;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #ccd6e4;
  border-radius: 6px;
  background: #fff;
  color: #1d2433;
  padding: 10px 11px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #2f80ed;
  box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.14);
}

.primary,
.secondary,
.ghost {
  min-height: 40px;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 0 14px;
}

.primary {
  background: #2f80ed;
  color: #fff;
}

.secondary {
  background: #2eb67d;
  color: #092016;
}

.ghost {
  background: #fff;
  border-color: #ccd6e4;
  color: #1d2433;
}

.hidden {
  display: none !important;
}

.result {
  margin-top: 16px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  padding: 16px;
  min-height: 92px;
  background: #f8fafc;
}

.result .code {
  display: block;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0;
  color: #111827;
}

.result.empty {
  color: #7e8ba0;
}

.toolbar {
  margin-bottom: 14px;
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 16px;
  background: #f8fbff;
}

.stat-card span {
  display: block;
  color: #64748b;
  font-size: 12px;
}

.stat-card strong {
  display: block;
  margin-top: 6px;
  color: #14213d;
  font-size: 24px;
  line-height: 1;
}

.filters {
  display: grid;
  grid-template-columns: minmax(190px, 1.4fr) minmax(120px, 0.7fr) minmax(150px, 0.9fr) minmax(110px, 0.6fr) minmax(140px, 0.8fr) minmax(140px, 0.8fr) auto auto;
  gap: 12px;
  align-items: end;
}

.import-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
  margin: 18px 0;
}

.import-box textarea {
  min-height: 74px;
  resize: vertical;
}

.export-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  margin: 0 0 14px;
  background: #f8fbff;
}

.batch-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.batch-tools input {
  width: 180px;
}

.check-all {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  color: #334155;
}

.check-all input,
.mailbox-check {
  width: 16px;
  height: 16px;
  padding: 0;
}

.select-col {
  width: 42px;
  text-align: center;
}

.table-wrap {
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.settings-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr);
  gap: 16px;
  align-items: end;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin: 18px 0;
  background: #f8fbff;
}

.settings-workspace {
  display: grid;
  gap: 20px;
  max-width: 820px;
}

.settings-panel h3,
.settings-panel p {
  margin: 0;
}

.settings-panel h3 {
  font-size: 17px;
  color: #14213d;
}

.settings-panel p {
  margin-top: 6px;
}

.password-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.api-docs {
  display: grid;
  gap: 16px;
  max-width: 960px;
}

.logs-workspace {
  display: grid;
  gap: 16px;
}

.logs-toolbar {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(160px, 0.35fr) auto minmax(180px, 1fr);
  gap: 12px;
  align-items: end;
}

.logs-viewer {
  min-height: 520px;
  max-height: calc(100vh - 250px);
  overflow: auto;
  margin: 0;
  border: 1px solid #dbe6f5;
  border-radius: 8px;
  padding: 16px;
  background: #f8fbff;
  color: #172033;
  font-family: Consolas, "Segoe UI", "Microsoft YaHei", monospace;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.doc-block {
  display: grid;
  gap: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  background: #f8fbff;
}

.doc-block h3,
.doc-block p {
  margin: 0;
}

.doc-block h3 {
  color: #14213d;
  font-size: 16px;
}

.doc-block pre {
  margin: 0;
  overflow: auto;
  border: 1px solid #dbe6f5;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
  color: #172033;
}

.doc-block code {
  font-family: Consolas, "Segoe UI", "Microsoft YaHei", monospace;
  font-size: 13px;
  line-height: 1.6;
}

.form-message {
  min-height: 20px;
  color: #64748b;
  font-size: 13px;
}

.form-message.success {
  color: #146c43;
}

.form-message.error {
  color: #a32222;
}

.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.22);
}

.detail-panel {
  width: min(980px, 100%);
  max-height: min(780px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid #d4e0ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(23, 64, 114, 0.2);
}

.detail-panel header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 24px;
  border-bottom: 1px solid #e2e8f0;
}

.detail-panel h3,
.detail-kicker {
  margin: 0;
}

.detail-kicker {
  color: #1769e0;
  font-size: 11px;
  font-weight: 800;
}

.detail-panel h3 {
  margin-top: 6px;
  color: #14213d;
  font-size: 22px;
  overflow-wrap: anywhere;
}

.detail-body {
  padding: 22px 24px 26px;
}

.detail-meta-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(120px, 0.45fr) auto auto minmax(160px, 1fr);
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
  border: 1px solid #dbe6f5;
  border-radius: 8px;
  padding: 14px;
  background: #f8fbff;
}

.detail-meta-form .wide {
  grid-column: span 2;
}

.detail-meta-form textarea {
  min-height: 42px;
  resize: vertical;
}

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

.detail-grid > div {
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.detail-grid > div.wide {
  grid-column: 1 / -1;
}

.detail-grid dt {
  margin-bottom: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.detail-grid dd {
  margin: 0;
  color: #172033;
  font-family: Consolas, "Segoe UI", "Microsoft YaHei", monospace;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1180px;
  background: #fff;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf2f7;
  text-align: left;
  font-size: 13px;
  vertical-align: top;
}

th {
  background: #f8fafc;
  color: #4a5568;
  font-weight: 700;
}

.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  background: #edf2f7;
  color: #364153;
  font-size: 12px;
}

.status.active {
  background: #dff8ea;
  color: #146c43;
}

.status.enabled {
  background: #e8f3ff;
  color: #1769e0;
}

.status.disabled {
  background: #f1f5f9;
  color: #64748b;
}

.status.token_error,
.status.mail_error {
  background: #ffe7e7;
  color: #a32222;
}

.muted {
  color: #7e8ba0;
}

.pager {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .app {
    grid-template-columns: 1fr;
  }

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

  .sidebar {
    min-height: auto;
    padding: 16px;
  }

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

  .view {
    padding: 18px;
  }

  .filters,
  .import-box,
  .settings-panel,
  .password-form,
  .logs-toolbar,
  .detail-meta-form,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-meta-form .wide {
    grid-column: auto;
  }
}

/* Standalone public verification page and login page. */
.user-shell {
  --ink: #172033;
  --muted: #64748b;
  --line: #d7e3f4;
  --panel: #ffffff;
  --signal: #1769e0;
  --cyan: #0f8f83;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 18%, rgba(34, 197, 94, 0.09), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(37, 99, 235, 0.10), transparent 24%),
    linear-gradient(180deg, #f6f9fd 0%, #eef4fa 100%);
  color: var(--ink);
  position: relative;
  display: grid;
  grid-template-rows: 72px minmax(0, 1fr) 48px;
}

.user-header,
.user-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-color: rgba(148, 163, 184, 0.34);
}

.user-header {
  height: 72px;
  width: 100%;
  padding: 0 max(32px, calc((100% - 1440px) / 2));
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-sizing: border-box;
}

.user-footer {
  min-height: 48px;
  width: 100%;
  padding: 0 max(32px, calc((100% - 1440px) / 2));
  border-top: 1px solid var(--line);
  box-sizing: border-box;
}

.user-main {
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
}

.user-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #14213d;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.user-brand-mark {
  display: inline-flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
  width: 34px;
  height: 34px;
  padding: 6px;
  border-color: #1769e0;
  background: #1769e0;
  border-radius: 8px;
}

.user-brand-mark span {
  width: 4px;
  background: #fff;
}

.user-brand-mark span:nth-child(1) { height: 8px; }
.user-brand-mark span:nth-child(2) { height: 15px; }
.user-brand-mark span:nth-child(3) { height: 6px; }

.user-status,
.user-meta,
.user-footer {
  color: #64748b;
  font-size: 12px;
  letter-spacing: 0;
}

.user-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.user-status-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 999px;
  background: #f59e0b;
}

.user-status-dot.ok {
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

.user-main {
  min-height: 0;
  padding: 26px 0 28px;
  display: grid;
}

.console-kicker,
.user-result-label {
  display: block;
  color: #1769e0;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.console-kicker {
  color: #0f8f83;
}

.console-subtitle {
  max-width: 620px;
  margin: 14px 0 0;
  color: #475569;
  font-size: 16px;
  line-height: 1.7;
}

.console-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.console-contact a,
.console-contact span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid #d8e4f2;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #334155;
  padding: 0 13px;
  font-size: 13px;
  text-decoration: none;
}

.console-contact a {
  color: #1769e0;
}

.console-contact a:hover {
  border-color: rgba(23, 105, 224, 0.38);
  background: #ffffff;
}

.user-meta span::before {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  background: #0f8f83;
  border-radius: 999px;
}

.user-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.user-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  border: 1px solid #d8e4f2;
  border-radius: 999px;
  background: #f8fbff;
  padding: 0 12px;
  color: #475569;
}

.access-console {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  padding: 0;
}

.access-console::before,
.access-console::after {
  display: none;
}

.console-heading {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-start;
  padding: 0 4px 22px;
}

.console-heading h1 {
  margin: 0;
  color: #14213d;
  font-size: clamp(34px, 3.4vw, 50px);
  line-height: 1.16;
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(680px, 1.22fr) minmax(420px, 0.78fr);
  gap: 24px;
  align-items: stretch;
  min-height: 0;
}

.user-form {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  border: 1px solid rgba(188, 204, 226, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 28px;
  box-shadow: 0 18px 42px rgba(23, 64, 114, 0.10);
  min-height: 0;
}

.form-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.panel-index {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #e9f2ff;
  color: #1769e0;
  font-size: 12px;
  font-weight: 800;
}

.form-heading h2 {
  margin: 0 0 6px;
  color: #14213d;
  font-size: 24px;
  line-height: 1.25;
}

.form-heading p {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
}

.user-form label {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  color: #334155;
  font-size: 14px;
  gap: 12px;
  min-height: 0;
}

.user-form input,
.user-form textarea {
  border: 1px solid #c8d6ea;
  border-radius: 8px;
  background: #fcfdff;
  color: #172033;
  padding: 22px 24px;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.02);
}

.user-form textarea {
  min-height: 460px;
  height: 100%;
  resize: vertical;
  line-height: 1.7;
  font-size: 15px;
}

.user-form input::placeholder,
.user-form textarea::placeholder {
  color: #94a3b8;
}

.user-form input:focus,
.user-form textarea:focus {
  border-color: #1769e0;
  box-shadow: 0 0 0 4px rgba(23, 105, 224, 0.12);
}

.user-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  border: 1px solid #1769e0;
  border-radius: 8px;
  background: linear-gradient(135deg, #1769e0, #0f57c4);
  color: #fff;
  padding: 0 28px;
  box-shadow: 0 16px 30px rgba(23, 105, 224, 0.22);
  font-size: 15px;
  font-weight: 800;
}

.user-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(23, 105, 224, 0.28);
}

.user-result {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  align-content: stretch;
  min-height: 0;
  margin: 0;
  border: 1px solid rgba(188, 204, 226, 0.95);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.76), rgba(255, 255, 255, 0.96)),
    #ffffff;
  padding: 28px;
  gap: 14px;
  overflow: auto;
  box-shadow: 0 18px 42px rgba(23, 64, 114, 0.08);
}

.user-result.empty {
  align-content: start;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.72), rgba(255, 255, 255, 0.96)),
    #ffffff;
}

.user-result > .panel-index {
  margin-bottom: 4px;
}

.user-result-text {
  color: #475569;
  font-size: 15px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.lookup-summary {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 32px;
  border: 1px solid #dbe6f5;
  border-radius: 999px;
  background: #f8fbff;
  padding: 0 12px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.lookup-results {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  max-height: min(58vh, 680px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.lookup-results::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.lookup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(116px, auto);
  align-items: center;
  gap: 16px;
  border: 1px solid #dbe6f5;
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
  box-shadow: 0 8px 22px rgba(23, 64, 114, 0.06);
}

.lookup-row.has-code {
  border-color: rgba(15, 143, 131, 0.24);
}

.lookup-row strong {
  display: block;
  color: #14213d;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.lookup-row span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.lookup-code-box {
  display: grid;
  justify-items: stretch;
  gap: 7px;
}

.lookup-row b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border-radius: 8px;
  background: #ecfdf7;
  color: #0f8f83;
  padding: 0 20px;
  font-size: 30px;
  letter-spacing: 0;
  white-space: nowrap;
}

.lookup-row .lookup-code-time {
  margin-top: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  white-space: nowrap;
}

.lookup-row.no-code b {
  background: #f1f5f9;
  color: #94a3b8;
}

.admin-login-page {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(120deg, #eef6ff, #ffffff 48%, #f2fbf7),
    #f6f9fd;
  color: #172033;
}

.admin-login-shell {
  width: min(100% - 40px, 520px);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  align-items: center;
}

.admin-login-brand {
  align-self: end;
  margin-bottom: 38px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #14213d;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.admin-login-mark {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-color: #1769e0;
  background: #1769e0;
  color: #fff;
  border-radius: 8px;
}

.admin-login-card {
  border: 1px solid #d4e0ef;
  border-radius: 8px;
  padding: 38px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(23, 64, 114, 0.12);
}

.admin-login-card > p {
  margin: 0 0 8px;
  color: #1769e0;
  font-size: 10px;
  font-weight: 800;
}

.admin-login-card h1 {
  margin: 0 0 28px;
  color: #111827;
  font-size: 27px;
}

.admin-login-form {
  display: grid;
  gap: 18px;
}

.admin-login-form label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 13px;
}

.admin-login-form input {
  background: #ffffff;
  color: #172033;
  border: 1px solid #c8d6ea;
  border-radius: 8px;
}

.admin-login-form input:focus {
  border-color: #1769e0;
  box-shadow: 0 0 0 4px rgba(23, 105, 224, 0.12);
}

.admin-login-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  border: 1px solid #1769e0;
  border-radius: 8px;
  background: #1769e0;
  color: #fff;
}

.admin-login-submit:hover {
  background: #0f57c4;
}

.admin-login-submit b,
.user-submit b {
  font-size: 22px;
  font-weight: 500;
}

.admin-login-message {
  min-height: 20px;
  margin-top: 14px;
  color: #a32222;
  font-size: 12px;
}

.admin-login-footer {
  align-self: start;
  margin-top: 36px;
  color: #64748b;
  font-size: 10px;
}

@media (max-width: 1120px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .user-result {
    min-height: 280px;
  }

  .lookup-results {
    max-height: 520px;
  }
}

@media (max-width: 760px) {
  .user-main {
    width: min(100% - 32px, 620px);
  }

  .user-header,
  .user-footer {
    padding-inline: 16px;
  }

  .user-main {
    padding: 22px 0;
  }

  .access-console {
    padding: 0;
  }

  .console-heading {
    display: grid;
  }

  .user-meta {
    justify-content: flex-start;
  }

  .console-contact a,
  .console-contact span {
    max-width: 100%;
    min-height: 32px;
    overflow-wrap: anywhere;
  }

  .user-form {
    padding: 18px;
  }

  .user-form textarea {
    min-height: 300px;
  }

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

  .lookup-row b {
    justify-content: flex-start;
  }

  .lookup-code-box {
    justify-items: stretch;
  }

  .lookup-row .lookup-code-time {
    text-align: left;
  }

  .lookup-results {
    max-height: 420px;
  }
}
