:root{
  --bg:#0b1020;
  --card:#0f1730;
  --line:rgba(255,255,255,.08);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.65);
  --ok:#24d18f;
  --warn:#ff5c7a;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 20% 0%, rgba(79,70,229,.30), transparent 60%),
              radial-gradient(900px 600px at 80% 10%, rgba(16,185,129,.22), transparent 55%),
              var(--bg);
  color:var(--text);
}

.wrap{max-width:720px;margin:40px auto;padding:0 16px}
.wrap.wide{max-width:1050px}

.topbar{
  position:sticky; top:0;
  backdrop-filter: blur(10px);
  background: rgba(11,16,32,.70);
  border-bottom:1px solid var(--line);
  z-index:10;
}
.topbar-inner{
  max-width:1050px;margin:0 auto;
  padding:12px 16px;
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
}
.brand{font-weight:700;letter-spacing:.2px}
.right{display:flex;gap:10px;align-items:center}

.card{
  background: rgba(15,23,48,.72);
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  margin-bottom:16px;
}

h1,h2{margin:0 0 10px 0}
h1{font-size:28px}
h2{font-size:18px}

.muted{color:var(--muted)}
.small{font-size:12px}
.strong{font-weight:650}
.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace}

.alert{
  border:1px solid rgba(255,92,122,.35);
  background: rgba(255,92,122,.12);
  padding:10px 12px;
  border-radius:12px;
  margin-bottom:12px;
}
.alert.ok{
  border-color: rgba(36,209,143,.40);
  background: rgba(36,209,143,.12);
}

.form label{display:block;margin:10px 0;font-size:13px}
input, textarea{
  width:100%;
  margin-top:6px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.20);
  color:var(--text);
  outline:none;
}
input:focus, textarea:focus{border-color: rgba(99,102,241,.65)}
textarea{resize:vertical}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:9px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color:var(--text);
  text-decoration:none;
  cursor:pointer;
  font-weight:600;
}
.btn:hover{background: rgba(255,255,255,.10)}
.btn.primary{
  border-color: rgba(99,102,241,.55);
  background: rgba(99,102,241,.22);
}
.pill{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  color:var(--muted);
}

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px 14px;
}
.grid .span2{grid-column: span 2}
@media (max-width:720px){
  .grid{grid-template-columns:1fr}
  .grid .span2{grid-column:auto}
}

.current{
  display:flex;
  gap:14px;
  justify-content:space-between;
  align-items:flex-start;
  padding:14px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.16);
}
.kicker{font-size:12px;color:rgba(99,102,241,.95);font-weight:700}
.title{font-size:18px;font-weight:750;margin-top:2px}
.desc{margin-top:8px;color:var(--muted);line-height:1.45}
.meta{margin-top:10px;color:rgba(255,255,255,.55);font-size:12px}
.actions{display:flex;flex-direction:column;gap:8px;min-width:160px}
@media (max-width:820px){
  .current{flex-direction:column}
  .actions{flex-direction:row;min-width:auto}
}

.table{border:1px solid var(--line);border-radius:14px;overflow:hidden}
.thead,.trow{
  display:grid;
  grid-template-columns: 140px 1fr 140px 260px;
  gap:12px;
  padding:12px 14px;
}
.thead{
  background: rgba(0,0,0,.18);
  font-size:12px;
  color:rgba(255,255,255,.65);
  border-bottom:1px solid var(--line);
}
.trow{border-bottom:1px solid var(--line)}
.trow:last-child{border-bottom:none}
.row-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.inline{display:inline}