/* NameDatePhoto - one stylesheet for every page */
:root{
  --primary:#4f46e5;--primary-2:#6366f1;--pl:#eef2ff;--pl-text:#4f46e5;--focus:rgba(79,70,229,.2);--accent:#0284c7;
  --bg:#f6f8fc;--surface:#fff;--subtle:#f1f5f9;--border:#e2e8f0;--text:#0f172a;--muted:#64748b;
  --nav-bg:rgba(255,255,255,.85);--blob1:rgba(99,102,241,.16);--blob2:rgba(2,132,199,.13);--blob3:rgba(168,85,247,.11);--canvas-bg:#e2e8f0;--dot:#cbd5e1;
  --r-sm:10px;--r-md:16px;--r-lg:24px;
  --sh-sm:0 1px 3px rgba(15,23,42,.06);--sh-md:0 8px 24px -6px rgba(15,23,42,.1);--sh-lg:0 24px 48px -12px rgba(79,70,229,.25);
  --sans:'Plus Jakarta Sans',system-ui,sans-serif;--mono:'JetBrains Mono',monospace;
}
[data-theme=dark]{
  --pl:rgba(129,140,248,.14);--pl-text:#a5b4fc;--focus:rgba(129,140,248,.3);
  --bg:#0b1020;--surface:#131a2e;--subtle:#1a2340;--border:#2a3558;--text:#e8ecf8;--muted:#9aa6c7;
  --nav-bg:rgba(11,16,32,.85);--blob1:rgba(99,102,241,.24);--blob2:rgba(2,132,199,.16);--blob3:rgba(168,85,247,.16);--canvas-bg:#0e1426;--dot:#232d4d;
  --sh-sm:0 1px 3px rgba(0,0,0,.4);--sh-md:0 8px 24px -6px rgba(0,0,0,.5);--sh-lg:0 24px 48px -12px rgba(0,0,0,.6);
}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html{scroll-behavior:smooth}
body{font-family:var(--sans);background:var(--bg);color:var(--text);line-height:1.6;min-height:100vh;display:flex;flex-direction:column;transition:background .25s,color .25s}
section,#tool{scroll-margin-top:76px}
button{font-family:inherit;cursor:pointer}
:focus-visible{outline:2px solid var(--primary-2);outline-offset:2px}
.navbar{background:var(--nav-bg);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:50}
.nav-container{max-width:1200px;margin:0 auto;padding:.7rem 1.25rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;position:relative}
.logo{display:flex;align-items:center;gap:.6rem;font-weight:800;font-size:1.15rem;color:var(--text);text-decoration:none}
.logo img{display:block;width:38px;height:38px;border-radius:11px}
.logo-badge{width:36px;height:36px;background:linear-gradient(135deg,var(--primary),var(--primary-2));border-radius:11px;display:grid;place-items:center;color:#fff;box-shadow:0 4px 12px rgba(79,70,229,.35)}
.nav-links{display:flex;gap:.25rem;list-style:none}
.nav-links a{display:block;padding:.5rem .95rem;border-radius:var(--r-sm);font-size:.9rem;font-weight:600;color:var(--muted);text-decoration:none;transition:.2s}
.nav-links a:hover{background:var(--pl);color:var(--pl-text)}
.nav-actions{display:flex;align-items:center;gap:.5rem}
.icon-btn{width:40px;height:40px;border-radius:12px;border:1px solid var(--border);background:var(--surface);color:var(--text);display:grid;place-items:center;transition:.2s}
.icon-btn:hover{background:var(--pl);color:var(--pl-text);border-color:var(--primary-2)}
.ico-moon{display:none}
[data-theme=dark] .ico-sun{display:none}
[data-theme=dark] .ico-moon{display:block}
.burger{display:none}
.burger .bar{display:block;width:18px;height:2px;background:currentColor;border-radius:2px;transition:.25s;position:relative}
.burger .bar::before,.burger .bar::after{content:"";position:absolute;left:0;width:18px;height:2px;background:currentColor;border-radius:2px;transition:.25s}
.burger .bar::before{top:-6px}
.burger .bar::after{top:6px}
.burger[aria-expanded=true] .bar{background:transparent}
.burger[aria-expanded=true] .bar::before{top:0;transform:rotate(45deg)}
.burger[aria-expanded=true] .bar::after{top:0;transform:rotate(-45deg)}
@media(max-width:820px){
  .burger{display:grid}
  .nav-links{position:absolute;top:calc(100% + 1px);left:0;right:0;flex-direction:column;background:var(--surface);border-bottom:1px solid var(--border);padding:.75rem 1rem 1rem;opacity:0;visibility:hidden;transform:translateY(-8px);transition:.25s}
  .nav-links.open{opacity:1;visibility:visible;transform:none}
  .nav-links a{padding:.8rem 1rem;font-size:1rem}
}

.fimg {width:100%;border-radius:15px}
.hero{text-align:center;padding:2rem 1rem 1rem;max-width:780px;margin:0 auto}
.pill-tag{display:inline-block;background:var(--pl);color:var(--pl-text);font-size:.78rem;font-weight:700;padding:.35rem .95rem;border-radius:99px;margin-bottom:.9rem}
.hero h1{font-size:clamp(1.9rem,4.8vw,3rem);font-weight:800;letter-spacing:-.03em;line-height:1.15;margin-bottom:.8rem}
.hero h1 span{background:linear-gradient(135deg,var(--primary),var(--accent));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.hero p{color:var(--muted);font-size:clamp(.95rem,2vw,1.1rem);margin-bottom:1.25rem}
.upload-wrap{max-width:560px;margin:0 auto 2rem}
.upload-card{position:relative;border-radius:24px;padding:1.75rem 1.5rem 1.4rem;text-align:center;background:radial-gradient(120% 90% at 50% 0,var(--pl),transparent 70%),var(--surface);border:2px dashed var(--primary-2);transition:.25s;overflow:hidden}
.upload-card:hover,.upload-card.drag-over{border-style:solid;background:radial-gradient(120% 90% at 50% 0,var(--focus),transparent 70%),var(--surface);transform:translateY(-2px)}
.upload-card input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;z-index:2}
.up-art{display:block;margin:0 auto .9rem}
.up-title{font-size:1.3rem;font-weight:800;letter-spacing:-.02em;line-height:1.3}
.up-sub{color:var(--muted);font-size:.9rem;margin:.25rem 0 1.1rem}
.up-cta{display:inline-flex;align-items:center;gap:.5rem;background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff;font-weight:700;padding:.8rem 2rem;border-radius:99px}
.up-perks{display:flex;flex-wrap:wrap;justify-content:center;gap:.4rem .5rem;margin-top:1.1rem}
.perk{font-size:.76rem;font-weight:600;color:var(--pl-text);background:var(--pl);padding:.3rem .75rem;border-radius:99px}
.up-foot{margin-top:.8rem;font-size:.76rem;color:var(--muted)}
.sample-btn{position:relative;z-index:3;background:none;border:none;color:var(--pl-text);font-size:.76rem;font-weight:600;text-decoration:underline}
.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:1.5rem;box-shadow:var(--sh-sm)}
.step-wrap{max-width:1200px;margin:0 auto 4rem;padding:0 1.25rem}
.step-section{display:none;animation:fade .35s ease-out}
@keyframes fade{from{opacity:0;transform:translateY(12px)}}
.panel-head{display:flex;justify-content:space-between;align-items:center;gap:.75rem;flex-wrap:wrap;margin-bottom:1rem}
.panel-head h2{font-size:1.2rem;font-weight:800}
#cropStage{position:relative;display:inline-block;line-height:0;overflow:hidden;user-select:none;touch-action:none;border-radius:6px}
#cropImg{display:block;max-width:100%;max-height:52vh;width:auto;height:auto;pointer-events:none}
#cropBox{position:absolute;border:2px solid #fff;box-shadow:0 0 0 9999px rgba(8,12,28,.62);cursor:move;touch-action:none}
#cropBox::before,#cropBox::after{content:"";position:absolute;pointer-events:none}
#cropBox::before{inset:0;background:linear-gradient(to right,transparent 33.2%,rgba(255,255,255,.4) 33.3%,rgba(255,255,255,.4) calc(33.3% + 1px),transparent calc(33.3% + 1px),transparent 66.5%,rgba(255,255,255,.4) 66.6%,rgba(255,255,255,.4) calc(66.6% + 1px),transparent calc(66.6% + 1px)),linear-gradient(to bottom,transparent 33.2%,rgba(255,255,255,.4) 33.3%,rgba(255,255,255,.4) calc(33.3% + 1px),transparent calc(33.3% + 1px),transparent 66.5%,rgba(255,255,255,.4) 66.6%,rgba(255,255,255,.4) calc(66.6% + 1px),transparent calc(66.6% + 1px))}
.hd{position:absolute;width:22px;height:22px;background:var(--primary-2);border:3px solid #fff;border-radius:50%;box-shadow:0 2px 6px rgba(0,0,0,.4);touch-action:none}
.hd[data-h=nw]{left:-11px;top:-11px;cursor:nwse-resize}
.hd[data-h=ne]{right:-11px;top:-11px;cursor:nesw-resize}
.hd[data-h=sw]{left:-11px;bottom:-11px;cursor:nesw-resize}
.hd[data-h=se]{right:-11px;bottom:-11px;cursor:nwse-resize}
.hd[data-h=n]{left:50%;top:-11px;margin-left:-11px;cursor:ns-resize}
.hd[data-h=s]{left:50%;bottom:-11px;margin-left:-11px;cursor:ns-resize}
.hd[data-h=w]{top:50%;left:-11px;margin-top:-11px;cursor:ew-resize}
.hd[data-h=e]{top:50%;right:-11px;margin-top:-11px;cursor:ew-resize}
.crop-foot{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;margin-top:1rem}
#cropInfo{font:600 .82rem var(--mono);color:var(--muted)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;border:none;font-weight:700;font-size:.95rem;padding:.75rem 1.5rem;border-radius:var(--r-sm);transition:.15s}
.btn-primary{background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff;box-shadow:0 4px 14px rgba(79,70,229,.35)}
.btn-primary:hover{transform:translateY(-1px)}
.workspace{display:grid;gap:1.5rem}
@media(min-width:900px){.workspace{grid-template-columns:420px 1fr;align-items:start}.preview-col{position:sticky;top:5rem}}
.canvas-wrap{background:var(--canvas-bg);background-image:radial-gradient(circle,var(--dot) 1.2px,transparent 1.2px);background-size:16px 16px;border-radius:var(--r-md);display:flex;justify-content:center;align-items:center;padding:1rem;min-height:300px;border:1px solid var(--border)}
canvas{max-width:100%;max-height:440px;border-radius:4px;box-shadow:var(--sh-md);display:block}
.meta{margin-top:.9rem;display:grid;gap:.4rem;font:500 .78rem var(--mono);color:var(--muted)}
.meta div{display:flex;justify-content:space-between;gap:.75rem;flex-wrap:wrap;background:var(--subtle);padding:.5rem .75rem;border-radius:var(--r-sm)}
.meta b{color:var(--text);font-weight:700}
.sec{padding:1.25rem 0;border-bottom:1px solid var(--border);display:grid;gap:1rem}
.sec:first-child{padding-top:0}
.sec-title{font-size:.95rem;font-weight:800;display:flex;align-items:center;gap:.5rem}
.sec-title i{width:8px;height:8px;border-radius:50%;background:var(--primary-2)}
.row{display:grid;gap:1rem;grid-template-columns:1fr}
@media(min-width:480px){.row{grid-template-columns:1fr 1fr}}
label{display:flex;align-items:center;justify-content:space-between;font-size:.82rem;font-weight:600;margin-bottom:.4rem}
input[type=text],input[type=date],input[type=number],select{width:100%;height:44px;background:var(--surface);border:1.5px solid var(--border);color:var(--text);padding:0 .8rem;border-radius:var(--r-sm);font:inherit;font-size:.92rem;outline:none;transition:.2s}
input:focus,select:focus{border-color:var(--primary-2);box-shadow:0 0 0 3px var(--focus)}
input[type=range]{width:100%;accent-color:var(--primary-2);cursor:pointer}
input[type=color]{width:100%;height:44px;border:1.5px solid var(--border);border-radius:var(--r-sm);background:var(--surface);padding:3px;cursor:pointer}
.val{font:500 .78rem var(--mono);color:var(--muted)}
.presets{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem}
.presets .pill{border-radius:var(--r-sm);padding:.6rem .25rem;text-align:center}
.size-row{display:grid;grid-template-columns:1fr 44px 1fr;gap:.5rem;align-items:end}
.lock{height:44px;border-radius:var(--r-sm);border:1.5px solid var(--border);background:var(--surface);color:var(--muted);display:grid;place-items:center}
.lock[aria-pressed=true]{background:var(--pl);color:var(--pl-text);border-color:var(--primary-2)}
.switch{display:flex;align-items:center;justify-content:space-between;font-size:.9rem;font-weight:600}
.switch input{appearance:none;width:44px;height:26px;border-radius:99px;background:var(--border);position:relative;cursor:pointer;transition:.2s;flex:none}
.switch input::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:.2s}
.switch input:checked{background:var(--primary-2)}
.switch input:checked::after{transform:translateX(18px)}
#borderOpts{display:none}
.btn-download{width:100%;height:52px;margin-top:1.25rem;font-size:1rem}
.wrap{max-width:1200px;margin:0 auto;padding:4rem 1.25rem}
.head{text-align:center;max-width:680px;margin:0 auto 2.5rem}
.head h2{font-size:clamp(1.55rem,3.4vw,2.15rem);font-weight:800;letter-spacing:-.02em;line-height:1.25;margin-bottom:.6rem}
.head p{color:var(--muted)}
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.25rem;counter-reset:s}
.step{position:relative;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-md);padding:1.75rem 1.5rem 1.5rem;counter-increment:s}
.step::before{content:counter(s);position:absolute;top:-16px;left:1.25rem;width:34px;height:34px;border-radius:11px;background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff;font-weight:800;display:grid;place-items:center;box-shadow:0 4px 12px rgba(79,70,229,.35)}
.step h3,.card h3{font-size:1.05rem;font-weight:700;margin-bottom:.35rem}
.step p,.card p{color:var(--muted);font-size:.9rem}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.25rem}
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-md);padding:1.5rem;box-shadow:var(--sh-sm);transition:.25s}
.card:hover{border-color:var(--primary-2);box-shadow:var(--sh-md);transform:translateY(-3px)}
.card .ic{width:46px;height:46px;border-radius:14px;background:var(--pl);display:grid;place-items:center;font-size:1.4rem;margin-bottom:.9rem}
.tbl{overflow-x:auto;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-md);box-shadow:var(--sh-sm);margin-bottom:1rem}
table{width:100%;border-collapse:collapse;text-align:left;font-size:.9rem;min-width:560px}
th,td{padding:.9rem 1.15rem;border-bottom:1px solid var(--border)}
tr:last-child td{border-bottom:none}
th{background:var(--subtle);font-weight:700}
td:first-child{font-weight:700}
.note{font-size:.82rem;color:var(--muted);margin-bottom:3rem}
.article{max-width:760px;margin:0 auto}
.article h2{font-size:1.5rem;font-weight:800;letter-spacing:-.02em;margin:2.25rem 0 .75rem}
.article h2:first-child{margin-top:0}
.article h3{font-size:1.1rem;font-weight:700;margin:1.5rem 0 .4rem}
.article p{color:var(--muted);margin-bottom:1rem}
.article ul{margin:0 0 1rem 1.25rem;color:var(--muted)}
.article li{margin-bottom:.45rem}
.article strong{color:var(--text)}
.callout{background:var(--pl);border-left:4px solid var(--primary-2);border-radius:var(--r-sm);padding:1rem 1.25rem;margin:1.5rem 0;font-size:.92rem;color:var(--text)}
.faq{display:grid;gap:.75rem}
.faq-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-md);overflow:hidden;transition:.2s}
.faq-card.open{border-color:var(--primary-2)}
.faq-btn{width:100%;padding:1.1rem 1.25rem;background:none;border:none;text-align:left;font-size:.96rem;font-weight:700;color:var(--text);display:flex;justify-content:space-between;align-items:center;gap:1rem}
.faq-body{max-height:0;overflow:hidden;transition:max-height .3s ease-out;padding:0 1.25rem;color:var(--muted);font-size:.92rem}
.faq-card.open .faq-body{padding-bottom:1.1rem}
.chev{flex:none;transition:transform .25s}
.faq-card.open .chev{transform:rotate(180deg)}
.toast{position:fixed;bottom:1.5rem;left:50%;transform:translate(-50%,100px);background:#0f172a;color:#fff;padding:.75rem 1.4rem;border-radius:99px;font-size:.85rem;font-weight:600;box-shadow:var(--sh-md);transition:transform .3s;z-index:100;display:flex;align-items:center;gap:.5rem}
.toast.show{transform:translate(-50%,0)}
.opt{font-size:.7rem;font-weight:600;color:var(--muted);background:var(--subtle);border:1px solid var(--border);padding:.05rem .5rem;border-radius:99px}
.hint{font-size:.8rem;color:var(--muted);margin-top:.45rem}
.to-top{position:fixed;right:1.25rem;bottom:1.25rem;width:50px;height:50px;border-radius:50%;border:none;background:var(--surface);color:var(--pl-text);display:grid;place-items:center;box-shadow:var(--sh-md);opacity:0;visibility:hidden;transform:translateY(14px) scale(.9);transition:.3s;z-index:60}
.to-top.show{opacity:1;visibility:visible;transform:none}
.to-top:hover{background:var(--primary);color:#fff}
.to-top .ring{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}
.to-top circle{fill:none;stroke-width:3}
.to-top .track{stroke:var(--border)}
.to-top .prog{stroke:var(--primary-2);stroke-linecap:round;stroke-dasharray:131.95;stroke-dashoffset:131.95}
.to-top:hover .prog{stroke:#fff}
.to-top .arrow{position:relative}
.row3{display:grid;grid-template-columns:1fr 1fr 92px;gap:.75rem}
.row.keep{grid-template-columns:1fr 1fr}
.lbl{display:block;font-size:.82rem;font-weight:600;margin-bottom:.4rem}
.switch.box{height:44px;border:1.5px solid var(--border);border-radius:var(--r-sm);padding:0 .8rem;margin:0;background:var(--surface);font-size:.88rem}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:.9rem;margin:0 0 1.75rem}
.stat{background:linear-gradient(135deg,var(--primary),var(--accent));border-radius:var(--r-md);padding:1.1rem .8rem;text-align:center;color:#fff}
.stat b{display:block;font-size:1.6rem;font-weight:800;letter-spacing:-.02em;line-height:1.2}
.stat span{font-size:.78rem;opacity:.9}
@media(max-width:640px){.stats{grid-template-columns:repeat(2,1fr)}}
.guide{margin:0}
.gstack{display:grid;gap:1.25rem}
.gcard{position:relative;background:var(--surface);border:1px solid var(--border);border-radius:24px;padding:1.75rem;overflow:hidden}
.gcard::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:linear-gradient(90deg,var(--primary),var(--accent),#a855f7)}
.gh{display:flex;align-items:center;gap:.9rem;margin-bottom:1rem}
.gn{flex:none;width:44px;height:44px;border-radius:14px;background:var(--pl);color:var(--pl-text);font:800 1rem var(--mono);display:grid;place-items:center}
.gcard .gh h2{margin:0;font-size:1.3rem}
.gcard .tip,.gcard .article ol li{background:var(--bg)}
.gcard>p:last-child,.gcard>ul:last-child,.gcard>ol:last-child{margin-bottom:0}
footer{margin-top:auto;position:relative;background:var(--surface);border-top:1px solid var(--border);padding:.9rem 1.25rem;font-size:.82rem;color:var(--muted)}
footer::before{content:"";position:absolute;left:0;right:0;top:-1px;height:1px;background:linear-gradient(90deg,var(--primary),var(--accent),#a855f7)}
.foot-in{max-width:1200px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:.6rem 1.5rem;flex-wrap:wrap}
.foot-brand{display:flex;align-items:center;gap:.5rem;font-weight:800;color:var(--text);text-decoration:none;font-size:.9rem}
.foot-brand img{width:24px;height:24px;border-radius:7px}
.foot-links{display:flex;flex-wrap:wrap;gap:.25rem}
.foot-links a{color:var(--muted);font-weight:600;text-decoration:none;font-size:.82rem;padding:.3rem .7rem;border-radius:99px;transition:.2s}
.foot-links a:hover{background:var(--pl);color:var(--pl-text)}
@media(max-width:700px){.foot-in{justify-content:center;text-align:center}}
.guide .article{margin:0;max-width:none}
.tips{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:.9rem;margin:1.25rem 0 1.5rem}
.tip{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-md);padding:1.1rem}
.tip b{display:block;margin:.35rem 0 .2rem;font-size:.95rem}
.tip span.e{font-size:1.4rem}
.tip p{margin:0;font-size:.86rem}
.article ol{list-style:none;counter-reset:o;margin:0 0 1.25rem;display:grid;gap:.75rem}
.article ol li{counter-increment:o;position:relative;padding:.9rem 1rem .9rem 3.4rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-md);color:var(--muted);margin:0}
.article ol li::before{content:counter(o);position:absolute;left:1rem;top:.85rem;width:28px;height:28px;border-radius:9px;background:var(--pl);color:var(--pl-text);font-weight:800;display:grid;place-items:center;font-size:.9rem}
.article ul.check{list-style:none;margin-left:0;display:grid;gap:.5rem}
.article ul.check li{position:relative;padding-left:1.9rem;margin:0}
.article ul.check li::before{content:"✓";position:absolute;left:0;top:0;width:22px;height:22px;border-radius:50%;background:#10b981;color:#fff;font-size:.75rem;font-weight:800;display:grid;place-items:center}
@media(max-width:560px){
  input[type=text],input[type=date],input[type=number],select{font-size:16px}
  .panel{padding:1.1rem}.wrap{padding:2.75rem 1rem}.hero{padding-top:1.5rem}
  .crop-area{padding:.6rem}.crop-foot{flex-direction:column;align-items:stretch}.crop-foot>div{width:100%}.crop-foot .btn{flex:1;padding:.75rem .5rem}
  .to-top{right:.9rem;bottom:.9rem}.step-wrap{padding:0 .75rem}
}
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(55% 45% at 8% 0,var(--blob1),transparent 70%),radial-gradient(45% 40% at 100% 18%,var(--blob2),transparent 70%),radial-gradient(50% 45% at 55% 100%,var(--blob3),transparent 70%),radial-gradient(var(--dot) 1px,transparent 1.2px) 0 0/26px 26px;opacity:.9}
.band{background:transparent}
.pill{background:var(--surface);border:1.5px solid var(--border);color:var(--muted);padding:.5rem 1rem;border-radius:99px;font-size:.82rem;font-weight:600;transition:.2s;white-space:nowrap}
.pill:hover{border-color:var(--primary-2);color:var(--pl-text);background:var(--pl);transform:translateY(-1px)}
.pill.active{background:linear-gradient(135deg,var(--primary),var(--primary-2));border-color:transparent;color:#fff;box-shadow:0 4px 12px rgba(79,70,229,.3)}
.btn-sm{display:inline-flex;align-items:center;gap:.4rem;font-size:.82rem;font-weight:600;color:var(--pl-text);background:var(--pl);padding:.45rem .95rem;border-radius:99px;border:1.5px solid transparent;transition:.2s;white-space:nowrap}
.btn-sm:hover{background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff;transform:translateY(-1px)}
.btn-ghost{background:var(--surface);color:var(--text);border:1.5px solid var(--border)}
.btn-ghost:hover{border-color:var(--primary-2);color:var(--pl-text);background:var(--pl)}
.crop-panel{padding:1.1rem 1.25rem}
.crop-top{display:flex;justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:.75rem}
.crop-top h2{font-size:1.1rem;font-weight:800}
.crop-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.6rem;margin-bottom:.75rem}
.ratios{display:flex;flex-wrap:wrap;gap:.4rem}
.crop-area{background:var(--canvas-bg);background-image:radial-gradient(circle,var(--dot) 1.2px,transparent 1.2px);background-size:16px 16px;border:1px solid var(--border);border-radius:var(--r-md);padding:.6rem;display:flex;justify-content:center}
.crop-panel .crop-foot{margin-top:.75rem}
.lock:hover{border-color:var(--primary-2);color:var(--pl-text)}
@media(min-width:900px){.gstack{grid-template-columns:1fr 1fr;align-items:start}}
.row2{display:grid;gap:.9rem;grid-template-columns:92px 1fr;grid-template-areas:"c b" "s s"}
.row2 .c{grid-area:c}
.row2 .b{grid-area:b}
.row2 .fs{grid-area:s}
.row2 .fs input[type=range]{height:44px;padding:0 .8rem;background:var(--surface);border:1.5px solid var(--border);border-radius:var(--r-sm);transition:.2s}
.row2 .fs input[type=range]:focus{border-color:var(--primary-2);box-shadow:0 0 0 3px var(--focus)}
.dimrow{display:grid;gap:.5rem;align-items:end;grid-template-columns:1fr 44px 1fr}
.udpi{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;grid-column:1/-1}
.keep .btn-download{grid-column:1/-1;width:100%;height:48px;margin:.1rem 0 0}
@media (min-width:620px) and (max-width:899px),(min-width:1080px){
  .row.keep{grid-template-columns:repeat(3,1fr);align-items:end}
  .keep .btn-download{grid-column:auto;height:44px;margin:0;padding:0 .5rem}
  .row2{grid-template-columns:repeat(3,1fr);grid-template-areas:"c s b"}
  .dimrow{grid-template-columns:1fr 44px 1fr auto}
  .udpi{grid-column:auto;grid-template-columns:78px 84px}
}
.lock .open{display:none}
.lock[aria-pressed=false] .open{display:block}
.lock[aria-pressed=false] .closed{display:none}
.tools{display:flex;gap:.2rem;background:var(--surface);border:1.5px solid var(--border);border-radius:14px;padding:.22rem}
.tool{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;height:36px;min-width:36px;padding:0 .7rem;border:none;border-radius:10px;background:transparent;color:var(--muted);font:600 .78rem var(--sans);transition:.2s}
.tool svg{transition:transform .3s}
.tool:hover{background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff}
#rotL:hover svg{transform:rotate(-90deg)}
#rotR:hover svg{transform:rotate(90deg)}
#flipH:hover svg{transform:scaleX(-1)}
.tool:active{transform:scale(.94)}
.tool span{display:none}
@media(min-width:560px){.tool span{display:inline}}
@media(max-width:560px){
  .crop-panel{padding:.7rem}
  .crop-top{margin-bottom:.5rem}.crop-top h2{font-size:.95rem}
  .crop-bar{gap:.4rem;margin-bottom:.5rem}
  .pill{padding:.38rem .7rem;font-size:.76rem}
  .tool{width:34px;height:34px;padding:0}
  #cropImg{max-height:min(36vh,300px)}
  .crop-area{padding:.35rem}
  .crop-panel .crop-foot{margin-top:.5rem;gap:.4rem}
  #cropInfo{width:100%;font-size:.72rem;text-align:center}
  .crop-foot .btn{padding:.6rem .5rem;font-size:.85rem}
  .btn-sm{padding:.35rem .7rem;font-size:.76rem}
}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}html{scroll-behavior:auto}}
.tb-h{text-align:center;max-width:100%;margin:0 auto 2.5rem}
.tb-eb{display:inline-block;font:800 .75rem var(--sans);letter-spacing:.18em;text-transform:uppercase;background:linear-gradient(90deg,#f59e0b,#ec4899);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.tb-h h2{font-size:clamp(1.8rem,4vw,2.8rem);font-weight:700;letter-spacing:-.03em;line-height:1.1;margin-top:.5rem}
.tb-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem}
.tb-st{background:var(--surface);border:1px solid var(--border);border-top:4px solid #6366f1;border-radius:20px;padding:1.5rem}
.tb-st:nth-child(2){border-color:#ec4899}
.tb-st:nth-child(3){border-color:#f59e0b}
.tb-no{font:800 4.5rem/1 var(--sans);color:transparent;-webkit-text-stroke:2px var(--primary-2)}
.tb-st:nth-child(2) .tb-no{-webkit-text-stroke-color:#ec4899}
.tb-st:nth-child(3) .tb-no{-webkit-text-stroke-color:#f59e0b}
.tb-st h3{font-size:1.2rem;font-weight:800;margin:.5rem 0 .3rem}
.tb-st p{color:var(--muted);font-size:.95rem}
.tb-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.tb-t{border-radius:24px;padding:1.5rem;min-height:170px;border:1px solid var(--border)}
.tb-t:nth-child(1){background:rgba(99,102,241,.13)}
.tb-t:nth-child(2){background:rgba(236,72,153,.12)}
.tb-t:nth-child(3){background:rgba(245,158,11,.14)}
.tb-t:nth-child(4){background:rgba(16,185,129,.13)}
.tb-t:nth-child(5){background:rgba(14,165,233,.13)}
.tb-t:nth-child(6){background:rgba(168,85,247,.13)}
.tb-t span{font-size:2rem}
.tb-t h3{font-size:1.1rem;font-weight:800;margin:.6rem 0 .25rem}
.tb-t p{color:var(--muted);font-size:.92rem}
.tb-cta{position:relative;overflow:hidden;display:grid;grid-template-columns:1fr auto;align-items:center;gap:1.25rem;margin-top:1.5rem;padding:clamp(1.5rem,4vw,2.25rem) clamp(1.5rem,4vw,2.25rem) clamp(1.5rem,4vw,2.25rem) clamp(1.75rem,4vw,2.5rem);border-radius:var(--r-lg);border:1px solid var(--border);background:radial-gradient(120% 140% at 100% 0,var(--focus),transparent 60%),var(--surface)}
.tb-cta::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:linear-gradient(var(--primary),var(--accent))}
.tb-cta h2{font-size:clamp(1.3rem,3vw,1.9rem);font-weight:800;letter-spacing:-.02em;line-height:1.2;margin-bottom:0}
.tb-cta a{display:inline-flex;align-items:center;gap:.6rem;margin-top:15px;padding:.85rem 1.4rem;border-radius:9999px;background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff;font-weight:700;font-size:.98rem;text-decoration:none;box-shadow:0 4px 14px rgba(79,70,229,.35);transition:transform .2s,box-shadow .2s}
.tb-cta a::after{content:"→";font-weight:800;transition:transform .2s}
.tb-cta a:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(79,70,229,.45)}
.tb-cta a:hover::after{transform:translateX(3px)}
.tb-cta a:active{transform:scale(.98)}
.hero{max-width:1200px;padding-left:1.25rem;padding-right:1.25rem}
.hero p{max-width:880px;margin-left:auto;margin-right:auto}
.tb-body .ed-quote{margin:1.25rem 0 0;padding:1.1rem 1.4rem;border-radius:18px;background:var(--pl);border-left:4px solid var(--primary-2);font-weight:600;color:var(--text)}
.tb-big{font:800 clamp(3.5rem,11vw,7rem)/1 var(--sans);color:transparent;-webkit-text-stroke:2px var(--primary-2);opacity:.85}
.tb-row{display:grid;grid-template-columns:1fr;gap:.9rem;padding:1.75rem;margin-bottom:1rem;border-radius:24px;border:1px solid var(--border);border-left:8px solid #6366f1;background:var(--surface)}
.tb-row:nth-child(6n+2){border-left-color:#ec4899}
.tb-row:nth-child(6n+3){border-left-color:#f59e0b}
.tb-row:nth-child(6n+4){border-left-color:#10b981}
.tb-row:nth-child(6n+5){border-left-color:#0ea5e9}
.tb-row:nth-child(6n+6){border-left-color:#a855f7}
.tb-row small{font:700 .72rem var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.tb-row h2{font-size:1.35rem;font-weight:800;letter-spacing:-.02em;line-height:1.25;margin-top:.3rem}
.tb-body p{color:var(--muted);margin-bottom:1rem}
.tb-body ul,.tb-body ol{margin:0 0 1rem 1.2rem;color:var(--muted)}
.tb-body li{margin-bottom:.4rem}
.tb-body strong{color:var(--text)}
.tb-body a{color:var(--pl-text);font-weight:700}
@media(max-width:860px){.tb-steps{grid-template-columns:1fr}.tb-tiles{grid-template-columns:1fr 1fr}.tb-cta{grid-template-columns:1fr}}
@media(max-width:520px){.tb-tiles{grid-template-columns:1fr}.tb-row{padding:1.25rem}}
.tb-faq{counter-reset:q;gap:.75rem}
.tb-faq .faq-card{border-radius:18px;border-left:6px solid #ec4899}
.tb-faq .faq-card:nth-child(3n+2){border-left-color:#f59e0b}
.tb-faq .faq-card:nth-child(3n+3){border-left-color:#6366f1}
.tb-faq .faq-btn::before{counter-increment:q;content:"Q" counter(q);flex:none;margin-right:.75rem;font:800 .8rem var(--mono);color:var(--pl-text);background:var(--pl);padding:.2rem .5rem;border-radius:8px}
.tb-faq .faq-btn{justify-content:flex-start}
.tb-faq .chev{margin-left:auto}
.tbl{margin:1rem 0}
.tbl table{min-width:0}
@media(max-width:640px){
 .tbl{background:none;border:none;box-shadow:none;overflow:visible}
 .tbl table,.tbl tbody,.tbl tr,.tbl td{display:block;width:100%}
 .tbl thead{display:none}
 .tbl tr{border:1px solid var(--border);border-radius:16px;padding:.5rem 1rem;margin-bottom:.7rem;background:var(--surface)}
 .tbl td{border:none;padding:.4rem 0;display:flex;justify-content:space-between;align-items:baseline;gap:1rem;text-align:right}
 .tbl td::before{content:attr(data-label);flex:none;text-align:left;font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
 .tbl td:first-child{font-weight:700}
}
.nav-links a.active{background:var(--pl);color:var(--pl-text)}
:where(.pg-bg) .bgws{display:grid;gap:1.5rem}
@media(min-width:900px){:where(.pg-bg) .bgws{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:start}}
:where(.pg-bg) .checker{position:relative;display:inline-block;line-height:0;max-width:100%;border-radius:6px;overflow:hidden;background-color:#fff;background-image:linear-gradient(45deg,#e5e7eb 25%,transparent 25%,transparent 75%,#e5e7eb 75%),linear-gradient(45deg,#e5e7eb 25%,transparent 25%,transparent 75%,#e5e7eb 75%);background-size:20px 20px;background-position:0 0,10px 10px}
[data-theme=dark] .checker{background-color:#1f2937;background-image:linear-gradient(45deg,#374151 25%,transparent 25%,transparent 75%,#374151 75%),linear-gradient(45deg,#374151 25%,transparent 25%,transparent 75%,#374151 75%)}
:where(.pg-crop) #outCanvas{max-width:100%;max-height:min(460px,calc(100vh - 260px));box-shadow:none;border-radius:0;display:block}
:where(.pg-crop) .cws{display:grid;gap:1rem}
@media(min-width:900px){:where(.pg-crop) .cws{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch}:where(.pg-crop) .cws .pv{display:flex;flex-direction:column}:where(.pg-crop) .cws .pv .canvas-wrap{flex:1;display:flex;align-items:center;justify-content:center;min-height:0}}
:where(.pg-crop) .statbox.mb2{grid-template-columns:repeat(2,1fr);margin-top:.7rem}
:where(.pg-bg) #view{max-width:100%;max-height:560px;box-shadow:none;border-radius:0;touch-action:auto}
:where(.pg-bg) .swatches{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}
:where(.pg-bg) .sw{width:34px;height:34px;border-radius:50%;border:2px solid var(--border);padding:0;transition:.15s}
:where(.pg-bg) .sw:hover{transform:scale(1.1)}
:where(.pg-bg) .sw.on{outline:3px solid var(--primary-2);outline-offset:2px}
:where(.pg-bg) .sw-c{width:44px;height:34px;border:1.5px solid var(--border);border-radius:10px;padding:2px;background:var(--surface);cursor:pointer}
:where(.pg-bg) .rg input[type=range]{height:44px;padding:0 .8rem;background:var(--surface);border:1.5px solid var(--border);border-radius:var(--r-sm)}
:where(.pg-bg) .opts{display:none;gap:.75rem}
:where(.pg-bg) .opts.on{display:grid}
:where(.pg-bg) .dl{display:grid;grid-template-columns:1fr 1fr;gap:1rem;align-items:end}
:where(.pg-bg) .dl .btn{height:44px;padding:0 .5rem}
:where(.pg-bg) .acts{display:flex;flex-wrap:wrap;gap:.5rem}
:where(.pg-bg) .canvas-wrap{position:relative;min-height:260px}
:where(.pg-bg) .canvas-wrap.isbusy{min-height:340px}
:where(.pg-bg) .bring{position:absolute;border:2px solid #fff;outline:1px solid rgba(0,0,0,.55);border-radius:50%;pointer-events:none;transform:translate(-50%,-50%);display:none}
:where(.pg-bg) .busy{position:absolute;inset:0;display:none;place-items:center;background:rgba(10,14,30,.74);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);padding:1rem;border-radius:var(--r-md);z-index:5}
:where(.pg-bg) .busy.on{display:grid}
:where(.pg-bg) .bcard{width:min(100%,340px);text-align:center;color:#fff;display:grid;gap:.7rem;justify-items:center;font-weight:700;font-size:.95rem;line-height:1.4}
:where(.pg-bg) .spin{width:28px;height:28px;border-radius:50%;border:3px solid rgba(255,255,255,.3);border-top-color:#fff;animation:sp .8s linear infinite}
@keyframes sp{to{transform:rotate(360deg)}}
:where(.pg-bg) .pbar{width:100%;height:10px;border-radius:99px;background:rgba(255,255,255,.18);overflow:hidden}
:where(.pg-bg) .pbar i{display:block;height:100%;width:0;border-radius:99px;background:linear-gradient(90deg,#818cf8,#38bdf8);transition:width .25s}
:where(.pg-bg) .pbar.ind i{width:40%;animation:ind 1.2s ease-in-out infinite}
@keyframes ind{0%{transform:translateX(-100%)}100%{transform:translateX(250%)}}
:where(.pg-bg) .pmeta{display:flex;justify-content:space-between;width:100%;font:600 .78rem var(--mono);color:#c7d2fe;min-height:1.1em}
:where(.pg-bg) .psteps{list-style:none;display:flex;gap:.4rem;flex-wrap:wrap;justify-content:center}
:where(.pg-bg) .psteps li{font-size:.72rem;font-weight:600;padding:.25rem .65rem;border-radius:99px;background:rgba(255,255,255,.1);color:#a5b4fc}
:where(.pg-bg) .psteps li.on{background:#fff;color:#312e81}
:where(.pg-bg) .psteps li.done{background:rgba(16,185,129,.25);color:#6ee7b7}
:where(.pg-bg) .bhint{font-size:.78rem;color:#c7d2fe;font-weight:500;min-height:1.2em}
:where(.pg-bg) .bacts{display:none;gap:.5rem;flex-wrap:wrap;justify-content:center}
:where(.pg-bg) .busy.err .bacts{display:flex}
:where(.pg-bg) .busy.err .pbar,:where(.pg-bg) .busy.err .pmeta,:where(.pg-bg) .busy.err .psteps,:where(.pg-bg) .busy.err .spin{display:none}
.logo>span{color:#6366f1}
.crop-panel{padding:.8rem .95rem}
.crop-top h2{font-size:1rem;display:flex;align-items:center;gap:.5rem}
.crop-top h2::before{content:"";width:9px;height:9px;border-radius:50%;background:linear-gradient(135deg,var(--primary),var(--accent))}
.crop-area{background:radial-gradient(120% 120% at 50% 0,#1e1b4b,#0b1020);border:none;border-radius:16px;padding:.5rem;box-shadow:inset 0 0 0 1px rgba(255,255,255,.07)}
#cropImg{max-height:min(46vh,430px)}
#cropBox{border:2px solid #fff;box-shadow:0 0 0 9999px rgba(6,9,22,.72),0 0 0 1px rgba(99,102,241,.9)}
.hd{border-width:2.5px;background:var(--primary-2)}
@media(pointer:fine){.hd{transform:scale(.75)}}
.crop-panel .crop-foot{margin-top:.6rem;gap:.6rem}
#cropInfo{background:var(--subtle);border:1px solid var(--border);padding:.35rem .8rem;border-radius:99px;font-size:.74rem}
.crop-foot .btn{padding:.55rem 1.15rem;font-size:.86rem;border-radius:99px}
@media(min-width:760px){
 .crop-panel{display:grid;grid-template-columns:auto 1fr;column-gap:1rem;row-gap:.6rem;align-items:center}
 .crop-panel .crop-top{margin:0}
 .crop-panel .crop-bar{margin:0;justify-content:flex-end}
 .crop-panel .crop-area,.crop-panel .crop-foot{grid-column:1/-1}
}
:where(.pg-crop,.pg-exam,.pg-kb) .dlpop{position:fixed;left:50%;top:4.6rem;z-index:90;width:min(92vw,380px);display:flex;align-items:center;gap:.9rem;padding:1rem 2.8rem 1.1rem 1rem;border-radius:20px;background:var(--surface);border:1px solid var(--border);box-shadow:0 20px 50px -12px rgba(79,70,229,.45);transform:translate(-50%,-160%);opacity:0;transition:transform .5s cubic-bezier(.2,.9,.3,1.15),opacity .3s;overflow:hidden}
:where(.pg-crop,.pg-exam,.pg-kb) .dlpop.show{transform:translate(-50%,0);opacity:1}
@media(min-width:760px){:where(.pg-crop,.pg-exam,.pg-kb) .dlpop{left:auto;right:1.5rem;transform:translate(120%,0)}:where(.pg-crop,.pg-exam,.pg-kb) .dlpop.show{transform:none}}
:where(.pg-crop,.pg-exam,.pg-kb) .dl-ic{flex:none;width:46px;height:46px;border-radius:50%;background:linear-gradient(135deg,#10b981,#34d399);display:grid;place-items:center;box-shadow:0 6px 16px rgba(16,185,129,.4)}
:where(.pg-crop,.pg-exam,.pg-kb) .dl-ic svg{width:30px;height:30px;fill:none;stroke:#fff;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
:where(.pg-crop,.pg-exam,.pg-kb) .dl-ic .t{stroke-dasharray:50;stroke-dashoffset:50}
:where(.pg-crop,.pg-exam,.pg-kb) .dlpop.show .t{animation:tick .5s .25s forwards}
@keyframes tick{to{stroke-dashoffset:0}}
:where(.pg-crop,.pg-exam,.pg-kb) .dl-tx{display:grid;min-width:0}
:where(.pg-crop,.pg-exam,.pg-kb) .dl-tx b{font-size:.98rem}
:where(.pg-crop,.pg-exam,.pg-kb) .dl-tx span{font-size:.8rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:where(.pg-crop,.pg-exam,.pg-kb) .dl-x{position:absolute;top:.55rem;right:.6rem;width:28px;height:28px;border:none;border-radius:50%;background:var(--subtle);color:var(--muted);font-size:1.15rem;line-height:1}
:where(.pg-crop,.pg-exam,.pg-kb) .dl-x:hover{background:var(--pl);color:var(--pl-text)}
:where(.pg-crop,.pg-exam,.pg-kb) .dl-bar{position:absolute;left:0;bottom:0;height:3px;width:100%;background:linear-gradient(90deg,#10b981,#38bdf8);transform-origin:left;transform:scaleX(0)}
:where(.pg-crop,.pg-exam,.pg-kb) .dlpop.show .dl-bar{animation:bar 4s linear forwards}
@keyframes bar{from{transform:scaleX(1)}to{transform:scaleX(0)}}
:where(.pg-crop,.pg-exam,.pg-kb) a.pill{text-decoration:none;display:inline-block}
:where(.pg-crop,.pg-exam,.pg-kb) .sizes{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;margin-top:1.25rem}
:where(.pg-crop,.pg-exam,.pg-kb) .ed-body ol{list-style:none;counter-reset:o;display:grid;gap:.6rem;margin:0 0 1rem}
:where(.pg-crop,.pg-exam,.pg-kb) .ed-body ol li{counter-increment:o;position:relative;padding:.85rem 1rem .85rem 3.2rem;background:var(--surface);border:1px solid var(--border);border-radius:16px;color:var(--muted)}
:where(.pg-crop,.pg-exam,.pg-kb) .ed-body ol li::before{content:counter(o);position:absolute;left:1rem;top:.8rem;width:28px;height:28px;border-radius:9px;background:var(--pl);color:var(--pl-text);font-weight:800;display:grid;place-items:center;font-size:.9rem}
:where(.pg-crop,.pg-exam,.pg-kb) .ed-body .tbl{margin:1rem 0}
:where(.pg-crop,.pg-exam,.pg-kb) .ed-body td:first-child{font-weight:700;color:var(--text)}
.dimrow{display:grid;gap:.5rem;align-items:end;grid-template-columns:1fr 44px 1fr}
.udpi{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;grid-column:1/-1}
@media (min-width:620px) and (max-width:899px),(min-width:1080px){:where(.pg-crop,.pg-exam,.pg-kb) .dimrow{grid-template-columns:1fr 44px 1fr auto}:where(.pg-crop,.pg-exam,.pg-kb) .udpi{grid-column:auto;grid-template-columns:78px 84px}}
.lock .open{display:none}
.lock[aria-pressed=false] .open{display:block}
.lock[aria-pressed=false] .closed{display:none}
.lock:hover{border-color:var(--primary-2);color:var(--pl-text)}
.tb-h{text-align:center;max-width:100%;margin:0 auto 2.5rem}
.tb-eb{display:inline-block;font:800 .75rem var(--sans);letter-spacing:.18em;text-transform:uppercase;background:linear-gradient(90deg,#f59e0b,#ec4899);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.tb-h h2{font-size:clamp(1.8rem,4vw,2.8rem);font-weight:700;letter-spacing:-.03em;line-height:1.1;margin-top:.5rem}
.tb-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem}
.tb-st{background:var(--surface);border:1px solid var(--border);border-top:4px solid #6366f1;border-radius:20px;padding:1.5rem}
.tb-st:nth-child(2){border-color:#ec4899}
.tb-st:nth-child(3){border-color:#f59e0b}
.tb-no{font:800 4.5rem/1 var(--sans);color:transparent;-webkit-text-stroke:2px var(--primary-2)}
.tb-st:nth-child(2) .tb-no{-webkit-text-stroke-color:#ec4899}
.tb-st:nth-child(3) .tb-no{-webkit-text-stroke-color:#f59e0b}
.tb-st h3{font-size:1.2rem;font-weight:800;margin:.5rem 0 .3rem}
.tb-st p{color:var(--muted);font-size:.95rem}
.tb-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.tb-t{border-radius:24px;padding:1.5rem;min-height:170px;border:1px solid var(--border)}
.tb-t:nth-child(1){background:rgba(99,102,241,.13)}
.tb-t:nth-child(2){background:rgba(236,72,153,.12)}
.tb-t:nth-child(3){background:rgba(245,158,11,.14)}
.tb-t:nth-child(4){background:rgba(16,185,129,.13)}
.tb-t:nth-child(5){background:rgba(14,165,233,.13)}
.tb-t:nth-child(6){background:rgba(168,85,247,.13)}
.tb-t span{font-size:2rem}
.tb-t h3{font-size:1.1rem;font-weight:800;margin:.6rem 0 .25rem}
.tb-t p{color:var(--muted);font-size:.92rem}
.tb-cta{position:relative;overflow:hidden;display:grid;grid-template-columns:1fr auto;align-items:center;gap:1.25rem;margin-top:1.5rem;padding:clamp(1.5rem,4vw,2.25rem) clamp(1.5rem,4vw,2.25rem) clamp(1.5rem,4vw,2.25rem) clamp(1.75rem,4vw,2.5rem);border-radius:var(--r-lg);border:1px solid var(--border);background:radial-gradient(120% 140% at 100% 0,var(--focus),transparent 60%),var(--surface)}
.tb-cta::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:linear-gradient(var(--primary),var(--accent))}
.tb-cta h2{font-size:clamp(1.3rem,3vw,1.9rem);font-weight:800;letter-spacing:-.02em;line-height:1.2;margin-bottom:0}
.tb-cta a{display:inline-flex;align-items:center;gap:.6rem;margin-top:15px;padding:.85rem 1.4rem;border-radius:9999px;background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff;font-weight:700;font-size:.98rem;text-decoration:none;box-shadow:0 4px 14px rgba(79,70,229,.35);transition:transform .2s,box-shadow .2s}
.tb-cta a::after{content:"→";font-weight:800;transition:transform .2s}
.tb-cta a:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(79,70,229,.45)}
.tb-cta a:hover::after{transform:translateX(3px)}
.tb-cta a:active{transform:scale(.98)}
.hero{max-width:1200px;padding-left:1.25rem;padding-right:1.25rem}
.hero p{max-width:880px;margin-left:auto;margin-right:auto}
.tb-body .ed-quote{margin:1.25rem 0 0;padding:1.1rem 1.4rem;border-radius:18px;background:var(--pl);border-left:4px solid var(--primary-2);font-weight:600;color:var(--text)}
.tb-big{font:800 clamp(3.5rem,11vw,7rem)/1 var(--sans);color:transparent;-webkit-text-stroke:2px var(--primary-2);opacity:.85}
.tb-row{display:grid;grid-template-columns:1fr;gap:.9rem;padding:1.75rem;margin-bottom:1rem;border-radius:24px;border:1px solid var(--border);border-left:8px solid #6366f1;background:var(--surface)}
.tb-row:nth-child(6n+2){border-left-color:#ec4899}
.tb-row:nth-child(6n+3){border-left-color:#f59e0b}
.tb-row:nth-child(6n+4){border-left-color:#10b981}
.tb-row:nth-child(6n+5){border-left-color:#0ea5e9}
.tb-row:nth-child(6n+6){border-left-color:#a855f7}
.tb-row small{font:700 .72rem var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.tb-row h2{font-size:1.35rem;font-weight:800;letter-spacing:-.02em;line-height:1.25;margin-top:.3rem}
.tb-body p{color:var(--muted);margin-bottom:1rem}
.tb-body ul,.tb-body ol{margin:0 0 1rem 1.2rem;color:var(--muted)}
.tb-body li{margin-bottom:.4rem}
.tb-body strong{color:var(--text)}
.tb-body a{color:var(--pl-text);font-weight:700}
@media(max-width:860px){.tb-steps{grid-template-columns:1fr}.tb-tiles{grid-template-columns:1fr 1fr}.tb-cta{grid-template-columns:1fr}}
@media(max-width:520px){.tb-tiles{grid-template-columns:1fr}.tb-row{padding:1.25rem}}
.tb-faq{counter-reset:q;gap:.75rem}
.tb-faq .faq-card{border-radius:18px;border-left:6px solid #ec4899}
.tb-faq .faq-card:nth-child(3n+2){border-left-color:#f59e0b}
.tb-faq .faq-card:nth-child(3n+3){border-left-color:#6366f1}
.tb-faq .faq-btn::before{counter-increment:q;content:"Q" counter(q);flex:none;margin-right:.75rem;font:800 .8rem var(--mono);color:var(--pl-text);background:var(--pl);padding:.2rem .5rem;border-radius:8px}
.tb-faq .faq-btn{justify-content:flex-start}
.tb-faq .chev{margin-left:auto}
.tbl{margin:1rem 0}
.tbl table{min-width:0}
@media(max-width:640px){
 .tbl{background:none;border:none;box-shadow:none;overflow:visible}
 .tbl table,.tbl tbody,.tbl tr,.tbl td{display:block;width:100%}
 .tbl thead{display:none}
 .tbl tr{border:1px solid var(--border);border-radius:16px;padding:.5rem 1rem;margin-bottom:.7rem;background:var(--surface)}
 .tbl td{border:none;padding:.4rem 0;display:flex;justify-content:space-between;align-items:baseline;gap:1rem;text-align:right}
 .tbl td::before{content:attr(data-label);flex:none;text-align:left;font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
 .tbl td:first-child{font-weight:700}
}
.nav-links a.active{background:var(--pl);color:var(--pl-text)}
:where(.pg-crop,.pg-exam) .modebar{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;max-width:760px;margin:0 auto 1.25rem}
:where(.pg-crop,.pg-exam) .mode{display:flex;align-items:center;gap:.75rem;text-align:left;padding:.9rem 1rem;border-radius:18px;border:1.5px solid var(--border);background:var(--surface);color:var(--text);transition:.2s}
:where(.pg-crop,.pg-exam) .mode i{font-style:normal;font-size:1.5rem}
:where(.pg-crop,.pg-exam) .mode b{display:block;font-size:.98rem}
:where(.pg-crop,.pg-exam) .mode span{font-size:.76rem;color:var(--muted)}
:where(.pg-crop,.pg-exam) .mode:hover{border-color:var(--primary-2)}
:where(.pg-crop,.pg-exam) .mode.active{border-color:transparent;background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff;box-shadow:0 8px 20px -8px rgba(79,70,229,.6)}
:where(.pg-crop,.pg-exam) .mode.active span{color:rgba(255,255,255,.85)}
@media(max-width:560px){:where(.pg-crop,.pg-exam) .modebar{grid-template-columns:1fr}:where(.pg-crop,.pg-exam) .mode{padding:.7rem .9rem}}
:where(.pg-crop,.pg-exam) .exams{display:flex;flex-wrap:wrap;justify-content:center;gap:.4rem;margin-top:1.1rem}
:where(.pg-crop,.pg-exam) .checks{display:grid;gap:.4rem;margin-top:.9rem}
:where(.pg-crop,.pg-exam) .chk{display:flex;align-items:center;justify-content:space-between;gap:.75rem;font-size:.8rem;font-weight:600;padding:.5rem .8rem;border-radius:12px;background:var(--subtle);color:var(--muted)}
:where(.pg-crop,.pg-exam) .chk b{font:700 .76rem var(--mono)}
:where(.pg-crop,.pg-exam) .chk.ok{background:rgba(16,185,129,.13);color:#059669}
[data-theme=dark] .chk.ok{color:#34d399}
:where(.pg-crop,.pg-exam) .chk.bad{background:rgba(239,68,68,.13);color:#dc2626}
[data-theme=dark] .chk.bad{color:#f87171}
:where(.pg-crop,.pg-exam) .cust{border:1px solid var(--border);border-radius:14px;padding:.1rem .9rem;background:var(--surface)}
:where(.pg-crop,.pg-exam) .cust summary{cursor:pointer;font-weight:700;font-size:.88rem;padding:.75rem 0;list-style:none}
:where(.pg-crop,.pg-exam) .cust summary::-webkit-details-marker{display:none}
:where(.pg-crop,.pg-exam) .cust summary::after{content:"+";float:right;color:var(--pl-text);font-size:1.1rem;line-height:1}
:where(.pg-crop,.pg-exam) .cust[open] summary::after{content:"–"}
:where(.pg-crop,.pg-exam) .cust .g5{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem;padding-bottom:.9rem}
@media(min-width:620px) and (max-width:899px),(min-width:1080px){:where(.pg-crop,.pg-exam) .cust .g5{grid-template-columns:repeat(3,1fr)}}
:where(.pg-crop,.pg-exam) .sub{display:none;gap:.75rem}
:where(.pg-crop,.pg-exam) .sub.on{display:grid}
:where(.pg-crop) .sw-row{display:flex;align-items:center;gap:.6rem}
:where(.pg-crop) .sw-row input[type=color]{width:52px;flex:none}
:where(.pg-crop) .circ .hd[data-h=nw]{left:calc(14.64% - 11px);top:calc(14.64% - 11px)}
:where(.pg-crop) .circ .hd[data-h=ne]{right:calc(14.64% - 11px);top:calc(14.64% - 11px)}
:where(.pg-crop) .circ .hd[data-h=sw]{left:calc(14.64% - 11px);bottom:calc(14.64% - 11px)}
:where(.pg-crop) .circ .hd[data-h=se]{right:calc(14.64% - 11px);bottom:calc(14.64% - 11px)}
:where(.pg-crop) .circ #cropBox{border-radius:50%}
:where(.pg-crop) .circ #cropBox::before{display:none}
:where(.pg-crop) .row3c{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}
@media(min-width:900px){:where(.pg-crop) #editorSection .panel{padding:.9rem 1rem}:where(.pg-crop) #editorSection .sec{padding:.65rem 0;gap:.55rem}:where(.pg-crop) #editorSection input[type=text],:where(.pg-crop) #editorSection input[type=number],:where(.pg-crop) #editorSection select{height:38px;font-size:.88rem}:where(.pg-crop) #editorSection label{margin-bottom:.2rem;font-size:.78rem}:where(.pg-crop) #editorSection .switch.box{height:38px;font-size:.84rem}:where(.pg-crop) #editorSection .rg input[type=range]{height:38px}}
:where(.pg-crop,.pg-exam) .statbox{display:grid;grid-template-columns:repeat(2,1fr);gap:.4rem}
:where(.pg-crop,.pg-exam) .st{display:grid;gap:.1rem;min-width:0;background:var(--subtle);border-radius:12px;padding:.5rem .7rem}
:where(.pg-crop,.pg-exam) .st span{font-size:.68rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
:where(.pg-crop,.pg-exam) .st b{font:700 .8rem var(--mono);color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:where(.pg-crop) .statbox{display:grid;gap:.4rem}
:where(.pg-crop,.pg-exam) .st.ok{background:rgba(16,185,129,.13)}
:where(.pg-crop,.pg-exam) .st.ok b{color:#059669}
[data-theme=dark] .st.ok b{color:#34d399}
:where(.pg-crop,.pg-exam) .st.bad{background:rgba(239,68,68,.13)}
:where(.pg-crop,.pg-exam) .st.bad b{color:#dc2626}
[data-theme=dark] .st.bad b{color:#f87171}
@media(min-width:560px){:where(.pg-crop,.pg-exam) .statbox{grid-template-columns:repeat(3,1fr)}}
@media(min-width:900px){:where(.pg-crop,.pg-exam) #editorSection .workspace{grid-template-columns:350px 1fr;gap:1rem;align-items:start}:where(.pg-crop,.pg-exam) #editorSection .panel{padding:.85rem 1rem}:where(.pg-crop,.pg-exam) #editorSection .preview-col .canvas-wrap{min-height:0;padding:.5rem}:where(.pg-crop,.pg-exam) #editorSection canvas{max-height:min(480px,calc(100vh - 215px))}:where(.pg-crop,.pg-exam) #editorSection .panel-head{margin-bottom:.6rem}:where(.pg-crop,.pg-exam) #editorSection .preview-col{grid-area:a}:where(.pg-crop,.pg-exam) #editorSection .statpanel{grid-area:s}:where(.pg-crop,.pg-exam) #editorSection .ctrlpanel{grid-area:c}:where(.pg-crop,.pg-exam) #editorSection .workspace{grid-template-rows:auto 1fr}:where(.pg-crop,.pg-exam) #editorSection .ws-photo{grid-template-areas:"a s" "a c"}:where(.pg-crop,.pg-exam) #editorSection .ws-sign{grid-template-areas:"a c" "s c"}:where(.pg-crop,.pg-exam) #editorSection .ws-sign .statbox{grid-template-columns:repeat(2,1fr)}:where(.pg-crop,.pg-exam) #editorSection .sec{padding:.6rem 0;gap:.5rem}:where(.pg-crop,.pg-exam) #editorSection .sec-title{font-size:.84rem}:where(.pg-crop,.pg-exam) #editorSection input[type=text],:where(.pg-crop,.pg-exam) #editorSection input[type=number],:where(.pg-crop,.pg-exam) #editorSection select{height:38px;font-size:.88rem}:where(.pg-crop,.pg-exam) #editorSection label{margin-bottom:.2rem;font-size:.78rem}:where(.pg-crop,.pg-exam) #editorSection .switch.box{height:38px;font-size:.84rem}:where(.pg-crop,.pg-exam) #editorSection .rg input[type=range]{height:38px}:where(.pg-crop,.pg-exam) #editorSection .row{gap:.6rem}:where(.pg-crop,.pg-exam) #editorSection .hint{font-size:.74rem;margin-top:.2rem}:where(.pg-crop,.pg-exam) #editorSection .cust summary{padding:.5rem 0}:where(.pg-crop,.pg-exam) #editorSection .cust .g5{gap:.5rem;padding-bottom:.7rem}:where(.pg-crop,.pg-exam) #editorSection .btn-download{height:44px;margin-top:.6rem}}
:where(.pg-crop,.pg-exam) .statbox.cks{margin-bottom:.2rem;padding-bottom:.7rem;border-bottom:1px solid var(--border)}
:where(.pg-crop,.pg-exam) #slotL .statbox.cks{margin:.4rem 0 0;padding:0;border:none}
:where(.pg-crop,.pg-exam) #editorSection .statbox.mb2{grid-template-columns:repeat(2,1fr);margin-top:.7rem}
@media(min-width:900px){:where(.pg-crop,.pg-exam) #editorSection .workspace.ws-photo,:where(.pg-crop,.pg-exam) #editorSection .workspace.ws-sign{grid-template-areas:none;grid-template-rows:none;grid-template-columns:350px 1fr;align-items:stretch}:where(.pg-crop,.pg-exam) #editorSection .preview-col,:where(.pg-crop,.pg-exam) #editorSection .ctrlpanel{grid-area:auto}:where(.pg-crop,.pg-exam) #editorSection .preview-col{position:static;display:flex;flex-direction:column}:where(.pg-crop,.pg-exam) #editorSection .preview-col .canvas-wrap{flex:1;display:flex;align-items:center;justify-content:center}:where(.pg-crop,.pg-exam) #slotL .statbox.cks{grid-template-columns:repeat(2,1fr)}}
:where(.pg-crop) .checker{position:relative;display:inline-block;line-height:0;max-width:100%;background-color:#fff;background-image:linear-gradient(45deg,#e5e7eb 25%,transparent 25%,transparent 75%,#e5e7eb 75%),linear-gradient(45deg,#e5e7eb 25%,transparent 25%,transparent 75%,#e5e7eb 75%);background-size:18px 18px;background-position:0 0,9px 9px;border-radius:8px;overflow:hidden}
:where(.pg-exam) .modebar{grid-template-columns:1fr 1fr;max-width:760px}
@media(min-width:561px){:where(.pg-exam) .modebar.m4{grid-template-columns:repeat(4,1fr);max-width:none}}
@media(min-width:561px){:where(.pg-exam) .modebar.m3{grid-template-columns:repeat(3,1fr);max-width:none}}
@media(max-width:560px){:where(.pg-exam) .modebar.m3 .mode:last-child{grid-column:1/-1}}
:where(.pg-exam) .mode{position:relative;padding:.8rem .9rem}
:where(.pg-exam) .mode i{font-size:1.35rem}
:where(.pg-exam) .mode .tk{display:none;position:absolute;top:.4rem;right:.5rem;font-style:normal;font-size:.68rem;font-weight:800;background:#10b981;color:#fff;border-radius:99px;padding:.05rem .45rem}
:where(.pg-exam) .mode.done .tk{display:block}
@media(max-width:900px){:where(.pg-exam) .modebar{grid-template-columns:1fr 1fr}}
:where(.pg-exam) .tipbar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.6rem;margin:1rem 0 0;max-width:none;padding:.7rem 1rem;border-radius:16px;background:var(--surface);border:1px solid var(--border);font-size:.86rem;color:var(--muted)}
:where(.pg-exam) .tipbar b{color:var(--text)}
:where(.pg-exam) .decl{margin:1rem 0 0;max-width:none;padding:1rem 1.1rem;border-radius:18px;border:1.5px dashed var(--primary-2);background:var(--pl);display:none;gap:.6rem}
:where(.pg-exam) .decl.on{display:grid}
:where(.pg-exam) .decl p{font-size:.92rem;color:var(--text);line-height:1.55}
:where(.pg-exam) .decl small{font-weight:700;color:var(--pl-text);letter-spacing:.06em;text-transform:uppercase;font-size:.7rem}
:where(.pg-exam) .acts2{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;margin-top:.7rem}
:where(.pg-exam) .acts2 .btn{height:46px;padding:0 .5rem;font-size:.92rem}
:where(.pg-exam) .btn-share{background:var(--surface);color:var(--text);border:1.5px solid var(--border)}
:where(.pg-exam) .btn-share:hover{border-color:var(--primary-2);color:var(--pl-text);background:var(--pl)}
:where(.pg-exam) .sheet{position:fixed;inset:0;z-index:95;background:rgba(10,14,30,.55);backdrop-filter:blur(3px);display:none;align-items:flex-end;justify-content:center;padding:1rem}
:where(.pg-exam) .sheet.on{display:flex}
@media(min-width:640px){:where(.pg-exam) .sheet{align-items:center}}
:where(.pg-exam) .sheet-card{width:min(100%,420px);background:var(--surface);border:1px solid var(--border);border-radius:26px;padding:1.25rem;box-shadow:0 30px 70px -20px rgba(0,0,0,.6);animation:rise .3s ease-out}
@keyframes rise{from{transform:translateY(30px);opacity:0}}
:where(.pg-exam) .sheet-card h3{font-size:1.05rem;font-weight:800;margin-bottom:.2rem}
:where(.pg-exam) .sheet-card p{font-size:.8rem;color:var(--muted);margin-bottom:1rem}
:where(.pg-exam) .sgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem}
:where(.pg-exam) .sgrid a,:where(.pg-exam) .sgrid button{display:grid;justify-items:center;gap:.3rem;padding:.8rem .3rem;border-radius:16px;border:1px solid var(--border);background:var(--subtle);color:var(--text);text-decoration:none;font-size:.76rem;font-weight:700;cursor:pointer;transition:.2s}
:where(.pg-exam) .sgrid a:hover,:where(.pg-exam) .sgrid button:hover{border-color:var(--primary-2);background:var(--pl);transform:translateY(-2px)}
:where(.pg-exam) .sgrid span{font-size:1.5rem}
:where(.pg-exam) .sclose{width:100%;margin-top:.9rem}
:where(.pg-exam) .zipbtn[disabled]{opacity:.5;cursor:not-allowed}
:where(.pg-crop,.pg-exam) .statbox.cks{margin-bottom:.2rem;padding-bottom:.7rem;border-bottom:1px solid var(--border)}
:where(.pg-crop,.pg-exam) #slotL .statbox.cks{margin:.4rem 0 0;padding:0;border:none}
:where(.pg-crop,.pg-exam) #editorSection .statbox.mb2{grid-template-columns:repeat(2,1fr);margin-top:.7rem}
@media(min-width:900px){:where(.pg-crop,.pg-exam) #editorSection .workspace.ws-photo,:where(.pg-crop,.pg-exam) #editorSection .workspace.ws-sign{grid-template-areas:none;grid-template-rows:none;grid-template-columns:350px 1fr;align-items:stretch}:where(.pg-crop,.pg-exam) #editorSection .preview-col,:where(.pg-crop,.pg-exam) #editorSection .ctrlpanel{grid-area:auto}:where(.pg-crop,.pg-exam) #editorSection .preview-col{position:static;display:flex;flex-direction:column}:where(.pg-crop,.pg-exam) #editorSection .preview-col .canvas-wrap{flex:1;display:flex;align-items:center;justify-content:center}:where(.pg-crop,.pg-exam) #slotL .statbox.cks{grid-template-columns:repeat(2,1fr)}}
/* About, Contact, Privacy */
.pg-info .tb-body h3{font-size:1.05rem;font-weight:800;margin:1.1rem 0 .4rem;color:var(--text)}
.pg-info .tb-body p:last-child,.pg-info .tb-body ul:last-child{margin-bottom:0}
.pg-info .hero .upd{display:inline-block;margin-top:.2rem;font-size:.82rem;font-weight:600;color:var(--muted)}
.pg-info .tb-t{min-height:0;padding:1.1rem 1.25rem}.pg-info .tb-t span{font-size:1.5rem}
.cgrid{display:grid;grid-template-columns:1fr 1.25fr;gap:1.25rem;align-items:start}
@media(max-width:860px){.cgrid{grid-template-columns:1fr}}
.ccards{display:grid;gap:.9rem}
.ccard{background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:1.2rem 1.3rem;border-left:6px solid #6366f1}
.ccard:nth-child(2){border-left-color:#ec4899}.ccard:nth-child(3){border-left-color:#10b981}
.ccard h3{font-size:1rem;font-weight:800;margin-bottom:.25rem}.ccard p{color:var(--muted);font-size:.92rem}.ccard a{color:var(--pl-text);font-weight:700;word-break:break-all}
.cform{background:var(--surface);border:1px solid var(--border);border-radius:24px;padding:1.5rem}
.cform h2{font-size:1.25rem;font-weight:800;margin-bottom:1rem}
.cform label{display:block;font-size:.82rem;font-weight:600;margin:.9rem 0 .35rem}
.cform label:first-of-type{margin-top:0}
.cform textarea{width:100%;min-height:140px;resize:vertical;background:var(--surface);border:1.5px solid var(--border);color:var(--text);padding:.7rem .8rem;border-radius:var(--r-sm);font:inherit;font-size:16px}
.cform textarea:focus{outline:none;border-color:var(--primary-2);box-shadow:0 0 0 3px var(--focus)}
.cform .btn{margin-top:1.1rem;width:100%;height:50px}
.cform .hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.cform .note{margin-top:.8rem;font-size:.82rem;color:var(--muted)}
.cform .msg{margin-top:.8rem;font-size:.9rem;font-weight:600;color:#dc2626;min-height:1.2em}
.cform .msg.ok{color:#059669}
/* Homepage tool grid */
.tg-group{margin-top:2rem}.tg-group:first-of-type{margin-top:0}
.tg-group h3{font:800 .75rem var(--sans);letter-spacing:.16em;text-transform:uppercase;color:var(--muted);margin:0 0 .9rem .2rem}
.tg{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.tg a{position:relative;display:flex;flex-direction:column;gap:.15rem;padding:1.15rem 1.2rem;border-radius:20px;background:var(--surface);border:1px solid var(--border);color:var(--text);text-decoration:none;transition:transform .2s,box-shadow .2s,border-color .2s}
.tg a:hover{transform:translateY(-3px);border-color:var(--primary-2);box-shadow:var(--sh-md)}
.tg a::after{content:"\2192";position:absolute;right:1.1rem;top:1.1rem;font-weight:800;color:var(--muted);transition:transform .2s,color .2s}
.tg a:hover::after{color:var(--primary-2);transform:translateX(3px)}
.tg .ti{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;font-size:1.45rem;margin-bottom:.55rem;background:rgba(99,102,241,.14)}
.tg.c2 .ti{background:rgba(236,72,153,.13)}.tg.c3 .ti{background:rgba(16,185,129,.14)}
.tg b{font-size:1.02rem;font-weight:800;letter-spacing:-.01em}
.tg .d{font-size:.86rem;color:var(--muted);line-height:1.45}
@media(min-width:901px){.tg.c2{grid-template-columns:repeat(4,1fr)}}
@media(max-width:900px){.tg{grid-template-columns:repeat(2,1fr)}}
@media(max-width:480px){.tg{grid-template-columns:1fr}.tg a{flex-direction:row;align-items:center;gap:0 .9rem;flex-wrap:wrap}.tg .ti{margin:0;grid-row:span 2}.tg a b,.tg a .d{flex:1 1 calc(100% - 70px)}.tg a::after{top:50%;transform:translateY(-50%)}.tg a:hover::after{transform:translate(3px,-50%)}}
@media(min-width:861px){.tb-steps4{grid-template-columns:repeat(4,1fr)!important;gap:1.25rem}}
.pg-kb .exams{display:flex;flex-wrap:wrap;justify-content:center;gap:.4rem;margin-top:1.1rem}
.tb-row>*{min-width:0}
/* Size preset select in crop bar */
.stdsel{display:flex;align-items:center;gap:.6rem;min-width:0}.stdsel select{height:38px;font-size:.88rem;min-width:0;max-width:260px}
@media(max-width:560px){.stdsel{width:100%}.stdsel select{max-width:none;flex:1}}
/* Passport photo */
.swatches{display:flex;flex-wrap:wrap;gap:.5rem}
.sw{display:inline-flex;align-items:center;gap:.5rem;padding:.38rem .8rem .38rem .4rem;border:1.5px solid var(--border);border-radius:99px;background:var(--surface);font:600 .8rem var(--sans);color:var(--muted);cursor:pointer;transition:.15s}
.sw i{width:22px;height:22px;border-radius:50%;border:1px solid var(--border);display:block;flex:none}
.sw:hover{border-color:var(--primary-2)}.sw.active{border-color:var(--primary-2);background:var(--pl);color:var(--pl-text)}
.pp-wrap{position:relative;display:inline-block;line-height:0;max-width:100%}
.pp-wrap canvas{display:block}
.pp-guide{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.pp-guide[hidden]{display:none}
.pp-guide ellipse,.pp-guide line{fill:none;stroke:#6366f1;stroke-width:.7;stroke-dasharray:3 2;vector-effect:non-scaling-stroke;stroke-width:2;filter:drop-shadow(0 0 1px #fff)}

/* HEIC converter list */
.hc-panel{max-width:860px;margin:0 auto}
.hc-q{margin:.4rem 0 1rem}
.hc-list{display:grid;gap:.6rem}
.hc-item{display:flex;align-items:center;gap:.85rem;padding:.65rem .8rem;border:1px solid var(--border);border-radius:14px;background:var(--surface)}
.hc-item img,.hc-ph{width:52px;height:52px;border-radius:10px;object-fit:cover;flex:none;background:var(--pl)}
.hc-meta{flex:1;min-width:0;display:grid;gap:.15rem;font-size:.82rem}
.hc-meta b{font-size:.9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hc-ok{color:var(--muted)}.hc-ok b{color:var(--text)}
.hc-wait{color:var(--muted)}
.hc-bad{color:#dc2626;font-weight:600}
.hc-foot{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-top:1rem;font-size:.9rem;color:var(--muted)}
@media(max-width:560px){.hc-item{flex-wrap:wrap}.hc-item .btn-sm{width:100%;text-align:center}.hc-foot .btn{width:100%}}

.pd-opts{display:grid;gap:.9rem;margin-top:1.1rem;padding-top:1rem;border-top:1px solid var(--border)}
.pd-opts .lbl{display:block;font-size:.78rem;font-weight:700;color:var(--muted);margin-bottom:.35rem}
.pd-btns{display:flex;gap:.3rem;flex:none}
.pd-btns .btn-sm{padding:.4rem .7rem;min-width:2.1rem;text-align:center}
.pd-btns .btn-sm:disabled{opacity:.4;cursor:default}
@media(min-width:700px){.pd-opts{grid-template-columns:repeat(3,auto);justify-content:space-between}}
@media(max-width:560px){.hc-item .pd-btns{width:100%}.hc-item .pd-btns .btn-sm{flex:1;width:auto}}
