:root {
  color-scheme: light;
  --page: #f4f4f4;
  --card: #ffffff;
  --soft: #f0f1f3;
  --line: #e7e8eb;
  --ink: #17191f;
  --muted: #8b9099;
  --blue: #3776f6;
  --blue-soft: #e8f3ff;
  --green: #207a5b;
  --green-soft: #e9f8f2;
  --red: #d14b45;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
select {
  cursor: pointer;
}

button {
  border: 0;
}

.admin-shell {
  position: relative;
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 12px 32px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 8px 16px;
}

.topbar > div:first-child {
  min-width: 0;
}

.topbar-actions {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
}

.topbar h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 780;
  line-height: 1.16;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar span,
.section-head span,
.data-row span,
.database-card span,
.stat span {
  color: var(--muted);
}

.topbar span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button,
.back-link {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  background: var(--card);
  color: var(--blue);
  line-height: 0;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(22, 25, 31, 0.08);
}

.menu-button {
  position: relative;
  display: inline-grid;
  place-items: center;
}

.app-menu {
  position: fixed;
  inset: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  z-index: 80;
  display: grid;
  align-content: start;
  gap: 18px;
  width: min(430px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  margin: 0 auto;
  overflow-y: auto;
  border: 1px solid rgba(216, 220, 226, 0.78);
  border-radius: 28px;
  background: #fff;
  padding: 26px 22px 30px;
  box-shadow: 0 22px 50px rgba(24, 28, 35, 0.2);
}

.app-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.app-menu-head strong {
  color: var(--ink);
  font-size: 28px;
  font-weight: 860;
}

.menu-close-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--ink);
  line-height: 0;
  overflow: hidden;
}

.menu-close-button svg,
.app-menu-icon svg {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.app-menu h3 {
  margin: 8px 0 -4px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 840;
}

.app-menu-group {
  display: grid;
  gap: 14px;
  --menu-icon-size: 52px;
}

.app-menu-item {
  display: grid;
  grid-template-columns: var(--menu-icon-size) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 66px;
  border-radius: 18px;
  background: transparent;
  color: var(--ink);
  padding: 7px 0;
  text-align: left;
}

.app-menu-item:hover,
.app-menu .is-active {
  background: #f5f6f8;
}

.app-menu-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  justify-self: center;
  align-self: center;
  width: var(--menu-icon-size);
  height: var(--menu-icon-size);
  min-width: var(--menu-icon-size);
  min-height: var(--menu-icon-size);
  border: 1px solid #eceef2;
  border-radius: 15px;
  background: #f7f9fc;
  color: var(--blue);
  line-height: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.app-menu-item:nth-child(2) .app-menu-icon {
  color: #11151d;
}

.app-menu-item:nth-child(3) .app-menu-icon {
  color: #7f8cff;
}

.app-menu-item strong {
  display: block;
  color: var(--ink);
  font-size: 19px;
  font-weight: 820;
  line-height: 1.1;
}

.app-menu-item em {
  display: block;
  margin-top: 4px;
  color: #6e7580;
  font-size: 15px;
  font-style: normal;
  font-weight: 560;
  line-height: 1.25;
}

.app-menu-item.is-danger strong,
.app-menu-item.is-danger .app-menu-icon {
  color: var(--red);
}

@media (max-width: 519px) {
  .app-menu {
    inset: 0;
    width: 100vw;
    max-height: 100vh;
    border: 0;
    border-radius: 0;
    padding: max(24px, env(safe-area-inset-top)) 24px max(34px, env(safe-area-inset-bottom));
    box-shadow: none;
  }

  .app-menu-head strong {
    font-size: 30px;
  }

  .app-menu-item {
    --menu-icon-size: 58px;
    grid-template-columns: var(--menu-icon-size) minmax(0, 1fr);
    min-height: 72px;
    gap: 18px;
    padding: 7px 0;
  }

  .app-menu-icon {
    border-radius: 17px;
  }

  .app-menu-item strong {
    font-size: 22px;
  }

  .app-menu-item em {
    font-size: 18px;
  }
}

.menu-button svg {
  display: none;
}

.menu-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
  transform: translate(-50%, -50%);
}

.login-shell {
  display: grid;
  align-content: start;
}

.login-card {
  margin: 44px 12px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 14px;
}

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

.login-form label {
  display: grid;
  gap: 7px;
  color: #4f5968;
  font-size: 13px;
  font-weight: 720;
}

.login-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  font-size: 16px;
  font-weight: 650;
  outline: 0;
}

.login-form input:focus {
  border-color: rgba(55, 118, 246, 0.65);
  box-shadow: 0 0 0 3px rgba(55, 118, 246, 0.12);
}

.login-form button {
  min-height: 46px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 780;
}

.login-form button:disabled {
  opacity: 0.62;
}

.login-message {
  min-height: 18px;
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 680;
}

.icon-button svg,
.back-link svg {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.action-icon svg,
.back-button svg,
.refresh-now-button svg,
.collection-toggle svg,
.nav-icon svg {
  display: block;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button.menu-button svg {
  display: none;
}

.section-block,
.database-hero,
.settings-panel,
.modal {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.settings-panel,
.section-block {
  margin: 0 12px 12px;
  padding: 14px;
}

.settings-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 760;
  list-style: none;
  cursor: pointer;
}

.settings-panel summary::-webkit-details-marker {
  display: none;
}

.settings-panel summary::after {
  content: "";
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--soft);
  color: #5d6470;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%235d6470' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 16px;
}

.settings-panel[open] summary {
  margin-bottom: 12px;
}

.settings-panel[open] summary::after {
  transform: rotate(180deg);
}

label {
  display: block;
  margin-bottom: 7px;
  color: #3d434d;
  font-size: 13px;
  font-weight: 720;
}

.settings-form {
  display: grid;
  gap: 10px;
}

.settings-group {
  display: grid;
  gap: 9px;
  border-radius: 14px;
  background: #f7f8fa;
  padding: 12px;
}

.settings-group h2 {
  margin-bottom: 2px;
  font-size: 15px;
}

.settings-group label {
  margin: 0;
}

.settings-group input,
.settings-group select {
  margin-top: 6px;
  background: #fff;
}

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

.switch-row input {
  width: 20px;
  min-height: 20px;
  margin: 0;
  accent-color: var(--blue);
}

.network-toggles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.network-toggles label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0 10px;
  color: #303642;
  font-size: 12px;
}

.network-toggles input {
  width: 16px;
  min-height: 16px;
  margin: 0;
  accent-color: var(--blue);
}

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

.price-source-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.price-source-title {
  min-width: 0;
}

.price-source-title strong,
.price-source-title span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-source-title strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 820;
}

.price-source-title span,
.price-source-row label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
}

.price-source-row label {
  min-width: 0;
}

.price-source-row label:not(.source-enabled) {
  grid-column: 1 / -1;
}

.price-source-row input {
  min-height: 38px;
}

.source-enabled {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.source-enabled input {
  width: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--blue);
}

.save-settings-button {
  min-height: 44px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 760;
}

.refresh-now-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 760;
}

.route-panel {
  margin-top: 12px;
}

.route-action-panel {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

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

.route-status-card p {
  margin: 0;
  color: #4f5968;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
}

.route-lines {
  display: grid;
  gap: 8px;
}

.route-line {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 12px;
  background: #f7f8fa;
  padding: 0 10px;
}

.route-line span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d6dbe3;
}

.route-line strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-line em {
  max-width: 138px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-line.is-ok span {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(32, 122, 91, 0.1);
}

.route-line.is-error span {
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(209, 75, 69, 0.1);
}

.route-line.is-active {
  background: #e9f8f2;
}

.route-status-card label {
  margin: 0;
}

.route-check-button {
  min-height: 42px;
  border-radius: 999px;
  background: #17191f;
  color: #fff;
  font-weight: 780;
}

.route-check-button:disabled {
  background: #dfe3ea;
  color: #8b94a3;
}

.admin-toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 100;
  transform: translate(-50%, 12px);
  border: 1px solid rgba(14, 165, 117, 0.2);
  border-radius: 999px;
  background: rgba(224, 248, 240, 0.96);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
  color: var(--green);
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 780;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.admin-toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

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

input,
select {
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 120px;
  padding: 12px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
}

.modal button[type="submit"],
.secondary-button,
.import-main-button {
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  padding: 0 15px;
  font-weight: 720;
}

.import-main-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  white-space: nowrap;
}

.import-main-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-actions {
  display: grid;
  gap: 8px;
  margin: 0 12px 16px;
}

.action-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
  min-height: 66px;
  border-radius: 14px;
  background: var(--card);
  padding: 13px 16px;
  text-align: left;
}

.action-card .action-icon {
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--blue);
  color: #fff;
}

.action-card strong {
  align-self: center;
  display: block;
  font-size: 16px;
  font-weight: 740;
  line-height: 1.16;
}

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

h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 760;
}

.section-head span {
  font-size: 12px;
  font-weight: 720;
}

.database-list,
.row-list {
  display: grid;
  gap: 10px;
}

.database-card,
.data-row,
.empty-card {
  border-radius: 14px;
  background: #f7f8fa;
  padding: 13px 14px;
}

.database-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 124px;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  text-align: left;
}

.database-card strong,
.data-row strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.database-card span,
.data-row span {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
  font-weight: 720;
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
  color: #2c3340;
}

.mini-metrics span {
  display: grid;
  justify-items: center;
  gap: 1px;
  min-width: 0;
}

.mini-metrics b {
  color: var(--ink);
  font-size: 16px;
  font-weight: 820;
  line-height: 1;
}

.mini-metrics small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.empty-card {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}

.access-card {
  display: grid;
  gap: 7px;
  border-radius: 14px;
  background: #f7f8fa;
  padding: 14px;
}

.access-card strong {
  font-size: 16px;
  font-weight: 780;
}

.access-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.access-card button {
  justify-self: start;
  min-height: 34px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  padding: 0 16px;
  font-weight: 720;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 12px 12px;
  border-radius: 999px;
  background: transparent;
  color: var(--blue);
  font-weight: 720;
}

.database-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 12px 12px;
  padding: 16px;
  background: linear-gradient(135deg, #fdfefe, #eef5ff);
}

.database-hero span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 780;
}

.database-hero h2 {
  margin-top: 5px;
  font-size: 25px;
  line-height: 1;
}

.database-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.collection-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 12px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 12px 14px;
}

.collection-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.collection-strip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.collection-strip strong {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 780;
}

.collection-chip {
  min-width: 0;
  border-radius: 999px;
  background: #f0f1f3;
  color: #68707d;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 780;
  white-space: nowrap;
}

.collection-chip.is-ok {
  background: var(--green-soft);
  color: var(--green);
}

.collection-chip.is-running,
.collection-chip.is-wait {
  background: var(--blue-soft);
  color: var(--blue);
}

.collection-chip.is-error {
  background: var(--red-soft);
  color: var(--red);
}

.collection-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 108px;
  min-height: 38px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
}

.collection-toggle span {
  color: inherit;
  font-size: 13px;
  font-weight: 780;
}

.collection-meta {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.collection-meta div + div {
  margin-top: 3px;
}

.collection-toggle.is-running {
  background: #fff0ef;
  color: var(--red);
}

.collection-toggle:disabled {
  opacity: 0.62;
}

.edit-button,
.trash-button {
  width: 34px;
  height: 34px;
  box-shadow: none;
}

.edit-button {
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.66);
  color: #7b8491;
}

.trash-button {
  border: 1px solid transparent;
  background: rgba(255, 240, 239, 0.76);
  color: var(--red);
}

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

.stat {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 12px;
}

.stat span {
  display: block;
  font-size: 11px;
  font-weight: 720;
}

.stat strong {
  display: block;
  margin-top: 3px;
  font-size: 24px;
  font-weight: 840;
}

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

.row-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.data-row em {
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  padding: 6px 9px;
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
  white-space: nowrap;
}

.row-delete-button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
}

.row-delete-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

pre {
  overflow: auto;
  min-height: 120px;
  max-height: 260px;
  margin: 0;
  border-radius: 12px;
  background: #f7f8fa;
  padding: 13px;
  color: #303642;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: #242832;
  min-height: 34px;
}

.file-input {
  display: none;
}

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

.user-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.user-row strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
}

.user-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.user-role-pill {
  border-radius: 999px;
  background: #eaf4ff;
  padding: 7px 9px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.user-form-grid {
  display: grid;
  gap: 10px;
}

.user-form-grid button {
  min-height: 44px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: end center;
  background: rgba(20, 24, 31, 0.34);
  padding: 16px 12px;
}

.modal {
  width: min(100%, 406px);
  padding: 16px;
  box-shadow: 0 18px 48px rgba(20, 24, 31, 0.18);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.modal input,
.modal select {
  margin-bottom: 12px;
}

.modal-message {
  min-height: 18px;
  margin: -4px 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.modal-message.is-error {
  color: var(--red);
}

.modal button[type="submit"] {
  width: 100%;
  min-height: 44px;
}

.close-button {
  width: 34px;
  height: 34px;
  background: var(--soft);
  color: #565b64;
  box-shadow: none;
}

.is-hidden {
  display: none !important;
}

.is-error {
  color: var(--red);
}

@media (min-width: 520px) {
  .admin-shell {
    margin-top: 16px;
    margin-bottom: 16px;
    min-height: calc(100vh - 32px);
    border-radius: 18px;
    box-shadow: 0 0 0 1px rgba(20, 24, 31, 0.06), 0 18px 48px rgba(20, 24, 31, 0.12);
  }
}
