/* © 2026 Grim Developments | .gg/UqqGhAJwxV */
/* ----------Login---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login { width: min(440px, 100%); padding: 34px 28px; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.login img { width: 170px; animation: float 5s ease-in-out infinite, pulse 4s ease-in-out infinite; }
.title.small { font-size: clamp(1.8rem, 7vw, 2.4rem); }
.err { color: #ff8aa0; background: rgba(255, 77, 109, 0.1); border: 1px solid rgba(255, 77, 109, 0.35); padding: 0.6rem 0.8rem; border-radius: 10px; font-weight: 700; font-size: 0.9rem; }
.back { color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.back:hover { color: var(--p2); }

/* ----------Top bar---------- */
.who { display: flex; align-items: center; gap: 0.7rem; }
.who img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--p1); }
.who b { display: block; font-size: 0.9rem; line-height: 1.1; }
.who small { display: block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--p2); }

/* ----------Panel---------- */
.panel { padding: 28px 0 120px; }
.quick { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 18px; }
.qbtn svg { width: 1.2em; height: 1.2em; }
.tabs { display: flex; gap: 0.3rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs button { background: none; border: none; padding: 0.75rem 1rem; font-weight: 800; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: #fff; border-color: var(--p1); text-shadow: 0 0 12px var(--glow); }
.pad { padding: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .span2 { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.82rem; font-weight: 800; color: #dccfe4; }
label small { font-weight: 600; color: var(--muted); }
input, textarea, select { background: #0b070f; border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.8rem; font-size: 0.92rem; font-weight: 600; outline: none; resize: vertical; width: 100%; }
input:focus, textarea:focus, select:focus { border-color: var(--p1); box-shadow: 0 0 0 3px rgba(191, 0, 255, 0.18); }
.toggles { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 18px; }
.toggle { flex-direction: row; align-items: center; gap: 0.6rem; cursor: pointer; font-size: 0.88rem; }
.toggle input { display: none; }
.sw { width: 42px; height: 24px; border-radius: 99px; background: #241a2b; position: relative; transition: background 0.2s; flex: none; }
.sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #8d7f96; transition: all 0.2s; }
.toggle input:checked + .sw { background: var(--p1); box-shadow: 0 0 12px var(--glow); }
.toggle input:checked + .sw::after { left: 21px; background: #fff; }

/* ----------Lists---------- */
.list { display: grid; gap: 14px; }
.entry { padding: 16px 18px; }
.entry-head { display: flex; align-items: center; gap: 0.7rem; cursor: pointer; }
.entry-head .thumb { width: 54px; height: 36px; border-radius: 8px; object-fit: cover; background: linear-gradient(135deg, #2a0640, #0b0510); flex: none; }
.entry-head b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry-head .acts { display: flex; gap: 0.3rem; }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); cursor: pointer; display: grid; place-items: center; font-weight: 800; color: var(--muted); }
.icon-btn:hover { color: #fff; border-color: var(--p1); }
.icon-btn.del:hover, .icon-btn.armed { color: #fff; background: var(--bad); border-color: var(--bad); }
.entry-body { margin-top: 14px; }
.entry.closed .entry-body { display: none; }
.add { margin-top: 14px; width: 100%; border-style: dashed; }
.empty-list { padding: 24px; text-align: center; color: var(--muted); }

/* ----------Admins---------- */
.h3 { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 1.5rem; letter-spacing: 0.05em; margin: 4px 0 10px; }
.h3 + .admin-row, #adminList { margin-bottom: 18px; }
.admin-row { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 0.8rem; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); margin-bottom: 8px; }
.admin-row img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.admin-row div { flex: 1; min-width: 0; }
.admin-row b { display: block; }
.admin-row small { color: var(--muted); font-family: ui-monospace, Menlo, monospace; font-size: 0.78rem; }
.add-admin { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 10px; }
.small { font-size: 0.8rem; }
.help { margin-top: 12px; }

/* ----------Save bar---------- */
.savebar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 0.8rem; padding: 0.6rem 0.7rem 0.6rem 1.2rem; border-radius: 999px; background: rgba(14, 10, 18, 0.95); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); z-index: 60; transition: border-color 0.2s, box-shadow 0.2s; }
.savebar span { font-weight: 700; font-size: 0.88rem; color: var(--muted); white-space: nowrap; }
.savebar.dirty { border-color: var(--p1); box-shadow: 0 0 26px var(--glow); }
.savebar.dirty span { color: #fff; }
.savebar:not(.dirty) #saveBtn, .savebar:not(.dirty) #discardBtn { opacity: 0.45; pointer-events: none; }

@media (max-width: 820px) {
  .form-grid, .add-admin { grid-template-columns: 1fr; }
  .who b, .who small { display: none; }
  .who .btn { padding: 0.45rem 0.7rem; }
  .savebar { width: calc(100% - 24px); justify-content: flex-end; }
  .savebar span { margin-right: auto; }
}

/* ----------Import---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(4px); }
.modal-box { width: min(720px, 100%); padding: 22px; display: flex; flex-direction: column; gap: 12px; max-height: 92vh; overflow: auto; }
.modal-box textarea { font-family: ui-monospace, Menlo, monospace; font-size: 0.8rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: 0.6rem; }
