:root{
  --bg:#0b0f17;
  --card:#121828;
  --muted:#8ea0b7;
  --text:#e9eef6;
  --line:rgba(255,255,255,.08);
  --pill:#1b2336;
  --green:#44d68b;
  --yellow:#ffd166;
  --red:#ff5a5f;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background: radial-gradient(1200px 700px at 20% -10%, #1b2a55 0%, transparent 60%),
              radial-gradient(900px 600px at 90% 0%, #2b1747 0%, transparent 55%),
              var(--bg);
  color:var(--text);
}
a{color:inherit}
.topbar{
  padding:18px 22px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.brand{display:flex; gap:12px; align-items:center;}
.logo{
  width:38px; height:38px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, rgba(68,214,139,.25), rgba(255,209,102,.18));
  border:1px solid var(--line);
  font-weight:800;
}
.title{font-weight:800; font-size:18px; letter-spacing:.2px}
.subtitle{color:var(--muted); font-size:12px; margin-top:2px}
.statusline{display:flex; gap:10px; align-items:center}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px; border-radius:999px; border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  font-size:12px; color:var(--muted);
  text-decoration:none;
}
.pill-green{color:var(--green)}
.pill-red{color:var(--red)}
.container{max-width:100%; margin:18px auto 44px; padding:0 18px; display:flex; flex-direction:column; gap:14px;}
.card{
  background: rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
}
.card.small{padding:14px}
h2{margin:0 0 12px; font-size:16px}
h3{margin:0 0 8px; font-size:14px}
.label{display:block; font-size:12px; color:var(--muted); margin-bottom:6px}
.hint{font-size:12px; color:var(--muted); margin-top:6px; line-height:1.4}
.grid2{display:grid; grid-template-columns: 1.3fr 1fr; gap:12px}
@media (max-width: 980px){.grid2{grid-template-columns:1fr}}
.row{display:flex; align-items:center; gap:10px}
.row-between{display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap}
.actions{display:flex; gap:10px; align-items:center; margin-top:12px; flex-wrap:wrap}
.msg{font-size:12px; color:var(--muted); white-space: pre-line}
input[type="file"], .input, input[type="text"], input[type="date"], .select{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.2);
  color:var(--text);
  outline:none;
}
.select{cursor:pointer}
.btn{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color:var(--text);
  cursor:pointer;
}
.btn:hover{background: rgba(255,255,255,.06)}
.btn-primary{
  background: linear-gradient(135deg, rgba(68,214,139,.25), rgba(255,209,102,.20));
}
.kpis{display:grid; grid-template-columns: repeat(4, 1fr); gap:10px; margin: 10px 0 12px}
@media (max-width: 980px){.kpis{grid-template-columns:1fr 1fr}}
.kpi{
  border-radius:16px; border:1px solid var(--line);
  padding:12px; background: rgba(0,0,0,.2);
}
.kpi-label{font-size:12px; color:var(--muted)}
.kpi-value{font-size:22px; font-weight:800; margin-top:4px}
.kpi-sub{margin-top:6px; font-size:12px; color:var(--muted)}
.kpi-green{background: rgba(68,214,139,.10)}
.kpi-yellow{background: rgba(255,209,102,.10)}
.kpi-red{background: rgba(255,90,95,.10)}
.filters{
  display:grid; grid-template-columns: 220px 220px 1fr 160px;
  gap:10px; align-items:end; margin-top:10px
}
@media (max-width: 980px){.filters{grid-template-columns:1fr 1fr}}
.right{justify-self:end}
.chips{display:flex; gap:8px; flex-wrap:wrap}
.chip{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px; border-radius:999px; border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  font-size:12px; color:var(--text);
}
.tablewrap{overflow:auto; border-radius:14px; border:1px solid var(--line); margin-top:12px}
table{width:100%; border-collapse:collapse; min-width:2000px; background: rgba(0,0,0,.18)}
th, td{padding:10px 10px; border-bottom:1px solid rgba(255,255,255,.06); vertical-align:top}
th{
  position:sticky; top:0;
  background: rgba(10,14,22,.92);
  font-size:12px; color:var(--muted);
  text-align:left;
  cursor:pointer;
  user-select:none;
}
td{font-size:13px}
td.num{font-variant-numeric: tabular-nums; text-align:right}
.muted{color:var(--muted)}
.badge{
  padding:4px 8px; border-radius:999px;
  font-size:12px; font-weight:700; display:inline-flex; align-items:center; gap:6px;
  border:1px solid var(--line); background: rgba(255,255,255,.03);
}
.badge.green{color:var(--green)}
.badge.yellow{color:var(--yellow)}
.badge.red{color:var(--red)}
.link{color:#9cc4ff; text-decoration:none}
.link:hover{text-decoration:underline}
.footerline{margin-top:10px}
.list{margin:0; padding-left:18px; color:var(--muted); font-size:13px; line-height:1.55}


/* --- Landing helpers (v0.2) --- */
.h1{font-size:28px; font-weight:800; letter-spacing:-0.02em; line-height:1.15;}
.h2{font-size:18px; font-weight:800; margin:0;}
.grid{display:grid; gap:12px; grid-template-columns: repeat(3, minmax(0, 1fr));}
@media (max-width: 920px){ .grid{grid-template-columns:1fr;} }
.card-h{display:flex; justify-content:space-between; gap:16px; align-items:flex-start;}
.pill-title{font-weight:800; margin-bottom:6px;}
.pill-text{font-size:13px; line-height:1.4; opacity:.9;}
.btn-ghost{background:transparent; border:1px solid rgba(0,0,0,.12); color:#111;}
.between{display:flex; align-items:center; justify-content:space-between; gap:10px;}
