.admin-body { background: var(--bg); }
.login-wrap { min-height: 70vh; display: grid; place-items: center; padding: 30px 16px; }
.login-card { width: 100%; max-width: 400px; }
.login-card h1 { font-size: 1.5rem; margin-bottom: 4px; }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; gap: 22px; max-width: 1280px; margin: 0 auto; padding: 22px 20px; }
.side { position: sticky; top: 16px; align-self: start; display: flex; flex-direction: column; gap: 4px; }
.side .brand { margin-bottom: 12px; }
.side button { text-align: left; padding: 10px 12px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.side button:hover { background: var(--surface-2); color: var(--text); }
.side button.active { background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); }
.side .group { margin: 14px 12px 4px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-head h1 { font-size: 1.5rem; }
.actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.btn-danger { background: var(--danger-bg); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
dialog { border: 1px solid var(--border); border-radius: var(--radius); padding: 0; width: min(560px, 94vw); max-height: 92vh; background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
dialog::backdrop { background: rgba(5, 15, 12, .55); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.dlg-body { padding: 18px 20px; overflow: auto; max-height: calc(92vh - 150px); }
.dlg-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); }
.check { flex-direction: row; align-items: center; gap: 10px; }
.check input { width: auto; }
.img-row { display: flex; gap: 8px; align-items: center; }
.img-row input[type="text"], .img-row input[type="url"] { flex: 1; }
.img-preview { margin-top: 6px; max-height: 110px; border-radius: 10px; }
.toast { position: fixed; bottom: 20px; right: 20px; z-index: 100; background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 600; box-shadow: var(--shadow); max-width: 90vw; }
.toast.bad { background: var(--danger); color: #fff; }
.month-grid td:last-child, .month-grid th:last-child { text-align: right; }
.cell-trunc { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-top { display: none; }
@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  .side { position: static; flex-direction: row; flex-wrap: wrap; }
  .side .brand, .side .group { display: none; }
}
