:root { --bg:#f6f7fb; --fg:#171923; --muted:#5b6070; --accent:#4f46e5; --accent2:#4338ca; --card:#ffffff; --line:#e3e5ee; --ok:#16a34a; }
@media (prefers-color-scheme: dark) {
  :root { --bg:#0f1117; --fg:#eceef6; --muted:#9aa0b4; --accent:#818cf8; --accent2:#a5b4fc; --card:#181b25; --line:#272b3a; }
}
* { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--bg); color:var(--fg); font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; line-height:1.6; }
a { color:var(--accent); }
header.top { background:var(--card); border-bottom:1px solid var(--line); }
header.top .in { max-width:960px; margin:0 auto; padding:14px 20px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
header.top .brand { font-weight:800; font-size:1.15rem; color:var(--fg); text-decoration:none; }
header.top nav a { margin-left:16px; font-size:.92rem; color:var(--muted); text-decoration:none; }
header.top nav a:hover { color:var(--accent); }
main { max-width:960px; margin:0 auto; padding:28px 20px 40px; }
h1 { font-size:clamp(1.6rem,4vw,2.3rem); line-height:1.2; margin:0 0 8px; }
.lead { color:var(--muted); margin:0 0 24px; font-size:1.05rem; }
h2 { font-size:1.35rem; margin:36px 0 10px; }
h3 { font-size:1.05rem; margin:20px 0 4px; }
.tool { background:var(--card); border:1px solid var(--line); border-radius:18px; padding:22px; box-shadow:0 2px 14px rgba(20,20,40,.05); }
.drop { border:2px dashed var(--line); border-radius:14px; padding:34px 16px; text-align:center; color:var(--muted); cursor:pointer; transition:.15s; }
.drop:hover, .drop.over { border-color:var(--accent); color:var(--accent); background:rgba(99,102,241,.06); }
.drop strong { display:block; font-size:1.1rem; color:var(--fg); margin-bottom:4px; }
.row { display:flex; flex-wrap:wrap; gap:14px; align-items:center; margin:16px 0; }
.row label { font-size:.92rem; color:var(--muted); display:flex; flex-direction:column; gap:4px; }
input[type=text], input[type=number], input[type=url], select, textarea {
  font:inherit; color:var(--fg); background:var(--bg); border:1px solid var(--line); border-radius:10px; padding:10px 12px; min-width:0; }
textarea { width:100%; min-height:160px; resize:vertical; }
input[type=range] { accent-color:var(--accent); }
input[type=color] { width:56px; height:42px; border:1px solid var(--line); border-radius:10px; background:var(--bg); padding:2px; }
.btn { display:inline-block; border:0; border-radius:12px; padding:12px 22px; font:inherit; font-weight:700; background:var(--accent); color:#fff; cursor:pointer; text-decoration:none; }
.btn:hover { background:var(--accent2); }
.btn:disabled { opacity:.5; cursor:not-allowed; }
.btn.sec { background:transparent; color:var(--fg); border:1px solid var(--line); }
.btn.sec:hover { border-color:var(--accent); color:var(--accent); background:transparent; }
.list { list-style:none; margin:16px 0 0; padding:0; display:grid; gap:10px; }
.list li { display:flex; align-items:center; gap:12px; background:var(--bg); border:1px solid var(--line); border-radius:12px; padding:10px 12px; }
.list .name { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.list .meta { color:var(--muted); font-size:.85rem; white-space:nowrap; }
.list img { width:48px; height:48px; object-fit:cover; border-radius:8px; }
.list button { background:none; border:0; color:var(--muted); cursor:pointer; font-size:1.1rem; padding:4px 8px; }
.list button:hover { color:var(--accent); }
.good { color:var(--ok); font-weight:700; }
.out { text-align:center; margin-top:16px; }
.out canvas, .out img { max-width:100%; height:auto; border-radius:10px; }
.grid2 { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:14px; }
.stat { background:var(--bg); border:1px solid var(--line); border-radius:12px; padding:14px; }
.stat b { display:block; font-size:1.5rem; }
.stat span { color:var(--muted); font-size:.88rem; }
.ad { margin:22px auto; text-align:center; min-height:0; overflow:hidden; }
.ad:empty { display:none; }
.seo p, .seo li { color:var(--muted); }
.seo ol, .seo ul { padding-left:20px; }
details { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:12px 16px; margin:8px 0; }
summary { cursor:pointer; font-weight:600; }
.tools { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.tools a { background:var(--card); border:1px solid var(--line); border-radius:999px; padding:6px 14px; font-size:.9rem; text-decoration:none; }
footer.foot { border-top:1px solid var(--line); text-align:center; padding:22px 20px; color:var(--muted); font-size:.88rem; }
footer.foot a { color:var(--muted); margin:0 8px; }
.note { font-size:.85rem; color:var(--muted); }
.hide { display:none !important; }

.hero { text-align:center; padding:18px 0 8px; }
.hero h1 { font-size:clamp(1.9rem,5vw,2.8rem); }
.cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:16px; margin:26px 0; }
.card { display:block; background:var(--card); border:1px solid var(--line); border-radius:18px; padding:22px; text-decoration:none; color:var(--fg); transition:.15s; }
.card:hover { border-color:var(--accent); transform:translateY(-2px); box-shadow:0 8px 24px rgba(79,70,229,.12); }
.card .ic { font-size:2rem; line-height:1; }
.card h2 { margin:12px 0 6px; font-size:1.15rem; }
.card p { margin:0; color:var(--muted); font-size:.95rem; }
.card .go { display:inline-block; margin-top:12px; color:var(--accent); font-weight:700; font-size:.92rem; }
.perks { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:14px; margin:10px 0 0; }
.perk { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:16px; }
.perk b { display:block; margin-bottom:4px; }
.perk span { color:var(--muted); font-size:.92rem; }
