:root {
  --text-color: #cfd7e1;
  --success-color: #76b448;
  --danger-color: #e46321;
  --cream-bg-color: #202936;
  --vs-green-color: #d4d947;
  --vs-blue-color: #6b98bf;
  --grey-border-color: rgba(255, 255, 255, 0.12);
  --surface-color: #2b3644;
  --surface-muted: #334152;
  --title-color: #ffffff;
  --panel-radius: 6px;
  --control-radius: 4px;
  --panel-shadow: 0 24px 48px rgba(6, 10, 16, 0.34);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text-color);
  background:
    radial-gradient(circle at top left, rgba(107, 152, 191, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(212, 217, 71, 0.08), transparent 24%),
    linear-gradient(180deg, #2c3642 0, #1f2732 100%),
    var(--cream-bg-color);
}

body[data-theme="light"] {
  --text-color: #5f6772;
  --grey-border-color: rgba(47, 61, 78, 0.12);
  --surface-color: #f5f7fb;
  --surface-muted: #ffffff;
  --title-color: #1f2c3a;
  --panel-shadow: 0 24px 48px rgba(29, 46, 64, 0.12);
  background:
    radial-gradient(circle at top left, rgba(107, 152, 191, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(212, 217, 71, 0.08), transparent 24%),
    linear-gradient(180deg, #eef2f7 0, #dfe5ee 100%);
}

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

.page-shell {
  width: min(1080px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 28px 0 42px;
}

.form-panel {
  position: relative;
  overflow: hidden;
  padding: 0 30px 30px;
  border: 1px solid rgba(29, 46, 64, 0.18);
  border-radius: var(--panel-radius);
  background:
    radial-gradient(circle at top right, rgba(212, 217, 71, 0.09), transparent 26%),
    linear-gradient(135deg, #3f4d5f 0%, #2e3949 58%, #263240 100%);
  box-shadow: 0 18px 40px rgba(29, 46, 64, 0.2);
}

.form-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--vs-blue-color), var(--vs-green-color));
}

.form-header {
  margin: 0 -30px 26px;
  padding: 24px 30px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

.panel-page {
  display: block;
  animation: pageFadeIn 220ms ease;
}

.auth-view {
  display: grid;
  min-height: min(62vh, 560px);
  align-items: center;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 420px);
  gap: 28px;
  align-items: stretch;
}

.auth-intro,
.auth-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background:
    radial-gradient(circle at top right, rgba(212, 217, 71, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(10, 15, 21, 0.18));
  box-shadow: 0 18px 34px rgba(6, 10, 16, 0.2);
}

.auth-intro {
  display: grid;
  align-content: center;
  gap: 0;
}

.auth-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(107, 152, 191, 0.24);
  border-radius: 999px;
  background: rgba(107, 152, 191, 0.12);
  color: #dcecff;
  font-size: 12px;
  font-weight: 600;
}

.auth-card {
  width: 100%;
}

.auth-title {
  margin: 0;
  color: var(--title-color);
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.04;
}

.auth-copy {
  margin: 12px 0 0;
  color: rgba(207, 215, 225, 0.72);
  font-size: 15px;
  line-height: 1.55;
}

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

.auth-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 4px;
}

.auth-card-kicker {
  margin: 0 0 8px;
  color: rgba(207, 215, 225, 0.68);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-card-title {
  margin: 0;
  color: var(--title-color);
  font-size: 28px;
  line-height: 1.08;
}

.auth-lock {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(107, 152, 191, 0.16), rgba(107, 152, 191, 0) 68%),
    rgba(255, 255, 255, 0.04);
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto, 18px 18px;
  box-shadow: inset 0 0 0 1px rgba(107, 152, 191, 0.08);
}

.auth-lock::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(220,236,255,0.94)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 1 1 8 0v3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}

.auth-password-wrap {
  position: relative;
  display: block;
}

.auth-password-wrap input {
  padding-right: 52px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  min-width: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.auth-password-toggle::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(220,236,255,0.94)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6-10-6-10-6Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}

.auth-password-toggle:hover,
.auth-password-toggle.is-active {
  border-color: rgba(107, 152, 191, 0.26);
  background: rgba(107, 152, 191, 0.16);
}

.auth-password-toggle.is-active::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(220,236,255,0.94)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 3 18 18'/%3E%3Cpath d='M10.58 10.58a2 2 0 1 0 2.83 2.83'/%3E%3Cpath d='M9.88 5.09A11 11 0 0 1 12 5c6.5 0 10 7 10 7a17.6 17.6 0 0 1-4.17 4.87'/%3E%3Cpath d='M6.61 6.61C3.64 8.36 2 12 2 12a17.4 17.4 0 0 0 7.38 5.43'/%3E%3C/svg%3E");
}

.auth-status {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(207, 215, 225, 0.82);
  font-size: 14px;
  line-height: 1.45;
}

.auth-status.ok {
  border-color: rgba(118, 180, 72, 0.28);
  background: rgba(118, 180, 72, 0.12);
  color: #e3f7d5;
}

.auth-status.error {
  border-color: rgba(228, 99, 33, 0.28);
  background: rgba(228, 99, 33, 0.12);
  color: #ffd8c5;
}

.auth-submit {
  width: 100%;
}

.brand-lockup {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.header-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.header-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  min-width: 0;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.header-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(207, 215, 225, 0.82);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.header-link:hover {
  border-color: rgba(107, 152, 191, 0.28);
  background: rgba(107, 152, 191, 0.12);
  color: #ffffff;
}

.header-link.is-active {
  border-color: rgba(107, 152, 191, 0.32);
  background: rgba(107, 152, 191, 0.18);
  color: #ffffff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand-logo {
  display: block;
  width: min(320px, 100%);
  height: auto;
}

.brand-logo-stack {
  position: relative;
  width: min(320px, 100%);
}

.brand-logo-stack .brand-logo {
  width: 100%;
}

.brand-logo-light {
  display: none;
}

.brand-logo-dark {
  display: block;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.theme-switcher {
  display: inline-flex;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(14, 19, 26, 0.2);
  gap: 4px;
}

.theme-option {
  width: 36px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-option:hover {
  color: rgba(255, 255, 255, 0.94);
}

.theme-option.is-active {
  background: rgba(107, 152, 191, 0.2);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(107, 152, 191, 0.22);
}

.logout-theme-option:hover {
  background: rgba(255, 255, 255, 0.08);
}

.theme-icon {
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}

.theme-icon-sun {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.92)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2'/%3E%3Cpath d='M12 20v2'/%3E%3Cpath d='m4.93 4.93 1.41 1.41'/%3E%3Cpath d='m17.66 17.66 1.41 1.41'/%3E%3Cpath d='M2 12h2'/%3E%3Cpath d='M20 12h2'/%3E%3Cpath d='m6.34 17.66-1.41 1.41'/%3E%3Cpath d='m19.07 4.93-1.41 1.41'/%3E%3C/svg%3E");
}

.theme-icon-moon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.92)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9z'/%3E%3C/svg%3E");
}

.theme-icon-logout {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.92)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E");
}

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

.eyebrow {
  margin: 0 0 10px;
  color: #d4d947;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.section-head h1 {
  margin: 0;
  color: var(--title-color);
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.02;
}

.section-copy {
  margin: 12px 0 0;
  max-width: 42ch;
  color: rgba(207, 215, 225, 0.74);
  font-size: 15px;
  line-height: 1.55;
}

.status-stack {
  display: grid;
  gap: 10px;
}

.single-status {
  grid-template-columns: 1fr;
}

.status-pill {
  flex-shrink: 0;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.status-pill.ok {
  border-color: var(--vs-blue-color);
  background: rgba(107, 152, 191, 0.18);
  color: #dcecff;
}

#apiStatus.ok {
  border-color: rgba(118, 180, 72, 0.36);
  background: rgba(118, 180, 72, 0.16);
  color: #e3f7d5;
}

.status-pill.error {
  border-color: var(--danger-color);
  background: rgba(228, 99, 33, 0.16);
  color: #ffd8c5;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.summary-card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--control-radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(10, 15, 21, 0.2));
}

.summary-label {
  display: block;
  color: rgba(207, 215, 225, 0.72);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.summary-value {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
}

.users-panel {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.04);
}

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

.users-panel-head h2,
.users-card-head h3 {
  margin: 0;
  color: var(--title-color);
  font-size: 22px;
  line-height: 1.1;
}

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

.user-create-card,
.user-card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--control-radius);
  background: rgba(14, 19, 26, 0.18);
}

.users-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.users-list {
  display: grid;
  gap: 12px;
}

.users-submit {
  width: 100%;
}

.user-card-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.user-card-name {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.1;
}

.user-card-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(212, 217, 71, 0.18);
  border-radius: 999px;
  background: rgba(212, 217, 71, 0.08);
  color: #f3f6bb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.user-card-meta {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  color: rgba(207, 215, 225, 0.72);
  font-size: 13px;
  line-height: 1.4;
}

.user-password-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.user-password-input {
  min-width: 0;
}

.user-password-button {
  min-width: 168px;
}

.user-delete-button {
  min-width: 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  flex: 0 0 40px;
  font-size: 24px;
  line-height: 1;
}

.user-delete-button span {
  transform: translateY(-1px);
}

.user-delete-button:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

.users-empty-state {
  padding: 24px 16px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.03);
}

.mobile-filter-bar {
  display: none;
}

.mobile-search-bar {
  display: none;
}

.mobile-search-field {
  display: grid;
  gap: 8px;
}

.mobile-search-control {
  position: relative;
  display: block;
}

.mobile-search-control input {
  padding-right: 48px;
}

.mobile-search-clear {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  min-width: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.mobile-search-clear:hover {
  background: rgba(107, 152, 191, 0.18);
  color: #ffffff;
}

.filter-panel {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.04);
}

.filter-sheet-head {
  display: none;
}

.filter-sheet-head h2 {
  margin: 0;
  color: var(--title-color);
  font-size: 22px;
  line-height: 1.1;
}

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

.filter-field,
.admin-status-field {
  display: grid;
  gap: 8px;
}

.label-text,
.admin-card-label {
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

input,
select {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--control-radius);
  background: rgba(14, 19, 26, 0.32);
  color: var(--text-color);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

select {
  color-scheme: dark;
}

select option,
select optgroup {
  background: #2b3644;
  color: #ffffff;
}

input::placeholder {
  color: rgba(207, 215, 225, 0.5);
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--vs-blue-color);
  box-shadow: 0 0 0 4px rgba(107, 152, 191, 0.12);
  background: rgba(14, 19, 26, 0.48);
}

.filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

.primary-button,
.secondary-button {
  min-width: 160px;
  padding: 14px 20px;
  border-radius: var(--control-radius);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.primary-button {
  border: 0;
  background: linear-gradient(135deg, var(--vs-blue-color) 0%, #7da5cb 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(94, 131, 191, 0.24);
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(94, 131, 191, 0.28);
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.88);
}

.secondary-button:hover {
  transform: translateY(-1px);
  border-color: rgba(107, 152, 191, 0.28);
  background: rgba(107, 152, 191, 0.12);
}

.filter-close-button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.88);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.filter-overlay {
  display: none;
}

.scroll-top-button {
  position: fixed;
  right: 14px;
  bottom: 18px;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(43, 54, 68, 0.94);
  box-shadow: 0 12px 24px rgba(6, 10, 16, 0.26);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.scroll-top-button:hover {
  background: rgba(107, 152, 191, 0.92);
}

.scroll-top-button[hidden] {
  display: none;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.04);
}

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

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

th {
  color: rgba(207, 215, 225, 0.72);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

tr:last-child td {
  border-bottom: 0;
}

.cell-sub {
  margin-top: 6px;
  color: rgba(207, 215, 225, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  gap: 6px;
  border: 1px solid rgba(107, 152, 191, 0.18);
  border-radius: 999px;
  background: rgba(107, 152, 191, 0.1);
  color: #dcecff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.contact-link:hover {
  background: rgba(107, 152, 191, 0.18);
}

.contact-link-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(207, 215, 225, 0.88);
  min-height: 0;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.contact-link-phone:hover {
  background: transparent;
  color: #ffffff;
}

.contact-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}

.contact-icon-phone {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(220,236,255,0.96)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.9.33 1.79.61 2.65a2 2 0 0 1-.45 2.11L8 9.99a16 16 0 0 0 6 6l1.51-1.27a2 2 0 0 1 2.11-.45c.86.28 1.75.49 2.65.61A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.contact-icon-telegram {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(220,236,255,0.96)'%3E%3Cpath d='M21.5 4.5 18.4 19c-.2 1-1 1.3-1.8.8l-4.1-3-2 2c-.2.2-.4.4-.8.4l.3-4.3 7.9-7.1c.3-.3-.1-.5-.5-.3l-9.8 6.2-4.2-1.3c-.9-.3-.9-.9.2-1.3L19.6 4c.8-.3 1.5.2 1.9.5Z'/%3E%3C/svg%3E");
}

.contact-icon-instagram {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(220,236,255,0.96)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5' ry='5'/%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'/%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'/%3E%3C/svg%3E");
}

.admin-contact-links {
  margin-top: 10px;
}

.admin-cards {
  display: none;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.pagination-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.pagination-button:disabled {
  cursor: default;
  opacity: 0.45;
  transform: none;
}

.pagination-info {
  flex: 0 1 auto;
  min-width: 0;
  color: rgba(207, 215, 225, 0.72);
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
}

.admin-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.05);
}

.admin-card + .admin-card {
  margin-top: 12px;
}

.admin-card-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.admin-card-person {
  display: grid;
  gap: 6px;
}

.admin-card-name {
  color: #ffffff;
  font-size: 24px;
  line-height: 1.05;
}

.admin-card-phone {
  color: rgba(207, 215, 225, 0.76);
  font-size: 14px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(212, 217, 71, 0.18);
  border-radius: 999px;
  background: rgba(212, 217, 71, 0.08);
  color: #f3f6bb;
  font-size: 12px;
  font-weight: 600;
}

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

.admin-card-item {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--control-radius);
  background: rgba(14, 19, 26, 0.18);
}

.admin-card-note {
  grid-column: 1 / -1;
}

.admin-card-value {
  color: #ffffff;
  font-size: 20px;
  line-height: 1.15;
}

.admin-card-date {
  white-space: nowrap;
}

.admin-card-money {
  color: rgba(207, 215, 225, 0.82);
  font-size: 14px;
  font-weight: 600;
}

.admin-card-note-body {
  color: rgba(207, 215, 225, 0.82);
  font-size: 14px;
  line-height: 1.5;
}

.empty-state,
.empty-cell {
  color: rgba(207, 215, 225, 0.72);
}

.empty-state {
  padding: 22px 0;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body[data-theme="light"] .form-panel {
  border-color: rgba(47, 61, 78, 0.12);
  background:
    radial-gradient(circle at top right, rgba(212, 217, 71, 0.12), transparent 26%),
    linear-gradient(180deg, #f9fbff 0, #eef2f7 100%);
  box-shadow: var(--panel-shadow);
}

body[data-theme="light"] .form-header {
  border-bottom-color: rgba(47, 61, 78, 0.08);
  background: linear-gradient(180deg, rgba(107, 152, 191, 0.08), rgba(255, 255, 255, 0));
}

body[data-theme="light"] .brand-badge {
  border-color: rgba(47, 61, 78, 0.12);
  background: rgba(107, 152, 191, 0.08);
  color: #27435f;
}

body[data-theme="light"] .header-link {
  border-color: rgba(47, 61, 78, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: #465160;
}

body[data-theme="light"] .header-link:hover {
  border-color: rgba(107, 152, 191, 0.24);
  background: rgba(107, 152, 191, 0.08);
  color: #1f2c3a;
}

body[data-theme="light"] .header-link.is-active {
  border-color: rgba(107, 152, 191, 0.24);
  background: rgba(107, 152, 191, 0.14);
  color: #27435f;
}

body[data-theme="light"] .auth-card {
  border-color: rgba(47, 61, 78, 0.12);
  background:
    radial-gradient(circle at top right, rgba(212, 217, 71, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 34px rgba(29, 46, 64, 0.12);
}

body[data-theme="light"] .auth-intro {
  border-color: rgba(47, 61, 78, 0.12);
  background:
    radial-gradient(circle at top right, rgba(212, 217, 71, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(107, 152, 191, 0.12), rgba(255, 255, 255, 0.86));
}

body[data-theme="light"] .brand-logo-stack {
  display: block;
  align-self: flex-start;
  width: min(248px, 100%);
  margin: 0 0 10px;
  padding: 8px 12px;
  border: 1px solid rgba(47, 61, 78, 0.12);
  border-radius: 4px;
  background:
    radial-gradient(circle at top right, rgba(212, 217, 71, 0.18), transparent 34%),
    linear-gradient(135deg, #52657c 0%, #3f4f62 58%, #334252 100%);
  box-shadow: 0 10px 24px rgba(29, 46, 64, 0.16);
}

body[data-theme="light"] .brand-logo-dark {
  display: none;
}

body[data-theme="light"] .brand-logo-light {
  display: block;
}

body[data-theme="light"] .theme-switcher {
  border-color: rgba(47, 61, 78, 0.12);
  background: rgba(47, 61, 78, 0.04);
}

body[data-theme="light"] .theme-option {
  color: #5f6772;
}

body[data-theme="light"] .theme-option:hover {
  color: #1f2c3a;
}

body[data-theme="light"] .theme-option.is-active {
  background: rgba(107, 152, 191, 0.14);
  color: #1f2c3a;
  box-shadow: inset 0 0 0 1px rgba(107, 152, 191, 0.18);
}

body[data-theme="light"] .logout-theme-option:hover {
  background: rgba(107, 152, 191, 0.08);
}

body[data-theme="light"] .theme-icon-sun {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(31,44,58,0.92)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2'/%3E%3Cpath d='M12 20v2'/%3E%3Cpath d='m4.93 4.93 1.41 1.41'/%3E%3Cpath d='m17.66 17.66 1.41 1.41'/%3E%3Cpath d='M2 12h2'/%3E%3Cpath d='M20 12h2'/%3E%3Cpath d='m6.34 17.66-1.41 1.41'/%3E%3Cpath d='m19.07 4.93-1.41 1.41'/%3E%3C/svg%3E");
}

body[data-theme="light"] .theme-icon-moon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(31,44,58,0.92)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9z'/%3E%3C/svg%3E");
}

body[data-theme="light"] .theme-icon-logout {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(31,44,58,0.92)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E");
}

body[data-theme="light"] .eyebrow {
  color: #d48a31;
}

body[data-theme="light"] .section-head h1,
body[data-theme="light"] .summary-value,
body[data-theme="light"] .admin-card strong {
  color: #1f2c3a;
}

body[data-theme="light"] .section-copy,
body[data-theme="light"] .auth-copy,
body[data-theme="light"] .cell-sub,
body[data-theme="light"] .empty-state,
body[data-theme="light"] .empty-cell {
  color: #5f6772;
}

body[data-theme="light"] .auth-badge {
  border-color: rgba(107, 152, 191, 0.2);
  background: rgba(107, 152, 191, 0.1);
  color: #27435f;
}

body[data-theme="light"] .auth-card-kicker {
  color: #7a8591;
}

body[data-theme="light"] .auth-lock {
  border-color: rgba(47, 61, 78, 0.12);
  background:
    radial-gradient(circle at center, rgba(107, 152, 191, 0.16), rgba(107, 152, 191, 0) 68%),
    rgba(107, 152, 191, 0.06);
}

body[data-theme="light"] .auth-lock::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(39,67,95,0.94)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 1 1 8 0v3'/%3E%3C/svg%3E");
}

body[data-theme="light"] .auth-password-toggle {
  border-color: rgba(47, 61, 78, 0.12);
  background: rgba(107, 152, 191, 0.08);
}

body[data-theme="light"] .auth-password-toggle::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(39,67,95,0.94)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6-10-6-10-6Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

body[data-theme="light"] .auth-password-toggle.is-active::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(39,67,95,0.94)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 3 18 18'/%3E%3Cpath d='M10.58 10.58a2 2 0 1 0 2.83 2.83'/%3E%3Cpath d='M9.88 5.09A11 11 0 0 1 12 5c6.5 0 10 7 10 7a17.6 17.6 0 0 1-4.17 4.87'/%3E%3Cpath d='M6.61 6.61C3.64 8.36 2 12 2 12a17.4 17.4 0 0 0 7.38 5.43'/%3E%3C/svg%3E");
}

body[data-theme="light"] .icon-button::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(39,67,95,0.94)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E");
}

body[data-theme="light"] .contact-link {
  border-color: rgba(107, 152, 191, 0.18);
  background: rgba(107, 152, 191, 0.08);
  color: #27435f;
}

body[data-theme="light"] .contact-link-phone {
  background: transparent;
  color: #465160;
}

body[data-theme="light"] .contact-link-phone:hover {
  color: #1f2c3a;
}

body[data-theme="light"] .contact-icon-phone {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(39,67,95,0.96)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.9.33 1.79.61 2.65a2 2 0 0 1-.45 2.11L8 9.99a16 16 0 0 0 6 6l1.51-1.27a2 2 0 0 1 2.11-.45c.86.28 1.75.49 2.65.61A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

body[data-theme="light"] .contact-icon-telegram {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(39,67,95,0.96)'%3E%3Cpath d='M21.5 4.5 18.4 19c-.2 1-1 1.3-1.8.8l-4.1-3-2 2c-.2.2-.4.4-.8.4l.3-4.3 7.9-7.1c.3-.3-.1-.5-.5-.3l-9.8 6.2-4.2-1.3c-.9-.3-.9-.9.2-1.3L19.6 4c.8-.3 1.5.2 1.9.5Z'/%3E%3C/svg%3E");
}

body[data-theme="light"] .contact-icon-instagram {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(39,67,95,0.96)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5' ry='5'/%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'/%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'/%3E%3C/svg%3E");
}

body[data-theme="light"] .status-pill {
  border-color: rgba(47, 61, 78, 0.12);
  background: rgba(255, 255, 255, 0.86);
  color: #465160;
}

body[data-theme="light"] .auth-status {
  border-color: rgba(47, 61, 78, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #465160;
}

body[data-theme="light"] .auth-status.ok {
  border-color: rgba(118, 180, 72, 0.28);
  background: rgba(118, 180, 72, 0.12);
  color: #436b24;
}

body[data-theme="light"] .auth-status.error {
  border-color: rgba(228, 99, 33, 0.18);
  background: rgba(228, 99, 33, 0.1);
  color: #9a4a29;
}

body[data-theme="light"] .status-pill.ok {
  border-color: rgba(107, 152, 191, 0.24);
  background: rgba(107, 152, 191, 0.14);
  color: #27435f;
}

body[data-theme="light"] #apiStatus.ok {
  border-color: rgba(118, 180, 72, 0.28);
  background: rgba(118, 180, 72, 0.12);
  color: #436b24;
}

body[data-theme="light"] .status-pill.error {
  border-color: rgba(228, 99, 33, 0.18);
  background: rgba(228, 99, 33, 0.1);
  color: #9a4a29;
}

body[data-theme="light"] .summary-card,
body[data-theme="light"] .users-panel,
body[data-theme="light"] .filter-panel,
body[data-theme="light"] .table-wrap,
body[data-theme="light"] .admin-card {
  border-color: rgba(47, 61, 78, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

body[data-theme="light"] .user-create-card,
body[data-theme="light"] .user-card,
body[data-theme="light"] .users-empty-state {
  border-color: rgba(47, 61, 78, 0.1);
  background: rgba(107, 152, 191, 0.06);
}

body[data-theme="light"] .mobile-filter-hint {
  color: #5f6772;
}

body[data-theme="light"] .mobile-search-field input {
  background: rgba(255, 255, 255, 0.92);
}

body[data-theme="light"] .mobile-search-clear {
  border-color: rgba(47, 61, 78, 0.12);
  background: rgba(107, 152, 191, 0.08);
  color: #27435f;
}

body[data-theme="light"] .scroll-top-button {
  border-color: rgba(47, 61, 78, 0.12);
  background: rgba(255, 255, 255, 0.94);
  color: #27435f;
  box-shadow: 0 12px 24px rgba(29, 46, 64, 0.18);
}

body[data-theme="light"] .pagination-info {
  color: #5f6772;
}

body[data-theme="light"] .admin-card-item {
  border-color: rgba(47, 61, 78, 0.1);
  background: rgba(107, 152, 191, 0.06);
}

body[data-theme="light"] .summary-label,
body[data-theme="light"] .label-text,
body[data-theme="light"] .admin-card-label,
body[data-theme="light"] th {
  color: #5f6772;
}

body[data-theme="light"] .user-card-badge {
  border-color: rgba(107, 152, 191, 0.18);
  background: rgba(107, 152, 191, 0.08);
  color: #27435f;
}

body[data-theme="light"] .admin-card-phone,
body[data-theme="light"] .admin-card-money,
body[data-theme="light"] .admin-card-note-body,
body[data-theme="light"] .user-card-meta {
  color: #5f6772;
}

body[data-theme="light"] input,
body[data-theme="light"] select {
  border-color: rgba(47, 61, 78, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #465160;
}

body[data-theme="light"] input::placeholder {
  color: rgba(95, 103, 114, 0.72);
}

body[data-theme="light"] input:focus,
body[data-theme="light"] select:focus {
  background: #ffffff;
}

body[data-theme="light"] select option,
body[data-theme="light"] select optgroup {
  background: #ffffff;
  color: #1f2c3a;
}

body[data-theme="light"] .secondary-button {
  border-color: rgba(47, 61, 78, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: #27435f;
}

body[data-theme="light"] .secondary-button:hover {
  border-color: rgba(107, 152, 191, 0.28);
  background: rgba(107, 152, 191, 0.08);
}

body[data-theme="light"] .filter-close-button {
  border-color: rgba(47, 61, 78, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: #27435f;
}

body[data-theme="light"] .status-chip {
  border-color: rgba(107, 152, 191, 0.18);
  background: rgba(107, 152, 191, 0.08);
  color: #27435f;
}

body[data-theme="light"] th,
body[data-theme="light"] td {
  border-bottom-color: rgba(47, 61, 78, 0.08);
}

@media (max-width: 960px) {
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .users-grid,
  .filter-grid,
  .admin-card-grid {
    grid-template-columns: 1fr;
  }

  .page-shell {
    width: 100%;
    padding: 0 0 24px;
  }

  .form-panel {
    padding: 18px 14px 22px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .form-header {
    margin: -18px -14px 22px;
    padding: 20px 14px 16px;
  }

  .brand-lockup {
    flex-direction: column;
    align-items: start;
  }

  .header-controls {
    flex-direction: row;
    align-items: center;
  }

  .header-nav {
    width: auto;
  }

  .header-actions {
    margin-left: 0;
  }

  .status-stack,
  .section-head,
  .admin-card-head {
    flex-direction: column;
    align-items: start;
  }

  .status-stack {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .status-pill,
  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .status-stack .status-pill {
    width: auto;
    min-width: 0;
  }

  .table-wrap {
    display: none;
  }

  .admin-cards {
    display: block;
  }

  .pagination {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .pagination-button {
    flex: 0 0 40px;
    width: 40px;
    min-width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .mobile-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
  }

  .mobile-search-bar {
    display: block;
    margin-bottom: 14px;
  }

  .mobile-filter-button {
    min-width: 0;
    width: auto;
    padding: 12px 16px;
  }

  .mobile-filter-hint {
    color: rgba(207, 215, 225, 0.72);
    font-size: 13px;
    line-height: 1.4;
  }

  .mobile-search-field input {
    padding: 13px 14px;
    background: rgba(14, 19, 26, 0.42);
  }

  .mobile-search-control input {
    padding-right: 50px;
  }

  .desktop-filter-field {
    display: none;
  }

  .scroll-top-button {
    right: 12px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }

  .filter-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 30;
    margin: 0;
    max-height: calc(100vh - 110px);
    overflow: auto;
    padding: 16px;
    border-color: rgba(255, 255, 255, 0.14);
    background:
      radial-gradient(circle at top right, rgba(212, 217, 71, 0.08), transparent 34%),
      linear-gradient(180deg, rgba(55, 67, 82, 0.98), rgba(43, 54, 68, 0.99));
    box-shadow: 0 24px 48px rgba(6, 10, 16, 0.38);
    transform: translateY(18px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .filter-sheet-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
  }

  .filter-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-overlay {
    position: fixed;
    inset: 0;
    z-index: 20;
    background: rgba(10, 14, 20, 0.74);
    backdrop-filter: blur(2px);
  }

  body.filters-open {
    overflow: hidden;
  }

  body.filters-open .filter-panel {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  body.filters-open .filter-overlay {
    display: block;
  }

  .section-head h1 {
    font-size: 38px;
  }

  .summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
  }

  .summary-card {
    display: grid;
    gap: 8px;
    align-content: start;
    min-height: 88px;
    padding: 12px;
  }

  .summary-label {
    margin: 0;
    font-size: 11px;
  }

  .summary-value {
    margin: 0;
    font-size: 22px;
    line-height: 1;
  }

  .admin-card {
    gap: 12px;
    padding: 14px;
  }

  .admin-card-name {
    font-size: 22px;
  }

  .admin-card-item {
    gap: 5px;
    padding: 10px 12px;
  }

  .admin-card-value {
    font-size: 18px;
  }

  .users-panel-head {
    flex-direction: column;
    align-items: start;
  }

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

  .user-password-button {
    width: 100%;
    min-width: 0;
  }

  body[data-theme="light"] .brand-logo-stack {
    width: min(228px, 100%);
    margin: 0 0 10px;
    padding: 8px 10px;
  }

  .auth-view {
    min-height: auto;
  }

  .auth-intro,
  .auth-card {
    width: 100%;
    padding: 18px 16px;
  }

  .auth-title {
    font-size: 32px;
  }

  .auth-card-title {
    font-size: 24px;
  }

  .auth-badges {
    gap: 8px;
    margin-top: 16px;
  }
}
