:root{
  --bg:#0b1020;
  --card:#101a33;
  --text:#eaf0ff;
  --muted:#b6c2ff;
  --line:rgba(234,240,255,.12);
  --accent:#7aa2ff;
  --accent2:#57e6c3;
  --danger:#ff5a7a;
}
*{box-sizing:border-box}
body{margin:0; font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Noto Sans",sans-serif; background:var(--bg); color:var(--text);}
.top{display:flex; justify-content:space-between; align-items:center; padding:18px 18px; border-bottom:1px solid var(--line); position:sticky; top:0; background:rgba(11,16,32,.92); backdrop-filter:blur(10px); z-index:10}
.brand{display:flex; gap:12px; align-items:center}
.logo{width:40px;height:40px;border-radius:12px; display:grid; place-items:center; background:linear-gradient(135deg,var(--accent),var(--accent2)); color:#061022; font-weight:900}
.name{font-weight:900}
.tag{color:var(--muted); font-size:12px}
.actions{display:flex; gap:10px}
.grid{max-width:1100px; margin:0 auto; padding:18px; display:grid; gap:14px; grid-template-columns: 1fr 1fr;}
.card{background:rgba(16,26,51,.85); border:1px solid var(--line); border-radius:16px; padding:14px 14px;}
.card.full{grid-column:1/-1}
h2{margin:0 0 10px; font-size:16px}
.row{display:flex; gap:10px; flex-wrap:wrap; align-items:flex-end}
.field{display:flex; flex-direction:column; gap:6px; min-width:160px}
.field.grow{flex:1}
.field span{color:var(--muted); font-size:12px}
input,select{padding:10px 10px; border-radius:12px; border:1px solid rgba(234,240,255,.18); background:rgba(11,16,32,.6); color:var(--text); outline:none}
input:focus,select:focus{border-color: rgba(122,162,255,.55)}
.pill{padding:10px 10px; border-radius:12px; border:1px dashed rgba(234,240,255,.18); color:rgba(234,240,255,.9)}
.btn{padding:10px 12px; border-radius:12px; border:1px solid rgba(234,240,255,.18); background:linear-gradient(135deg, rgba(122,162,255,.92), rgba(87,230,195,.82)); color:#061022; font-weight:800; cursor:pointer}
.btn.ghost{background:transparent; color:var(--text)}
.btn.danger{background:transparent; color:var(--danger); border-color: rgba(255,90,122,.35)}
.btn:disabled{opacity:.5; cursor:not-allowed}
.hint{margin:10px 0 0; color:rgba(234,240,255,.7); font-size:12px; line-height:1.5}
.people{display:grid; gap:10px; margin-top:10px}
.person{display:flex; gap:10px; align-items:flex-end; flex-wrap:wrap; padding:10px; border:1px solid rgba(234,240,255,.12); border-radius:14px; background:rgba(11,16,32,.35)}
.person .mini{min-width:120px}
.person .remove{margin-left:auto}
.matrixWrap{overflow:auto; border:1px solid rgba(234,240,255,.12); border-radius:14px; background:rgba(11,16,32,.35)}
.matrix{border-collapse:collapse; width:100%; min-width:700px}
.matrix th,.matrix td{border-bottom:1px solid rgba(234,240,255,.08); padding:10px; text-align:center}
.matrix th:first-child,.matrix td:first-child{text-align:left; position:sticky; left:0; background:rgba(11,16,32,.95); backdrop-filter:blur(8px)}
.matrix thead th{position:sticky; top:0; background:rgba(11,16,32,.95); backdrop-filter:blur(8px)}
.errors{margin-top:10px; color: #ffd2db}
.results{padding:12px; border-radius:14px; border:1px solid rgba(234,240,255,.12); background:rgba(11,16,32,.35)}
.results.empty{color:rgba(234,240,255,.6)}
.results .kpi{display:flex; justify-content:space-between; align-items:baseline; margin-bottom:6px}
.results .big{font-size:24px; font-weight:900}
.results .subkpi{color:rgba(234,240,255,.75); font-size:12px}
.results .hr{border:none; border-top:1px solid rgba(234,240,255,.12); margin:12px 0}
.results .list{display:grid; gap:10px; margin-top:10px}
.results .item{display:flex; justify-content:space-between; gap:12px; padding:10px; border:1px solid rgba(234,240,255,.10); border-radius:14px; background:rgba(16,26,51,.35)}
.results .muted{color:rgba(234,240,255,.65); font-size:12px}
.results .amt{font-weight:900}
.results .small{font-size:11px; margin-top:8px}
.links{margin:0; padding-left:18px; color:rgba(234,240,255,.8)}
.links a{color:var(--accent2)}
.footer{max-width:1100px; margin:0 auto; padding:24px 18px; color:rgba(234,240,255,.55); font-size:12px}
.spacer{flex:1}
@media (max-width: 900px){.grid{grid-template-columns:1fr}}
