body.admin { overflow: auto; }
body.admin a { color: var(--gold); }
#login { max-width: 380px; margin: 14vh auto 0; padding: 30px; text-align: center; }
#login h2 { margin: 0; }
#login form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }

.adminbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 3vw; background: #111828f5; border-bottom: 3px solid var(--frame); box-shadow: 0 8px 24px #0009; }
.adminbar h2 { margin: 0; font: 400 26px var(--display); color: var(--gold); }
#login h2 { font: 400 28px var(--display); color: var(--gold); }
.adminbar .sub { margin: 0; flex: 1; min-width: 180px; }
select { font: inherit; background: #100e22; color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; }

#list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; padding: 18px 3vw 40px; }
.row-card { display: flex; gap: 12px; align-items: center; text-align: left; width: 100%;
  background: linear-gradient(#1b2440f2, #111828f2); border: 2px solid var(--line); border-bottom-width: 5px; border-radius: 16px; padding: 10px; font: 600 14px var(--body); text-shadow: none; }
.row-card:hover { border-color: var(--frame); filter: none; }
.row-card.off { opacity: .55; }
.thumb { width: 62px; height: 86px; flex: none; border-radius: 8px; border: 2px solid #e9e4ff;
  background: #2a2550 center / cover no-repeat; display: grid; place-items: center; color: var(--muted); font-size: 11px; text-align: center; }
.thumb.big { width: 180px; height: 250px; font-size: 13px; }
.row-card .body { min-width: 0; flex: 1; }
.row-card .title { font: 400 18px var(--display); }
.row-card .title b { display: inline-grid; place-items: center; min-width: 26px; height: 26px; margin-right: 6px; padding: 0 5px;
  border-radius: 99px; background: radial-gradient(circle at 35% 28%, #ff6ba3, #a8104c); font-size: 15px; font-weight: 400; }
.row-card .line { font-size: 12px; color: #cfc9f2; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.chips { display: flex; gap: 5px; flex-wrap: wrap; margin: 4px 0; }
.chip { font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 8px; background: #2f2a5c; color: #dcd6ff; }
.chip.kw { background: var(--gold); color: #3a2200; }
.chip.todo { background: var(--pink); color: #2b0015; }
.chip.ok { background: var(--teal-deep); color: #d6fffb; }
.chip.off { background: #444; }

#editor { width: min(760px, 94vw); text-align: left; }
#editor h3 { margin: 0 0 14px; }
.cols { display: flex; gap: 22px; flex-wrap: wrap; }
.fields { flex: 1; min-width: 280px; display: flex; flex-direction: column; gap: 10px; }
.fields label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.fields input, .fields textarea, .fields select { width: 100%; }
textarea { font: inherit; background: #100e22; color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; resize: vertical; }
.pair { display: flex; gap: 10px; }
.pair label { flex: 1; }
fieldset { border: 1px solid var(--line); border-radius: 12px; display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 8px 12px; margin: 0; }
legend { font-size: 13px; color: var(--muted); padding: 0 6px; }
fieldset label, label.check { flex-direction: row !important; align-items: center; gap: 6px !important; color: var(--text) !important; font-size: 14px !important; }
fieldset input, label.check input { width: auto !important; }
.picture { text-align: center; }
.filebtn { display: inline-block; margin-top: 10px; cursor: pointer; background: linear-gradient(#2a3557, #1c2440); border: 2px solid #56628f; border-bottom-width: 5px;
  border-bottom-color: #0d1222; border-radius: 14px; padding: 8px 18px 6px; font: 400 16px var(--display); }
.filebtn input { display: none; }
.actions { display: flex; gap: 10px; margin-top: 16px; align-items: center; }
.grow { flex: 1; }
button.danger { border-color: var(--pink); color: #ffd0e2; }
button.danger.armed { background: #a3223f; color: #fff; }
.error { color: #ffb3c7; background: #4a1830; border: 1px solid var(--pink); border-radius: 12px; padding: 8px 12px; margin: 14px 0 0; }
.fields, .fields label { text-align: left; }

#editor h3 { font: 400 24px var(--display); color: var(--gold); }
select { border-width: 2px; }
