:root { --bg:#f6f7f9; --surface:#fff; --text:#131722; --muted:#5a6272; --line:#e1e4ea; --accent:#2563eb; --accent-ink:#fff; --soft:#eaf0ff; --good:#0a7d33; --bad:#b42318; --radius:14px; --max:1040px; }
@media (prefers-color-scheme:dark) { :root { --bg:#0f1218; --surface:#171b24; --text:#eceff4; --muted:#9aa3b3; --line:#282e3a; --accent:#6b9bff; --accent-ink:#0b1020; --soft:#1b2540; --good:#4ade80; --bad:#ff8a80; } }
* { box-sizing:border-box; margin:0; }
html { -webkit-text-size-adjust:100%; }
body { font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; background:var(--bg); color:var(--text); line-height:1.6; }
a { color:var(--accent); }
button,input,select,textarea { font:inherit; color:inherit; }
button { cursor:pointer; }
:focus-visible { outline:2px solid var(--accent); outline-offset:2px; border-radius:4px; }
.wrap { max-width:var(--max); margin:0 auto; padding:0 16px; }
header.site { background:var(--surface); border-bottom:1px solid var(--line); }
header.site .wrap { display:flex; align-items:center; justify-content:space-between; min-height:58px; gap:14px; flex-wrap:wrap; }
.logo { display:flex; align-items:center; gap:9px; font-weight:800; color:var(--text); text-decoration:none; font-size:1.08rem; }
.logo svg { flex:none; }
nav.cats { display:flex; gap:4px; flex-wrap:wrap; }
nav.cats a { color:var(--muted); text-decoration:none; font-size:14.5px; font-weight:600; padding:6px 10px; border-radius:8px; }
nav.cats a:hover { background:var(--soft); color:var(--text); }
main { padding:22px 0 50px; }
.crumbs { font-size:13.5px; color:var(--muted); margin-bottom:10px; }
.crumbs a { color:var(--muted); }
h1 { font-size:clamp(1.6rem,4.5vw,2.3rem); line-height:1.15; letter-spacing:-0.02em; margin-bottom:8px; }
.lead { color:var(--muted); font-size:1.06rem; max-width:720px; margin-bottom:18px; }
h2 { font-size:1.35rem; letter-spacing:-0.01em; margin:34px 0 10px; }
h3 { font-size:1.05rem; margin:16px 0 4px; }
.prose p, .prose li { color:var(--text); max-width:760px; }
.prose p { margin-bottom:10px; }
.prose ol, .prose ul { padding-left:22px; margin-bottom:10px; }
.prose li { margin-bottom:4px; }
.card { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:18px; }
.drop { border:2px dashed var(--line); border-radius:12px; padding:30px 16px; text-align:center; background:var(--bg); transition:border-color .15s, background .15s; }
.drop.over { border-color:var(--accent); background:var(--soft); }
.drop strong { display:block; font-size:1.08rem; margin-bottom:4px; }
.drop small { color:var(--muted); display:block; margin-top:8px; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:10px 18px; border-radius:10px; border:0; background:var(--accent); color:var(--accent-ink); font-weight:700; text-decoration:none; }
.btn:hover { filter:brightness(1.08); }
.btn.alt { background:var(--surface); color:var(--text); border:1px solid var(--line); }
.btn.sm { padding:6px 12px; font-size:14px; }
.btn:disabled { opacity:.5; cursor:default; }
.opts { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; margin-top:14px; align-items:end; }
.opts label, .field label { display:grid; gap:4px; font-size:13px; font-weight:700; color:var(--muted); }
.opts input, .opts select, .field input, .field select, .field textarea { border:1px solid var(--line); background:var(--bg); border-radius:9px; padding:9px 10px; width:100%; font-weight:500; color:var(--text); }
.opts input[type=range] { padding:0; }
.opts input[type=color] { padding:2px; height:40px; }
.check { display:flex !important; grid-template-columns:none; align-items:center; gap:8px; font-weight:600 !important; color:var(--text) !important; font-size:14px !important; }
.check input { width:auto; }
.chips { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.chip { padding:6px 12px; border-radius:999px; border:1px solid var(--line); background:var(--bg); font-size:13.5px; font-weight:600; }
.chip:hover, .chip[aria-pressed="true"] { border-color:var(--accent); background:var(--soft); }
details.more { margin-top:12px; } details.more summary { cursor:pointer; font-weight:700; font-size:14px; color:var(--accent); }
.results { display:grid; gap:10px; margin-top:16px; }
.result { display:grid; grid-template-columns:64px 1fr auto; gap:12px; align-items:center; border:1px solid var(--line); border-radius:12px; padding:10px; background:var(--bg); }
.result img, .result .ph { width:64px; height:64px; object-fit:cover; border-radius:8px; background:var(--line); display:grid; place-items:center; font-size:1.5rem; }
.result .name { font-weight:700; word-break:break-all; font-size:14.5px; }
.result .meta { color:var(--muted); font-size:13.5px; }
.result .meta b { color:var(--good); } .result .meta .warn { color:var(--bad); font-weight:700; }
.result .acts { display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end; }
.msg { margin-top:12px; font-size:14.5px; color:var(--muted); } .msg.err { color:var(--bad); font-weight:600; }
.field { display:grid; gap:12px; }
.field textarea { min-height:180px; resize:vertical; font-family:inherit; line-height:1.5; }
.stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:10px; margin-top:14px; }
.stat { border:1px solid var(--line); border-radius:12px; padding:12px; background:var(--bg); }
.stat b { display:block; font-size:1.5rem; font-variant-numeric:tabular-nums; } .stat span { color:var(--muted); font-size:13px; }
.qrwrap { display:grid; grid-template-columns:1fr 280px; gap:20px; align-items:start; }
.qrbox { text-align:center; } .qrbox canvas { max-width:100%; height:auto; border:1px solid var(--line); border-radius:10px; background:#fff; }
.qrbox .acts { display:flex; gap:8px; justify-content:center; margin-top:10px; flex-wrap:wrap; }
.pw { display:flex; gap:8px; } .pw input { font-family:ui-monospace,Menlo,Consolas,monospace; font-size:1.05rem; }
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:12px; }
.tile { display:block; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:14px 16px; text-decoration:none; color:var(--text); transition:border-color .15s, transform .15s; }
.tile:hover { border-color:var(--accent); transform:translateY(-2px); }
.tile b { display:block; margin-bottom:2px; } .tile span { color:var(--muted); font-size:13.5px; display:block; }
.search { width:100%; max-width:520px; border:1px solid var(--line); background:var(--surface); border-radius:12px; padding:13px 16px; font-size:1.05rem; margin-bottom:6px; }
details.faq { border-bottom:1px solid var(--line); padding:12px 0; max-width:760px; }
details.faq summary { font-weight:700; cursor:pointer; }
details.faq p { margin-top:8px; color:var(--muted); }
.ad { margin:22px 0; min-height:100px; text-align:center; }
footer.site { border-top:1px solid var(--line); background:var(--surface); padding:26px 0; font-size:14px; color:var(--muted); }
footer.site .cols { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:18px; margin-bottom:18px; }
footer.site b { color:var(--text); display:block; margin-bottom:6px; }
footer.site a { color:var(--muted); text-decoration:none; display:block; padding:2px 0; }
footer.site a:hover { color:var(--text); text-decoration:underline; }
@media (max-width:640px) { .qrwrap { grid-template-columns:1fr; } .result { grid-template-columns:48px 1fr; } .result img, .result .ph { width:48px; height:48px; } .result .acts { grid-column:1/-1; justify-content:flex-start; } }

.off { opacity:.5; pointer-events:none; }
[hidden] { display:none !important; }
