:root{
  --bg:#0b1020;
  --card:#121a33;
  --text:#e9ecf5;
  --muted:#aab3d3;
  --line:rgba(255,255,255,.10);
  --btn:#3b82f6;
  --btn2:#22c55e;
  --danger:#ef4444;
  --radius:14px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1000px 500px at 10% 0%, rgba(59,130,246,.25), transparent 60%),
              radial-gradient(900px 500px at 90% 10%, rgba(34,197,94,.18), transparent 55%),
              var(--bg);
  color:var(--text);
}

a{color:inherit; text-decoration:none}
.container{max-width:1100px; margin:0 auto; padding:24px}

.topbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; margin-bottom:16px;
}
.brand{font-weight:800; letter-spacing:.2px}
.nav{display:flex; gap:10px; align-items:center; flex-wrap:wrap}

.btn{
  border:1px solid var(--line);
  background:rgba(255,255,255,.06);
  color:var(--text);
  padding:10px 14px;
  border-radius:12px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.btn.primary{background:var(--btn); border-color:transparent}
.btn.success{background:var(--btn2); border-color:transparent}
.btn.danger{background:var(--danger); border-color:transparent}
.btn:disabled{opacity:.6; cursor:not-allowed}

.card{
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:16px;
  backdrop-filter: blur(8px);
}

.grid{display:grid; grid-template-columns: 1fr 1fr; gap:14px}
@media (max-width: 820px){ .grid{grid-template-columns:1fr} }

label{display:block; font-size:13px; color:var(--muted); margin:10px 0 6px}
input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.18);
  color:var(--text);
  outline:none;
}
textarea{min-height:120px; resize:vertical}
.hint{font-size:12px; color:var(--muted); margin-top:6px}

.table{
  width:100%;
  border-collapse:collapse;
  overflow:hidden;
  border-radius:14px;
  border:1px solid var(--line);
}
.table th, .table td{
  padding:12px 12px;
  border-bottom:1px solid var(--line);
  text-align:left;
  font-size:14px;
  vertical-align:middle;
}
.table th{color:var(--muted); font-weight:600; background:rgba(255,255,255,.03)}
.table tr:hover td{background:rgba(255,255,255,.03)}

.notice{
  margin-top:12px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--muted);
}
.notice.error{border-color: rgba(239,68,68,.45); color:#ffd3d3}
.notice.ok{border-color: rgba(34,197,94,.45); color:#d6ffe7}

.thumbgrid{display:grid; grid-template-columns:repeat(4, 1fr); gap:10px; margin-top:10px}
.thumbgrid img{width:100%; aspect-ratio: 4/3; object-fit:cover; border-radius:12px; border:1px solid var(--line)}
@media (max-width: 820px){ .thumbgrid{grid-template-columns:repeat(2, 1fr)} }

.smallimg{
  width:54px;
  height:40px;
  object-fit:cover;
  border-radius:10px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.18);
}
