:root{
  --bg:#070b14;
  --panel:#0b1222;
  --stroke:rgba(255,255,255,.08);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.55);
  --muted2:rgba(255,255,255,.35);
  --accent:#3b82f6;
  --good:#22c55e;
  --danger:#ef4444;
  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --radius: 18px;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(1000px 700px at 20% 0%, #0c1a36 0%, var(--bg) 55%) fixed;
  color:var(--text);
}
a{color:inherit;text-decoration:none}
.wrap{max-width:1200px;margin:0 auto;padding:28px}
.topbar{
  display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
  padding:18px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.brand{display:flex;align-items:center;gap:14px;min-width:260px}
.logo{
  width:44px;height:44px;border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  background: rgba(59,130,246,.18);
  border:1px solid rgba(59,130,246,.35);
  font-weight:800;letter-spacing:.5px;
}
.title{font-size:18px;font-weight:800}
.sub{font-size:13px;color:var(--muted)}
.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 12px;border-radius:12px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  color:var(--text);
  font-weight:700;font-size:13px;
  cursor:pointer;
}
.btn:hover{background: rgba(255,255,255,.06)}
.btn.small{padding:8px 10px;border-radius:11px;font-size:12px}
.btn.primary{border-color: rgba(59,130,246,.45); background: rgba(59,130,246,.16)}
.btn.primary:hover{background: rgba(59,130,246,.22)}
.btn.danger{border-color: rgba(239,68,68,.45); background: rgba(239,68,68,.12)}
.btn.danger:hover{background: rgba(239,68,68,.18)}

.crumbs{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:14px 0 10px 0}
.chip{
  display:inline-flex;align-items:center;
  padding:8px 10px;border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  font-size:12px;color:var(--muted);
}
.chip:hover{background: rgba(255,255,255,.06); color: var(--text);}
.sep{color:var(--muted2)}

.grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:12px}
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:14px;
}
.cardh{font-weight:900;font-size:14px;margin-bottom:10px;color:rgba(255,255,255,.9);display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.tiles{display:grid;grid-template-columns:repeat(2, minmax(0,1fr));gap:14px}
.tile{
  padding:14px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.12);
  box-shadow: 0 14px 40px rgba(0,0,0,.22);
  position:relative;
  overflow:hidden;
  min-height:140px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.badgebar{
  height:16px;border-radius:999px;
  width:100%;
  background: rgba(34,197,94,.75);
  margin-bottom:12px;
}
.tile .name{font-weight:900;font-size:16px;letter-spacing:.2px;line-height:1.2}
.tile .meta{font-size:13px;color:var(--muted);margin-top:6px}
.tile .btnrow{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.tile .btn{padding:9px 12px;border-radius:12px}
.tile .btn.primary{min-width:88px}
.tile .btn.danger{min-width:88px}

.upload{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 10px 0}
.file{
  color:var(--muted);
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  padding:8px 10px;
  border-radius:12px;
  font-size:12px;
}
.notice{
  margin-top:12px;
  padding:10px 12px;border-radius:14px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  color: var(--muted);
}
.notice.ok{border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.10); color: rgba(255,255,255,.9)}
.notice.err{border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.10); color: rgba(255,255,255,.9)}

.card.login{max-width:560px;margin:60px auto;padding:18px}
.form{margin-top:14px;display:flex;flex-direction:column;gap:10px}
label{font-size:12px;color:var(--muted)}
input{
  padding:12px 12px;border-radius:14px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-size:14px;
  outline:none;
}
input:focus{border-color: rgba(59,130,246,.45)}
.error{color: rgba(255,255,255,.95); border:1px solid rgba(239,68,68,.35); background: rgba(239,68,68,.10); padding:10px 12px;border-radius:14px}

.inline{margin:0}
.rowline{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
@media (max-width: 980px){ .grid{grid-template-columns:1fr} .tiles{grid-template-columns:1fr} }