:root{--bg: #f6f7fb;--surface: #ffffff;--surface-2: #f1f3f8;--text: #111827;--muted: #6b7280;--border: #e5e7ef;--accent: #4f46e5;--accent-2: #4338ca;--accent-soft: #eef2ff;--link: #4338ca;--ok: #15803d;--err: #dc2626;--radius: 14px;--shadow: 0 1px 2px rgb(16 24 40 / 4%), 0 6px 20px rgb(16 24 40 / 5%);color-scheme:light}@media(prefers-color-scheme:dark){:root{--bg: #0c111b;--surface: #141b27;--surface-2: #1b2433;--text: #e6e9ef;--muted: #97a1b3;--border: #273246;--accent: #6366f1;--accent-2: #7c7ff5;--accent-soft: #1f2347;--link: #a5b4fc;--ok: #4ade80;--err: #f87171;--shadow: none;color-scheme:dark}}*,*:before,*:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;font:16px/1.55 system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}a{color:var(--link);text-decoration:none}a:hover{text-decoration:underline}img,canvas,video{max-width:100%}h1,h2,h3{line-height:1.2;letter-spacing:-.01em}[hidden]{display:none!important}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.wrap{max-width:1120px;margin:0 auto;padding:0 20px}.site-header{background:var(--surface);border-bottom:1px solid var(--border)}.bar{display:flex;align-items:center;justify-content:space-between;height:60px;gap:16px}.logo{display:flex;align-items:center;gap:10px;font-weight:700;font-size:18px;color:var(--text)}.logo:hover{text-decoration:none}.nav{display:flex;gap:4px}.nav a{color:var(--muted);font-size:14px;font-weight:500;padding:6px 10px;border-radius:8px}.nav a:hover{color:var(--text);background:var(--surface-2);text-decoration:none}main.wrap{padding-top:28px;padding-bottom:72px;min-height:70vh}.site-footer{border-top:1px solid var(--border);background:var(--surface);color:var(--muted);font-size:14px}.foot{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;padding-top:22px;padding-bottom:22px}.foot nav{display:flex;gap:18px}.foot a{color:var(--muted)}.hero{text-align:center;padding:24px 0 8px}.hero h1{font-size:clamp(30px,4.5vw,44px);margin:0 0 10px}.lead{color:var(--muted);font-size:17px;margin:0 0 22px}.search{position:relative;max-width:520px;margin:0 auto}.search svg{position:absolute;left:16px;top:50%;transform:translateY(-50%);color:var(--muted)}.search input[type=search]{width:100%;padding:14px 18px 14px 48px;font-size:16px;border-radius:999px;box-shadow:var(--shadow)}.search svg{z-index:1;pointer-events:none}.cat h2{font-size:18px;margin:36px 0 14px}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}.grid.small{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}.card{display:flex;align-items:center;gap:12px;padding:14px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);color:var(--text);transition:border-color .15s,transform .15s,box-shadow .15s}.card:hover{text-decoration:none;border-color:var(--accent);transform:translateY(-1px);box-shadow:var(--shadow)}.card strong{display:block;font-size:15px;font-weight:600}.card small{display:block;color:var(--muted);font-size:13px}.ic{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:11px}.ic-image{background:#e0f2fe;color:#0369a1}.ic-pdf{background:#fee2e2;color:#b91c1c}.ic-test{background:#dcfce7;color:#15803d}.ic-text{background:#fef3c7;color:#b45309}.ic-calc{background:#ede9fe;color:#6d28d9}.ic-dev{background:#e2e8f0;color:#334155}.ic-util{background:#ccfbf1;color:#0f766e}@media(prefers-color-scheme:dark){.ic-util{background:#0d3330;color:#5eead4}.ic-image{background:#0c2a3e;color:#7dd3fc}.ic-pdf{background:#3b1414;color:#fca5a5}.ic-test{background:#0f2e1b;color:#86efac}.ic-text{background:#352509;color:#fcd34d}.ic-calc{background:#261b47;color:#c4b5fd}.ic-dev{background:#1e293b;color:#cbd5e1}}.tool-page{max-width:900px;margin:0 auto}.crumbs{display:flex;gap:8px;font-size:13px;color:var(--muted)}.crumbs a{color:var(--muted)}.tool-page h1{font-size:clamp(28px,4vw,36px);margin:10px 0 8px}.tool-page>.lead{margin-bottom:22px;font-size:16px}.tool{background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:20px;box-shadow:var(--shadow)}.info{margin-top:44px}.info h2{font-size:20px;margin:0 0 12px}.steps{margin:0;padding-left:22px;color:var(--muted)}.steps li{margin:6px 0;padding-left:4px}.faq{border-bottom:1px solid var(--border);padding:14px 0}.faq summary{cursor:pointer;font-weight:600;list-style:none;display:flex;justify-content:space-between;gap:16px}.faq summary::-webkit-details-marker{display:none}.faq summary:after{content:"+";color:var(--muted);font-weight:400;font-size:20px;line-height:1}.faq[open] summary:after{content:"−"}.faq p{margin:10px 0 0;color:var(--muted)}.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.chip{padding:6px 12px;border-radius:999px;border:1px solid var(--border);background:var(--surface);color:var(--text);font:inherit;font-size:13px;font-weight:500;cursor:pointer}.chip:hover{border-color:var(--accent);text-decoration:none}.chip.on{border-color:var(--accent);background:var(--accent-soft)}input[type=text],input[type=number],input[type=search],input[type=url],input[type=email],input[type=tel],input[type=date],input[type=password],select,textarea{font:inherit;font-size:15px;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:10px 12px;min-width:0}input:focus,select:focus,textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}textarea{width:100%;min-height:220px;resize:vertical;line-height:1.6;display:block}input[type=color]{width:48px;height:40px;padding:3px;border:1px solid var(--border);border-radius:10px;background:var(--surface);cursor:pointer}input[type=range]{accent-color:var(--accent);width:180px}input[type=checkbox]{accent-color:var(--accent);width:18px;height:18px;margin:0}.controls{display:flex;flex-wrap:wrap;align-items:flex-end;gap:14px 18px;margin-top:16px}.field{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:500;color:var(--muted)}.field.grow{flex:1 1 220px}.field input:not([type=checkbox]):not([type=range]):not([type=color]),.field select{width:100%}.check{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:var(--text);cursor:pointer;padding:10px 0}.seg{display:inline-flex;flex-wrap:wrap;gap:4px;padding:4px;background:var(--surface-2);border-radius:12px}.seg button{border:0;background:transparent;padding:8px 14px;border-radius:9px;font:inherit;font-size:14px;font-weight:500;color:var(--muted);cursor:pointer}.seg button:hover{color:var(--text)}.seg button.on{background:var(--surface);color:var(--text);box-shadow:0 1px 3px #0000001a}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 20px;border-radius:11px;border:1px solid transparent;background:var(--accent);color:#fff;font:inherit;font-size:15px;font-weight:600;cursor:pointer;transition:background .15s,border-color .15s;white-space:nowrap}.btn:hover{background:var(--accent-2);text-decoration:none}.btn:disabled{opacity:.5;cursor:not-allowed}.btn.ghost{background:var(--surface);color:var(--text);border-color:var(--border)}.btn.ghost:hover{background:var(--surface-2)}.btn.sm{padding:7px 12px;font-size:13px;border-radius:9px}.btn.lg{padding:14px 28px;font-size:16px}.actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:18px}.actions.center,.center{justify-content:center;text-align:center}.muted{color:var(--muted)}.small{font-size:13px}.ok-text{color:var(--ok);font-weight:600}.err-text{color:var(--err)}.dropzone{display:flex;flex-direction:column;align-items:center;gap:6px;padding:38px 16px;border:2px dashed var(--border);border-radius:16px;background:var(--surface-2);text-align:center;cursor:pointer;transition:border-color .15s,background .15s}.dropzone:hover,.dropzone.drag{border-color:var(--accent);background:var(--accent-soft)}.dz-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:var(--surface);color:var(--accent);margin-bottom:4px;box-shadow:var(--shadow)}.dropzone strong{font-size:16px}.dropzone small{color:var(--muted);font-size:13px}.results{display:grid;gap:10px;margin-top:16px}.results:empty{display:none}.row{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}.thumb{width:48px;height:48px;object-fit:cover;border-radius:8px;background:var(--surface-2);flex:none}.meta{flex:1;min-width:0;display:flex;flex-direction:column}.meta b{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.meta small{color:var(--muted);font-size:13px}.row.err small{color:var(--err)}.row-ops{display:flex;gap:6px}.icon-btn{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:8px;width:32px;height:32px;display:inline-grid;place-items:center;cursor:pointer;padding:0;font-size:15px}.icon-btn:hover{border-color:var(--accent);color:var(--accent)}.icon-btn svg{width:16px;height:16px}.progress{height:8px;background:var(--surface-2);border-radius:99px;overflow:hidden;margin:14px 0 8px}.progress span{display:block;height:100%;width:0;background:var(--accent);transition:width .2s}.preview{display:block;max-width:100%;max-height:420px;margin:0 auto;border-radius:10px;background:var(--surface-2)}.file-line{margin:0 0 4px;display:flex;flex-wrap:wrap;gap:8px;align-items:baseline}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px}.stat{background:var(--surface-2);border-radius:12px;padding:12px 10px;text-align:center}.stat b{display:block;font-size:24px;font-weight:700;font-variant-numeric:tabular-nums}.stat small{color:var(--muted);font-size:12px}.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin-top:16px}.tile{border:1px solid var(--border);border-radius:12px;background:var(--surface);padding:8px;display:flex;flex-direction:column;gap:8px;align-items:center}.tile-img{width:100%;aspect-ratio:1;display:grid;place-items:center;background:var(--surface-2);border-radius:8px;overflow:hidden}.tile-img canvas,.tile-img img{max-width:90%;max-height:90%;box-shadow:0 1px 4px #00000026;transition:transform .2s;background:#fff}.tile-bar{display:flex;gap:4px}.tile small{color:var(--muted);font-size:12px}#toasts{position:fixed;left:50%;bottom:24px;transform:translate(-50%);display:flex;flex-direction:column;gap:8px;z-index:1000;pointer-events:none}.toast{background:var(--text);color:var(--bg);padding:10px 16px;border-radius:10px;font-size:14px;box-shadow:0 8px 24px #0003;transition:opacity .3s}.toast.err{background:var(--err);color:#fff}.toast.out{opacity:0}.prose{max-width:720px;margin:0 auto}.prose h1{font-size:34px;margin:8px 0 16px}.prose h2{font-size:20px;margin:28px 0 8px}.prose p,.prose li{color:var(--muted)}@media(max-width:640px){.nav a:nth-child(n+3){display:none}.tool{padding:14px;border-radius:14px}.dropzone{padding:28px 12px}.row{flex-wrap:wrap}}.calc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px}.calc-grid .field input,.calc-grid .field select{width:100%}.split-bar{display:flex;height:12px;border-radius:99px;overflow:hidden;background:var(--surface-2);margin:16px 0 6px}.split-bar span:first-child{background:var(--accent)}.split-bar span:last-child{background:#f59e0b}.legend{display:flex;gap:16px;flex-wrap:wrap;font-size:13px;color:var(--muted)}.legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px;vertical-align:-1px}.table-wrap{overflow-x:auto;margin-top:16px;border:1px solid var(--border);border-radius:12px}table.data{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}table.data th,table.data td{padding:9px 12px;text-align:right;border-bottom:1px solid var(--border);white-space:nowrap}table.data th:first-child,table.data td:first-child{text-align:left}table.data th{background:var(--surface-2);font-weight:600;color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.03em}table.data tr:last-child td{border-bottom:0}.mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:14px}
