:root{
  --bg:#0b0c10;
  --card:#12141b;
  --muted:#aab0c0;
  --text:#eef0f6;
  --line:#1f2330;
  --chip:#1b2030;
  --chip2:#151a27;
  --accent:#6ee7ff;
  --ok:#3ddc84;
  --warn:#f6c445;
  --bad:#ff5c7a;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 800px at 20% 0%, #13162a 0%, var(--bg) 55%);
  color:var(--text);
}
a{color:inherit;text-decoration:none}
.wrap{max-width:980px;margin:16px auto;padding:0 12px 36px}
.topbar{
  position:sticky; top:0; z-index:10;
  display:flex; justify-content:space-between; align-items:center;
  padding:10px 12px;
  background: rgba(11,12,16,.75);
  backdrop-filter: blur(8px);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.brand{font-weight:800; letter-spacing:.3px}
.topbar__right{display:flex; gap:8px; align-items:center}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  border:1px solid rgba(255,255,255,.07);
  border-radius:16px;
  padding:14px;
  margin:14px 0;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}
h1{margin:0 0 6px;font-size:22px}
h2{margin:0 0 8px;font-size:18px}
p{margin:8px 0}
.muted{color:var(--muted); font-size:14px}
.kbd{padding:2px 8px; border-radius:999px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08); font-size:12px}

.tiles{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:10px;
}
@media (max-width:820px){ .tiles{grid-template-columns: repeat(2, minmax(0,1fr));}}
@media (max-width:520px){ .tiles{grid-template-columns: 1fr;}}

.tile{
  border-radius:16px;
  padding:12px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  border:1px solid rgba(255,255,255,.08);
  min-height:100px;
}
.tile:active{transform:translateY(1px)}
.tile__top{display:flex; justify-content:space-between; align-items:center; gap:8px}
.tile__name{font-size:22px; font-weight:900; letter-spacing:.8px}
.tile__sub{color:var(--muted); margin-top:4px; font-size:13px}
.tile__meta{margin-top:10px; font-size:13px; color:var(--muted)}
.lamp{
  padding:6px 10px;
  border-radius:999px;
  font-weight:800;
  font-size:12px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
}
.lamp--ok{background:rgba(61,220,132,.14); border-color:rgba(61,220,132,.32)}
.lamp--warn{background:rgba(246,196,69,.14); border-color:rgba(246,196,69,.35)}
.lamp--bad{background:rgba(255,92,122,.15); border-color:rgba(255,92,122,.35)}
.lamp--gray{opacity:.85}

.chip{
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.09);
  color:var(--text);
  padding:8px 10px;
  border-radius:999px;
  font-weight:700;
  font-size:13px;
}
.chip.is-active{outline:2px solid rgba(110,231,255,.35)}
.btn{
  background: rgba(110,231,255,.12);
  border:1px solid rgba(110,231,255,.35);
  color: var(--text);
  padding:10px 12px;
  border-radius:12px;
  font-weight:800;
  cursor:pointer;
}
.btn--ghost{
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
}
.headrow{display:flex; justify-content:space-between; align-items:flex-start; gap:12px}

.tabs{display:flex; gap:8px; flex-wrap:wrap; margin-top:10px}
.tab{
  flex:0 0 auto;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color:var(--text);
  font-weight:900;
  cursor:pointer;
}
.tab.is-active{outline:2px solid rgba(110,231,255,.35)}
.tabpane{display:none; margin-top:12px}
.tabpane.is-active{display:block}

.list{display:flex; flex-direction:column; gap:8px}
.item{
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  border-radius:14px;
  padding:10px;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
}
.item__left{flex:1}
.item__cat{font-size:12px; color:var(--muted); margin-bottom:4px}
.item__label{font-size:15px; font-weight:800}
.item__meta{font-size:12px; color:var(--muted); margin-top:4px}
.item__right{display:flex; gap:8px; align-items:center}
.chk{
  width:26px; height:26px;
  accent-color: var(--ok);
}
.badge{
  padding:6px 10px; border-radius:999px;
  font-weight:900; font-size:12px;
  border:1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.06);
}
.badge--done{background:rgba(61,220,132,.14); border-color:rgba(61,220,132,.32)}
.badge--partial{background:rgba(246,196,69,.14); border-color:rgba(246,196,69,.35)}
.badge--open{background:rgba(255,92,122,.15); border-color:rgba(255,92,122,.35)}
.smallbtn{
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  font-weight:900;
  cursor:pointer;
}

.dialog::backdrop{background:rgba(0,0,0,.55)}
.dialog__card{
  width:min(520px, 94vw);
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background: #0f121a;
  padding:14px;
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
}
.grid2{display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:8px}
.row{display:flex; gap:8px; align-items:center; justify-content:space-between; margin-top:10px}
.input{
  width:100%;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color:var(--text);
  border-radius:12px;
  padding:10px 12px;
  font-size:14px;
}
.section{margin:10px 0}
.label{font-size:12px; color:var(--muted); margin-bottom:6px; font-weight:800; letter-spacing:.3px}
.seg{display:flex; flex-wrap:wrap; gap:8px}
.seg label{
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  padding:10px 12px;
  font-weight:800;
  cursor:pointer;
}
.seg input{margin-right:6px}

.toast{
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  background: rgba(0,0,0,.72);
  border:1px solid rgba(255,255,255,.12);
  padding:10px 12px;
  border-radius:999px;
  font-weight:800;
  font-size:13px;
  color:var(--text);
  opacity:0;
  pointer-events:none;
  transition: opacity .18s ease;
}
.toast.show{opacity:1}
.filters{display:flex; gap:8px; flex-wrap:wrap; margin:10px 0}
