@font-face{font-family:"Inter Variable";font-style:normal;font-display:swap;font-weight:100 900;src:url(inter.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{
  --bg:#f6f7fb; --surface:#ffffff; --surface-2:#f2f4f8; --surface-3:#e8ebf2; --text:#0f1324; --muted:#5a6377; --border:#e3e6ee; --border-strong:#cdd2dd;
  --accent:#e5322d; --accent-2:#ff6b3d; --accent-ink:#ffffff; --btn:#d92d27; --accent-soft:#fdeeed; --accent-text:#c8241f; --ok:#0f7440; --ok-soft:#e6f5ed; --warn:#a45f00;
  --shadow-sm:0 1px 2px rgba(16,20,36,.05); --shadow:0 1px 2px rgba(16,20,36,.04),0 6px 20px -6px rgba(16,20,36,.10); --shadow-lg:0 2px 4px rgba(16,20,36,.04),0 18px 40px -12px rgba(16,20,36,.20);
  --glow-1:rgba(229,50,45,.13); --glow-2:rgba(255,128,64,.11); --glow-3:rgba(110,90,255,.09); --header:rgba(255,255,255,.82);
  --c-org:#e5322d; --c-opt:#14804a; --c-to:#d36f00; --c-from:#2563eb; --c-edit:#7c3aed; --c-sec:#3b4357;
  --radius:16px; --font:"Inter Variable","Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  color-scheme:light;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#0b0d13; --surface:#141720; --surface-2:#1b1f2a; --surface-3:#242936; --text:#eef0f6; --muted:#9aa2b6; --border:#252a37; --border-strong:#363c4d;
    --accent:#ff5a55; --btn:#e5322d; --accent-soft:rgba(255,90,85,.13); --accent-text:#ff7a75; --ok:#3ccf7a; --ok-soft:rgba(60,207,122,.12); --warn:#f0a43a;
    --shadow-sm:0 1px 2px rgba(0,0,0,.4); --shadow:0 1px 2px rgba(0,0,0,.35),0 8px 24px -8px rgba(0,0,0,.5); --shadow-lg:0 2px 4px rgba(0,0,0,.4),0 20px 44px -12px rgba(0,0,0,.65);
    --glow-1:rgba(255,90,85,.14); --glow-2:rgba(255,128,64,.08); --glow-3:rgba(120,100,255,.11); --header:rgba(11,13,19,.78);
    --c-org:#ff5a55; --c-opt:#3ccf7a; --c-to:#f5a142; --c-from:#6d9bff; --c-edit:#b08cff; --c-sec:#aab3c8;
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --bg:#0b0d13; --surface:#141720; --surface-2:#1b1f2a; --surface-3:#242936; --text:#eef0f6; --muted:#9aa2b6; --border:#252a37; --border-strong:#363c4d;
  --accent:#ff5a55; --btn:#e5322d; --accent-soft:rgba(255,90,85,.13); --accent-text:#ff7a75; --ok:#3ccf7a; --ok-soft:rgba(60,207,122,.12); --warn:#f0a43a;
  --shadow-sm:0 1px 2px rgba(0,0,0,.4); --shadow:0 1px 2px rgba(0,0,0,.35),0 8px 24px -8px rgba(0,0,0,.5); --shadow-lg:0 2px 4px rgba(0,0,0,.4),0 20px 44px -12px rgba(0,0,0,.65);
  --glow-1:rgba(255,90,85,.14); --glow-2:rgba(255,128,64,.08); --glow-3:rgba(120,100,255,.11); --header:rgba(11,13,19,.78);
  --c-org:#ff5a55; --c-opt:#3ccf7a; --c-to:#f5a142; --c-from:#6d9bff; --c-edit:#b08cff; --c-sec:#aab3c8;
  color-scheme:dark;
}
*{box-sizing:border-box}
html{overflow-x:clip;-webkit-text-size-adjust:100%}
html,body{margin:0}
body{color:var(--text);font:15px/1.5 var(--font);-webkit-font-smoothing:antialiased;min-height:100vh;
  background:radial-gradient(900px 420px at 50% -160px,var(--glow-1),transparent 70%),radial-gradient(640px 380px at 92% -60px,var(--glow-2),transparent 70%),radial-gradient(640px 380px at 6% -40px,var(--glow-3),transparent 70%),var(--bg);
  background-repeat:no-repeat;background-color:var(--bg)}
button,input,select,textarea{font:inherit;color:inherit}
:where(input:not([type=checkbox],[type=radio],[type=range],[type=color],[type=file]),select,textarea){color:var(--text);background:var(--surface-2);border:1px solid var(--border);border-radius:10px}
:where(input,select,textarea):focus-visible{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
:where(button,a,[tabindex]):focus-visible{outline:2px solid var(--accent);outline-offset:2px}
input[type=checkbox],input[type=radio],input[type=range]{accent-color:var(--btn)}
a{color:inherit}
svg{flex:none}
::selection{background:var(--accent-soft)}

/* header */
header.top{position:sticky;top:0;z-index:20;background:var(--header);-webkit-backdrop-filter:saturate(1.6) blur(14px);backdrop-filter:saturate(1.6) blur(14px);border-bottom:1px solid var(--border);display:flex;align-items:center;gap:8px;padding:0 20px;height:64px}
header.top .brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:19px;letter-spacing:-.02em;cursor:pointer;text-decoration:none;margin-right:12px}
header.top .brand .logo{width:34px;height:34px;border-radius:10px;background:linear-gradient(135deg,#ff6b3d,#e5322d 55%,#c8102e);color:#fff;display:grid;place-items:center;font-size:11px;font-weight:800;box-shadow:0 4px 12px -4px rgba(229,50,45,.7),inset 0 1px 0 rgba(255,255,255,.25)}
header.top .brand .logo svg{width:20px;height:20px}
header.top .brand .now{color:var(--accent-text)}
header.top .spacer{flex:1}
header.top nav{display:flex;gap:2px}
header.top nav a{text-decoration:none;color:var(--muted);font-weight:550;font-size:14px;padding:8px 12px;border-radius:9px;transition:background .15s,color .15s}
header.top nav a:hover{background:var(--surface-2);color:var(--text)}
header.top nav a[aria-current]{color:var(--text)}
header.top .badge{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600;color:var(--ok);background:var(--ok-soft);border-radius:99px;padding:5px 11px;white-space:nowrap}
header.top .badge svg{width:14px;height:14px}
.iconbtn{display:grid;place-items:center;width:38px;height:38px;background:var(--surface);border:1px solid var(--border);border-radius:10px;cursor:pointer;color:var(--text);padding:0;transition:border-color .15s,background .15s}
.iconbtn:hover{border-color:var(--border-strong);background:var(--surface-2)}
.iconbtn svg{width:18px;height:18px}
.iconbtn .i-sun{display:none}
:root[data-theme="dark"] .iconbtn .i-sun{display:block}:root[data-theme="dark"] .iconbtn .i-moon{display:none}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .iconbtn .i-sun{display:block}:root:not([data-theme="light"]) .iconbtn .i-moon{display:none}}
main{max-width:1200px;margin:0 auto;padding:28px 20px 64px}

/* home hero */
.hero{text-align:center;margin:18px auto 30px;max-width:820px}
.pill{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--muted);background:var(--surface);border:1px solid var(--border);border-radius:99px;padding:6px 14px 6px 8px;box-shadow:var(--shadow-sm);margin-bottom:22px}
.pill .dot{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--ok-soft);color:var(--ok)}
.pill .dot svg{width:13px;height:13px}
.hero h1{font-size:clamp(32px,5.4vw,56px);line-height:1.05;letter-spacing:-.035em;font-weight:800;margin:0 0 16px}
.grad{background:linear-gradient(90deg,#ff6b3d,#e5322d 45%,#b5179e);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero p.lead{color:var(--muted);margin:0 auto;font-size:clamp(16px,2vw,18.5px);max-width:620px}
.searchbox{position:relative;max-width:560px;margin:28px auto 0}
.searchbox > svg{position:absolute;left:18px;top:50%;transform:translateY(-50%);width:20px;height:20px;color:var(--muted);pointer-events:none}
.searchbox kbd{position:absolute;right:14px;top:50%;transform:translateY(-50%);font:600 12px var(--font);color:var(--muted);border:1px solid var(--border);border-bottom-width:2px;border-radius:6px;padding:1px 7px;background:var(--surface-2)}
.search{display:block;width:100%;height:58px;padding:0 48px 0 50px;border-radius:16px!important;border:1px solid var(--border)!important;background:var(--surface)!important;font-size:16px;box-shadow:var(--shadow);transition:box-shadow .15s,border-color .15s}
.search:focus{border-color:var(--accent)!important;box-shadow:0 0 0 4px var(--accent-soft),var(--shadow)!important}
.quick{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin-top:16px;font-size:13px;color:var(--muted)}
.quick a{text-decoration:none;color:var(--text);font-weight:550;background:var(--surface);border:1px solid var(--border);border-radius:99px;padding:5px 12px;transition:border-color .15s,color .15s}
.quick a:hover{border-color:var(--accent);color:var(--accent)}
.stats{display:flex;justify-content:center;gap:clamp(18px,5vw,56px);margin-top:30px;flex-wrap:wrap}
.stat{display:flex;align-items:center;gap:10px;text-align:left}
.stat .si{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:var(--surface);border:1px solid var(--border);color:var(--accent);box-shadow:var(--shadow-sm)}
.stat .si svg{width:19px;height:19px}
.stat b{display:block;font-size:17px;letter-spacing:-.01em;line-height:1.2}
.stat span{font-size:12.5px;color:var(--muted)}

/* category tabs */
.tabs{position:sticky;top:64px;z-index:10;display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:12px 2px;margin:0 -2px 6px;background:linear-gradient(var(--bg) 78%,transparent)}
.tabs::-webkit-scrollbar{display:none}
.tabs button{flex:none;display:inline-flex;align-items:center;gap:7px;border:1px solid var(--border);background:var(--surface);color:var(--muted);border-radius:99px;padding:7px 14px;font-size:13.5px;font-weight:600;cursor:pointer;transition:all .15s}
.tabs button:hover{color:var(--text);border-color:var(--border-strong)}
.tabs button.on{background:var(--text);border-color:var(--text);color:var(--bg)}
.tabs button i{font-style:normal;font-size:11.5px;font-weight:500}

/* groups and cards */
.group{margin:22px 0 34px;scroll-margin-top:130px}
.group-head{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin:0 0 14px}
.group-title{font-size:20px;letter-spacing:-.02em;color:var(--text);margin:0;font-weight:750}
.group-sub{color:var(--muted);font-size:14px;margin:0}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
.card{position:relative;color:inherit;text-decoration:none;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px 18px 16px;cursor:pointer;text-align:left;display:flex;flex-direction:column;gap:6px;box-shadow:var(--shadow-sm);transition:transform .18s cubic-bezier(.2,.8,.2,1),box-shadow .18s,border-color .18s}
.card:hover,.card:focus-visible{transform:translateY(-3px);box-shadow:var(--shadow-lg);border-color:color-mix(in srgb,var(--tc,var(--accent)) 45%,var(--border));outline:none}
.card .ico{width:46px;height:46px;border-radius:13px;display:grid;place-items:center;color:var(--tc,var(--accent));background:var(--surface-2);background:color-mix(in srgb,var(--tc,var(--accent)) 12%,transparent);font-weight:800;font-size:14px;margin-bottom:8px;transition:transform .18s}
.card:hover .ico{transform:scale(1.06)}
.card .ico svg{width:23px;height:23px}
.card b{font-size:15.5px;font-weight:700;letter-spacing:-.01em}
.card span{font-size:13.5px;color:var(--muted);line-height:1.45}
.card .go{position:absolute;top:18px;right:16px;width:18px;height:18px;color:var(--muted);opacity:0;transform:translateX(-4px);transition:all .18s}
.card:hover .go{opacity:1;transform:none;color:var(--tc,var(--accent))}
.card .tag{font-style:normal;position:absolute;top:16px;right:16px;font-size:11px;font-weight:700;letter-spacing:.02em;color:var(--accent-text);background:var(--accent-soft);border-radius:99px;padding:2px 8px;transition:opacity .15s}
.card:hover .tag{opacity:0}
.card.na{opacity:.6;cursor:default;box-shadow:none;background:transparent;border-style:dashed}
.card.na:hover{transform:none;border-color:var(--border);box-shadow:none}
.card.na:hover .ico{transform:none}
.empty{text-align:center;padding:40px 16px;color:var(--muted)}

/* tool page */
.crumbs{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:13.5px;color:var(--muted);margin:0 0 18px}
.crumbs a{text-decoration:none;color:var(--muted)}.crumbs a:hover{color:var(--text)}
.crumbs .sep{opacity:.5}
.tool-head{display:flex;align-items:center;gap:16px;margin-bottom:22px}
.tool-head .ico{width:58px;height:58px;border-radius:16px;display:grid;place-items:center;color:#fff;background:var(--tc);box-shadow:0 8px 20px -8px var(--tc);font-weight:800;flex:none}
.tool-head .ico svg{width:28px;height:28px}
.tool-head h1,.tool-head h2{margin:0;font-size:clamp(23px,3vw,30px);letter-spacing:-.025em;line-height:1.15}
.tool-head p{margin:4px 0 0;color:var(--muted);font-size:15px}
.trust{display:flex;flex-wrap:wrap;gap:6px 18px;margin:-8px 0 20px;font-size:13px;color:var(--muted)}
.trust span{display:inline-flex;align-items:center;gap:6px}
.trust svg{width:15px;height:15px;color:var(--ok)}
.back{background:none;border:none;color:var(--muted);cursor:pointer;padding:0;margin-bottom:12px}
.layout{display:grid;grid-template-columns:1fr 340px;gap:18px;align-items:start}
@media (max-width:860px){.layout{grid-template-columns:1fr}}
.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow)}
.side{position:sticky;top:80px;display:flex;flex-direction:column;gap:12px}
.side h3{margin:0;font-size:17px;letter-spacing:-.01em}
.drop{position:relative;border:2px dashed var(--border-strong);border-radius:22px;background:var(--surface);padding:56px 20px 50px;text-align:center;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s;box-shadow:var(--shadow)}
.drop:hover{border-color:color-mix(in srgb,var(--accent) 55%,var(--border))}
.drop.over{border-color:var(--accent);background:var(--accent-soft);box-shadow:0 0 0 6px var(--accent-soft)}
.drop .up{display:grid;place-items:center;width:62px;height:62px;margin:0 auto 18px;border-radius:50%;color:var(--accent);background:var(--accent-soft);box-shadow:0 0 0 10px color-mix(in srgb,var(--accent) 6%,transparent)}
.drop .up svg{width:28px;height:28px}
.drop .big{display:inline-flex;align-items:center;gap:10px;background:linear-gradient(135deg,#ef3d37,var(--btn));color:var(--accent-ink);font-weight:700;font-size:18px;padding:15px 30px;border-radius:14px;margin-bottom:12px;box-shadow:0 10px 24px -10px rgba(217,45,39,.8);transition:transform .15s,box-shadow .15s}
.drop:hover .big{transform:translateY(-1px);box-shadow:0 14px 28px -10px rgba(217,45,39,.85)}
.drop .big svg{width:20px;height:20px}
.drop p{margin:4px 0;color:var(--muted)}
.drop .safe{display:inline-flex;align-items:center;gap:6px;margin-top:14px;font-size:12.5px;color:var(--ok);font-weight:600}
.drop .safe svg{width:14px;height:14px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--border);background:var(--surface-2);border-radius:10px;padding:8px 14px;cursor:pointer;font-weight:600;transition:border-color .15s,background .15s,transform .1s}
.btn:hover{border-color:var(--border-strong);background:var(--surface-3)}
.btn:active{transform:translateY(1px)}
.btn svg{width:18px;height:18px;flex:none}.btn.primary svg{width:20px;height:20px}
.btn.primary{background:linear-gradient(135deg,#ef3d37,var(--btn));border-color:transparent;color:var(--accent-ink);font-size:17px;padding:14px 18px;width:100%;border-radius:13px;box-shadow:0 10px 22px -12px rgba(217,45,39,.9)}
.btn.primary:hover{filter:brightness(1.06);box-shadow:0 14px 26px -12px rgba(217,45,39,.95)}
.btn.primary:disabled{opacity:.45;cursor:not-allowed;filter:none;box-shadow:none}
.btn.small{padding:4px 10px;font-size:13px;border-radius:8px}
.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
label.f{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:550;color:var(--muted)}
label.f > input,label.f > select,label.f > textarea{color:var(--text);background:var(--surface-2);border:1px solid var(--border);border-radius:10px;padding:9px 11px;width:100%;font-weight:400}
label.ck{display:flex;gap:9px;align-items:center;font-size:14px;cursor:pointer}
label.ck input{width:17px;height:17px;margin:0}
.seg{display:flex;flex-wrap:wrap;gap:4px;background:var(--surface-2);border:1px solid var(--border);border-radius:11px;padding:3px}
.seg button{flex:1 1 auto;border:1px solid transparent;background:transparent;border-radius:8px;padding:7px 10px;cursor:pointer;font-size:13px;font-weight:550;color:var(--muted);transition:all .15s}
.seg button:hover{color:var(--text)}
.seg button.on{border-color:var(--border);background:var(--surface);color:var(--text);font-weight:700;box-shadow:var(--shadow-sm)}
.hint{font-size:13px;color:var(--muted);margin:0}
.warn{font-size:13px;color:var(--warn);margin:0}
.err{color:var(--accent);font-size:14px;margin:0;white-space:pre-wrap}
.files{display:flex;flex-direction:column;gap:8px}
.file{display:flex;align-items:center;gap:12px;background:var(--surface-2);border:1px solid var(--border);border-radius:12px;padding:9px 11px;transition:border-color .15s}
.file:hover{border-color:var(--border-strong)}
.file canvas,.file img{width:44px;height:56px;object-fit:contain;background:#fff;border-radius:5px;border:1px solid var(--border)}
.file .meta{flex:1;min-width:0}
.meta b{display:block}.meta span{display:block;font-size:12px;color:var(--muted)}
.file .meta b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.file .meta span{font-size:12px;color:var(--muted)}
.file.dragging{opacity:.4}
.pages{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px}
.pg{position:relative;background:var(--surface-2);border:2px solid transparent;border-radius:12px;padding:8px 8px 6px;text-align:center;user-select:none;transition:border-color .12s,background .12s}
.pg .thumb{height:150px;display:grid;place-items:center}
.pg canvas{max-width:100%;max-height:150px;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.22);border-radius:2px;transition:transform .15s}
.pg .num{font-size:12px;color:var(--muted);margin-top:4px}
.pg.sel{border-color:var(--accent);background:var(--accent-soft)}
.pg.del{opacity:.35}
.pg .acts{position:absolute;top:4px;right:4px;display:flex;gap:4px;opacity:0;transition:opacity .1s;z-index:2}
.pg:hover .acts,.pg:focus-within .acts{opacity:1}
@media (hover:none){.pg .acts{opacity:1}}
.pg .acts button{width:26px;height:26px;border-radius:7px;border:1px solid var(--border);background:var(--surface);cursor:pointer;font-size:13px;line-height:1;padding:0}
.pg.clickable{cursor:pointer}
.pg.dragover{border-color:var(--c-from)}
.prog{height:8px;background:var(--surface-2);border-radius:99px;overflow:hidden}
.prog i{display:block;height:100%;background:linear-gradient(90deg,#ff6b3d,var(--accent));width:0;transition:width .15s}
.result{text-align:center;padding:40px 18px}
.result .done-ico{display:grid;place-items:center;width:68px;height:68px;margin:0 auto 16px;border-radius:50%;background:var(--ok-soft);color:var(--ok);animation:pop .35s cubic-bezier(.2,1.4,.4,1)}
.result .done-ico svg{width:34px;height:34px;stroke-width:2.5}
@keyframes pop{from{transform:scale(.4);opacity:0}}
.result h3{font-size:26px;letter-spacing:-.02em;margin:0 0 8px}
.result .dl{display:flex;flex-direction:column;gap:10px;align-items:center;margin:20px 0}
.result .dl .btn.primary{max-width:380px}
.preview-strip{display:flex;gap:10px;overflow-x:auto;padding:6px 0}
.preview-strip canvas,.preview-strip img{height:140px;background:#fff;border:1px solid var(--border);border-radius:5px;flex:none}
.modal-bg{position:fixed;inset:0;background:rgba(8,10,16,.55);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);display:grid;place-items:center;z-index:50;padding:16px}
.modal{background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:20px;max-width:560px;width:100%;display:flex;flex-direction:column;gap:12px;max-height:90vh;overflow:auto;box-shadow:var(--shadow-lg)}
.modal h3{margin:0}
.sigpad{background:#fff;border:1px solid var(--border);border-radius:10px;touch-action:none;width:100%;height:200px}
/* editor */
.ed-bar{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-bottom:12px;position:sticky;top:64px;z-index:5;background:var(--surface);padding:8px 0}
.ed-bar button.on{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}
.ed-pages{display:flex;flex-direction:column;align-items:center;gap:18px}
.ed-page{position:relative;box-shadow:0 2px 12px rgba(0,0,0,.2);background:#fff;touch-action:pan-x pan-y pinch-zoom}
.ed-page canvas{display:block}
.ed-page .ov{position:absolute;inset:0}
.ed-page .ov:has(.it.crop){overflow:hidden}
.ed-page .lbl{position:absolute;left:-2px;top:-20px;font-size:12px;color:var(--muted)}
.it{position:absolute;outline:1px dashed transparent;cursor:move;touch-action:none}
.it.sel{outline:1.5px dashed #2f6fdd}
.it .rs{position:absolute;right:-6px;bottom:-6px;width:12px;height:12px;background:#2f6fdd;border-radius:3px;cursor:nwse-resize;display:none}
.it .x{position:absolute;right:-10px;top:-10px;width:20px;height:20px;border-radius:50%;background:#e5322d;color:#fff;border:none;font-size:12px;line-height:20px;padding:0;cursor:pointer;display:none}
.it.sel .rs,.it.sel .x{display:block}
.it.text{min-width:30px;padding:2px;white-space:pre;line-height:1.2;cursor:text}
.it.text:focus-within{outline:1.5px solid #2f6fdd}
.it.text .tx{outline:none;display:inline-block;min-width:1em;cursor:text}
.it img,.it svg{width:100%;height:100%;display:block;pointer-events:none}
.it.crop{outline:2px solid #2f6fdd;box-shadow:0 0 0 9999px rgba(0,0,0,.45)}
.diff{white-space:pre-wrap;font-size:14px;line-height:1.6;max-height:70vh;overflow:auto}
.diff ins{background:rgba(26,143,76,.18);text-decoration:none;color:var(--ok)}
.diff del{background:rgba(229,50,45,.15);color:var(--accent)}
.diff .pgsep{display:block;color:var(--muted);font-size:12px;margin:10px 0 4px;border-top:1px solid var(--border);padding-top:6px}
.notice{display:flex;gap:14px;align-items:flex-start;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px 20px;margin-top:28px;color:var(--muted);font-size:14.5px;box-shadow:var(--shadow-sm)}
.notice > svg{width:22px;height:22px;color:var(--ok);margin-top:1px}
.notice b{color:var(--text)}
.hidden{display:none!important}
.spin{display:inline-block;width:16px;height:16px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:sp .7s linear infinite;vertical-align:-3px}
@keyframes sp{to{transform:rotate(360deg)}}
.swatch{width:36px;height:36px;padding:0;border:1px solid var(--border);border-radius:9px;background:none}
.pos9{display:grid;grid-template-columns:repeat(3,28px);gap:4px}
.pos9 button{width:28px;height:28px;border:1px solid var(--border);border-radius:7px;background:var(--surface-2);cursor:pointer;padding:0}
.pos9 button.on{background:var(--btn);border-color:var(--btn)}
.render-host{position:fixed;left:-20000px;top:0;background:#fff;color:#000}
header.top .brand span:last-child{white-space:nowrap}
@media (max-width:980px){header.top nav{display:none}}
@media (max-width:640px){
  header.top{padding:0 14px;height:58px}
  header.top .badge{font-size:0;padding:6px;gap:0}
  header.top .badge svg{width:15px;height:15px}
  .tabs{top:58px}
  main{padding:20px 16px 48px}
  .hero{margin-top:6px}
  .pill{font-size:12px;margin-bottom:16px}
  .searchbox kbd{display:none}
  .search{height:52px;padding-right:16px}
  .stats{gap:14px 20px;justify-content:flex-start;max-width:340px;margin-left:auto;margin-right:auto}
  .stat{flex:1 1 140px}
  .grid{grid-template-columns:1fr 1fr;gap:10px}
  .card{padding:14px 13px 13px}
  .card .ico{width:40px;height:40px;border-radius:11px;margin-bottom:4px}
  .card .ico svg{width:20px;height:20px}
  .card b{font-size:14.5px}.card span{font-size:12.5px}
  .card .go,.card .tag{display:none}
  .drop{padding:38px 16px 34px}
  .tool-head .ico{width:50px;height:50px;border-radius:14px}
}
@media (max-width:360px){.grid{grid-template-columns:1fr}}
@media (max-width:700px){.hero .brk{display:none}}
@media (max-width:640px){
  .hero h1{font-size:34px;margin-bottom:12px}
  .hero p.lead{font-size:15.5px}
  .searchbox{margin-top:20px}
  .quick{gap:6px;margin-top:12px}.quick > span{display:none}.quick a{font-size:12.5px;padding:4px 10px}
  .stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-width:none;margin-top:22px}
  .stat{flex-direction:column;text-align:center;gap:6px}.stat b{font-size:14px}.stat span{display:none}
  .stat .si{width:34px;height:34px}
  .group-title{font-size:18px}
}
@media (max-width:860px){
  .side{position:static;order:-1}
  .pages{grid-template-columns:repeat(auto-fill,minmax(100px,1fr))}
  .pg .thumb{height:110px}.pg canvas{max-height:110px}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}
.layout > *{min-width:0}
/* exam kit */
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.chip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--border);background:var(--surface);border-radius:999px;padding:6px 13px;font-size:13px;font-weight:550;color:inherit;text-decoration:none;transition:all .15s}
.chip svg{width:14px;height:14px;color:var(--c-org)}
.chip:hover,.chip:focus-visible{border-color:var(--c-org);color:var(--c-org);outline:none;transform:translateY(-1px)}
.slots{display:flex;flex-direction:column;gap:14px}
.slot{border:1px solid var(--border);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:10px;background:var(--surface)}
.slot .drop{padding:24px 12px;box-shadow:none;border-radius:14px}
.slot .drop .up{display:none}
.slot .drop .big{font-size:16px;padding:11px 22px}
.slot .drop .safe{display:none}
.slot-body{display:flex;gap:14px;align-items:flex-start;flex-wrap:wrap}
.slot-prev{max-width:180px;max-height:220px;background:#fff;border:1px solid var(--border);border-radius:6px;cursor:grab;touch-action:none;user-select:none}
.slot-prev:active{cursor:grabbing}
.slot input[type=range]{width:120px}
.ok{color:var(--ok);font-size:13px;margin:0 0 8px;font-weight:600}
table.spec{border-collapse:collapse;font-size:13px;width:100%}
table.spec th,table.spec td{border-bottom:1px solid var(--border);padding:7px 4px;text-align:left;vertical-align:top}
table.spec th{width:42%;padding-right:10px}
table.spec td{overflow-wrap:anywhere}

.seo{max-width:1200px;margin:0 auto;padding:12px 20px 64px;color:var(--muted);font-size:15.5px;line-height:1.65}
.seo > *{max-width:860px;margin-left:auto;margin-right:auto}
.seo h2{color:var(--text);font-size:clamp(22px,3vw,28px);letter-spacing:-.025em;line-height:1.2;margin:48px auto 14px}
.seo > h2:first-child{margin-top:20px}.seo h3{color:var(--text);font-size:17px;letter-spacing:-.01em;margin:28px auto 6px}
.seo .chip{text-decoration:none}.seo a{color:var(--text);text-decoration-color:var(--border-strong);text-underline-offset:3px}.seo a:hover{color:var(--accent)}
.seo ol{list-style:none;padding:0;counter-reset:st;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.seo ol li{counter-increment:st;position:relative;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:52px 18px 18px;box-shadow:var(--shadow-sm);color:var(--text);font-size:14.5px;line-height:1.55}
.seo ol li::before{content:counter(st);position:absolute;top:16px;left:18px;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:13px;color:#fff;background:linear-gradient(135deg,#ff6b3d,#e5322d)}
.seo .spec{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-sm)}
.seo .spec th,.seo .spec td{padding:11px 16px;font-size:14px}.seo .spec th{color:var(--text)}.seo .spec tr:last-child>*{border-bottom:0}
.features{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px;max-width:1160px!important}
.feature{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow-sm)}
.feature .fi{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--accent-soft);color:var(--accent);margin-bottom:14px}.feature .fi svg{width:22px;height:22px}
.feature b{display:block;color:var(--text);font-size:16px;letter-spacing:-.01em;margin-bottom:4px}.feature p{margin:0;font-size:14px;line-height:1.55}
.seo .center{text-align:center}
.faq details{background:var(--surface);border:1px solid var(--border);border-radius:14px;margin-bottom:10px;box-shadow:var(--shadow-sm);overflow:hidden}
.faq summary{cursor:pointer;list-style:none;padding:16px 48px 16px 18px;color:var(--text);font-weight:650;position:relative}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";position:absolute;right:18px;top:50%;transform:translateY(-50%);font-size:22px;font-weight:400;color:var(--muted);transition:transform .2s}
.faq details[open] summary::after{transform:translateY(-50%) rotate(45deg)}
.faq details p{margin:0;padding:0 18px 16px}
.alltools{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:4px 28px;max-width:1160px!important}
.alltools h3{margin:18px 0 6px;font-size:14px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.alltools ul{list-style:none;margin:0;padding:0;font-size:14.5px;line-height:1.9}.alltools a{text-decoration:none}
footer.site{border-top:1px solid var(--border);background:var(--surface);color:var(--muted);font-size:14px}
.fwrap{max-width:1200px;margin:0 auto;padding:44px 20px 28px;display:grid;grid-template-columns:1.4fr repeat(4,1fr);gap:28px}
.fwrap h4{color:var(--text);font-size:13.5px;margin:4px 0 12px}
.fwrap ul{list-style:none;margin:0;padding:0;line-height:2}.fwrap a{text-decoration:none;color:var(--muted)}.fwrap a:hover{color:var(--text)}
.fbrand .brand{display:inline-flex;align-items:center;gap:10px;font-weight:800;font-size:18px;letter-spacing:-.02em;text-decoration:none;color:var(--text)}
.fbrand .logo{width:32px;height:32px;border-radius:9px;background:linear-gradient(135deg,#ff6b3d,#e5322d 55%,#c8102e);display:grid;place-items:center}.fbrand .logo svg{width:19px;height:19px}.fbrand .now{color:var(--accent-text)}
.fbrand p{margin:12px 0 0;max-width:300px;line-height:1.6}
.fbottom{max-width:1200px;margin:0 auto;padding:18px 20px 28px;border-top:1px solid var(--border);display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:13px}
@media (max-width:860px){.fwrap{grid-template-columns:1fr 1fr}.fbrand{grid-column:1/-1}}
.ad{text-align:center;margin:0 auto;padding:0 16px 24px;max-width:1000px}.ad>span{display:block;font-size:11px;color:var(--muted);margin-bottom:4px;text-transform:uppercase;letter-spacing:.05em}
.ad .ph{border:1px dashed var(--border);border-radius:10px;color:var(--muted);display:flex;align-items:center;justify-content:center;min-height:100px;font-size:13px}
.result .ad{margin-top:28px;padding:16px 0 0;border-top:1px solid var(--border)}
.ad-rail{display:none}
@media (min-width:1580px){.ad-rail{display:block;position:fixed;top:90px;width:160px;padding:0}.ad-rail.l{left:calc(50% - 790px)}.ad-rail.r{right:calc(50% - 790px)}.ad-rail .ph{min-height:600px}}
.static{max-width:760px;margin:0 auto;line-height:1.7;background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:clamp(22px,4vw,44px);box-shadow:var(--shadow)}
.static h1{font-size:clamp(26px,4vw,34px);letter-spacing:-.03em;line-height:1.15;margin:0 0 16px}.static h2{font-size:19px;letter-spacing:-.01em;margin-top:28px}.static a{color:var(--accent)}