.brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.055));
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: var(--inner), 0 14px 34px rgba(0,0,0,.28);
  font-weight: 900;
  font-size: 20px;
}

.brand-mark.small {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  font-size: 13px;
}

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

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

.span-2 {
  grid-column: span 2;
}

.field {
  display: grid;
  gap: 7px;
}

.field > span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .11em;
}

.field small {
  color: var(--muted);
  font-size: 8px;
}

.field input,
.field select,
.search-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: 0 13px;
  outline: 0;
  transition:
    border-color .18s var(--ease),
    background .18s var(--ease),
    box-shadow .18s var(--ease);
}

.field input:hover,
.field select:hover,
.search-input:hover {
  background: rgba(255,255,255,.055);
}

.field input:focus,
.field select:focus,
.search-input:focus {
  border-color: rgba(10,132,255,.45);
  box-shadow: 0 0 0 4px rgba(10,132,255,.08);
  background: rgba(255,255,255,.06);
}

.field select option {
  background: #111319;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 50px;
}

.password-field .icon-button {
  position: absolute;
  right: 4px;
  top: 4px;
}

.form-error {
  min-height: 16px;
  margin: 0;
  color: #ff928b;
  font-size: 10px;
  line-height: 1.5;
}

.button {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 13px;
  border: 1px solid transparent;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .035em;
  transition:
    transform .16s var(--ease),
    background .18s var(--ease),
    border-color .18s var(--ease),
    opacity .18s var(--ease);
}

.button:active {
  transform: scale(.975);
}

.button:disabled {
  opacity: .5;
  cursor: wait;
}

.button.wide {
  width: 100%;
}

.button.primary {
  border-color: rgba(85,169,255,.24);
  background: linear-gradient(180deg, #168cff, #0879ed);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 9px 24px rgba(0,112,255,.16);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255,255,255,.045);
}

.button.secondary:hover {
  background: rgba(255,255,255,.075);
}

.button.danger {
  color: #ff9b95;
  border-color: rgba(255,69,58,.16);
  background: rgba(255,69,58,.075);
}

.button.subtle {
  box-shadow: none;
}

.icon-button {
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid transparent;
  background: transparent;
}

.icon-button svg,
.nav-item svg,
.mobile-nav-item svg,
.mobile-create svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button.ghost {
  color: var(--text-soft);
}

.glass-button {
  border-color: var(--line);
  background: var(--panel);
}

.nav-item {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 750;
  text-align: left;
}

.nav-item:hover {
  color: white;
  background: rgba(255,255,255,.045);
}

.nav-item.active {
  color: white;
  border-color: rgba(10,132,255,.15);
  background: linear-gradient(135deg, rgba(10,132,255,.21), rgba(10,132,255,.08));
}

.admin-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border-radius: 15px;
  background: rgba(255,255,255,.032);
  border: 1px solid var(--line-soft);
}

.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, #1e92ff, #0a6cd1);
  font-size: 10px;
  font-weight: 900;
}

.admin-copy {
  min-width: 0;
}

.admin-copy strong,
.admin-copy span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.admin-copy strong {
  font-size: 9px;
}

.admin-copy span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 7px;
}

.status-pill,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  border-radius: 999px;
  white-space: nowrap;
}

.status-pill {
  min-height: 32px;
  padding: 0 10px;
  color: #75e590;
  border: 1px solid rgba(48,209,88,.12);
  background: rgba(48,209,88,.055);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .08em;
}

.status-pill span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 9px currentColor;
}

.badge {
  padding: 5px 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text-soft);
  font-size: 7px;
  font-weight: 850;
}

.badge.green {
  color: #78e595;
  border-color: rgba(48,209,88,.12);
  background: rgba(48,209,88,.06);
}

.badge.red {
  color: #ff9993;
  border-color: rgba(255,69,58,.13);
  background: rgba(255,69,58,.065);
}

.badge.blue {
  color: #7fc1ff;
  border-color: rgba(10,132,255,.13);
  background: rgba(10,132,255,.065);
}

.badge.orange {
  color: #ffc66f;
  border-color: rgba(255,159,10,.13);
  background: rgba(255,159,10,.06);
}

.sheet-dialog,
.confirm-dialog {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}

.sheet-dialog::backdrop,
.confirm-dialog::backdrop {
  background: rgba(0,0,0,.58);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.sheet {
  position: absolute;
  right: 18px;
  top: 18px;
  bottom: 18px;
  width: min(520px, calc(100% - 36px));
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(155deg, #11131a, #0a0b10);
  box-shadow: var(--inner), 0 40px 120px rgba(0,0,0,.6);
}

.sheet-dialog.compact .sheet {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  max-height: calc(100% - 36px);
}

.sheet-handle {
  display: none;
}

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

.sheet-header h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -.03em;
}

.sheet-subtitle {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.sheet-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.profile-preview {
  margin-top: 14px;
  padding: 13px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,.026);
}

.profile-preview:empty {
  display: none;
}

.confirm-dialog {
  display: none;
  place-items: center;
}

.confirm-dialog[open] {
  display: grid;
}

.confirm-card {
  width: min(390px, calc(100% - 32px));
  padding: 25px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(155deg, #11131a, #090a0f);
  box-shadow: var(--inner), 0 40px 120px rgba(0,0,0,.6);
}

.confirm-card h3 {
  margin: 14px 0 7px;
}

.confirm-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 10px;
  line-height: 1.6;
}

.confirm-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 15px;
  color: #ff9b95;
  border: 1px solid rgba(255,69,58,.14);
  background: rgba(255,69,58,.07);
}

.toast-root {
  position: fixed;
  z-index: 100;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100% - 36px));
  pointer-events: none;
}

.toast {
  padding: 12px 13px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: rgba(17,19,26,.92);
  box-shadow: var(--inner), 0 18px 55px rgba(0,0,0,.38);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-size: 9px;
  line-height: 1.45;
}

.toast.error {
  border-color: rgba(255,69,58,.16);
  color: #ffaaa5;
}

.skeleton {
  position: relative;
  overflow: hidden;
  min-height: 80px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.035);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  animation: shimmer 1.4s infinite;
}

.profile-block-reason { margin-top: 10px; }
.backup-hash { margin-top: 12px; }
.section-inline-title { margin: 0; font-size: 14px; }
.section-inline-copy { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.danger-more-icon { color: #ff9d98; background: rgba(255,69,58,.065); }
.clipboard-fallback { position: fixed; left: -9999px; top: 0; opacity: 0; pointer-events: none; }
