/* ==========================================================================
   round 68 — вход, роли, управление доступом
   ========================================================================== */

/* ---------- boot splash ---------- */
.boot-splash {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0; text-align: center; overflow: hidden;
  background:
    radial-gradient(circle at 50% 43%, rgba(255, 42, 133, 0.13), transparent 31%),
    radial-gradient(circle at 58% 55%, rgba(168, 47, 255, 0.10), transparent 38%),
    #030407;
  opacity: 1; transform: scale(1); filter: blur(0);
  transition: opacity .58s cubic-bezier(.22,.8,.25,1), transform .58s cubic-bezier(.22,.8,.25,1), filter .58s ease;
}
.boot-splash.out { opacity: 0; transform: scale(1.045); filter: blur(7px); pointer-events: none; }
.boot-splash.hidden { display: none !important; }
.bs-grid {
  position: absolute; inset: -10%;
  background-image:
    linear-gradient(rgba(255, 42, 133, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 42, 133, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 48%, #000 0%, transparent 67%);
  -webkit-mask-image: radial-gradient(circle at 50% 48%, #000 0%, transparent 67%);
  opacity: .8;
}
.bs-glow {
  position: absolute; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 42, 133, 0.13), transparent 68%);
  filter: blur(20px); animation: bsGlow 3.4s ease-in-out infinite;
}
@keyframes bsGlow { 50% { transform: scale(1.12); opacity: .6; } }
.bs-mark {
  position: relative; z-index: 1; margin-bottom: 28px;
  filter: drop-shadow(0 0 22px rgba(255, 42, 133, 0.35));
  animation: bsMark 3.6s ease-in-out infinite;
}
@keyframes bsMark { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.bs-kicker {
  position: relative; z-index: 1; color: rgba(184, 164, 204, 0.28);
  font-size: 9px; letter-spacing: .18em; font-weight: 500; margin-bottom: 16px;
}
.bs-title {
  position: relative; z-index: 1; margin: 0; color: #fff;
  font-size: clamp(38px, 7vw, 76px); line-height: .94; font-weight: 300;
  letter-spacing: .18em; text-indent: .18em;
  text-shadow: 0 0 36px rgba(255, 42, 133, 0.42), 0 0 90px rgba(168, 47, 255, 0.22);
}
.bs-sub {
  position: relative; z-index: 1; margin: 16px 0 0; color: #c4b1d6;
  font-size: 12px; letter-spacing: .42em; text-transform: lowercase; text-indent: .42em;
}

/* ---------- one-page auth ---------- */
.auth-gate {
  padding: clamp(14px, 3vw, 36px) !important;
  background:
    radial-gradient(circle at 17% 50%, rgba(255, 42, 133, 0.13), transparent 42%),
    radial-gradient(circle at 88% 30%, rgba(168, 47, 255, 0.12), transparent 40%),
    rgba(3, 4, 8, 0.88) !important;
  -webkit-backdrop-filter: blur(12px) saturate(.92) !important;
  backdrop-filter: blur(12px) saturate(.92) !important;
  overflow: auto;
}
.auth-gate.visible { opacity: 1; }
.auth-shell {
  position: relative; z-index: 1;
  width: min(1040px, 100%);
  display: grid; grid-template-columns: minmax(0, 1fr) 408px;
  background: #070a10;
  border: 1px solid rgba(255, 42, 133, 0.30);
  border-radius: 22px;
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.9), 0 0 70px rgba(255, 42, 133, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  animation: authIn .55s cubic-bezier(.22,.8,.25,1) both;
}
@keyframes authIn { from { opacity: 0; transform: translateY(18px) scale(.986); } }
.auth-brand {
  position: relative; display: flex; flex-direction: column; padding: 38px 40px 34px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 42, 133, 0.12), transparent 42%),
    linear-gradient(155deg, #0b0d15 0%, #080a10 60%, #0a0810 100%);
  border-right: 1px solid rgba(255, 42, 133, 0.15);
  overflow: hidden;
}
.auth-brand::after {
  content: ""; position: absolute; right: -110px; bottom: -150px;
  width: 380px; height: 380px; border-radius: 50%;
  border: 1px solid rgba(255, 42, 133, 0.10);
  box-shadow: 0 0 0 42px rgba(255, 42, 133, 0.025), 0 0 0 86px rgba(168, 47, 255, 0.018);
  pointer-events: none;
}
.ab-mark { filter: drop-shadow(0 0 16px rgba(255, 42, 133, 0.6)); margin-bottom: 17px; }
.ab-tag {
  color: #ff2a85; font-size: 9px; font-weight: 700;
  letter-spacing: .24em; margin-bottom: 14px;
}
.auth-brand h1 {
  color: #fff; font-size: 35px; line-height: 1; font-weight: 300;
  letter-spacing: .13em; margin: 0 0 16px;
  text-shadow: 0 0 28px rgba(255, 42, 133, 0.24);
}
.ab-lead {
  max-width: 400px; color: #b8a4cc; font-size: 12.5px;
  line-height: 1.65; margin: 0 0 28px;
}
.ab-visual {
  position: relative; flex: 1 1 auto; min-height: 210px;
  margin: 18px -40px -34px; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 100%);
}
.ab-visual svg { display: block; width: 100%; height: 100%; }
.auth-card {
  position: relative; padding: 34px 32px 28px;
  background: linear-gradient(180deg, #0b0e16 0%, #080a11 100%);
  display: flex; flex-direction: column;
}
.auth-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 42, 133, 0.32), transparent);
  pointer-events: none;
}
.auth-card.admin-mode {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 195, 55, 0.09), transparent 46%),
    linear-gradient(180deg, #0c0d13 0%, #080a11 100%);
}
.auth-card.admin-mode::before { background: linear-gradient(180deg, transparent, rgba(255, 195, 55, 0.45), transparent); }
.auth-eyebrow {
  display: block; color: rgba(255, 42, 133, 0.75);
  font-size: 8.5px; font-weight: 700; letter-spacing: .26em; margin-bottom: 9px;
}
.auth-card.admin-mode .auth-eyebrow { color: #ffc337; }
.auth-card h2 {
  color: #fff; font-size: 24px; line-height: 1.1; font-weight: 600; margin: 0 0 8px;
  letter-spacing: -.01em;
}
.auth-card-head p {
  color: #9d8caf; font-size: 11.5px; line-height: 1.55; margin: 0 0 24px;
}
.auth-continue {
  display: flex; gap: 6px; align-items: stretch; margin: 0 0 13px;
}
.auth-continue-btn {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px; cursor: pointer; text-align: left;
  border: 1px solid rgba(255, 42, 133, 0.34);
  background: rgba(255, 42, 133, 0.065); color: #f4e8fb;
  font-family: inherit;
}
.auth-continue-btn:hover {
  border-color: rgba(255, 42, 133, 0.68);
  background: rgba(255, 42, 133, 0.11);
}
.auth-continue-btn .ac-arrow { color: #ff5ca8; font-size: 17px; flex: none; }
.auth-continue-btn .ac-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.auth-continue-btn b {
  font-size: 11.5px; font-weight: 600; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.auth-continue-btn i { font-style: normal; color: #a98abd; font-size: 9px; }
.auth-signout {
  flex: none; padding: 0 10px; border-radius: 9px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: transparent; color: #9d8caf;
  font-family: inherit; font-size: 9.5px;
}
.auth-signout:hover { color: #ff8fa8; border-color: rgba(255, 23, 68, 0.38); }
.auth-guest {
  width: 100%; display: flex; align-items: center; gap: 11px;
  padding: 13px 14px; border-radius: 12px; cursor: pointer;
  color: #eafcff; text-align: left;
  border: 1px solid rgba(0, 229, 255, 0.38);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.10), rgba(168, 47, 255, 0.10));
  transition: border-color .18s, background .18s, box-shadow .18s, transform .18s;
}
.auth-guest:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 229, 255, 0.78);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.16), rgba(168, 47, 255, 0.16));
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.14);
}
.auth-guest:disabled, .auth-submit:disabled { opacity: .55; cursor: wait; }
.ag-ico { font-size: 18px; flex: none; opacity: .9; }
.ag-copy { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ag-copy b { font-size: 12.5px; font-weight: 600; }
.ag-copy i { font-style: normal; color: #7fb9c4; font-size: 9.5px; }
.ag-arrow { color: #00e5ff; font-size: 17px; opacity: .7; }
.auth-or {
  display: flex; align-items: center; gap: 10px;
  color: rgba(184, 164, 204, 0.42); font-size: 9px;
  letter-spacing: .12em; text-transform: uppercase; margin: 20px 0 17px;
}
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.07); }
.auth-form { display: flex; flex-direction: column; gap: 13px; }
.auth-field {
  position: relative; display: flex; flex-direction: column; gap: 6px;
}
.auth-field > span {
  color: #8f7fa4; font-size: 8.5px; font-weight: 700; letter-spacing: .18em;
}
.auth-field input {
  width: 100%; height: 42px; padding: 0 42px 0 13px;
  border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(3, 5, 9, 0.72); color: #fff;
  font-family: inherit; font-size: 13px; outline: none;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.auth-field input::placeholder { color: rgba(184, 164, 204, 0.32); }
.auth-field input:focus {
  border-color: rgba(255, 42, 133, 0.66);
  background: rgba(5, 7, 12, 0.92);
  box-shadow: 0 0 0 3px rgba(255, 42, 133, 0.12);
}
.auth-card.admin-mode .auth-field input:focus {
  border-color: rgba(255, 195, 55, 0.66);
  box-shadow: 0 0 0 3px rgba(255, 195, 55, 0.10);
}
.auth-pass-toggle {
  position: absolute; right: 7px; bottom: 7px; width: 28px; height: 28px;
  border-radius: 7px; border: none; background: transparent; cursor: pointer;
  color: rgba(184, 164, 204, 0.55); font-size: 12px;
}
.auth-pass-toggle:hover, .auth-pass-toggle.on { color: #ff2a85; background: rgba(255, 42, 133, 0.10); }
.auth-admin-hint {
  color: #ffd66a; font-size: 10px; line-height: 1.45;
  padding: 8px 10px; border-radius: 8px;
  border: 1px solid rgba(255, 195, 55, 0.24);
  background: rgba(255, 195, 55, 0.055);
}
.auth-error {
  color: #ff8fa8; font-size: 10.5px; line-height: 1.4;
  padding: 8px 10px; border-radius: 8px;
  border: 1px solid rgba(255, 23, 68, 0.32);
  background: rgba(255, 23, 68, 0.08);
}
.auth-submit {
  width: 100%; height: 43px; margin-top: 2px;
  border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(255, 42, 133, 0.58);
  background: linear-gradient(135deg, #ff2a85, #a82fff);
  color: #fff; font-family: inherit; font-size: 12.5px; font-weight: 700;
  letter-spacing: .03em;
  box-shadow: 0 8px 24px rgba(255, 42, 133, 0.18);
  transition: filter .18s, transform .18s, box-shadow .18s;
}
.auth-submit:hover { filter: brightness(1.12); transform: translateY(-1px); box-shadow: 0 10px 30px rgba(255, 42, 133, 0.30); }
.auth-card.admin-mode .auth-submit {
  background: linear-gradient(135deg, #ffc337, #ff8a3d);
  border-color: rgba(255, 195, 55, 0.65);
  color: #1a1202;
  box-shadow: 0 8px 24px rgba(255, 195, 55, 0.14);
}
.auth-note {
  color: rgba(184, 164, 204, 0.40); font-size: 9px; line-height: 1.55;
  margin: 18px 0 0; text-align: center;
}
.admin-entry {
  position: fixed; top: 18px; right: 20px; z-index: 2;
  display: flex; align-items: center; gap: 7px;
  padding: 8px 11px; border-radius: 8px; cursor: pointer;
  color: rgba(255, 195, 55, 0.76); font-family: inherit;
  font-size: 9.5px; font-weight: 600; letter-spacing: .07em;
  border: 1px solid rgba(255, 195, 55, 0.20);
  background: rgba(8, 9, 14, 0.72);
  transition: all .18s;
}
.admin-entry:hover, .admin-entry.active {
  color: #ffd66a;
  border-color: rgba(255, 195, 55, 0.62);
  background: rgba(255, 195, 55, 0.08);
  box-shadow: 0 0 18px rgba(255, 195, 55, 0.12);
}
.admin-entry.active { background: rgba(255, 195, 55, 0.13); }

/* ---------- topbar account ---------- */
.tb-left { position: relative; }
.account-chip {
  display: flex; align-items: center; gap: 7px; height: 34px;
  padding: 0 8px 0 4px; margin-left: 2px; cursor: pointer;
  border-radius: 999px; font-family: inherit; color: #e9e1f4;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.028);
  transition: border-color .16s, background .16s, box-shadow .16s;
}
.account-chip:hover { border-color: rgba(255, 42, 133, 0.46); background: rgba(255, 42, 133, 0.07); }
.account-chip.is-admin { border-color: rgba(255, 195, 55, 0.32); background: rgba(255, 195, 55, 0.045); }
.account-chip.is-admin:hover { border-color: rgba(255, 195, 55, 0.66); background: rgba(255, 195, 55, 0.09); }
.ac-avatar {
  width: 25px; height: 25px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, rgba(255, 42, 133, 0.24), rgba(168, 47, 255, 0.24));
  border: 1px solid rgba(255, 42, 133, 0.38);
  color: #ffd6ea; font-size: 10px; font-weight: 700;
}
.account-chip.is-admin .ac-avatar {
  background: linear-gradient(135deg, rgba(255, 195, 55, 0.24), rgba(255, 138, 61, 0.18));
  border-color: rgba(255, 195, 55, 0.45); color: #ffe7a3;
}
.ac-copy { display: flex; flex-direction: column; gap: 0; min-width: 0; align-items: flex-start; }
.ac-nick {
  max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #fff; font-size: 10.5px; font-weight: 600; line-height: 1.15;
}
.ac-role { color: #a794ba; font-size: 8px; line-height: 1.15; letter-spacing: .05em; }
.account-chip.is-admin .ac-role { color: #d8b45e; }
.ac-caret { color: rgba(184, 164, 204, 0.5); flex: none; }
.account-menu {
  position: absolute; top: calc(100% + 9px); left: 0; z-index: 60;
  width: 240px; padding: 5px;
  border-radius: 12px;
  border: 1px solid rgba(255, 42, 133, 0.34);
  background: rgba(8, 11, 18, 0.98);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 26px rgba(255, 42, 133, 0.10);
  animation: amIn .16s ease-out both;
}
@keyframes amIn { from { opacity: 0; transform: translateY(-5px); } }
.am-head { padding: 9px 10px 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.065); margin-bottom: 4px; }
.am-title { display: block; color: #fff; font-size: 12px; font-weight: 600; }
.am-role { display: block; color: #b58bdc; font-size: 9px; margin-top: 2px; letter-spacing: .05em; }
.am-item {
  width: 100%; display: flex; align-items: center; gap: 8px;
  padding: 8px 9px; border-radius: 8px; border: none; cursor: pointer;
  background: transparent; color: #d9cfe6; font-family: inherit;
  font-size: 11px; text-align: left;
}
.am-item:hover { background: rgba(255, 42, 133, 0.12); color: #fff; }
.am-item.danger { color: #ff8fa8; border-top: 1px solid rgba(255, 255, 255, 0.055); margin-top: 3px; padding-top: 9px; border-radius: 0 0 8px 8px; }
.am-item.danger:hover { background: rgba(255, 23, 68, 0.13); }
.am-ico { width: 15px; text-align: center; opacity: .8; }

/* ---------- owner account manager ---------- */
.admin-panel {
  position: fixed; inset: 0; z-index: 100001;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(2, 3, 6, 0.78);
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
  opacity: 0; pointer-events: none; transition: opacity .22s ease;
}
.admin-panel.visible { opacity: 1; pointer-events: auto; }
.admin-window {
  width: min(760px, 100%); max-height: min(86vh, 780px);
  display: flex; flex-direction: column;
  border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255, 195, 55, 0.28);
  background: linear-gradient(180deg, #0b0d13 0%, #07090e 100%);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.9), 0 0 60px rgba(255, 195, 55, 0.06);
  transform: translateY(12px) scale(.99);
  transition: transform .22s cubic-bezier(.22,.8,.25,1);
}
.admin-panel.visible .admin-window { transform: none; }
.admin-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; padding: 20px 22px 17px;
  border-bottom: 1px solid rgba(255, 195, 55, 0.14);
  background: radial-gradient(circle at 0 0, rgba(255, 195, 55, 0.07), transparent 55%);
}
.admin-kicker { color: #d9ae4e; font-size: 8px; font-weight: 700; letter-spacing: .22em; }
.admin-head h2 { color: #fff; font-size: 20px; font-weight: 600; margin: 5px 0 0; }
.admin-close {
  width: 30px; height: 30px; flex: none; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.10); background: rgba(255, 255, 255, 0.03);
  color: #b8a4cc; font-family: inherit; font-size: 13px;
}
.admin-close:hover { color: #fff; border-color: rgba(255, 42, 133, 0.5); }
.admin-body { padding: 18px 22px 22px; overflow-y: auto; }
.acct-create {
  padding: 13px 14px 14px; border-radius: 12px;
  border: 1px solid rgba(255, 195, 55, 0.18);
  background: rgba(255, 195, 55, 0.028);
}
.acct-create-title {
  color: #ffd66a; font-size: 9px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; margin-bottom: 10px;
}
.acct-create-grid { display: grid; grid-template-columns: 1fr 1fr 128px 96px; gap: 8px; align-items: end; }
.acct-field { display: flex; flex-direction: column; gap: 5px; }
.acct-field > span { color: #8f7fa4; font-size: 8px; font-weight: 700; letter-spacing: .17em; }
.acct-field input, .acct-field select, .acct-edit input {
  width: 100%; height: 34px; padding: 0 10px; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(3, 5, 9, 0.7); color: #fff;
  font-family: inherit; font-size: 11.5px; outline: none;
}
.acct-field select { cursor: pointer; }
.acct-field select option { background: #080b12; color: #fff; }
.acct-field input:focus, .acct-field select:focus, .acct-edit input:focus {
  border-color: rgba(255, 195, 55, 0.55); box-shadow: 0 0 0 3px rgba(255, 195, 55, 0.08);
}
.acct-create-btn {
  height: 34px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(255, 195, 55, 0.5);
  background: rgba(255, 195, 55, 0.13); color: #ffe29a;
  font-family: inherit; font-size: 11px; font-weight: 600; white-space: nowrap;
}
.acct-create-btn:hover { background: #ffc337; color: #1a1202; }
.admin-msg {
  margin-top: 12px; padding: 8px 10px; border-radius: 8px;
  font-size: 10.5px; color: #a8f0c7;
  border: 1px solid rgba(61, 255, 160, 0.20); background: rgba(61, 255, 160, 0.055);
}
.admin-msg.bad { color: #ff9bb1; border-color: rgba(255, 23, 68, 0.28); background: rgba(255, 23, 68, 0.07); }
.admin-list-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 21px 0 9px; color: #d9cfe6; font-size: 10px;
  letter-spacing: .09em; text-transform: uppercase;
}
.admin-list-head i { font-style: normal; color: #6f617e; font-size: 8.5px; letter-spacing: 0; text-transform: none; }
.admin-list { display: flex; flex-direction: column; gap: 5px; }
.admin-empty { padding: 20px 0; text-align: center; color: #776a86; font-size: 11px; }
.acct-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 11px; border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  background: rgba(255, 255, 255, 0.018);
}
.acct-row.owner { border-color: rgba(255, 195, 55, 0.16); background: rgba(255, 195, 55, 0.025); }
.acct-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acct-main b { color: #fff; font-size: 12px; font-weight: 600; }
.acct-main span { color: #8f7fa4; font-size: 9px; }
.acct-row.owner .acct-main span { color: #cba957; }
.acct-actions { display: flex; gap: 5px; flex: none; }
.acct-actions button {
  height: 27px; padding: 0 9px; border-radius: 7px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.025); color: #c6b8d6;
  font-family: inherit; font-size: 9.5px;
}
.acct-actions button:hover { color: #fff; border-color: rgba(255, 195, 55, 0.45); }
.acct-actions button.danger { color: #ff8fa8; }
.acct-actions button.danger:hover { border-color: rgba(255, 23, 68, 0.45); background: rgba(255, 23, 68, 0.08); }
.acct-edit {
  display: grid; grid-template-columns: 1fr 1.2fr 90px 70px; gap: 7px; align-items: center;
  margin-top: 14px; padding: 11px 12px; border-radius: 10px;
  border: 1px solid rgba(255, 195, 55, 0.22);
  background: rgba(255, 195, 55, 0.035);
}
.acct-edit > span { color: #cdb77b; font-size: 10px; }
.acct-edit b { color: #fff; }
.acct-edit input { height: 31px; }
.acct-edit button {
  height: 31px; border-radius: 7px; cursor: pointer;
  border: 1px solid rgba(255, 195, 55, 0.38);
  background: rgba(255, 195, 55, 0.10); color: #ffe29a;
  font-family: inherit; font-size: 10px;
}
.acct-edit button:hover { background: #ffc337; color: #1a1202; }
#acct-edit-cancel { border-color: rgba(255, 255, 255, 0.10); background: transparent; color: #b8a4cc; }
#acct-edit-cancel:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }

/* ---------- start route: no map chrome at all ---------- */
body.start-only #loading { display: none !important; }
body.start-only #map { visibility: hidden !important; }
body.start-only #topbar,
body.start-only #side,
body.start-only #panel-tab,
body.start-only #card,
body.start-only #zoombars,
body.start-only #status,
body.start-only #ruler-hud,
body.start-only #draw-toolbar,
body.start-only #territory-panel,
body.start-only #pin-registry,
body.start-only #coach {
  display: none !important;
}
body.start-only { background: #030408; }

/* ---------- role-scoped map chrome ---------- */
body.auth-screen #topbar,
body.auth-screen #side,
body.auth-screen #panel-tab,
body.auth-screen #card,
body.auth-screen #zoombars,
body.auth-screen #status,
body.auth-screen #ruler-hud,
body.auth-screen #draw-toolbar,
body.auth-screen #pin-registry,
body.auth-screen #coach {
  visibility: hidden !important;
}
body.role-viewer .layer-row[data-layer="roads"],
body.role-viewer .layer-row[data-layer="drawings"],
body.role-viewer .layer-row[data-layer="pins"],
body.role-viewer .layer-group-label[data-group="tactics"] { display: none !important; }
body.role-viewer #pins-open-btn { display: none !important; }
body:not(.can-edit-map) #drawbar { display: none !important; }
body:not(.can-edit-map) #draw-toolbar,
body:not(.can-edit-map) #territory-panel { display: none !important; }
body.role-member #pin-reg-new,
body.role-member #pin-reg-select-toggle { display: none !important; }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; width: min(480px, 100%); }
  .auth-brand { padding: 26px 26px 20px; border-right: none; border-bottom: 1px solid rgba(255, 42, 133, 0.13); }
  .auth-brand h1 { font-size: 28px; }
  .ab-lead { margin-bottom: 16px; font-size: 11px; }
  .ab-visual { display: none; }
  .auth-card { padding: 24px 24px 22px; }
  .admin-entry { top: 10px; right: 10px; padding: 7px 9px; }
  .admin-entry span { display: none; }
}
@media (max-width: 760px) {
  .auth-gate { align-items: flex-start; }
  .auth-shell { margin: auto 0; }
  .auth-brand { padding: 19px 22px 13px; }
  .ab-mark { margin-bottom: 8px; }
  .ab-mark svg { width: 28px; height: 28px; }
  .ab-tag { font-size: 8px; margin-bottom: 8px; }
  .auth-brand h1 { font-size: 25px; margin-bottom: 10px; }
  .ab-lead { display: none; }
  .auth-card { padding: 19px 22px 17px; }
  .auth-continue { margin-bottom: 10px; }
  .auth-continue-btn { padding: 8px 10px; }
  .auth-card h2 { font-size: 21px; }
  .auth-card-head p { margin-bottom: 15px; }
  .auth-guest { padding: 10px 12px; }
  .auth-or { margin: 14px 0 12px; }
  .auth-form { gap: 10px; }
  .auth-field input { height: 38px; }
  .auth-submit { height: 40px; }
  .auth-note { margin-top: 12px; font-size: 8.5px; }
  .acct-create-grid { grid-template-columns: 1fr 1fr; }
  .acct-create-btn { grid-column: 1 / -1; }
  .acct-edit { grid-template-columns: 1fr 1fr; }
  .acct-edit > span { grid-column: 1 / -1; }
  .admin-head, .admin-body { padding-left: 15px; padding-right: 15px; }
  .admin-window { max-height: 91vh; }
  .ac-copy { display: none; }
  .account-chip { padding-right: 7px; }
  .account-menu { left: -8px; }
}