:root{
  --bg:#0b0f14;
  --card:#111826;
  --text:#eaf0ff;
  --muted:#98a2b3;
  --line:#1f2a3a;
  --green:#16a34a;
  --orange:#f59e0b;
  --red:#ef4444;
  --neutral:#334155;
  --btn:#2563eb;
}

*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,'Helvetica Neue',Arial; background:var(--bg); color:var(--text)}
a{color:inherit;text-decoration:none}
.app{min-height:100vh;padding:14px}

.topbar{
  display:flex; justify-content:space-between; gap:12px;
  position:sticky; top:0; padding:10px 12px;
  background:rgba(11,15,20,.85); backdrop-filter: blur(10px);
  border:1px solid var(--line); border-radius:16px; margin-bottom:12px;
}
.link{color:var(--muted); font-weight:600}
.link:hover{color:var(--text)}

.stack{display:flex; flex-direction:column; gap:12px; max-width:720px; margin:0 auto}
.card{
  background:var(--card); border:1px solid var(--line);
  border-radius:18px; padding:14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.subcard{
  background:rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-radius:16px; padding:12px;
}
h1,h2,h3{margin:0 0 8px 0}
.muted{color:var(--muted); margin:6px 0}
.small{font-size:.9rem}

.grid2{display:grid; grid-template-columns:1fr; gap:10px}
@media(min-width:560px){ .grid2{grid-template-columns:1fr 1fr} }

label{display:block; margin:10px 0 6px; color:var(--muted); font-weight:600}
input,select{
  width:100%; padding:12px 12px; border-radius:14px;
  border:1px solid var(--line); background:#0b1220; color:var(--text);
  outline:none;
}
input:focus,select:focus{border-color:rgba(37,99,235,.7)}

.btn{
  display:inline-block; width:100%;
  padding:12px 14px; border-radius:14px; border:1px solid transparent;
  background:var(--btn); color:white; font-weight:800; cursor:pointer;
}
.btn:hover{filter:brightness(1.05)}
.btn.ghost{background:transparent;border-color:var(--line);color:var(--text)}
.btn.danger{background:var(--red)}
.actions{display:flex; gap:10px}
.actions .btn{width:auto; flex:1}

.row{
  display:flex; justify-content:space-between; align-items:center;
  gap:12px; padding:10px 0; border-bottom:1px solid rgba(255,255,255,.06);
}
.row:last-child{border-bottom:none}
.input{width:92px}

.badge{
  display:inline-block; padding:8px 10px; border-radius:999px;
  font-weight:900; border:1px solid rgba(255,255,255,.08);
}
.badge.green{background:rgba(22,163,74,.20); color:#b6f7c8}
.badge.orange{background:rgba(245,158,11,.20); color:#ffe3b0}
.badge.red{background:rgba(239,68,68,.20); color:#ffd0d0}
.badge.neutral{background:rgba(51,65,85,.35); color:#d8e0ff}
.big{font-size:1.6rem; margin-top:6px}

.pill{
  display:inline-block; font-size:.78rem; padding:4px 8px;
  border-radius:999px; margin-right:8px; border:1px solid rgba(255,255,255,.08);
  color:var(--muted);
}
.pill-base{background:rgba(37,99,235,.14)}
.pill-aigu{background:rgba(245,158,11,.12)}

.error{
  background:rgba(239,68,68,.15);
  border:1px solid rgba(239,68,68,.35);
  padding:10px 12px; border-radius:14px;
}

.notice{
  margin-top:10px; padding:10px 12px; border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
}
.list{display:flex; flex-direction:column; gap:8px}
.list-item{
  padding:10px 12px; border-radius:14px; border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  display:flex; justify-content:space-between; align-items:center;
}
.sr-only{position:absolute; left:-9999px}
