:root{
  --bg:#0b1220;
  --card:#0f1a2f;
  --muted:#9bb0d0;
  --text:#e9f0ff;
  --line:rgba(255,255,255,.08);
  --btn:#2b6fff;
  --btn2:#1c2a44;
  --danger:#ff3b58;
  --ok:#47d18c;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: radial-gradient(1200px 700px at 20% 0%, #142a52 0%, var(--bg) 60%);
  color:var(--text);
}
.top{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 18px;
  border-bottom:1px solid var(--line);
  background: rgba(10,16,30,.65);
  backdrop-filter: blur(10px);
  position:sticky; top:0; z-index:10;
}
.brand{display:flex; align-items:center; gap:12px}
.logo{
  width:40px; height:40px; border-radius:12px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, #2b6fff, #7c4dff);
  font-weight:900; font-size:18px;
}
.name{font-weight:800; letter-spacing:.2px}
.tag{color:var(--muted); font-size:13px; margin-top:2px}
.actions{display:flex; gap:8px; align-items:center}
.btn{
  border:1px solid transparent;
  background: var(--btn);
  color:white;
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  font-weight:800;
}
.btn.ghost{background:transparent; border-color:var(--line)}
.btn.danger{background:transparent; border-color:rgba(255,59,88,.55); color:#ff8da0}
.btn:disabled{opacity:.5; cursor:not-allowed}
.wrap{max-width:980px; margin:22px auto; padding:0 14px}
.card{
  background: rgba(15,26,47,.85);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
h2{margin:0 0 10px 0}
.hint{color:var(--muted); margin:0 0 14px 0; font-size:14px; line-height:1.45}
.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 720px){
  .grid2{grid-template-columns: 1fr;}
}
.lbl{display:block; font-weight:800; margin:0 0 6px 0}
.sub{color:var(--muted); font-size:12px; margin-top:6px; line-height:1.45}
input,select{
  width:100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline:none;
}
input:focus,select:focus{border-color: rgba(43,111,255,.7)}
.row{display:flex; gap:10px; align-items:center; margin-top:14px; flex-wrap:wrap}
.errors{margin-top:12px; color:#ff9db0}
.add{margin-top:12px}
.addRow{display:flex; gap:10px; align-items:center}
.addRow input{flex:1}
.results{
  margin-top:12px;
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
  background: rgba(0,0,0,.12);
}
.muted{color:var(--muted)}
.group{margin-top:12px}
.group:first-child{margin-top:0}
.gTitle{font-weight:900; margin:0 0 8px 0}
.item{display:flex; align-items:flex-start; justify-content:flex-start; gap:10px; padding:8px 10px; border:1px solid var(--line); border-radius:12px; background: rgba(255,255,255,.03); margin-top:8px}
.left{display:flex; gap:10px; align-items:flex-start; flex:1; min-width:0; justify-content:flex-start}
.xbtn{margin-left:auto}
.xspacer{width:32px; height:32px; flex:0 0 auto; margin-left:auto}
.chk{margin-top:3px; flex:0 0 auto}
.txt{line-height:1.3; flex:1; min-width:0; overflow-wrap:anywhere; word-break:break-word}
.txt.done{color:rgba(233,240,255,.65); text-decoration: line-through}
.xbtn{
  margin-left:auto;
  flex:0 0 auto;
  border:1px solid var(--line);
  background: transparent;
  color: var(--muted);
  width:32px; height:32px;
  border-radius:10px;
  cursor:pointer;
  font-weight:900;
}
.xbtn:hover{color:var(--text)}
.faq{margin-top:14px}
.faq summary{cursor:pointer; font-weight:900}
