/* style.css — v2 design. Mobile-first, light/dark aware. Colours live in :root only. */
/* ===== HINDI FONT (safety) — file: assets/fonts/noto-sans-devanagari-400.woff2 ===== */
/* Hindi safety font: used ONLY where the device has no Devanagari font (unicode-range = Hindi letters only, so English pages never download it). Noto Sans Devanagari, SIL OFL 1.1 (assets/fonts/OFL-NotoSansDevanagari.txt), subset regular. */
@font-face{font-family:"EIR Devanagari";font-style:normal;font-weight:400;font-display:swap;src:local('Noto Sans Devanagari'),local('NotoSansDevanagari-Regular'),local('Mangal'),local('Nirmala UI'),url(../fonts/noto-sans-devanagari-400.woff2) format('woff2');unicode-range:U+0900-097F,U+200C-200D,U+20B9,U+25CC}
:root{--bg:#f4f6f8;--card:#fff;--soft:#eef4f1;--text:#15202b;--muted:#5d6977;--line:#e3e8ee;--accent:#0b7a55;--accent-2:#0f9466;--accent-text:#fff;
--ok:#0a7a3d;--ok-bg:#e7f6ee;--bad:#c0281f;--bad-bg:#fdecea;--warn:#8a5a00;--warn-bg:#fff5df;--radius:16px;--shadow:0 1px 2px rgba(16,24,40,.05),0 4px 14px rgba(16,24,40,.06)}
@media (prefers-color-scheme:dark){:root{--bg:#0f1316;--card:#181d22;--soft:#16261f;--text:#e8ecef;--muted:#9aa5b1;--line:#2a3138;--accent:#3ccf91;--accent-2:#5ad8a2;--accent-text:#04241a;
--ok:#5ad38c;--ok-bg:#12291d;--bad:#ff8a80;--bad-bg:#2e1715;--warn:#f0c060;--warn-bg:#2a2210;--shadow:0 1px 2px rgba(0,0,0,.4)}}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{margin:0;font:16px/1.55 system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans","Noto Sans Devanagari","EIR Devanagari",sans-serif;background:var(--bg);color:var(--text);overflow-wrap:anywhere}
a{color:var(--accent)}
img{max-width:100%}
.ic{width:22px;height:22px;flex:none}
.ic-wrap{display:inline-flex}
.wrap{max-width:860px;margin:0 auto;padding:0 16px}
/* header */
header.site{background:var(--card);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:6}
header.site .wrap{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:54px}
.logo{display:flex;align-items:center;gap:8px;font-weight:750;text-decoration:none;color:var(--text);letter-spacing:-.01em}
.logo-mark{display:inline-flex;width:32px;height:32px;border-radius:10px;background:var(--accent);color:var(--accent-text);align-items:center;justify-content:center}
.logo-mark .ic{width:20px;height:20px}
.lang{font-size:14px;font-weight:600;border:1px solid var(--line);border-radius:999px;padding:5px 14px;text-decoration:none;background:var(--card)}
nav.crumbs{font-size:13px;color:var(--muted);margin:12px 0 0;display:flex;gap:6px;flex-wrap:wrap}
nav.crumbs a{color:var(--muted);text-decoration:none}
/* hero */
.hero{margin:8px 0 10px}
h1{font-size:1.3rem;line-height:1.25;margin:6px 0 4px;letter-spacing:-.01em}
.sub{margin:0;color:var(--muted);font-size:15px}
h2{font-size:1.1rem;margin:0}
h3{font-size:1rem;margin:0}
.sec-title{display:flex;align-items:center;gap:8px;font-size:1.05rem;margin:28px 0 10px}
.sec-title .ic{color:var(--accent)}
.tool-title{font-size:1.05rem;margin:22px 0 8px}
.badge{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600;color:var(--ok);background:var(--ok-bg);border-radius:999px;padding:4px 12px 4px 8px;text-decoration:none;margin:2px 0 4px}
.badge .ic{width:16px;height:16px}
/* tool card */
.tool-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:14px;margin:12px 0;box-shadow:var(--shadow)}
.tool-card.small h3,.tool-card.small .card-title{margin:0 0 10px;font-size:1rem}
.chips{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}
.chips.one{grid-template-columns:1fr}
.chip{display:flex;align-items:center;gap:8px;text-align:left;border:1.5px solid var(--line);background:var(--card);color:var(--text);border-radius:12px;padding:9px 10px;font:inherit;cursor:pointer;min-width:0;transition:border-color .15s,background .15s}
.chip .ic{width:20px;height:20px;color:var(--muted)}
.chip-t{display:flex;flex-direction:column;min-width:0;line-height:1.25}
.chip-t strong{font-size:13.5px;font-weight:650}
.chip-t small{font-size:12px;color:var(--muted)}
.chip.on{border-color:var(--accent);background:var(--soft)}
.chip.on .ic{color:var(--accent)}
.chip:focus-visible,.btn:focus-visible,.drop:focus-within{outline:3px solid color-mix(in srgb,var(--accent) 45%,transparent);outline-offset:2px}
.drop{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;border:2px dashed var(--line);border:2px dashed color-mix(in srgb,var(--accent) 40%,var(--line));background:var(--soft);border-radius:14px;padding:18px 12px;cursor:pointer;text-align:center}
.drop .ic.big{width:34px;height:34px;color:var(--accent)}
.drop.over{border-color:var(--accent)}
.drop small{color:var(--muted);font-size:13px}
.drop input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--accent);color:var(--accent-text);border:0;border-radius:12px;padding:12px 22px;font:inherit;font-weight:700;text-decoration:none;cursor:pointer;min-height:46px}
.btn .ic{width:20px;height:20px}
.btn.dl{width:100%;font-size:17px;min-height:52px;margin:10px 0 4px}
.btn.dl[hidden]{display:none}
.btn2{border:1px solid var(--line);background:var(--card);color:var(--text);border-radius:10px;padding:8px 12px;font:inherit;cursor:pointer}
/* adjust */
details.adjust{margin-top:12px;border-top:1px solid var(--line);padding-top:8px}
details.adjust>summary{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;font-weight:600;font-size:14px;color:var(--muted);padding:4px 0}
details.adjust>summary::-webkit-details-marker{display:none}
.controls{display:grid;grid-template-columns:1fr;gap:10px;margin:10px 0 2px}
.controls label{display:flex;flex-direction:column;font-size:14px;color:var(--muted)}
.controls label.chk{flex-direction:row;align-items:center;gap:8px;color:var(--text)}
.controls input[type=range]{width:100%;accent-color:var(--accent)}
.controls input[type=checkbox]{width:18px;height:18px;accent-color:var(--accent)}
select{font:inherit;padding:10px 12px;border-radius:10px;border:1px solid var(--line);background:var(--card);color:var(--text);margin-bottom:10px;width:100%;max-width:100%}
.controls select{margin:0}
@media(min-width:620px){.controls{grid-template-columns:1fr 1fr}}
/* result */
.out{display:grid;grid-template-columns:1fr;gap:12px;margin-top:14px}
@media(min-width:620px){.out{grid-template-columns:220px 1fr}}
.prev-wrap{background:repeating-conic-gradient(var(--line) 0 25%,transparent 0 50%) 0 0/16px 16px;border-radius:12px;padding:10px;display:flex;justify-content:center;align-items:center}
.preview{max-width:100%;max-height:240px;background:#fff;box-shadow:var(--shadow);border-radius:4px}
.meta{font-weight:600;margin:8px 0 0;font-size:14px;color:var(--muted)}
.note{font-size:13px;color:var(--warn);margin:6px 0 0}
.note:empty{display:none}
.verdict{display:flex;align-items:center;gap:10px;font-weight:800;font-size:17px;margin:0 0 8px;padding:12px 14px;border-radius:12px}
.verdict .ic{width:28px;height:28px}
.verdict.ok{color:var(--ok);background:var(--ok-bg)}
.verdict.bad{color:var(--bad);background:var(--bad-bg)}
.rules{list-style:none;padding:0;margin:0;font-size:13.5px;display:grid;gap:4px}
.rules li{display:flex;justify-content:space-between;gap:10px;padding:6px 10px;border-radius:8px;background:var(--bg)}
.rules li::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;margin-top:7px;background:var(--ok)}
.rules li.bad::before{background:var(--bad)}.rules li.info::before{background:var(--muted)}
.rules li.bad{color:var(--bad)}
.r-l{flex:1;font-weight:600}.r-d{text-align:right;color:var(--muted)}
.rules li.bad .r-d{color:var(--bad)}
.err{display:flex;gap:8px;align-items:flex-start;background:var(--bad-bg);color:var(--bad);border-radius:10px;padding:10px 12px;margin:10px 0;font-size:14px}
.err[hidden]{display:none}
.err .ic{width:20px;height:20px}
.busy{display:flex;align-items:center;gap:10px;color:var(--muted);margin:12px 0 0;font-size:14px}
.busy[hidden]{display:none}
.spin{width:20px;height:20px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--accent);animation:sp .8s linear infinite;flex:none}
.prog .spin{display:none}
@keyframes sp{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.spin{animation:none}}
.hint{color:var(--muted);font-size:14px;margin:0 0 10px}
.batch-list{font-size:13.5px;padding:0;margin:10px 0 0;list-style:none;display:grid;gap:4px}
.batch-list li{padding:6px 10px;border-radius:8px;background:var(--bg)}
.batch-list li.ok{color:var(--ok);background:var(--ok-bg)}.batch-list li.bad{color:var(--bad);background:var(--bad-bg)}
/* feature strip + exam cards */
.feats{list-style:none;padding:0;margin:12px 0;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.feats li{display:flex;align-items:center;gap:8px;font-size:13.5px;font-weight:600;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:9px 10px}
.feats .ic{color:var(--accent);width:20px;height:20px}
.exam-grid{display:grid;grid-template-columns:1fr;gap:10px}
@media(min-width:620px){.exam-grid{grid-template-columns:1fr 1fr}}
.exam-card{display:flex;align-items:center;gap:12px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:12px 14px;text-decoration:none;color:var(--text);box-shadow:var(--shadow);transition:transform .12s,border-color .12s}
.exam-card:hover{border-color:var(--accent);transform:translateY(-1px)}
.exam-ic{display:inline-flex;width:44px;height:44px;border-radius:12px;background:var(--soft);color:var(--accent);align-items:center;justify-content:center;flex:none}
.exam-t{display:flex;flex-direction:column;flex:1;min-width:0;line-height:1.3}
.exam-t small{color:var(--muted);font-size:13px}
.exam-card .chev{color:var(--muted);width:18px;height:18px}
/* accordions */
.info{margin-top:8px}
details.acc,details.faq{background:var(--card);border:1px solid var(--line);border-radius:12px;margin:8px 0;overflow:hidden}
details.acc>summary,details.faq>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;list-style:none;cursor:pointer;padding:12px 14px}
details.acc>summary::-webkit-details-marker,details.faq>summary::-webkit-details-marker{display:none}
details.acc>summary h2{font-size:15px;font-weight:650}
details.faq{border:0;border-top:1px solid var(--line);border-radius:0;margin:0}
details.faq>summary{padding:10px 0}
details.faq>summary h3{font-size:14.5px;font-weight:600}
details.faq p{margin:0 0 12px;color:var(--muted);font-size:14.5px}
.chev{transition:transform .15s;color:var(--muted);width:18px;height:18px}
details[open]>summary>.chev{transform:rotate(90deg)}
.acc-body{padding:0 14px 12px;font-size:15px}
.acc-body p,.acc-body ul,.acc-body ol{margin:0 0 10px}
.answer{margin:0 0 10px}
.src{font-size:13px;color:var(--muted)}
table{border-collapse:collapse;width:100%;font-size:14px}
th,td{border-bottom:1px solid var(--line);padding:8px 6px;text-align:left;vertical-align:top}
th{width:38%;color:var(--muted);font-weight:600}
.table-wrap{overflow-x:auto}
.notice{background:var(--warn-bg);border-radius:10px;padding:10px 12px;font-size:14px}
.legal{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:4px 16px;box-shadow:var(--shadow)}
/* footer */
footer.site{margin-top:40px;border-top:1px solid var(--line);padding:18px 0 26px;font-size:13px;color:var(--muted);background:var(--card)}
.f-links{display:flex;flex-wrap:wrap;gap:6px 14px;margin:0 0 10px}
footer.site a{color:var(--muted);text-decoration:none}
.f-note{margin:0}
#sft-global-error{position:sticky;top:54px;z-index:5}
.noscript{background:var(--card);padding:10px;border:1px solid var(--line);border-radius:10px}
.todo{background:var(--warn-bg);padding:0 4px;border-radius:4px}

/* ===== v3: tablet + desktop (Windows/Mac laptops). Mobile rules above stay untouched. ===== */
.paste-hint{display:none}
.ph{display:none}
@media (hover:hover) and (pointer:fine){
  .drop:hover{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 9%,var(--soft))}
  .chip:hover{border-color:color-mix(in srgb,var(--accent) 55%,var(--line))}
  .btn:hover{background:var(--accent-2)}
  .paste-hint{display:block;font-size:12px}
}
.drop.over{border-style:solid;background:color-mix(in srgb,var(--accent) 14%,var(--soft));box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 18%,transparent)}
.exam-card:focus-visible,.lang:focus-visible,.logo:focus-visible,a:focus-visible,summary:focus-visible,select:focus-visible,.btn2:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 45%,transparent);outline-offset:2px;border-radius:10px}
@media(min-width:768px){
  .wrap{max-width:980px;padding:0 24px}
  h1{font-size:1.6rem}
  .sub{font-size:16px}
  .chips{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
  .feats{grid-template-columns:repeat(4,1fr)}
  .exam-grid{grid-template-columns:1fr 1fr}
  .drop{padding:28px 16px}
}
@media(min-width:1024px){
  .wrap{max-width:1180px;padding:0 32px}
  header.site .wrap{min-height:62px}
  .hero{margin:14px 0 14px}
  h1{font-size:1.85rem}
  /* main tool: controls left, preview/result right */
  .tool-card.main{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"tabs out" "drop out" "err out" "busy out" "controls out" ". out";column-gap:28px;align-items:start;padding:22px}
  .tool-card.main>.chips{grid-area:tabs}
  .tool-card.main>.drop{grid-area:drop}
  .tool-card.main>.err{grid-area:err}
  .tool-card.main>.busy{grid-area:busy}
  .tool-card.main>details.adjust{grid-area:controls}
  .tool-card.main>.out,.tool-card.main>.ph{grid-area:out}
  .tool-card.main>.ph{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:320px;border:1.5px dashed var(--line);border-radius:14px;color:var(--muted);font-size:14px;background:var(--bg)}
  .tool-card.main>.ph[hidden]{display:none}
  .tool-card.main>.ph .ic.big{width:44px;height:44px}
  .tool-card.main>.out{margin-top:0;grid-template-columns:1fr}
  .tool-card.main .preview{max-height:300px}
  .tool-card.main .prev-wrap{min-height:220px}
  .drop{padding:40px 20px;min-height:220px;justify-content:center}
  .drop .ic.big{width:44px;height:44px}
  .chips{grid-template-columns:1fr 1fr}
  .exam-grid{grid-template-columns:repeat(3,1fr)}
  .exam-grid.home{grid-template-columns:repeat(3,1fr)}
  .home-tools{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}
  .home-tools .tool-card{margin:12px 0}
  .tool-card{padding:20px}
  .info{max-width:860px}
  .legal{max-width:860px}
}
@media(min-width:1400px){.exam-grid.home{grid-template-columns:repeat(4,1fr)}}
/* v4: SEO/AEO blocks — quick answer, 3 steps, skip link, table caption */
.skip{position:absolute;left:-9999px;top:0;background:var(--card);color:var(--accent);padding:8px 14px;border-radius:0 0 10px 0;z-index:20;font-weight:600}
.skip:focus{left:0}
.quick-answer{background:var(--ok-bg);border:1px solid color-mix(in srgb,var(--ok) 25%,transparent);border-radius:14px;padding:10px 12px;margin:2px 0 4px}
.qa-text{margin:0;font-size:14.5px;line-height:1.45}
.qa-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;margin:6px 0 0;font-size:12.5px;font-weight:600;color:var(--ok)}
.qa-meta .ic{width:15px;height:15px}
.qa-meta a{color:var(--ok)}
.qa-meta .dot{opacity:.6}
.steps3{margin:6px 0 0}
.steps3 .sec-title{margin:22px 0 8px}
.steps3 ol{list-style:none;counter-reset:st;margin:0;padding:0;display:grid;gap:8px}
.steps3 li{counter-increment:st;display:flex;gap:10px;align-items:flex-start;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:10px 12px;font-size:14.5px}
.steps3 li::before{content:counter(st);flex:none;width:24px;height:24px;border-radius:50%;background:var(--accent);color:var(--accent-text);font-weight:700;font-size:13px;display:inline-flex;align-items:center;justify-content:center}
table caption{text-align:left;font-weight:600;font-size:13.5px;color:var(--muted);padding:0 0 6px}
@media(min-width:768px){.steps3 ol{grid-template-columns:repeat(3,1fr)}.qa-text{font-size:15px}}
@media(min-width:1024px){.quick-answer{max-width:860px}}
/* v4: reserve space for JS widgets before they render (stops layout shift / CLS) */
.sft-tool:empty{min-height:280px}.sft-tool[data-presets*="ibps-thumb"]:empty{min-height:365px}
.sft-validate:empty{min-height:302px}.sft-pdf:empty{min-height:271px}.sft-upsc3:empty{min-height:250px}.sft-batch:empty{min-height:312px}
@media(min-width:768px){.sft-tool:empty{min-height:295px}.sft-tool[data-presets*="ibps-thumb"]:empty{min-height:355px}.sft-validate:empty{min-height:322px}.sft-pdf:empty{min-height:266px}.sft-upsc3:empty{min-height:263px}.sft-batch:empty{min-height:332px}}
@media(min-width:1024px){.sft-tool:empty{min-height:374px}.sft-tool[data-presets*="ibps-thumb"]:empty{min-height:405px}.sft-validate:empty{min-height:368px}.sft-pdf:empty{min-height:312px}.sft-upsc3:empty{min-height:309px}.sft-batch:empty{min-height:392px}}
/* ===== v6: header tools link, All tools + search, general tool (sft-free) ===== */
.hnav{display:flex;align-items:center;gap:6px}
.nav-tools{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:600;text-decoration:none;border:1px solid var(--line);border-radius:999px;padding:5px 12px;background:var(--card)}
.nav-tools .ic{width:18px;height:18px}
@media(max-width:380px){.logo>span:last-child{font-size:15px}.nav-tools span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.nav-tools{padding:6px 9px}}
.all-tools{margin-top:34px;scroll-margin-top:64px}
.all-tools .sec-title{margin-top:0}
.tsearch{display:flex;align-items:center;gap:8px;background:var(--card);border:1.5px solid var(--line);border-radius:12px;padding:4px 12px;margin:0 0 12px}
.tsearch:focus-within{border-color:var(--accent)}
.tsearch .ic{color:var(--muted);width:20px;height:20px}
.tsearch input{flex:1;min-width:0;border:0;background:transparent;color:var(--text);font:inherit;padding:9px 0;outline:0}
.tool-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr;gap:6px}
.tool-list a{display:flex;flex-direction:column;text-decoration:none;color:var(--text);background:var(--card);border:1px solid var(--line);border-radius:12px;padding:8px 12px;line-height:1.3}
.tool-list a:hover{border-color:var(--accent)}
.tool-list a[aria-current]{border-color:var(--accent);background:var(--soft)}
.tool-list strong{font-size:14.5px}.tool-list small{color:var(--muted);font-size:12.5px}
@media(min-width:620px){.tool-list{grid-template-columns:1fr 1fr}}
@media(min-width:1024px){.tool-list{grid-template-columns:repeat(3,1fr)}}
.chips.four{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.chips.four .chip{justify-content:center;text-align:center;padding:9px 4px}
.chips.four .chip-t strong{font-size:13px}
.free-set{display:grid;gap:10px;margin:0 0 12px}
.fgrp{display:grid;grid-template-columns:1fr;gap:8px}
.fgrp.two{grid-template-columns:1fr 1fr}.fgrp.three{grid-template-columns:1fr 1fr 1fr}
.free-set label,.pdfkb{display:flex;flex-direction:column;font-size:13.5px;color:var(--muted);gap:4px;min-width:0}
.free-set label.chk{flex-direction:row;align-items:center;gap:8px;color:var(--text)}
.free-set input[type=number],.pdfkb input{font:inherit;padding:10px 12px;border-radius:10px;border:1px solid var(--line);background:var(--card);color:var(--text);width:100%;min-width:0}
.free-set select{margin:0}
.free-set input[type=checkbox]{width:18px;height:18px;accent-color:var(--accent)}
.pdfkb{margin:0 0 10px}
.qk{display:flex;flex-wrap:wrap;gap:6px}
.qk .btn2{padding:6px 12px;font-size:14px}
.sft-free:empty{min-height:430px}
@media(min-width:1024px){
  .tool-card.main.free{grid-template-areas:"tabs out" "set out" "drop out" "err out" "busy out" ". out"}
  .tool-card.main.free>.free-set{grid-area:set}
  .sft-free:empty{min-height:470px}
}
/* contact message box */
.fb-form{display:flex;flex-direction:column;gap:4px;margin:4px 0 18px;padding:0 0 16px;border-bottom:1px solid var(--line)}
.fb-form h2{margin:0 0 4px;font-size:19px}
.fb-form label{font-size:14px;font-weight:600;color:var(--text);margin-top:8px}
.fb-form .req{color:var(--bad)}
.fb-form input,.fb-form textarea{font:inherit;padding:10px 12px;border-radius:10px;border:1px solid var(--line);background:var(--card);color:var(--text);width:100%;max-width:100%}
.fb-form textarea{resize:vertical;min-height:120px}
.fb-form select{margin:0}
.fb-form input:focus-visible,.fb-form textarea:focus-visible,.fb-form select:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 45%,transparent);outline-offset:1px}
.fb-count{color:var(--muted);font-size:12.5px;text-align:right}
.fb-send{margin-top:12px;width:100%}
.fb-send[disabled]{opacity:.6;cursor:wait}
.fb-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.fb-status{margin:10px 0 0;border-radius:10px;padding:10px 12px;font-size:14.5px;font-weight:600}
.fb-status[hidden]{display:none}
.fb-status.ok{color:var(--ok);background:var(--ok-bg)}
.fb-status.bad{color:var(--bad);background:var(--bad-bg)}
.fb-status.wait{color:var(--muted);background:var(--bg)}
.fb-small{font-size:12.5px;color:var(--muted);margin:8px 0 0}
.f-fb{margin:6px 0;font-size:13px}
/* ===== MODE SWITCH — home "one upload box" (assets/js/mode-switch.js). The hub becomes the card; tools inside lose their own frame. ===== */
.sft-hub{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:14px;margin:12px 0;box-shadow:var(--shadow)}
.sft-hub .tool-card{border:0;box-shadow:none;padding:0;margin:0;background:transparent}
.chips.hub-switch{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.chips.hub-switch .chip{justify-content:center;text-align:center;padding:10px 4px}
.chips.hub-switch .chip-t strong{font-size:13.5px}
.hub-note{margin:0 0 10px;font-size:14px;color:var(--muted)}
.sft-hub .tool-card.small select{margin-bottom:10px}
@media (min-width:1024px){.sft-hub{padding:22px}.chips.hub-switch{max-width:560px}}
/* ===== SIGNATURE WARNING (assets/js/sig-check.js) — yellow note under PASS/FAIL ===== */
.ink-warn{display:flex;gap:8px;align-items:flex-start;margin:10px 0 0;padding:10px 12px;border-radius:12px;background:var(--warn-bg);color:var(--warn);font-size:14px;line-height:1.45}
.ink-warn .ic{flex:none;width:20px;height:20px;margin-top:1px}
/* ===== HEADER FIT (polish 25 Nov) — logo + brand + "All tools" + language pill on ONE line at 360/390px. Pills never wrap. ===== */
.hnav{flex-shrink:0}
.nav-tools,.lang{white-space:nowrap;flex-shrink:0}
.logo{min-width:0}
.logo>span:last-child{min-width:0;line-height:1.2}
@media(max-width:420px){header.site .wrap{gap:6px}.logo{gap:6px}.logo>span:last-child{font-size:15px}.logo-mark{width:30px;height:30px}
  .nav-tools{padding:5px 10px;font-size:13px;gap:4px}.nav-tools .ic{width:16px;height:16px}.lang{padding:5px 10px;font-size:13px}}
/* ===== MODE HIERARCHY (polish 25 Nov) — top row = segmented control; KB/Pixels/cm/% row = lighter small pills ===== */
.chips.hub-switch{background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:4px;gap:4px}
.chips.hub-switch .chip{border:0;background:transparent;border-radius:9px;padding:9px 4px;color:var(--text)}
.chips.hub-switch .chip.on{background:var(--accent);color:var(--accent-text);box-shadow:0 1px 3px rgba(0,0,0,.18)}
.chips.hub-switch .chip.on .chip-t strong{color:var(--accent-text)}
.sft-hub .chips.four{gap:6px}
.sft-hub .chips.four .chip{border-width:1px;border-radius:999px;padding:6px 4px;background:transparent}
.sft-hub .chips.four .chip-t strong{font-size:12.5px;font-weight:600;color:var(--muted)}
.sft-hub .chips.four .chip.on{background:var(--soft);border-color:var(--accent)}
.sft-hub .chips.four .chip.on .chip-t strong{color:var(--accent)}
/* ===== SAVE-AS FIT (polish 25 Nov) — on phones the "Also keep under" + "Save as" pair stacks, so the select is full width ===== */
@media(max-width:640px){.free-set .fgrp.two{grid-template-columns:1fr}}
/* ===== PASTE TIP (polish 25 Nov) — Ctrl+V tip never on touch phones ===== */
@media (hover:none) and (pointer:coarse){.paste-hint{display:none!important}}
/* ===== TRUST CHIP LINK (polish 25 Nov) — "Bulk ZIP for cyber cafés" chip opens Bulk mode ===== */
.feats li a{display:flex;align-items:center;gap:8px;color:inherit;text-decoration:none;width:100%}
/* ===== HINDI MINI FONT (English pages) — file: assets/fonts/noto-deva-mini.woff2 (1.4 KB) ===== */
/* English pages show only the word "हिंदी" (header pill + chip). This tiny subset (only ह ि ं द ी) draws it on devices with no Hindi font,
   so English pages never need the 40 KB font. Any other Hindi letter (e.g. typed in search) falls back to "EIR Devanagari". Same OFL licence. */
@font-face{font-family:"EIR Deva Mini";font-style:normal;font-weight:400;font-display:swap;src:local('Noto Sans Devanagari'),local('NotoSansDevanagari-Regular'),local('Mangal'),local('Nirmala UI'),url(../fonts/noto-deva-mini.woff2) format('woff2');unicode-range:U+0902,U+0926,U+0939,U+093F-0940,U+25CC}
html[lang="en"] body{font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans","Noto Sans Devanagari","EIR Deva Mini","EIR Devanagari",sans-serif}
/* ===== GREEN BOX FULL WIDTH (desktop) — helper box lines up with the tool card + chip row ===== */
@media(min-width:1024px){.quick-answer{max-width:none}}
/* ===== ASK CARD — 6th home card "Your exam not here? Tell us" (src/ask_card.py) ===== */
.exam-card.ask{border-style:dashed}
.exam-card.ask .exam-ic{color:var(--accent)}
@media(min-width:1400px){.exam-grid.home{grid-template-columns:repeat(3,1fr)}}
/* ===== INFO FULL WIDTH (desktop) — home/tool-page accordions (.info) line up with tool card, exam grid and All tools ===== */
@media(min-width:1024px){.info{max-width:none}}
/* ===== GUIDE PAGE (v6.6) — article pages like /why-photo-quality-drops/ (text: src/guides_content.py, images: assets/img/quality/) ===== */
.guide{max-width:860px}
.guide .g-sec{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:4px 16px 8px;margin:14px 0;box-shadow:var(--shadow)}
.guide .g-sec .sec-title{margin:14px 0 6px}
.guide p,.guide li{line-height:1.6}
.guide ul,.guide ol{padding-left:22px}
.guide figure{margin:0}
.guide img{display:block;max-width:100%;height:auto;border-radius:10px;border:1px solid var(--line);background:#fff}
.guide figcaption{font-size:13.5px;color:var(--muted);margin-top:6px;line-height:1.4}
.guide .q-whole{max-width:220px;margin:8px auto 12px}
.guide .q-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.guide .q-pair{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-end}
.guide .q-pair .q-real{flex:0 1 auto;max-width:100%}
.guide .q-pair .q-real:first-child{flex-basis:200px}
.guide .q-pair .q-real:first-child img{width:200px}
.guide .q-pair .q-real:last-child{flex-basis:100px}
.guide .q-pair .q-real:last-child img{width:100px}
.guide .q-pair figcaption{max-width:200px}
.g-cta{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}
.btn.ghost{background:transparent;color:var(--accent);border:2px solid var(--accent)}
.g-link{margin:12px 2px 0;font-weight:600}
.g-link a{color:var(--accent)}
@media(min-width:768px){.guide .q-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.guide .q-whole{max-width:200px}}
@media(min-width:1024px){.guide{max-width:none}}
/* ===== GUIDE PAGE EXTRA (v6.10) — /signature-background-white/, /compress-marksheet-pdf-200kb/ (text: src/guide_*_content.py, HTML: src/guide_kit.py, images: assets/img/guides/) ===== */
.guide .g-case{margin:12px 0 16px}
.guide .g-case h3{font-size:16px;margin:10px 0 8px}
.guide .g-case p{margin:8px 0 0;font-size:14.5px}
.guide .g-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:start}
.guide .g-pair img,.guide .g-crops img{width:100%}
.guide .g-bad .g-pair img{border-color:var(--warn,#b45309)}
.guide .g-whole{max-width:180px;margin:8px auto 12px}
.guide .g-crops{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;max-width:480px}
.guide .g-tablewrap{overflow-x:auto;margin:14px 0 8px;-webkit-overflow-scrolling:touch}
.guide .g-table{border-collapse:collapse;width:100%;min-width:300px;font-size:13.5px}
.guide .g-table caption{caption-side:bottom;text-align:left;font-size:12.5px;color:var(--muted);padding-top:6px;line-height:1.4}
.guide .g-table th,.guide .g-table td{border:1px solid var(--line);padding:6px 8px;text-align:left;vertical-align:top}
.guide .g-table thead th{background:var(--soft)}
.guide .g-table th{width:auto;color:var(--text);font-weight:650}
.guide .g-table thead th{color:var(--muted)}
.guide .g-table td{font-variant-numeric:tabular-nums}
.guide .g-table th,.guide .g-table td{overflow-wrap:normal;word-break:normal}
.guide .g-table thead th:first-child{white-space:nowrap}
.guide .g-exams{columns:1}
.guide .g-exams a,.guide .g-sec p a,.guide .g-sec li a{color:var(--accent);font-weight:600}
@media(min-width:768px){.guide .g-crops{grid-template-columns:repeat(2,minmax(0,1fr));max-width:none}.guide .g-exams{columns:2}}
/* ===== PNG HINT (png-hint.js): tip when PNG + KB limit <= 50 KB ===== */
.png-hint{margin:8px 0 0;padding:8px 10px;border-radius:10px;background:var(--warn-bg);color:var(--warn);font-size:13px;line-height:1.45}
.png-hint[hidden]{display:none}
.png-use-jpg{margin-left:4px;padding:3px 10px;border-radius:999px;border:1px solid currentColor;background:transparent;color:inherit;font:inherit;font-weight:700;cursor:pointer;white-space:nowrap}
.png-use-jpg:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* ===== SIGNATURE BACKGROUND CLEANER (tool-sigclean.js) ===== */
.nt-sigclean-ctrl{margin:14px 0 0}
.nt-sigclean-dot{flex:none;width:18px;height:18px;border-radius:50%;border:2px solid var(--line)}
.nt-sigclean-dot-black{background:#18181c}
.nt-sigclean-dot-blue{background:#1f3c9a}
.nt-sigclean .chip{min-height:48px}
.nt-sigclean-range{display:block;margin:4px 0 10px}
.nt-sigclean-rl{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:13px;color:var(--muted)}
.nt-sigclean-rl strong{color:var(--text);font-size:14.5px}
.nt-sigclean-range input[type=range]{display:block;width:100%;min-height:44px;margin:0;accent-color:var(--accent)}
.nt-sigclean-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
.nt-sigclean-chk{display:inline-flex;align-items:center;gap:10px;min-height:44px;font-size:15px;cursor:pointer}
.nt-sigclean-chk input{width:22px;height:22px;accent-color:var(--accent);margin:0}
.nt-sigclean-rot{min-height:44px;padding:8px 16px;font-weight:600}
.nt-sigclean-pv{display:grid;grid-template-columns:1fr;gap:10px;margin:14px 0 0}
.nt-sigclean-pv figure{margin:0;min-width:0}
.nt-sigclean-pv figcaption{font-size:13px;font-weight:650;color:var(--muted);margin:0 0 4px}
.nt-sigclean-box{display:flex;align-items:center;justify-content:center;min-height:90px;padding:6px;border:1px solid var(--line);border-radius:12px;
  background:repeating-conic-gradient(var(--soft) 0 25%,var(--card) 0 50%) 0 0/16px 16px}
.nt-sigclean-cv{display:block;max-width:100%;max-height:220px;height:auto;width:auto;border-radius:4px;box-shadow:var(--shadow)}
.nt-sigclean-meta{margin:10px 0 0;font-size:14px;color:var(--muted)}
.nt-sigclean-next{margin:14px 0 0;padding:12px;border-radius:12px;background:var(--soft)}
.nt-sigclean-next .hint{margin:0 0 8px;color:var(--text)}
.nt-sigclean-links{display:flex;flex-wrap:wrap;gap:8px}
.nt-sigclean-links a{min-height:44px;display:inline-flex;align-items:center;text-decoration:none}
.nt-sigclean-links a.btn{width:100%;padding:10px 16px}
.nt-sigclean-links a.btn:hover{color:var(--accent-text)}
.nt-sigclean-limits{margin:12px 0 0;font-size:13px;color:var(--muted)}
@media (min-width:700px){
  .nt-sigclean-pv{grid-template-columns:1fr 1fr}
  .nt-sigclean-cv{max-height:260px}
  .nt-sigclean-links a.btn{width:auto}
}

/* ===== CROP + ROTATE PHOTO (tool-crop.js) ===== */
.nt-crop-chips{grid-template-columns:1fr 1fr}
.nt-crop-chips .chip{min-height:48px}
.nt-crop-chips .chip:last-child{grid-column:1/-1}
@media(min-width:620px){.nt-crop-chips{grid-template-columns:repeat(5,1fr)}.nt-crop-chips .chip:last-child{grid-column:auto}}
.nt-crop-work{margin-top:12px}
.nt-crop-stage{touch-action:none;-webkit-user-select:none;user-select:none;background:var(--soft);border:1px solid var(--line);border-radius:12px;padding:12px;display:flex;justify-content:center;overflow:hidden}
.nt-crop-frame{position:relative;width:100%;max-width:100%;line-height:0}
.nt-crop-img{display:block;width:100%;height:100%;touch-action:none}
.nt-crop-box{position:absolute;box-sizing:border-box;border:2px solid #fff;outline:1px solid rgba(0,0,0,.55);box-shadow:0 0 0 9999px rgba(0,0,0,.45);cursor:move;touch-action:none}
.nt-crop-box:focus-visible{outline:3px solid var(--accent)}
.nt-crop-grid{position:absolute;inset:0;pointer-events:none;background:
 linear-gradient(to right,transparent 33.2%,rgba(255,255,255,.45) 33.3%,rgba(255,255,255,.45) 33.6%,transparent 33.7%,transparent 66.5%,rgba(255,255,255,.45) 66.6%,rgba(255,255,255,.45) 66.9%,transparent 67%),
 linear-gradient(to bottom,transparent 33.2%,rgba(255,255,255,.45) 33.3%,rgba(255,255,255,.45) 33.6%,transparent 33.7%,transparent 66.5%,rgba(255,255,255,.45) 66.6%,rgba(255,255,255,.45) 66.9%,transparent 67%)}
/* 44px invisible tap target, 18px visible dot */
.nt-crop-h{position:absolute;width:44px;height:44px;z-index:2;touch-action:none}
.nt-crop-h::after{content:"";position:absolute;left:13px;top:13px;width:18px;height:18px;border-radius:50%;background:#fff;border:2px solid var(--accent);box-sizing:border-box;pointer-events:none}
.nt-crop-h-nw{left:-22px;top:-22px;cursor:nwse-resize}.nt-crop-h-se{right:-22px;bottom:-22px;cursor:nwse-resize}
.nt-crop-h-ne{right:-22px;top:-22px;cursor:nesw-resize}.nt-crop-h-sw{left:-22px;bottom:-22px;cursor:nesw-resize}
.nt-crop-tip{margin:8px 0 6px}
.nt-crop-tools{display:grid;gap:10px}
.nt-crop-rot{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.nt-crop-btn{min-height:46px;border:1.5px solid var(--line);background:var(--card);color:var(--text);border-radius:12px;font:inherit;font-weight:650;cursor:pointer;padding:8px 10px}
.nt-crop-btn:active{background:var(--soft)}
.nt-crop-btn:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 45%,transparent);outline-offset:2px}
.nt-crop-row{display:grid;grid-template-columns:88px 1fr 52px;align-items:center;gap:8px;font-size:14px;color:var(--muted);min-width:0}
.nt-crop-row input[type=range]{width:100%;min-width:0;height:44px;accent-color:var(--accent)}
.nt-crop-val{text-align:right;font-variant-numeric:tabular-nums;color:var(--text);font-size:13.5px}
.nt-crop-kb{grid-template-columns:auto 1fr}
.nt-crop-kb input{font:inherit;padding:10px 12px;border-radius:10px;border:1px solid var(--line);background:var(--card);color:var(--text);width:100%;min-width:0;min-height:44px}
.nt-crop-white{margin:0;font-size:13px}
.nt-crop-out{display:grid;grid-template-columns:1fr;gap:12px;margin-top:14px;align-items:start}
@media(min-width:620px){.nt-crop-out{grid-template-columns:200px 1fr}}
.nt-crop-prev{justify-self:center;max-height:260px}
.nt-crop-spec{margin:0;font-weight:700}
.nt-crop-info{margin:2px 0 0;color:var(--muted);font-size:14px}
.nt-crop-next{font-size:14px;background:var(--soft);border-radius:10px;padding:10px 12px;margin-top:6px;line-height:1.8}
.nt-crop-next a{display:inline-block;min-height:28px}
.nt-crop-limit{margin:12px 0 0;font-size:13px}

/* ===== PASSPORT PHOTO SHEET (tool-sheet.js) ===== */
.nt-sheet .nt-sheet-lab{display:block;font-size:14px;font-weight:650;color:var(--text);margin:0 0 6px}
.nt-sheet .nt-sheet-chips{margin-bottom:12px}
.nt-sheet .nt-sheet-chips .chip{min-height:48px}
.nt-sheet .nt-sheet-copiesrow{display:block;margin:0}
.nt-sheet .nt-sheet-copies{margin:0 0 6px;min-height:44px}
.nt-sheet .nt-sheet-fits{margin:0 0 12px}
.nt-sheet .nt-sheet-adjust{border-top:1px solid var(--line);padding-top:10px}
.nt-sheet .nt-sheet-croptip{margin:0;font-size:13px;grid-column:1/-1}
.nt-sheet .nt-sheet-croptip a{display:inline-block;min-height:24px}
.nt-sheet-out{display:grid;grid-template-columns:1fr;gap:12px;margin-top:14px}
.nt-sheet-prevs{display:flex;gap:10px;align-items:flex-start;min-width:0}
.nt-sheet-pw{flex:1;min-width:0}
.nt-sheet-pw .preview{max-height:300px}
.nt-sheet-facebox{flex:none;display:flex;flex-direction:column;align-items:center;gap:4px;color:var(--muted);font-size:12px}
.nt-sheet-face{max-width:96px;height:auto;background:#fff;border:1px solid var(--line);border-radius:4px}
.nt-sheet-res{min-width:0}
.nt-sheet-tip{display:flex;gap:8px;align-items:flex-start;background:var(--warn-bg);color:var(--warn);border-radius:10px;padding:10px 12px;margin:10px 0 4px;font-size:14px;font-weight:600}
.nt-sheet-tip .ic{width:20px;height:20px}
.nt-sheet .btn.dl.nt-sheet-jpg{background:var(--card);color:var(--accent);border:1.5px solid var(--accent)}
.nt-sheet .nt-sheet-print{width:100%;min-height:48px;font-weight:700;margin:6px 0 4px}
.nt-sheet .nt-sheet-limits{font-size:13px;margin:10px 0 0}
@media(min-width:768px){.nt-sheet-out{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.nt-sheet .nt-sheet-chips{grid-template-columns:1fr 1fr}}

/* ===== COMPRESS PDF TO KB (tool-pdfkb.js) ===== */
.nt-pdfkb .nt-pdfkb-label{margin:0 0 8px;font-weight:650;font-size:14.5px}
.nt-pdfkb .nt-pdfkb-chips .chip{min-height:44px}
.nt-pdfkb-opts{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 16px;margin:0 0 12px}
.nt-pdfkb-opts .nt-pdfkb-custom{margin:0;flex:1 1 140px;max-width:220px}
.nt-pdfkb-gray{display:flex;align-items:center;gap:8px;min-height:44px;font-size:14px;cursor:pointer;flex:1 1 180px}
.nt-pdfkb-gray input{width:20px;height:20px;accent-color:var(--accent);flex:none;margin:0}
.nt-pdfkb-drop.nt-pdfkb-wait{opacity:.55;pointer-events:none}
.nt-pdfkb-bar{height:6px;border-radius:99px;background:var(--line);overflow:hidden;margin:8px 0 0}
.nt-pdfkb-bar span{display:block;height:100%;width:0;background:var(--accent);transition:width .2s}
.nt-pdfkb-out{margin-top:12px}
.nt-pdfkb-out .verdict{font-size:16px}
.nt-pdfkb-out .rules li{flex-wrap:wrap}
.nt-pdfkb-out .r-d{text-align:right;margin-left:auto}
.nt-pdfkb-honest{font-size:13px;color:var(--muted);background:var(--soft);border-radius:10px;padding:8px 10px;margin:6px 0 0}
.nt-pdfkb-limits{font-size:12.5px;color:var(--muted);margin:10px 0 0}

/* ===== NEW TOOLS RESERVED SPACE (stops layout shift before tool-*.js builds the widget) ===== */
.sft-crop:empty{min-height:487px}.sft-sigclean:empty{min-height:379px}.sft-pdfkb:empty{min-height:473px}.sft-sheet:empty{min-height:588px}
@media(min-width:1024px){.sft-crop:empty{min-height:373px}.sft-sigclean:empty{min-height:341px}.sft-pdfkb:empty{min-height:458px}.sft-sheet:empty{min-height:633px}}
/* ===== PDF FILE NAME LINE (polish 26 Nov) — compressor shows file name in a small grey line; the Download button label stays short ===== */
.nt-pdfkb-fname{margin:10px 0 6px;font-size:13px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
/* ===== EXAM HUB (v6.9) — /exam-photo-signature-size/ (text: src/exam_hub.py). Phones: each exam becomes a card ===== */
.hub-table table{width:100%;border-collapse:collapse}
.hub-table th,.hub-table td{vertical-align:top;text-align:left;width:auto}
.hub-table thead th{width:20%;white-space:normal}
.hub-table th[scope=row]{color:var(--text,inherit)}
.hub-table td{overflow-wrap:anywhere}
.hub-link{margin:14px 0 4px;font-weight:600}
.hub-tools{padding-left:1.2em}
@media (max-width:760px){
  .hub-table{overflow:visible}
  .hub-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .hub-table table,.hub-table tbody,.hub-table tr,.hub-table th,.hub-table td{display:block;width:100%}
  .hub-table tr{border:1px solid var(--line,#d9dee3);border-radius:12px;padding:10px 12px;margin:0 0 12px}
  .hub-table th[scope=row]{font-size:1.05rem;padding:0 0 6px;border:0}
  .hub-table td{border:0;padding:4px 0}
  .hub-table td::before{content:attr(data-label);display:block;font-size:.8rem;font-weight:700;opacity:.75}
}
/* ===== KEY TERMS (v6.9) — definitions box on general tool pages (text: src/key_terms.py) ===== */
.kt-src{font-size:.85em;opacity:.8;overflow-wrap:anywhere}
/* ===== SETTING CHANGE FEEDBACK (v6.13, ui.js initFree) — old result dims while the new one is made; "Photo added" line; calm wait note ===== */
.out.stale{opacity:.45;transition:opacity .15s}
.drop small.drop-priv.added{color:var(--ok,#15803d);font-weight:600}
.note.wait-size{margin:10px 0 0;color:var(--muted)}
.note.wait-size[hidden]{display:none}
