:root{
  --bg:#0b0f1a;
  --panel:#111827;
  --muted:#94a3b8;
  --text:#e5e7eb;
  --brand:#a78bfa;
  --accent:#34d399;
  --outline:#1f2937;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif;
  background: radial-gradient(1200px 800px at 20% 0%, rgba(255,255,255,0.05), transparent 60%),
              radial-gradient(900px 600px at 100% 0%, rgba(167,139,250,0.12), transparent 40%),
              var(--bg);
  color:var(--text);
  display:flex;
  flex-direction:column;
}
.app-header{padding:24px 16px 8px;border-bottom:1px solid var(--outline);backdrop-filter: blur(8px);}
h1{margin:0 0 4px;font-size:clamp(20px,4vw,28px)}
.tagline{margin:0;color:var(--muted)}
.tabs{margin-top:12px;display:flex;gap:8px;flex-wrap:wrap}
.tab{background:var(--panel);border:1px solid var(--outline);color:var(--text);padding:8px 12px;border-radius:12px;cursor:pointer}
.tab.active{border-color:var(--brand);box-shadow:0 0 0 2px rgba(167,139,250,.2) inset}
#view{padding:16px;flex:1;display:grid;gap:12px;align-content:start;max-width:1000px;margin-inline:auto;width:100%}
.card{background:var(--panel);border:1px solid var(--outline);border-radius:16px;padding:16px}
.card h2{margin:0 0 8px}
.row{display:flex;gap:8px;flex-wrap:wrap}
input,textarea,select,button{font:inherit}
input,textarea,select{
  width:100%;background:#0b1220;color:var(--text);border:1px solid var(--outline);border-radius:12px;padding:10px 12px;outline:none;
}
textarea{min-height:96px;resize:vertical}
button.primary{background:linear-gradient(135deg,var(--brand),#7c3aed);border:none;color:white;padding:10px 14px;border-radius:12px;cursor:pointer}
button.ghost{background:transparent;border:1px solid var(--outline);color:var(--text);padding:10px 14px;border-radius:12px;cursor:pointer}
.badge{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border:1px solid var(--outline);border-radius:999px;color:var(--muted)}
.grid-2{display:grid;grid-template-columns:1fr;gap:12px}
@media(min-width:800px){.grid-2{grid-template-columns:1fr 1fr}}
.kpi{display:flex;flex-direction:column;gap:4px;background:#0d1426;border:1px solid var(--outline);padding:12px;border-radius:12px}
.list{display:grid;gap:8px}
.list-item{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px dashed #1f2937}
progress{width:100%}
.app-footer{border-top:1px solid var(--outline);padding:12px 16px;display:flex;justify-content:space-between;align-items:center}
small{color:var(--muted)}
