.admin-header {
  position: relative;
  z-index: 1;
}

.admin-card,
.records-list {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(5, 44, 104, .06);
}

.admin-card input,
.admin-card select {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 3px;
}

.admin-card input:focus,
.admin-card select:focus,
.theme-toggle:focus-visible,
.language-toggle:focus-visible,
.text-button:focus-visible,
.solid-button:focus-visible,
.tab:focus-visible,
.record-actions button:focus-visible {
  outline: 3px solid rgba(24, 197, 242, .35);
  outline-offset: 2px;
}

.solid-button {
  border-radius: 3px;
}

.record-actions button {
  border-radius: 3px;
  background: var(--white);
}

.record-row:last-child {
  border-bottom: 0;
}

[data-theme="dark"] body {
  background: #0b1421;
}

[data-theme="dark"] .admin-header {
  background: #061a35;
  border-bottom: 1px solid #203b5b;
}

[data-theme="dark"] .admin-card,
[data-theme="dark"] .records-list {
  background: #14263a;
  border-color: #2d4966;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .2);
}

[data-theme="dark"] .admin-card input,
[data-theme="dark"] .admin-card select {
  background: #0c1c2f;
  border-color: #42627f;
  color: #e7f2fb;
  color-scheme: dark;
}

[data-theme="dark"] .admin-card input::placeholder {
  color: #8297ac;
}

[data-theme="dark"] .record-row {
  background: #14263a;
  border-color: #2d4966;
}

[data-theme="dark"] .record-actions button {
  background: #0c1c2f;
  border-color: #42627f;
  color: #8ee7f5;
}

[data-theme="dark"] .record-actions .delete-button {
  color: #ff9d86;
}

[data-theme="dark"] .tab.active {
  color: #8ee7f5;
}

[data-theme="dark"] .message {
  color: #8ee7f5;
}

@media (max-width: 760px) {
  .admin-header {
    min-height: 64px;
    padding: 10px 16px;
    gap: 12px;
  }

  .admin-header .brand {
    min-width: 0;
  }

  .admin-header-right {
    flex: 0 0 auto;
    gap: 7px;
  }

  .admin-header-right .theme-toggle,
  .admin-header-right .language-toggle {
    min-height: 34px;
    padding: 7px 8px;
  }

  .admin-shell {
    padding-top: 28px;
  }

  .login-view h1,
  .page-heading h1 {
    font-size: clamp(40px, 11vw, 48px);
    line-height: .98;
  }

  .page-heading {
    margin-bottom: 24px;
  }

  .tabs {
    gap: 22px;
    margin-right: -18px;
    padding-right: 18px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tab {
    flex: 0 0 auto;
    font-size: 20px;
  }

  .admin-layout {
    margin-top: 20px;
  }

  .admin-card {
    padding: 18px;
  }

  .record-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .record-main {
    flex-basis: calc(100% - 14px);
  }

  .record-actions {
    width: 100%;
  }

  .record-actions button {
    min-height: 36px;
    padding: 7px 12px;
  }
}

@media (max-width: 420px) {
  .brand-copy {
    font-size: 17px;
  }

  .brand-copy small {
    font-size: 11px;
  }

  .admin-header-right .theme-toggle {
    font-size: 0;
  }

  .admin-header-right .theme-toggle::before {
    content: "Theme";
    font-size: 11px;
  }

  .admin-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .tabs {
    margin-right: -14px;
    padding-right: 14px;
  }

  .form-heading,
  .list-heading {
    align-items: flex-start;
    gap: 12px;
  }

  .form-heading h2,
  .list-heading h2 {
    font-size: 25px;
  }
}