:root {
  --bg: #050505;
  --bg-soft: #0c0d10;
  --panel: #101010;
  --panel-soft: #131417;
  --line: #232428;
  --line-soft: #1a1b1f;
  --text: #f5f7fb;
  --muted: #8d96a8;
  --blue: #3b82f6;
  --blue-soft: #1d4ed8;
  --orange: #f98b2d;
  --success: #5ea0ff;
  --danger: #f46d7f;
  --radius: 14px;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.34);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #030303 0%, #08090b 100%);
  color: var(--text);
  font-family: "Inter", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

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

code,
pre,
kbd {
  font-family: Consolas, "Courier New", monospace;
}

.admin-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  grid-template-rows: 64px minmax(calc(100vh - 64px), auto);
  min-height: 100vh;
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.admin-header {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 248px minmax(320px, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  background: #070707;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

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

.brand-badge {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), #ffb45f);
  box-shadow: 0 0 0 4px rgba(249, 139, 45, 0.12);
}

.brand-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand-title--compact {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.brand-title strong {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-title span {
  color: var(--muted);
  font-size: 14px;
}

.header-search {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 640px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #0a0a0a;
  min-width: 0;
}

.header-search__icon {
  color: var(--muted);
  font-size: 15px;
}

.header-search input {
  border: 0;
  background: transparent;
  color: var(--muted);
  outline: none;
  min-width: 0;
  width: 100%;
}

.header-search kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-status__metric {
  display: grid;
  gap: 4px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: #0a0a0a;
  min-width: 0;
  max-width: 100%;
}

.header-status__metric span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.header-status__metric strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.header-avatar {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  padding: 18px 0;
  background: #060606;
  border-right: 1px solid var(--line);
  min-width: 0;
}

.sidebar-group {
  padding: 0 14px 18px;
}

.sidebar-group--bottom {
  margin-top: auto;
}

.sidebar-label {
  display: block;
  margin-bottom: 10px;
  color: #62697a;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.sidebar-nav {
  display: grid;
  gap: 3px;
}

.sidebar-link {
  display: block;
  padding: 12px 14px;
  border: 1px solid transparent;
  color: #d7deef;
  font-weight: 600;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: #0c1626;
  border-color: #14243a;
  color: #ffffff;
}

.sidebar-link--button {
  width: 100%;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.sidebar-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #0b0b0c;
}

.sidebar-panel strong {
  font-size: 13px;
}

.sidebar-panel code,
.sidebar-panel p {
  color: var(--muted);
  font-size: 13px;
  word-break: break-word;
}

.admin-main {
  padding: 22px 26px 30px;
  min-width: 0;
}

.page-titlebar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  min-width: 0;
}

.page-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: #7e8aa3;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.page-title {
  margin: 0;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.page-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-wrap: wrap;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #0a0a0a;
  color: #d7deef;
  font-size: 12px;
  font-weight: 600;
}

.status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
}

.flash {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #0d0d10;
}

.flash strong {
  font-size: 11px;
  letter-spacing: 0.1em;
}

.flash-success {
  border-color: rgba(59, 130, 246, 0.24);
}

.flash-error {
  border-color: rgba(244, 109, 127, 0.22);
}

.page-stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.toolbar-card,
.panel-card,
.side-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  min-width: 0;
}

.section-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.section-tabs--subtle {
  margin-top: 14px;
}

.section-tab {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: #0d0d0e;
  color: #d6dcef;
  font-weight: 700;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.section-tab:hover,
.section-tab.active {
  border-color: #2d62d5;
  background: rgba(59, 130, 246, 0.14);
  color: #ffffff;
}

.section-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid rgba(141, 165, 216, 0.24);
  background: rgba(255, 255, 255, 0.04);
  color: #cfdcff;
  font-size: 11px;
  margin-left: 8px;
}

.toolbar-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
}

.toolbar-actions,
.page-tools,
.table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.toolbar-note {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}

.toolbar-note strong {
  color: var(--text);
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: #0d0d0e;
  color: #f5f7fb;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  border-color: #2d62d5;
  background: var(--blue);
}

.btn-outline {
  background: #0d0d0e;
}

.btn-danger {
  border-color: rgba(244, 109, 127, 0.35);
  background: rgba(244, 109, 127, 0.12);
  color: #ffd7de;
}

.btn-small {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

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

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

.stats-row--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats-row--six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.stat-box {
  padding: 18px 16px;
  border: 1px solid var(--line);
  background: #0e0e10;
}

.stat-box span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat-box strong {
  font-size: 34px;
  font-weight: 800;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  min-width: 0;
}

.content-grid--balanced {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
}

.panel-card,
.side-card {
  padding: 16px;
}

.panel-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.sort-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.sort-help {
  color: var(--muted);
  font-size: 13px;
}

.panel-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: #7d8aa4;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.panel-card h2,
.side-card h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.panel-link,
.table-meta {
  color: var(--muted);
  font-size: 12px;
}

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

.action-tile {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #101115 0%, #0d0e11 100%);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.action-tile:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: linear-gradient(180deg, #13151a 0%, #101218 100%);
  transform: translateY(-2px);
}

.action-tile strong {
  font-size: 15px;
}

.action-tile span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.action-tile--button {
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.tips-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: #cfd6e6;
}

.tips-list li {
  line-height: 1.5;
}

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

label {
  display: grid;
  gap: 8px;
  color: #d9e0f0;
  font-size: 14px;
}

.field-group {
  display: grid;
  gap: 10px;
}

.field-label {
  color: var(--muted);
  font-size: 13px;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  background: #0c0d10;
  color: #fff;
  outline: none;
}

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

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(59, 130, 246, 0.5);
}

.check-list {
  display: grid;
  gap: 8px;
}

.check-list--compact {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.check-card {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #0d0e11;
}

.check-card input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--blue);
}

.check-card strong {
  display: block;
  margin-bottom: 4px;
}

.check-card small {
  color: var(--muted);
}

.table-shell {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #6c7790;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: #0d0d0f;
}

.admin-table td {
  color: #f3f5fa;
  font-size: 14px;
}

.admin-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.05);
}

.admin-table--keys th,
.admin-table--keys td {
  text-align: center;
}

.admin-table--keys .key-name-cell {
  text-align: center;
}

.admin-table--keys .editor-form {
  text-align: left;
}

.sort-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  justify-content: center;
}

.sort-link.active {
  color: #dfe9ff;
}

.sort-link__dir {
  color: #8da5d8;
  font-size: 12px;
}

.cell-note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.cell-note--spacer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.cell-note--danger {
  color: #ff9dac;
}

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

.pager-link,
.pager-state {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #0d0d0e;
  color: #d8def0;
  font-size: 13px;
  font-weight: 600;
}

.pager-link:hover {
  border-color: #2d62d5;
  color: #ffffff;
}

.pager-link.is-disabled {
  pointer-events: none;
  opacity: 0.38;
}

.pager-state {
  color: var(--muted);
}

.key-name-cell {
  min-width: 240px;
  overflow-wrap: anywhere;
}

.mini-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  color: #d2d8e8;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mini-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #555d6f;
}

.mini-status--ok {
  border-color: rgba(59, 130, 246, 0.22);
  color: #dbe7ff;
}

.mini-status--ok::before {
  background: var(--blue);
}

.empty-card {
  padding: 20px;
  border: 1px dashed var(--line);
  color: var(--muted);
  background: #0d0d0e;
}

.inline-form {
  margin: 0;
}

[data-bulk-form].is-submitting [data-bulk-submit] {
  opacity: 0.84;
  pointer-events: none;
  position: relative;
  overflow: hidden;
}

[data-bulk-form].is-submitting [data-bulk-submit]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.16) 50%, transparent 100%);
  animation: bulkSweep 1.1s linear infinite;
}

.report-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 5, 10, 0.72);
  backdrop-filter: blur(10px);
  pointer-events: auto;
  z-index: 70;
  animation: reportFade 180ms ease;
}

.universal-modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 7, 14, 0.2);
  backdrop-filter: blur(0px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, backdrop-filter 220ms ease, background 220ms ease;
  z-index: 75;
}

.universal-modal-backdrop.is-visible {
  opacity: 1;
  background: rgba(4, 7, 14, 0.72);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

.universal-modal-dialog {
  width: min(100%, 760px);
  padding: 22px;
  border: 1px solid rgba(59, 130, 246, 0.16);
  background: linear-gradient(180deg, rgba(13, 15, 19, 0.98), rgba(10, 11, 14, 0.98));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.52);
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.universal-modal-backdrop.is-visible .universal-modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.report-dialog {
  width: min(100%, 720px);
  padding: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 14, 17, 0.98), rgba(9, 10, 13, 0.98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
  animation: reportPop 220ms ease;
}

.report-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.report-stat {
  padding: 14px;
  border: 1px solid var(--line);
  background: #0c0d10;
}

.report-stat span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.report-stat strong {
  font-size: 30px;
  font-weight: 800;
}

.report-meta,
.report-block {
  margin-top: 14px;
}

.report-meta {
  color: var(--muted);
  font-size: 13px;
}

.report-block strong {
  display: block;
  margin-bottom: 10px;
}

.report-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-tags span {
  padding: 8px 10px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  background: rgba(59, 130, 246, 0.08);
  color: #eaf2ff;
  font-size: 13px;
}

.report-list {
  margin: 0;
  padding-left: 18px;
  color: #dfe5f5;
}

.report-list li + li {
  margin-top: 8px;
}

.key-edit-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 7, 14, 0.2);
  backdrop-filter: blur(0px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, backdrop-filter 220ms ease, background 220ms ease;
  z-index: 80;
}

.key-edit-backdrop.is-visible {
  opacity: 1;
  background: rgba(4, 7, 14, 0.72);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

.key-edit-dialog {
  width: min(100%, 760px);
  padding: 22px;
  border: 1px solid rgba(59, 130, 246, 0.16);
  background: linear-gradient(180deg, rgba(13, 15, 19, 0.98), rgba(10, 11, 14, 0.98));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.52);
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.key-edit-backdrop.is-visible .key-edit-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.key-edit-form {
  animation: formRise 240ms ease;
}

@keyframes bulkSweep {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

@keyframes reportFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes reportPop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes formRise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toast-stack {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 10px;
  z-index: 40;
}

.toast {
  min-width: 220px;
  max-width: min(92vw, 320px);
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #111216;
  color: #fff;
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}

.login-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background: linear-gradient(180deg, #040404 0%, #090b0f 100%);
}

.login-shell {
  width: min(100%, 1024px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  padding: 20px;
}

.login-showcase,
.login-card {
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.login-showcase h1 {
  margin: 0 0 16px;
  font-size: 52px;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.login-card h2 {
  margin: 0 0 12px;
  font-size: 30px;
}

.lead,
.login-footnote,
.support-copy {
  color: var(--muted);
}

@media (max-width: 1280px) {
  .admin-header {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .header-status {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .content-grid,
  .login-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1200px) {
  .content-grid,
  .login-shell {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 1040px) {
  .admin-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .admin-header {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }

  .admin-sidebar {
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-main {
    padding: 16px;
  }

  .page-titlebar,
  .toolbar-card,
  .sort-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 820px) {
  .admin-main {
    padding: 14px;
  }

  .panel-card,
  .side-card {
    padding: 14px;
  }

  .page-tools,
  .toolbar-actions,
  .table-actions {
    width: 100%;
  }

  .page-tools .btn,
  .toolbar-actions .btn,
  .table-actions .btn,
  .table-actions a.btn {
    width: 100%;
  }

  .admin-table th,
  .admin-table td {
    padding: 12px 10px;
    font-size: 13px;
  }

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

  .key-name-cell {
    min-width: 180px;
  }
}

@media (max-width: 640px) {
  .stats-row,
  .report-stats {
    grid-template-columns: 1fr;
  }

  .admin-header {
    padding: 12px;
  }

  .header-search {
    max-width: 100%;
  }

  .header-search kbd {
    display: none;
  }

  .brand-title {
    flex-wrap: wrap;
  }

  .brand-title strong {
    font-size: 22px;
  }

  .page-title {
    font-size: 28px;
  }

  .section-tab {
    width: 100%;
    justify-content: space-between;
  }

  .btn {
    width: 100%;
  }

  .sidebar-link--button {
    text-align: center;
  }

  .login-showcase h1 {
    font-size: 36px;
  }

  .report-dialog {
    padding: 16px;
  }

  .universal-modal-dialog,
  .key-edit-dialog {
    padding: 16px;
  }

  .toast-stack {
    left: 12px;
    right: 12px;
  }

  .toast {
    min-width: 0;
    max-width: 100%;
  }
}
