:root { --bg:#111318; --panel:#1c1f25; --line:#343842; --text:#f4f1eb; --muted:#999da7; --accent:#7544ad; --accent2:#9c5ee0; --success:#65c583; --error:#ef7777; }
* { box-sizing:border-box; }
html { color-scheme:dark; }
body { margin:0; background:linear-gradient(135deg,#0c0d10,#17141d 55%,#111318); color:var(--text); font:14px/1.45 Arial,Helvetica,sans-serif; }
button,input,textarea,select { font:inherit; }
a { color:inherit; text-decoration:none; }
button { cursor:pointer; }
.kicker { margin:0 0 5px; color:var(--accent2); font-size:10px; font-weight:900; letter-spacing:.22em; }
.loginShell { min-height:100vh; display:grid; place-items:center; padding:24px; }
.loginCard { width:min(430px,100%); display:grid; gap:17px; padding:42px; border:1px solid var(--line); border-top:4px solid var(--accent2); background:rgba(28,31,37,.97); box-shadow:0 25px 80px rgba(0,0,0,.45); }
.loginCard h1 { margin:0; font:500 36px Georgia,serif; }
.loginCard p:not(.kicker) { margin:0 0 5px; color:var(--muted); }
.loginCard > a { color:var(--muted); font-size:12px; text-align:center; }
label { display:grid; gap:7px; color:#c9cbd0; font-size:11px; font-weight:800; letter-spacing:.025em; }
label small { color:var(--muted); font-size:10px; font-weight:400; }
input,textarea,select { width:100%; border:1px solid #40444e; border-radius:3px; background:#121419; color:#fff; outline:none; }
input { height:43px; padding:0 12px; }
select { height:43px; padding:0 12px; }
input[type=color] { padding:4px; }
textarea { min-height:88px; padding:11px 12px; resize:vertical; line-height:1.5; }
input:focus,textarea:focus,select:focus { border-color:var(--accent2); box-shadow:0 0 0 3px rgba(156,94,224,.13); }
button { min-height:43px; border:0; border-radius:3px; padding:0 19px; background:var(--accent); color:#fff; font-weight:900; text-transform:uppercase; }
button:hover { background:var(--accent2); }
.adminHeader { position:sticky; z-index:10; top:0; min-height:78px; display:flex; align-items:center; justify-content:space-between; gap:25px; padding:13px max(24px,calc((100% - 1220px)/2)); border-bottom:1px solid var(--line); background:rgba(13,15,19,.96); backdrop-filter:blur(12px); }
.adminHeader h1 { margin:0; font:500 25px Georgia,serif; }
.adminHeader nav { display:flex; align-items:center; gap:16px; color:#bfc2c9; font-size:11px; font-weight:800; text-transform:uppercase; }
.adminHeader form { margin:0; }
.linkButton { min-height:34px; padding-inline:13px; background:#292c33; font-size:10px; }
.adminShell { width:min(1220px,calc(100% - 40px)); margin:34px auto 90px; }
.editor { display:grid; gap:24px; }
.databaseForm { margin-bottom:24px; }
.panel { overflow:hidden; border:1px solid var(--line); border-radius:5px; background:rgba(28,31,37,.95); box-shadow:0 14px 35px rgba(0,0,0,.2); }
.panelTitle { display:flex; align-items:center; gap:18px; padding:21px 25px; border-bottom:1px solid var(--line); background:#20232a; }
.panelTitle > span { flex:none; color:var(--accent2); font:500 28px Georgia,serif; }
.panelTitle h2 { margin:0; font:500 23px Georgia,serif; }
.panelTitle p { margin:3px 0 0; color:var(--muted); font-size:12px; }
.fieldGrid { display:grid; gap:19px; padding:25px; }
.fieldGrid--2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
.fieldGrid--4 { grid-template-columns:repeat(4,minmax(0,1fr)); }
.span2 { grid-column:span 2; }
.backgroundGrid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; padding:25px; }
.backgroundCard { min-width:0; overflow:hidden; border:1px solid var(--line); border-radius:4px; background:#16181d; }
.backgroundCard h3 { margin:16px 17px 11px; font:500 19px Georgia,serif; }
.backgroundCard label { margin:0 17px 14px; }
.backgroundPreview { height:125px; background:#0e1014 center/cover no-repeat; border-bottom:1px solid var(--line); }
.filePicker { min-height:40px; display:flex; align-items:center; justify-content:center; border:1px dashed #5b606c; border-radius:3px; color:#d7d9de; cursor:pointer; }
.filePicker:hover { border-color:var(--accent2); color:#fff; }
.filePicker input { position:absolute; width:1px; height:1px; overflow:hidden; opacity:0; }
.check { display:flex!important; grid-template-columns:auto 1fr; align-items:center; justify-content:start!important; gap:8px!important; font-weight:400; }
.check input { width:16px; height:16px; padding:0; }
.checkGroup { display:grid; align-content:center; gap:9px; min-height:43px; }
.panelActions { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:17px 25px; border-top:1px solid var(--line); background:#191b20; }
.panelActions p { max-width:700px; margin:0; color:var(--muted); font-size:11px; }
.panelActions button { flex:none; }
.saveBar { position:sticky; z-index:9; bottom:16px; display:flex; align-items:center; justify-content:space-between; gap:22px; padding:15px 18px; border:1px solid #4d4558; border-radius:5px; background:rgba(23,20,29,.96); box-shadow:0 15px 50px rgba(0,0,0,.45); backdrop-filter:blur(12px); }
.saveBar span { color:#aeb0b7; font-size:12px; }
.saveBar button { min-width:260px; }
.notice { margin-bottom:22px; padding:14px 17px; border:1px solid; border-radius:4px; }
.notice--success { border-color:rgba(101,197,131,.4); background:rgba(101,197,131,.1); color:#a6e8b9; }
.notice--error { border-color:rgba(239,119,119,.4); background:rgba(239,119,119,.1); color:#ffadad; }
.notice--info { margin-bottom:0; border-color:rgba(156,94,224,.4); background:rgba(156,94,224,.1); color:#d7baf7; font-size:12px; }
@media (max-width:900px) {
  .fieldGrid--4 { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .backgroundGrid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:650px) {
  .adminHeader { position:relative; align-items:flex-start; flex-direction:column; }
  .adminHeader nav { width:100%; flex-wrap:wrap; }
  .adminShell { width:min(100% - 24px,1220px); margin-top:18px; }
  .fieldGrid--2,.fieldGrid--4,.backgroundGrid { grid-template-columns:1fr; }
  .span2 { grid-column:auto; }
  .panelTitle,.fieldGrid,.backgroundGrid { padding:18px; }
  .saveBar { align-items:stretch; flex-direction:column; }
  .saveBar button { width:100%; min-width:0; }
  .panelActions { align-items:stretch; flex-direction:column; }
  .panelActions button { width:100%; }
  .loginCard { padding:30px 23px; }
}
