:root {
  --bg:#f6f8fb; --card:#ffffff; --line:#e4e9f0; --text:#1f2a37; --muted:#6b7a90;
  --green:#58cc02; --green-d:#2f8a00; --green-l:#e9f8d9;
  --blue:#1cb0f6; --blue-l:#e0f3fd; --orange:#ff9600; --orange-l:#fff1dc;
  --red:#ff4b4b; --red-l:#ffe5e5; --purple:#ce82ff; --purple-l:#f4e6ff;
}
* { box-sizing:border-box; }
body { margin:0; font:15px/1.5 "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background:var(--bg); color:var(--text); }
a { color:inherit; text-decoration:none; }
svg.i { width:1em; height:1em; stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; vertical-align:-.14em; }

nav.top { position:sticky; top:0; z-index:5; background:rgba(255,255,255,.92); backdrop-filter:blur(8px); border-bottom:1px solid var(--line); }
nav.top .in { max-width:1100px; margin:0 auto; padding:10px 20px; display:flex; gap:6px; align-items:center; overflow-x:auto; }
.brand { font-weight:800; font-size:18px; color:var(--green-d); margin-right:12px; white-space:nowrap; display:flex; gap:8px; align-items:center; }
.brand .logo { width:30px; height:30px; border-radius:9px; background:var(--green); color:#fff; display:grid; place-items:center; font-size:17px; }
nav.top a.link { padding:8px 12px; border-radius:12px; color:var(--muted); font-weight:700; white-space:nowrap; display:flex; gap:7px; align-items:center; }
nav.top a.link:hover { background:var(--bg); color:var(--text); }
nav.top a.link.on { background:var(--green-l); color:var(--green-d); }

main { max-width:1100px; margin:0 auto; padding:28px 20px 64px; }
h1 { margin:0 0 4px; font-size:28px; font-weight:800; display:flex; gap:10px; align-items:center; }
.sub { color:var(--muted); margin:0 0 22px; }

.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:14px; }
.card { background:var(--card); border:1px solid var(--line); border-bottom-width:3px; border-radius:18px; padding:18px; }
a.card:hover { border-color:#cdd6e3; transform:translateY(-1px); }
.tile .ic { width:44px; height:44px; border-radius:14px; display:grid; place-items:center; font-size:22px; margin-bottom:12px; }
.tile h3 { margin:0; font-size:17px; }
.tile .n { color:var(--muted); font-size:14px; margin-top:2px; }
.c-green { background:var(--green-l); color:var(--green-d); }
.c-blue { background:var(--blue-l); color:#0b7fb8; }
.c-orange { background:var(--orange-l); color:#b86b00; }
.c-red { background:var(--red-l); color:#c02a2a; }
.c-purple { background:var(--purple-l); color:#8a3fc2; }

.tabs { display:flex; gap:8px; flex-wrap:wrap; margin:0 0 16px; }
.tab { border:2px solid var(--line); background:#fff; color:var(--muted); padding:7px 14px; border-radius:12px; font:inherit; font-weight:700; cursor:pointer; }
.tab.on { border-color:var(--blue); background:var(--blue-l); color:#0b7fb8; }
.tab small { margin-left:6px; opacity:.7; }

.search { position:relative; margin:0 0 16px; max-width:420px; }
.search input { width:100%; padding:10px 14px 10px 38px; border:2px solid var(--line); border-radius:12px; font:inherit; background:#fff; color:var(--text); }
.search input:focus { outline:none; border-color:var(--blue); }
.search .i { position:absolute; left:13px; top:13px; color:var(--muted); }

.chip { display:inline-flex; gap:5px; align-items:center; padding:2px 10px; border-radius:999px; font-size:12.5px; font-weight:700; background:var(--bg); color:var(--muted); }
.chip.ok { background:var(--green-l); color:var(--green-d); }
.chip.tv { background:var(--orange-l); color:#b86b00; }
.chip.hi { background:var(--red-l); color:#c02a2a; }
.chip.mid { background:var(--orange-l); color:#b86b00; }
.chip.blue { background:var(--blue-l); color:#0b7fb8; }
.chip.code { background:#eef2f8; color:#3b4a60; font-variant-numeric:tabular-nums; }

.src { display:flex; flex-direction:column; gap:10px; }
.src h3 { margin:0; font-size:16px; line-height:1.3; }
.src .row { display:flex; flex-wrap:wrap; gap:6px; }
.btn { display:inline-flex; gap:6px; align-items:center; align-self:flex-start; padding:7px 14px; border-radius:12px; background:var(--blue); color:#fff; font-weight:800; font-size:14px; border-bottom:3px solid #1486c0; }
.btn:hover { filter:brightness(1.05); }
details { font-size:14px; color:var(--muted); }
details summary { cursor:pointer; font-weight:700; color:#0b7fb8; }
details p { margin:8px 0 0; }

.sub-h { margin:22px 0 10px; font-size:17px; font-weight:800; display:flex; gap:8px; align-items:center; }
.steps { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px; }
.step { text-align:center; padding:16px 10px; }
.step .f { width:46px; height:46px; margin:0 auto 8px; border-radius:50%; display:grid; place-items:center; font-weight:800; font-size:18px; color:#fff; background:var(--green); border-bottom:4px solid var(--green-d); }
.step b { display:block; }
.step span { color:var(--muted); font-size:13px; }

.cells { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:10px; }
.cell { background:#fff; border:1px solid var(--line); border-radius:14px; padding:10px 12px; display:flex; justify-content:space-between; gap:8px; align-items:center; }
.cell .t { font-weight:700; line-height:1.3; }
.cell .t small { display:block; color:var(--muted); font-weight:600; }
a.cell:hover { border-color:var(--blue); }
.empty { color:var(--muted); padding:24px 0; }

.todo { display:flex; gap:12px; align-items:flex-start; }
.todo .box { width:26px; height:26px; border-radius:8px; border:2px solid var(--line); display:grid; place-items:center; flex:none; color:#fff; }
.todo.done .box { background:var(--green); border-color:var(--green); }
.todo.done b { color:var(--muted); text-decoration:line-through; }
.todo p { margin:2px 0 0; color:var(--muted); font-size:14px; }
.list { display:grid; gap:12px; }
