/* PDFJadoo — tool page design system (shared by all tool pages) */
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:Inter,system-ui,sans-serif;background:#f8f5ff;color:#251847;line-height:1.6;overflow-x:hidden}
h1,h2{font-family:"Playfair Display",serif}
h3{font-family:Sora,sans-serif}
.wrap{max-width:1160px;margin:auto;padding:0 20px}
a{color:#4B2E83}
header.site{position:sticky;top:0;z-index:60;background:rgba(248,245,255,.92);backdrop-filter:blur(10px);border-bottom:1px solid #e6def9}
.nav{max-width:1160px;margin:auto;padding:13px 20px;display:flex;gap:22px;align-items:center;flex-wrap:wrap}
.logo{display:flex;gap:10px;align-items:center;font-family:Sora;font-weight:800;font-size:22px;color:#4B2E83;text-decoration:none}
.logo img{width:40px;height:40px;border-radius:11px;display:block}
.nav nav{margin-left:auto;display:flex;gap:18px;flex-wrap:wrap;align-items:center}
.nav nav a{color:#3d2b66;text-decoration:none;font-weight:600;font-size:14.5px}
.nav .btn{background:#4B2E83;color:#fff!important;padding:10px 18px;border-radius:999px}
.hero{background:radial-gradient(80% 90% at 50% 0%,#5b3a9e,#3a2268 60%,#2c1a56);color:#fff;padding:44px 20px 40px;text-align:center}
/* 2026-11-17 chrome contrast round: faint hero / drop-zone / card text raised to WCAG AA (owner order; hues kept, values deepened/lightened only) */
.crumbs{font-size:13px;color:#FFFFFF;font-family:Sora;margin-bottom:12px}
.crumbs a{color:#FFFDF2;text-decoration:none}
.hero h1{font-size:clamp(29px,4.6vw,44px);line-height:1.16;max-width:780px;margin:0 auto}
.hero h1 span{color:#F2B134}
.hero p.lede{color:#d5c9f5;font-size:16.5px;max-width:620px;margin:12px auto 0}
.badgeRow{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:18px}
.badge{border:1.5px solid rgba(242,177,52,.55);color:#f5df9e;border-radius:999px;padding:6px 14px;font-size:13px;font-weight:600;font-family:Sora}
.toolbox{max-width:820px;margin:-8px auto 0;padding:26px 20px 8px}
.toolcard{background:#fff;border:2px solid #e8dfc8;border-radius:20px;padding:26px;box-shadow:0 14px 30px rgba(75,46,131,.10)}
.drop{border:3px dashed rgba(75,46,131,.35);border-radius:18px;padding:34px 20px;text-align:center;cursor:pointer;transition:.2s;background:#fdfaf0}
.drop:hover,.drop.over{border-color:#F2B134;background:rgba(242,177,52,.10)}
.drop:focus-visible{outline:3px solid #F2B134;outline-offset:3px}
.drop svg{width:58px;height:auto}
.drop b{font-family:Sora;font-size:18px;display:block;margin-top:6px;color:#2c1a56}
.drop p{font-size:13.5px;color:#6d6198;max-width:420px;margin:4px auto 0}
.fileList{margin-top:16px;display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.fileRow{display:flex;min-width:0;gap:10px;align-items:center;background:#f4efff;border:1px solid #e0d5f7;border-radius:12px;padding:9px 13px;font-size:14px}
.fileRow .fn{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;color:#33205e}
.fileRow .fs{color:#6D6198;font-size:12.5px;white-space:nowrap}
.fileRow button{border:0;background:none;cursor:pointer;font-size:16px;color:#a03d3d;padding:2px 6px}
.fileRow .mv{color:#4B2E83;font-size:14px}
.controls{margin-top:18px;display:grid;gap:14px}
.controls label.lab{font-family:Sora;font-weight:700;font-size:14px;color:#33205e;display:block;margin-bottom:6px}
.controls input[type=text],.controls input[type=password],.controls input[type=number],.controls select,.controls textarea{width:100%;border:2px solid #d9cdf2;border-radius:12px;padding:11px 14px;font-family:Inter;font-size:15px;color:#251847;background:#fff;outline:none}
.controls input:focus,.controls select:focus,.controls textarea:focus{border-color:#F2B134;box-shadow:0 0 0 4px rgba(242,177,52,.18)}
.controls textarea{min-height:120px;resize:vertical}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.grid3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px}
.radioRow{display:flex;gap:8px;flex-wrap:wrap}
.radioRow label{border:1.5px solid #d9cdf2;border-radius:999px;padding:8px 15px;font-size:14px;font-weight:600;cursor:pointer;background:#fff}
.radioRow input{accent-color:#4B2E83}
.checkRow{display:flex;gap:9px;align-items:flex-start;font-size:14.5px}
.checkRow input{margin-top:4px;accent-color:#4B2E83;width:17px;height:17px}
.runBtn{margin-top:20px;width:100%;background:#4B2E83;color:#fff;border:0;border-radius:999px;padding:16px 22px;font-family:Sora;font-weight:800;font-size:17px;cursor:pointer;transition:.2s}
.runBtn:hover:not(:disabled){background:#5b3a9e}
.runBtn:disabled{opacity:.45;cursor:not-allowed}
.dlBtn{display:none;margin-top:14px;width:100%;background:#F2B134;color:#33200a;border:0;border-radius:999px;padding:16px 22px;font-family:Sora;font-weight:800;font-size:17px;cursor:pointer;text-align:center;text-decoration:none}
.dlBtn.show{display:block}
.status{margin-top:14px;font-size:14.5px;min-height:22px;text-align:center;color:#4B2E83;font-weight:600}
.status.err{color:#a03d3d}
.progress{height:10px;background:#eee6ff;border-radius:99px;overflow:hidden;margin-top:10px;display:none}
.progress.show{display:block}
.progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,#8B6FC7,#F2B134);transition:width .25s}
.note{margin-top:14px;background:#fdf3d0;border:1.5px solid #F2B134;border-radius:14px;padding:13px 16px;font-size:14px;color:#5b4708}
.note b{color:#33200a}
.privacyLine{margin-top:14px;text-align:center;font-size:13.5px;color:#6d6198}
.privacyLine b{color:#4B2E83}
.thumbGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px;margin-top:14px}
.thumb{border:2px solid #e0d5f7;border-radius:12px;padding:8px;text-align:center;background:#fff}
.thumb img{max-width:100%;height:110px;object-fit:contain;display:block;margin:0 auto 6px}
.thumb .pg{font-size:12.5px;font-weight:700;font-family:Sora;color:#4B2E83}
.thumb .acts{display:flex;gap:4px;justify-content:center;flex-wrap:wrap}
.thumb .acts button{border:1px solid #d9cdf2;background:#f8f5ff;border-radius:8px;padding:3px 8px;font-size:12px;cursor:pointer;font-weight:600;color:#33205e}
.thumb.sel{border-color:#F2B134;background:#fdfaf0}
.textOut{margin-top:14px;display:none}
.textOut.show{display:block}
.textOut textarea{width:100%;min-height:260px;border:2px solid #d9cdf2;border-radius:14px;padding:14px;font-family:Inter;font-size:14px;background:#fff}
section.bodySec{padding-top:44px;padding-bottom:8px}
section.bodySec h2{font-size:clamp(23px,3.4vw,31px);color:#2c1a56;margin-bottom:12px}
section.bodySec p,section.bodySec li{font-size:15.5px;color:#453a6e}
section.bodySec ol,section.bodySec ul{margin:8px 0 8px 22px}
section.bodySec li{margin-bottom:5px}
.relGrid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-top:6px}
.wcard{background:#fdfaf0;border:2px solid #e8dfc8;border-radius:16px;padding:17px;text-decoration:none;color:#251847;display:block;transition:.22s;position:relative}
.wcard:hover{transform:translateY(-4px);border-color:#F2B134}
.wcard h3{font-size:15.5px;margin-bottom:3px;color:#251847}
.wcard p{font-size:13px;color:#6d6198}
.wcard .corner{position:absolute;top:9px;right:12px;font-family:Sora;font-weight:800;font-size:12px;color:#8A5A00}
.faq{max-width:740px}
.faq details{background:#fff;border:1.5px solid #e8e2f8;border-radius:14px;padding:15px 19px;margin-bottom:9px}
.faq summary{font-weight:600;cursor:pointer;font-family:Sora;font-size:15.5px;color:#251847}
.faq p{margin-top:7px;color:#6d6198;font-size:14.5px}
footer.site{background:#241543;color:#cfc3ee;padding:44px 0 28px;margin-top:52px}
.fgrid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:22px}
footer.site h4,footer.site .fgrid>div>p:first-child{color:#fff;font-family:Sora;margin-bottom:11px;font-size:15px}
footer.site a{color:#cfc3ee;text-decoration:none;display:block;font-size:14px;padding:3px 0}
footer.site a:hover{color:#F2B134}
.fine{border-top:1px solid rgba(255,255,255,.14);margin-top:28px;padding-top:16px;font-size:13px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}
canvas.signPad{width:100%;height:200px;border:2px dashed rgba(75,46,131,.35);border-radius:14px;background:#fff;touch-action:none;cursor:crosshair}
.chatBox{display:grid;gap:10px}
.chatLog{display:grid;gap:10px;max-height:380px;overflow:auto;padding:4px}
.chatMsg{border-radius:14px;padding:11px 14px;font-size:14.5px;max-width:92%}
.chatMsg.q{background:#eee6ff;justify-self:end;color:#33205e}
.chatMsg.a{background:#fdfaf0;border:1px solid #e8dfc8;justify-self:start}
.chatRow{display:flex;gap:8px}
.chatRow input{flex:1;border:2px solid #d9cdf2;border-radius:999px;padding:11px 16px;font-size:15px;font-family:Inter;outline:none}
.chatRow button{background:#4B2E83;color:#fff;border:0;border-radius:999px;padding:11px 20px;font-family:Sora;font-weight:700;cursor:pointer}
@media(max-width:880px){.relGrid{grid-template-columns:repeat(2,1fr)}.fgrid{grid-template-columns:1fr 1fr}.grid2,.grid3{grid-template-columns:1fr}}
@media(max-width:480px){.toolcard{padding:19px}.relGrid{gap:9px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
/* ---------- Phase 2 additions ---------- */
.miniDrop{border:2px dashed rgba(75,46,131,.35);border-radius:14px;padding:16px;text-align:center;cursor:pointer;background:#fdfaf0;font-size:14px;color:#33205e}
.miniDrop:hover,.miniDrop.over{border-color:#F2B134;background:rgba(242,177,52,.10)}
.miniDrop b{font-family:Sora}
.controls input[type=range]{width:100%;accent-color:#4B2E83}
.viewCanvas{max-width:100%;height:auto;border:2px solid #e0d5f7;border-radius:12px;background:#fff;display:block;margin:10px auto}
.fieldRow{display:flex;gap:8px;align-items:center;background:#f4efff;border:1px solid #e0d5f7;border-radius:12px;padding:8px 12px;font-size:13.5px;margin-top:8px;flex-wrap:wrap}
.fieldRow .fn{flex:1;font-weight:600;color:#33205e;min-width:120px}
.fieldRow button{border:1px solid #d9cdf2;background:#fff;border-radius:8px;padding:3px 9px;font-size:12px;cursor:pointer;font-weight:600;color:#33205e}
.reportBox{margin-top:14px;background:#fff;border:2px solid #e0d5f7;border-radius:14px;padding:16px;font-size:14px;text-align:left;max-height:340px;overflow:auto}
.reportBox h4{font-family:Sora;color:#2c1a56;margin:10px 0 4px}
.reportBox h4:first-child{margin-top:0}
/* ---------- Batch results + favourites (gap build) ---------- */
.batchResults{margin-top:14px;display:grid;gap:8px}
.batchRow{display:flex;gap:10px;align-items:center;background:#f4efff;border:1px solid #e0d5f7;border-radius:12px;padding:9px 13px;font-size:14px;text-align:left}
.batchTxt{flex:1;min-width:0;display:flex;flex-direction:column}
.batchTxt b{color:#33205e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.batchDet{color:#6d6198;font-size:12.5px}
.batchDl{border:0;background:#4B2E83;color:#fff;border-radius:999px;padding:8px 15px;font-family:Sora;font-weight:700;font-size:13px;cursor:pointer;white-space:nowrap}
.batchDl:hover{background:#5b3a9e}
.favStar{cursor:pointer;color:#b8860b;font-size:17px;line-height:1;background:none;border:0;padding:2px 4px;font-family:Sora}
.favStar.on{color:#e09a12}
.favStar.withLabel{border:1.5px solid rgba(242,177,52,.55);color:#f5df9e;border-radius:999px;padding:6px 14px;font-size:13px;font-weight:600}
.favStar.withLabel.on{color:#F2B134;border-color:#F2B134}
.wcard .favStar{position:absolute;top:8px;left:11px;font-size:19px;z-index:2}
/* ---------- Live camera scanner ---------- */
.camBtn{margin-top:12px;width:100%;background:#fff;color:#4B2E83;border:2px solid #4B2E83;border-radius:999px;padding:13px 20px;font-family:Sora;font-weight:700;font-size:15.5px;cursor:pointer}
.camBtn:hover:not(:disabled){background:#f1eafd}
.camBtn:disabled{opacity:.5;cursor:wait}
.camNote{margin-top:12px;background:#fdf6e0;border:1.5px solid #e8dfc8;border-radius:12px;padding:11px 14px;font-size:13.5px;color:#5c4a12;text-align:left}
.dlBtn.alt{background:#fff;color:#4B2E83;border:2px solid #4B2E83;margin-top:10px}
.camPanel{position:fixed;inset:0;z-index:9999;background:rgba(24,13,48,.98);color:#fff;overflow:auto;padding:16px 14px 40px;font-family:Inter,system-ui,sans-serif}
.camHead{display:flex;justify-content:space-between;align-items:center;gap:10px;max-width:860px;margin:0 auto 12px}
.camHead b{font-family:Sora;font-size:17px}
.camX{background:none;border:1.5px solid rgba(255,255,255,.5);color:#fff;border-radius:999px;padding:7px 14px;cursor:pointer;font-weight:600}
.camLive,.camFix{max-width:860px;margin:0 auto}
.camStage{position:relative;background:#000;border-radius:16px;overflow:hidden;margin:0 auto;height:min(72svh,calc(100vw * 1.333))}
.camVideo{width:100%;height:100%;object-fit:cover;display:block}
.camOverlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.camHint{font-size:14px;color:#d9cdf2;text-align:center;margin:12px 4px}
.camBar{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:8px}
.camBar button{border:0;border-radius:999px;padding:13px 22px;font-family:Sora;font-weight:800;font-size:15.5px;cursor:pointer}
.camCapture{background:#F2B134;color:#33200a}
.camDone,.camKeep{background:#4B2E83;color:#fff;border:2px solid #8a6fd0!important}
.camDone:disabled{opacity:.45;cursor:not-allowed}
.camRetake{background:#fff;color:#33205e}
.camErr{background:#5a1f1f;border:1.5px solid #a03d3d;color:#ffd7d7;border-radius:12px;padding:12px 15px;font-size:14.5px;max-width:860px;margin:14px auto 0}
.camThumbs{display:flex;gap:8px;justify-content:center;margin-top:14px;flex-wrap:wrap}
.camThumbs img{width:64px;height:84px;object-fit:cover;border-radius:8px;border:2px solid #8a6fd0}
.camFixStage{position:relative;max-width:640px;margin:0 auto}
.camFixCanvas{width:100%;height:auto;display:block;border-radius:12px}
.camFixOverlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.camHandle{position:absolute;width:26px;height:26px;margin:-13px 0 0 -13px;border-radius:50%;background:rgba(242,177,52,.92);border:3px solid #fff;cursor:grab;touch-action:none;z-index:3;box-shadow:0 2px 8px rgba(0,0,0,.5)}
.camChips{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:6px 0 12px}
.camChip{background:rgba(255,255,255,.1);color:#fff;border:1.5px solid rgba(255,255,255,.4);border-radius:999px;padding:8px 15px;font-weight:700;font-size:13.5px;cursor:pointer;font-family:Sora}
.camChip.on{background:#F2B134;color:#33200a;border-color:#F2B134}
.camPrevWrap{text-align:center}
.camPreview{max-width:min(420px,90%);height:auto;border-radius:10px;border:2px solid rgba(255,255,255,.3)}
/* Embed mode (homepage lamp stage): show only the toolbox */
html.embed header.site,html.embed footer.site,html.embed .hero,html.embed section.bodySec,html.embed .privacyLine{display:none!important}
html.embed body{background:#fff}
html.embed .toolbox{margin-top:0;padding:14px 10px 4px;max-width:860px}
html.embed .toolcard{box-shadow:none;border:0;padding:10px}

/* ---------- Dynamic visual polish (2026-11-10) ----------
   Presentation only, layered over the design system above so every
   tool page inherits it at once: glass surfaces over the brand
   violet/gold identity, real elevation, short enter animations and
   button feedback. No layout, flow, ID or behaviour changes. The
   global prefers-reduced-motion rule above disables all motion. */

/* Soft brand ambience behind the glass */
body{background-image:radial-gradient(52rem 30rem at 85% -6%,rgba(242,177,52,.10),transparent 60%),radial-gradient(46rem 30rem at -10% 22%,rgba(139,111,199,.14),transparent 60%),radial-gradient(40rem 26rem at 110% 68%,rgba(75,46,131,.08),transparent 60%);background-attachment:fixed}

/* Sticky header: deeper glass */
header.site{background:rgba(248,245,255,.82);box-shadow:0 6px 24px -12px rgba(75,46,131,.28)}
.nav .btn{background:linear-gradient(135deg,#5b3a9e,#4B2E83);box-shadow:0 8px 16px -8px rgba(59,33,110,.55);transition:transform .15s,box-shadow .2s}
.nav .btn:hover{transform:translateY(-1px);box-shadow:0 12px 20px -8px rgba(59,33,110,.6)}

/* Hero: layered depth with a slow gold aura */
.hero{position:relative;overflow:hidden;background:radial-gradient(90% 120% at 50% -10%,#6746ab,#3a2268 58%,#26134a);box-shadow:inset 0 -1px 0 rgba(242,177,52,.35),inset 0 -46px 60px -30px rgba(0,0,0,.45)}
.hero::before{content:"";position:absolute;left:-12%;right:-12%;top:-22%;height:130%;background:radial-gradient(42% 58% at 50% 0%,rgba(242,177,52,.34),transparent 70%);pointer-events:none;animation:pjAura 9s ease-in-out infinite alternate}
@keyframes pjAura{from{opacity:.55;transform:translateY(-8px) scale(1)}to{opacity:1;transform:translateY(10px) scale(1.06)}}
.hero>*{position:relative}
.badge{background:rgba(242,177,52,.13);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);box-shadow:inset 0 1px 0 rgba(255,255,255,.18)}
.favStar.withLabel{background:rgba(242,177,52,.10);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}

/* Enter motion: hero lines, the tool card, content sections */
@keyframes pjRise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
.hero .crumbs{animation:pjRise .55s ease-out both}
.hero h1{animation:pjRise .55s .06s ease-out both}
.hero p.lede{animation:pjRise .55s .12s ease-out both}
.hero .badgeRow{animation:pjRise .55s .18s ease-out both}
.toolbox .toolcard{animation:pjRise .55s .08s ease-out both}
section.bodySec{animation:pjRise .6s ease-out both}

/* The tool card becomes a raised glass panel */
.toolcard{background:linear-gradient(165deg,rgba(255,255,255,.94),rgba(250,247,255,.82));-webkit-backdrop-filter:blur(14px) saturate(1.5);backdrop-filter:blur(14px) saturate(1.5);border:1px solid rgba(255,255,255,.75);border-radius:22px;box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 24px 48px -16px rgba(46,26,94,.28),0 6px 18px -6px rgba(75,46,131,.14)}

/* Upload tray: glass, lift on hover / drag-over */
.drop{background:linear-gradient(165deg,rgba(253,250,240,.96),rgba(246,241,255,.8));box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 10px 24px -14px rgba(75,46,131,.35);transition:border-color .2s,background-color .2s,transform .25s,box-shadow .25s}
.drop:hover,.drop.over{transform:translateY(-2px);box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 18px 32px -14px rgba(184,134,11,.5)}
.drop svg{filter:drop-shadow(0 8px 14px rgba(75,46,131,.28))}
.miniDrop{background:linear-gradient(165deg,rgba(253,250,240,.95),rgba(246,241,255,.8));transition:border-color .2s,background-color .2s}

/* File / result rows: tinted glass with a gentle lift */
.fileRow,.batchRow,.fieldRow{background:linear-gradient(180deg,rgba(246,242,255,.92),rgba(238,230,255,.66));box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 2px 8px -2px rgba(75,46,131,.10)}
.fileRow,.batchRow{animation:pjRise .35s ease-out both;transition:transform .2s,box-shadow .2s}
.fileRow:hover,.batchRow:hover{transform:translateY(-1px);box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 8px 18px -8px rgba(75,46,131,.28)}

/* Inputs and option pills */
.controls input[type=text],.controls input[type=password],.controls input[type=number],.controls select,.controls textarea{background:rgba(255,255,255,.92);box-shadow:inset 0 2px 5px rgba(75,46,131,.05);transition:border-color .2s,box-shadow .2s}
.radioRow label{background:linear-gradient(180deg,#fff,rgba(246,242,255,.85));box-shadow:0 2px 7px -2px rgba(75,46,131,.14);transition:border-color .2s,transform .15s,box-shadow .2s}
.radioRow label:hover{transform:translateY(-1px);border-color:#c9b6ef}
.radioRow label:has(input:checked){border-color:#F2B134;background:linear-gradient(180deg,#fdf6e0,#fdfaf0);box-shadow:0 4px 12px -4px rgba(184,134,11,.4)}

/* Primary buttons: gradient, elevation, shine sweep, press */
.runBtn{position:relative;overflow:hidden;background:linear-gradient(135deg,#6545a8,#4B2E83 55%,#37205f);box-shadow:0 12px 24px -8px rgba(59,33,110,.55),inset 0 1px 0 rgba(255,255,255,.28);transition:transform .18s,box-shadow .25s,background-color .2s}
.runBtn::after{content:"";position:absolute;inset:0;background:linear-gradient(115deg,transparent 32%,rgba(255,255,255,.35) 50%,transparent 68%);transform:translateX(-120%);pointer-events:none}
.runBtn:hover:not(:disabled){background:linear-gradient(135deg,#6f4db4,#543a94 55%,#3d2569);transform:translateY(-1px);box-shadow:0 16px 30px -8px rgba(59,33,110,.6),inset 0 1px 0 rgba(255,255,255,.3)}
.runBtn:hover:not(:disabled)::after{transform:translateX(120%);transition:transform .7s ease}
.runBtn:active:not(:disabled){transform:translateY(0) scale(.985)}
.dlBtn{position:relative;overflow:hidden;background:linear-gradient(135deg,#ffcf66,#F2B134 55%,#dd9a16);box-shadow:0 12px 24px -8px rgba(184,134,11,.55),inset 0 1px 0 rgba(255,255,255,.5);transition:transform .18s,box-shadow .25s}
.dlBtn::after{content:"";position:absolute;inset:0;background:linear-gradient(115deg,transparent 32%,rgba(255,255,255,.4) 50%,transparent 68%);transform:translateX(-120%);pointer-events:none}
.dlBtn:hover{transform:translateY(-1px);box-shadow:0 16px 30px -8px rgba(184,134,11,.6),inset 0 1px 0 rgba(255,255,255,.55)}
.dlBtn:hover::after{transform:translateX(120%);transition:transform .7s ease}
.dlBtn:active{transform:translateY(0) scale(.985)}
.dlBtn.show{animation:pjPop .45s ease-out both}
@keyframes pjPop{from{opacity:0;transform:translateY(10px) scale(.97)}to{opacity:1;transform:none}}
.batchDl{background:linear-gradient(135deg,#5b3a9e,#4B2E83);box-shadow:0 6px 14px -6px rgba(59,33,110,.5);transition:transform .15s,box-shadow .2s}
.batchDl:hover{background:linear-gradient(135deg,#6545a8,#543a94);transform:translateY(-1px);box-shadow:0 9px 18px -6px rgba(59,33,110,.55)}
.camBtn{background:linear-gradient(180deg,#fff,rgba(246,242,255,.9));box-shadow:0 8px 18px -8px rgba(75,46,131,.35);transition:transform .15s,box-shadow .2s,background-color .2s}
.camBtn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 12px 22px -8px rgba(75,46,131,.4)}
.chatRow button{background:linear-gradient(135deg,#5b3a9e,#4B2E83);box-shadow:0 8px 16px -8px rgba(59,33,110,.55)}
.runBtn:focus-visible,.dlBtn:focus-visible,.camBtn:focus-visible,.batchDl:focus-visible{outline:3px solid #F2B134;outline-offset:3px}

/* Progress + status: animated stripes, a gold glow, soft arrival */
.progress{background:rgba(226,216,250,.55);box-shadow:inset 0 2px 5px rgba(75,46,131,.18)}
.progress i{position:relative;box-shadow:0 0 14px rgba(242,177,52,.45)}
.progress i::after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(45deg,rgba(255,255,255,.28) 0 10px,rgba(255,255,255,0) 10px 20px);animation:pjStripes .8s linear infinite}
@keyframes pjStripes{from{background-position:0 0}to{background-position:28px 0}}
.status:not(:empty){animation:pjRise .3s ease-out both}
.note{background:linear-gradient(160deg,rgba(253,243,208,.95),rgba(255,248,224,.82));box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 8px 20px -12px rgba(184,134,11,.5)}

/* Results, reports, chat bubbles */
.reportBox{background:linear-gradient(180deg,#fff,rgba(250,248,255,.9));box-shadow:0 10px 24px -14px rgba(75,46,131,.3)}
.textOut textarea{box-shadow:inset 0 2px 6px rgba(75,46,131,.05)}
.thumb{background:linear-gradient(180deg,#fff,rgba(250,248,255,.9));box-shadow:0 4px 12px -4px rgba(75,46,131,.14);transition:transform .18s,box-shadow .2s,border-color .2s}
.thumb:hover{transform:translateY(-2px);box-shadow:0 10px 20px -8px rgba(75,46,131,.3)}
.chatMsg.q{background:linear-gradient(160deg,#f0eaff,#e6dbff);box-shadow:0 4px 10px -4px rgba(75,46,131,.25)}
.chatMsg.a{background:linear-gradient(160deg,#fdfaf0,#fbf3da);box-shadow:0 4px 10px -4px rgba(184,134,11,.25)}

/* Related-tool cards + FAQ: glass with real hover depth */
.wcard{background:linear-gradient(160deg,rgba(253,250,240,.95),rgba(255,255,255,.75));-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 6px 16px -8px rgba(75,46,131,.18)}
.wcard:hover{box-shadow:0 16px 30px -12px rgba(184,134,11,.45)}
.faq details{background:linear-gradient(180deg,#fff,rgba(250,248,255,.85));box-shadow:0 4px 14px -6px rgba(75,46,131,.12);transition:border-color .2s,box-shadow .2s}
.faq details:hover{border-color:#cdbcf2;box-shadow:0 8px 20px -8px rgba(75,46,131,.22)}

/* Footer hairline + camera panel depth */
footer.site{box-shadow:inset 0 1px 0 rgba(242,177,52,.35)}
.camPanel{background:radial-gradient(90% 70% at 50% 0%,#341d63,#180d30 72%)}
.camStage{box-shadow:0 24px 60px -20px rgba(0,0,0,.8)}
.camCapture{background:linear-gradient(135deg,#ffcf66,#F2B134 55%,#dd9a16);box-shadow:0 10px 22px -8px rgba(242,177,52,.55)}

/* ================================================================
   PHASE 8 — VIOLET ROYAL (owner-approved design, 2026-11-09)
   Deep violet + gold frosted glass, glossy per-tool icon tiles,
   Smallpdf-pattern upload panel with a big gold CHOOSE FILES pill,
   and the silent genie processing stage (CSS/SVG only, no audio).
   Appended last: wins equal-specificity ties against earlier sections.
   ================================================================ */

/* ---- glossy per-tool icon tiles (shared system: assets/icons.svg) ---- */
.tic{flex:0 0 auto;width:46px;height:46px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;color:#fff;position:relative;box-shadow:0 6px 14px rgba(37,24,71,.28),inset 0 1.5px 0 rgba(255,255,255,.45),inset 0 -8px 14px rgba(0,0,0,.18)}
.tic svg{width:31px;height:31px;display:block;filter:drop-shadow(0 1.5px 1.5px rgba(0,0,0,.28))}
.tic::after{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(180deg,rgba(255,255,255,.34),rgba(255,255,255,0) 46%);pointer-events:none}
.tic-violet{background:linear-gradient(145deg,#8B6FC7,#4B2E83)}
.tic-indigo{background:linear-gradient(145deg,#818CF8,#4338CA)}
.tic-blue{background:linear-gradient(145deg,#5B8DEF,#2456C4)}
.tic-sky{background:linear-gradient(145deg,#3EC6F0,#0E7FB8)}
.tic-teal{background:linear-gradient(145deg,#2DD4BF,#0B766E)}
.tic-green{background:linear-gradient(145deg,#4ADE80,#14804A)}
.tic-gold{background:linear-gradient(145deg,#F6C453,#CE8A06)}
.tic-orange{background:linear-gradient(145deg,#FB923C,#E05D05)}
.tic-coral{background:linear-gradient(145deg,#F87171,#D92D20)}
.tic-pink{background:linear-gradient(145deg,#F472B6,#D6246E)}
.tic-plum{background:linear-gradient(145deg,#C084FC,#8B2FC9)}
.tic-xl{width:78px;height:78px;border-radius:22px}
.tic-xl svg{width:52px;height:52px}

/* ---- tool-page hero medallion + glossy headings ---- */
.heroIcon{display:flex;justify-content:center;margin:4px 0 14px}
.heroIcon .tic{box-shadow:0 0 0 3px rgba(242,177,52,.65),0 16px 32px -10px rgba(37,20,71,.55),inset 0 2px 0 rgba(255,255,255,.5),inset 0 -10px 18px rgba(0,0,0,.2)}
.hero h1{font-weight:800;letter-spacing:-.012em;text-shadow:0 2px 24px rgba(255,255,255,.35)}
.bodySec h2{font-family:Sora,sans-serif;font-weight:800;letter-spacing:-.012em}

/* ---- related-tool cards: icon tile + text rows ---- */
.wcard{display:flex;gap:12px;align-items:flex-start;min-width:0}
.wcard .wtext{flex:1;min-width:0}
.wcard h3{margin:2px 0 4px}
.wcard .favStar{top:auto;bottom:8px;right:11px;left:auto}

/* ---- upload panel: deep-violet glass, dashed gold rim, CHOOSE FILES ---- */
.drop{border:3px dashed rgba(242,177,52,.85);background:radial-gradient(120% 135% at 50% 0%,#7B5CC7 0%,#4B2E83 58%,#2B1850 100%);color:#fff;padding:38px 22px 32px;border-radius:22px;box-shadow:inset 0 1px 0 rgba(255,255,255,.28),inset 0 0 0 1px rgba(242,177,52,.16),0 20px 40px -16px rgba(37,20,71,.6)}
.drop:hover,.drop.over{border-color:#F2B134;background:radial-gradient(120% 135% at 50% 0%,#8A6BD2 0%,#55359A 58%,#33205E 100%);transform:translateY(-2px)}
.dropLamp{display:inline-flex;align-items:center;justify-content:center;width:94px;height:94px;border-radius:50%;background:radial-gradient(circle at 50% 34%,rgba(242,177,52,.34),rgba(242,177,52,.05) 72%);box-shadow:0 0 0 2px rgba(242,177,52,.55),0 0 36px rgba(242,177,52,.32);margin-bottom:10px}
.drop .dropLamp svg{width:60px;height:60px;margin:0}
.drop b{color:#fff;font-size:21px;text-shadow:0 2px 12px rgba(0,0,0,.4)}
.drop p{color:#F7F4FF}
.chooseBtn{display:inline-flex;align-items:center;margin-top:18px;background:linear-gradient(180deg,#FFE29A,#F2B134 55%,#D9940D);color:#33200A;font-family:Sora,sans-serif;font-weight:800;font-size:17px;letter-spacing:.07em;padding:15px 44px;border-radius:999px;box-shadow:0 14px 28px -9px rgba(217,148,13,.85),inset 0 2px 0 rgba(255,255,255,.75),inset 0 -3px 0 rgba(146,94,4,.45);transition:transform .2s,box-shadow .2s}
.drop:hover .chooseBtn,.drop.over .chooseBtn{transform:translateY(-2px) scale(1.03);box-shadow:0 18px 34px -9px rgba(217,148,13,.95),inset 0 2px 0 rgba(255,255,255,.8),inset 0 -3px 0 rgba(146,94,4,.45)}
.dropOr{display:block;margin-top:13px;font-family:Sora,sans-serif;font-size:13px;color:#F7F4FF}

/* ---- no-upload (generator) panel gets the same violet glass ---- */
.dz{border:2.5px dashed rgba(242,177,52,.7);background:radial-gradient(120% 135% at 50% 0%,#7B5CC7 0%,#4B2E83 58%,#2B1850 100%);border-radius:20px;padding:28px 22px;text-align:center;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 16px 32px -14px rgba(37,20,71,.55);margin-bottom:6px}
.dz .dzTitle{font-family:Sora,sans-serif;font-weight:800;font-size:19px;color:#fff;margin:0}
.dz .dzSub{color:#F7F4FF;font-size:14.5px;margin:8px auto 0;max-width:520px}

/* ---- tool card: frosted glass with a gold rim ---- */
.toolcard{border:1.5px solid rgba(217,164,32,.8);box-shadow:0 26px 52px -18px rgba(75,46,131,.45),0 0 0 1px rgba(242,177,52,.28),inset 0 1px 0 rgba(255,255,255,.7)}

/* ---- action buttons: gold run, violet download ---- */
.runBtn{background:linear-gradient(180deg,#FFE29A,#F2B134 55%,#D9940D);color:#33200A;box-shadow:0 14px 28px -10px rgba(217,148,13,.85),inset 0 2px 0 rgba(255,255,255,.7),inset 0 -3px 0 rgba(146,94,4,.42)}
.runBtn:hover:not(:disabled){background:linear-gradient(180deg,#FFECB3,#F7BE45 55%,#E5A412);transform:translateY(-1px)}
.dlBtn{background:linear-gradient(180deg,#7B5CC7,#4B2E83);color:#fff;box-shadow:0 14px 28px -10px rgba(75,46,131,.8),inset 0 2px 0 rgba(255,255,255,.35),inset 0 -3px 0 rgba(20,8,48,.5)}
.dlBtn:hover{color:#fff;background:linear-gradient(180deg,#8A6BD2,#55359A);transform:translateY(-1px)}

/* ---- genie processing stage (SVG scene in tool.js; silent; loops ~1.6s) ---- */
.genieStage{display:none;margin:18px auto 4px;max-width:460px;text-align:center}
.genieStage.on{display:block;animation:genieIn .35s ease-out both}
@keyframes genieIn{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:none}}
.genieStage svg{width:100%;max-width:400px;height:auto;display:block;margin:0 auto}
.genieCap{font-family:Sora,sans-serif;font-weight:700;font-size:14.5px;color:#4B2E83;margin:2px 0 0}
.genieStage .gf{display:none}
.genieStage[data-family="scan"] .gf-scan,.genieStage[data-family="book"] .gf-book,.genieStage[data-family="merge"] .gf-merge,.genieStage[data-family="split"] .gf-split,.genieStage[data-family="compress"] .gf-compress,.genieStage[data-family="rotate"] .gf-rotate,.genieStage[data-family="sign"] .gf-sign,.genieStage[data-family="protect"] .gf-protect,.genieStage[data-family="ocr"] .gf-ocr,.genieStage[data-family="convert"] .gf-convert,.genieStage[data-family="edit"] .gf-edit{display:block}
.genieStage .g-rise{animation:gRise .5s ease-out both}
@keyframes gRise{from{transform:translateY(20px) scale(.55);opacity:0}to{transform:none;opacity:1}}
.genieStage .g-bob{animation:gBob 1.3s ease-in-out infinite alternate}
@keyframes gBob{from{transform:translateY(0)}to{transform:translateY(-4.5px)}}
.genieStage .ga-tw{transform-box:fill-box;transform-origin:center;animation:gTw 1s ease-in-out infinite alternate}
@keyframes gTw{from{transform:scale(.55) rotate(0deg);opacity:.35}to{transform:scale(1.12) rotate(18deg);opacity:1}}
.genieStage .ga-smoke{animation:gSmoke 1.6s linear infinite}
@keyframes gSmoke{to{stroke-dashoffset:-24}}
.genieStage .ga-sweep{animation:gSweep 1.5s ease-in-out infinite}
@keyframes gSweep{0%{transform:translateY(-4px)}55%{transform:translateY(52px)}100%{transform:translateY(-4px)}}
.genieStage .ga-flash{transform-box:fill-box;transform-origin:center;animation:gFlash 1.5s ease-in-out infinite}
@keyframes gFlash{0%,100%{transform:scale(.4);opacity:0}12%{transform:scale(1.25);opacity:1}30%{transform:scale(.7);opacity:.25}}
.genieStage .ga-flip{transform-box:fill-box;transform-origin:left center;animation:gFlip 1.6s ease-in-out infinite}
@keyframes gFlip{0%{transform:scaleX(1)}45%{transform:scaleX(-1)}90%{transform:scaleX(-1);opacity:.35}100%{transform:scaleX(1);opacity:1}}
.genieStage .ga-mergeL{animation:gMergeL 1.6s ease-in-out infinite alternate}
@keyframes gMergeL{from{transform:translateX(0)}to{transform:translateX(15px)}}
.genieStage .ga-mergeR{animation:gMergeR 1.6s ease-in-out infinite alternate}
@keyframes gMergeR{from{transform:translateX(0)}to{transform:translateX(-15px)}}
.genieStage .ga-splitL{animation:gSplitL 1.6s ease-in-out infinite alternate}
@keyframes gSplitL{from{transform:translateX(4px)}to{transform:translateX(-7px)}}
.genieStage .ga-splitR{animation:gSplitR 1.6s ease-in-out infinite alternate}
@keyframes gSplitR{from{transform:translateX(-4px)}to{transform:translateX(7px)}}
.genieStage .ga-press{animation:gPress 1.5s ease-in-out infinite alternate}
@keyframes gPress{from{transform:translateY(0)}to{transform:translateY(11px)}}
.genieStage .ga-pressPage{transform-box:fill-box;transform-origin:center bottom;animation:gPressPage 1.5s ease-in-out infinite alternate}
@keyframes gPressPage{from{transform:scaleY(1)}to{transform:scaleY(.68)}}
.genieStage .ga-rot{transform-box:fill-box;transform-origin:center;animation:gRot 1.8s ease-in-out infinite}
@keyframes gRot{0%{transform:rotate(0deg)}42%{transform:rotate(90deg)}88%{transform:rotate(90deg)}100%{transform:rotate(0deg)}}
.genieStage .ga-signPath{stroke-dasharray:64;animation:gSign 1.8s ease-in-out infinite}
@keyframes gSign{0%{stroke-dashoffset:64}55%{stroke-dashoffset:0}100%{stroke-dashoffset:0}}
.genieStage .ga-pen{animation:gPen 1.8s ease-in-out infinite}
@keyframes gPen{0%{transform:translate(0,6px)}18%{transform:translate(12px,-8px)}34%{transform:translate(15px,4px)}48%{transform:translate(25px,-2px)}55%{transform:translate(46px,0)}100%{transform:translate(46px,0);opacity:.4}}
.genieStage .ga-shackle{transform-box:fill-box;transform-origin:right bottom;animation:gLock 1.6s ease-in-out infinite alternate}
@keyframes gLock{from{transform:rotate(-26deg)}to{transform:rotate(0deg)}}
.genieStage .ga-mag{animation:gMag 1.8s ease-in-out infinite}
@keyframes gMag{0%{transform:translate(0,0)}33%{transform:translate(7px,9px)}66%{transform:translate(-6px,17px)}100%{transform:translate(0,0)}}
.genieStage .ga-line{animation:gLift 1.8s ease-in-out infinite}
.genieStage .ga-line.l2{animation-delay:.18s}.genieStage .ga-line.l3{animation-delay:.36s}
@keyframes gLift{0%,100%{transform:translateY(0);stroke:#8B6FC7}50%{transform:translateY(-3.5px);stroke:#D9940D}}
.genieStage .ga-convPage{transform-box:fill-box;transform-origin:center;animation:gConvP 1.7s ease-in-out infinite alternate}
@keyframes gConvP{from{transform:scale(1);opacity:1}to{transform:scale(.78);opacity:.3}}
.genieStage .ga-convBadge{transform-box:fill-box;transform-origin:center;animation:gConvB 1.7s ease-in-out infinite alternate}
@keyframes gConvB{from{transform:scale(.72);opacity:.3}to{transform:scale(1.06);opacity:1}}
.genieStage .ga-wand{transform-box:fill-box;transform-origin:bottom left;animation:gWand 1.5s ease-in-out infinite alternate}
@keyframes gWand{from{transform:rotate(-7deg)}to{transform:rotate(11deg)}}
.genieStage .ga-burst{transform-box:fill-box;transform-origin:center;animation:gFlash 1.5s ease-in-out infinite}

@media (prefers-reduced-motion:reduce){
.genieStage .g-rise,.genieStage .g-bob,.genieStage .ga-tw,.genieStage .ga-smoke,.genieStage .ga-sweep,.genieStage .ga-flash,.genieStage .ga-flip,.genieStage .ga-mergeL,.genieStage .ga-mergeR,.genieStage .ga-splitL,.genieStage .ga-splitR,.genieStage .ga-press,.genieStage .ga-pressPage,.genieStage .ga-rot,.genieStage .ga-signPath,.genieStage .ga-pen,.genieStage .ga-shackle,.genieStage .ga-mag,.genieStage .ga-line,.genieStage .ga-convPage,.genieStage .ga-convBadge,.genieStage .ga-wand,.genieStage .ga-burst{animation:none}
.genieStage .ga-signPath{stroke-dashoffset:0}
}

/* ================================================================
   PHASE 8 LAYOUT CORRECTION — the approved Variant 1 composition
   (owner review, 2026-11-09): the genie artwork presides LARGE over
   one continuous deep-violet scene; hero and upload panel share the
   same backdrop with no white break; the upload panel is frosted
   glass with a dashed gold rim and a HUGE glossy gold CHOOSE FILES
   pill as the visual centre. Scoped to .toolScene (tool pages only);
   info/blog pages keep their own heroes. Embed mode restores the
   light card at the end of this section.
   ================================================================ */
.toolScene{position:relative;overflow:hidden;padding-bottom:36px;background:radial-gradient(58rem 30rem at 85% -8%,rgba(242,177,52,.15),transparent 60%),radial-gradient(90% 60% at 50% 0%,#6746ab 0%,#4B2E83 42%,#2c1a56 78%,#241543 100%)}
.toolScene::after{content:"";position:absolute;inset:0;pointer-events:none;opacity:.55;background-image:radial-gradient(2.2px 2.2px at 8% 16%,rgba(255,230,160,.85),transparent 60%),radial-gradient(1.8px 1.8px at 15% 62%,rgba(255,255,255,.55),transparent 60%),radial-gradient(2.6px 2.6px at 87% 10%,rgba(255,230,160,.7),transparent 60%),radial-gradient(1.6px 1.6px at 93% 46%,rgba(255,255,255,.5),transparent 60%),radial-gradient(2px 2px at 77% 80%,rgba(255,230,160,.55),transparent 60%),radial-gradient(1.5px 1.5px at 4% 86%,rgba(255,255,255,.45),transparent 60%),radial-gradient(2.4px 2.4px at 56% 5%,rgba(255,230,160,.5),transparent 60%),radial-gradient(1.7px 1.7px at 33% 92%,rgba(255,255,255,.4),transparent 60%)}
.toolScene>*{position:relative;z-index:1}
.toolScene .hero{background:transparent;box-shadow:none;padding:32px 20px 2px}
.genieHero{display:block;height:clamp(232px,50vw,326px);width:auto;margin:6px auto 10px;filter:drop-shadow(0 20px 36px rgba(16,8,38,.55)) drop-shadow(0 0 30px rgba(242,177,52,.2));animation:pjRise .55s .03s ease-out both}
.toolScene .hero h1{font-size:clamp(32px,5.4vw,50px);max-width:840px}
.toolScene .hero p.lede{color:#E6DEF9;font-size:17.5px}
.toolScene .toolbox{margin-top:0;padding-top:16px}

/* frosted glass tool card on the violet scene */
.toolScene .toolcard{background:linear-gradient(165deg,rgba(255,255,255,.145),rgba(255,255,255,.05));-webkit-backdrop-filter:blur(16px) saturate(1.45);backdrop-filter:blur(16px) saturate(1.45);border:1.5px solid rgba(242,177,52,.55);box-shadow:inset 0 1px 0 rgba(255,255,255,.28),0 30px 60px -22px rgba(13,6,32,.75),0 0 0 1px rgba(242,177,52,.14);color:#EFE9FF}

/* upload panel: frosted glass, dashed gold rim, document icon, HUGE pill */
.toolScene .drop{border:3px dashed rgba(242,177,52,.92);background:linear-gradient(170deg,rgba(255,255,255,.17),rgba(255,255,255,.055));-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:42px 22px 36px;box-shadow:inset 0 1px 0 rgba(255,255,255,.35),inset 0 0 70px rgba(242,177,52,.06),0 24px 48px -20px rgba(13,6,32,.8)}
.toolScene .drop:hover,.toolScene .drop.over{border-color:#F2B134;background:linear-gradient(170deg,rgba(255,255,255,.25),rgba(255,255,255,.1));transform:translateY(-2px)}
.dropIcon{display:inline-flex;margin-bottom:8px;filter:drop-shadow(0 12px 24px rgba(242,177,52,.35))}
.dropIcon svg{width:68px;height:68px}
.toolScene .drop b{font-size:23px;color:#fff}
.toolScene .drop p{color:#FFFBEB;font-size:14.5px;max-width:460px}
.toolScene .chooseBtn{font-size:20px;padding:19px 64px;margin-top:22px;letter-spacing:.08em;box-shadow:0 20px 38px -10px rgba(217,148,13,.9),inset 0 2px 0 rgba(255,255,255,.8),inset 0 -4px 0 rgba(146,94,4,.45)}
.toolScene .drop:hover .chooseBtn,.toolScene .drop.over .chooseBtn{transform:translateY(-2px) scale(1.035)}
.toolScene .dropOr{color:#F7F4FF}
@media (max-width:520px){.toolScene .chooseBtn{font-size:18.5px;padding:17px 36px}}

/* no-upload (generator) panel matches the frosted scene */
.toolScene .dz{background:linear-gradient(170deg,rgba(255,255,255,.15),rgba(255,255,255,.05));border-color:rgba(242,177,52,.65);box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 18px 36px -16px rgba(13,6,32,.7)}

/* card text on glass: labels and status go light; rows/inputs stay light pills */
.toolScene .controls label.lab{color:#F2EAFB}
.toolScene .status{color:#EFE9FF}
.toolScene .status.err{color:#FFECEC}
.toolScene .privacyLine{color:#C6B6F0}
.toolScene .privacyLine b{color:#F2B134}
.toolScene .genieCap{color:#E9DFFC}
.toolScene .radioRow label{color:#33205e}
.toolScene .checkRow{color:#EFE9FF}
.toolScene .toolcard [style*="color:#6d6198"]{color:#E9E2FC!important}

/* embed (app WebView): the scene collapses back to the plain light card */
html.embed .toolScene{background:none;padding-bottom:0}
html.embed .toolScene::after{display:none}
html.embed .toolScene .toolcard{background:linear-gradient(165deg,rgba(255,255,255,.94),rgba(250,247,255,.82));color:#251847;border:0;box-shadow:none}
html.embed .toolScene .drop{background:radial-gradient(120% 135% at 50% 0%,#7B5CC7 0%,#4B2E83 58%,#2B1850 100%);border-color:rgba(242,177,52,.85)}
html.embed .toolScene .dz{background:radial-gradient(120% 135% at 50% 0%,#7B5CC7 0%,#4B2E83 58%,#2B1850 100%)}
html.embed .toolScene .controls label.lab{color:#33205e}
html.embed .toolScene .status{color:#4B2E83}
html.embed .toolScene .status.err{color:#a03d3d}
html.embed .toolScene .genieCap{color:#4B2E83}
html.embed .toolScene .checkRow{color:#251847}
html.embed .toolScene .toolcard [style*="color:#6d6198"]{color:#6d6198!important}

/* ================================================================
   PHASE 8 EXACT-MATCH — closing the last gap to the approved
   Variant 1 mockup (owner instruction 2026-11-09 22:06 CST: the
   re-sent mockup IS the spec; approximations were rejected).
   What this section does, all scoped to tool pages:
   · the site header blends into the violet scene (gold serif
     wordmark, light nav, gold pill) — body[data-tool] only, so
     info pages and the homepage keep their chrome;
   · the scene gets the mockup's luminous heart and its sparkle
     density (SVG star layer + a denser dot field);
   · the title is the mockup's treatment — heavy white sans,
     single colour, with the subline in gold;
   · the upload panel gets the mockup's STITCH rim: a solid gold
     rim outside, a thin dashed line inset inside it; the panel
     frost is lightened to the mockup's translucent violet;
   · panel content is reordered to the mockup's flow (icon, label,
     meta line, THEN the huge pill) by flex order — no markup move;
   · the gold pills get the mockup's deep gloss (near-white crown,
     amber base, long soft shadow);
   · option/control rows become the mockup's frosted pills: white
     text, gold radios/chevrons/toggles and gold-tinted selection.
   Embed (app WebView) restorations close the section, mirroring
   the layout-correction pattern.
   ================================================================ */

/* ---- tool-page header: part of the scene ---- */
body[data-tool] header.site{background:linear-gradient(180deg,#3A2268,#2A1850);border-bottom:1px solid rgba(242,177,52,.35);box-shadow:0 12px 30px -18px rgba(10,4,28,.85)}
body[data-tool] .logo{font-family:"Playfair Display",serif;color:#F2C14E;letter-spacing:.015em}
body[data-tool] .nav nav a{color:#E9E1FF}
body[data-tool] .nav nav a:hover{color:#F2B134}
body[data-tool] .nav .btn{background:linear-gradient(180deg,#FFE29A,#F2B134 58%,#D9940D);color:#33200A!important;box-shadow:0 10px 20px -8px rgba(217,148,13,.75),inset 0 1.5px 0 rgba(255,255,255,.75)}

/* ---- scene: luminous heart + mockup sparkle density ---- */
.toolScene{background:radial-gradient(46rem 26rem at 50% -6%,rgba(242,177,52,.20),transparent 60%),radial-gradient(70% 42% at 50% 4%,rgba(168,130,255,.42),transparent 70%),radial-gradient(24rem 20rem at 90% 30%,rgba(242,177,52,.10),transparent 65%),radial-gradient(90% 60% at 50% 0%,#6746ab 0%,#4B2E83 42%,#2c1a56 78%,#241543 100%)}
.toolScene::before{content:"";position:absolute;inset:0;pointer-events:none;background-repeat:no-repeat;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1 L14.6 9.4 L23 12 L14.6 14.6 L12 23 L9.4 14.6 L1 12 L9.4 9.4 Z' fill='%23FFDF8E'/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1 L14.6 9.4 L23 12 L14.6 14.6 L12 23 L9.4 14.6 L1 12 L9.4 9.4 Z' fill='%23FFF6DC' fill-opacity='.85'/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1 L14.6 9.4 L23 12 L14.6 14.6 L12 23 L9.4 14.6 L1 12 L9.4 9.4 Z' fill='%23F2B134' fill-opacity='.6'/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1 L14.6 9.4 L23 12 L14.6 14.6 L12 23 L9.4 14.6 L1 12 L9.4 9.4 Z' fill='%23FFDF8E'/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1 L14.6 9.4 L23 12 L14.6 14.6 L12 23 L9.4 14.6 L1 12 L9.4 9.4 Z' fill='%23FFF6DC' fill-opacity='.85'/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1 L14.6 9.4 L23 12 L14.6 14.6 L12 23 L9.4 14.6 L1 12 L9.4 9.4 Z' fill='%23F2B134' fill-opacity='.6'/%3E%3C/svg%3E");background-size:30px 30px,18px 18px,13px 13px,22px 22px,11px 11px,16px 16px;background-position:6% 9%,90% 15%,72% 4%,24% 33%,96% 43%,3% 51%;animation:pjTwinkle 3.6s ease-in-out infinite alternate}
@keyframes pjTwinkle{from{opacity:.72}to{opacity:1}}
.toolScene::after{opacity:.85;background-image:radial-gradient(2.2px 2.2px at 8% 16%,rgba(255,230,160,.9),transparent 60%),radial-gradient(1.8px 1.8px at 15% 62%,rgba(255,255,255,.6),transparent 60%),radial-gradient(2.6px 2.6px at 87% 10%,rgba(255,230,160,.75),transparent 60%),radial-gradient(1.6px 1.6px at 93% 46%,rgba(255,255,255,.55),transparent 60%),radial-gradient(2px 2px at 77% 80%,rgba(255,230,160,.6),transparent 60%),radial-gradient(1.5px 1.5px at 4% 86%,rgba(255,255,255,.5),transparent 60%),radial-gradient(2.4px 2.4px at 56% 5%,rgba(255,230,160,.55),transparent 60%),radial-gradient(1.7px 1.7px at 33% 92%,rgba(255,255,255,.45),transparent 60%),radial-gradient(3px 3px at 22% 30%,rgba(255,230,160,.5),transparent 60%),radial-gradient(1.6px 1.6px at 41% 22%,rgba(255,255,255,.55),transparent 60%),radial-gradient(2.8px 2.8px at 66% 38%,rgba(255,230,160,.45),transparent 60%),radial-gradient(1.5px 1.5px at 52% 68%,rgba(255,255,255,.5),transparent 60%),radial-gradient(2.2px 2.2px at 12% 44%,rgba(255,230,160,.55),transparent 60%),radial-gradient(1.8px 1.8px at 97% 70%,rgba(255,230,160,.5),transparent 60%),radial-gradient(2.5px 2.5px at 30% 55%,rgba(255,255,255,.4),transparent 60%),radial-gradient(1.6px 1.6px at 84% 88%,rgba(255,230,160,.5),transparent 60%)}

/* ---- genie presence: the mockup's wide genie+lamp band ----
   The shipped genie-hero.webp canvas is 760x1148 but its artwork
   (the wide genie + lamp composition, exactly the mockup's) lives
   in the band y 352-795 with transparency above and below.
   object-fit:cover into a box of the art's own aspect (689/412)
   crops precisely to that band, so the genie presides at the
   mockup's scale instead of floating small in a tall frame. */
.genieHero{width:min(94vw,430px);height:auto;aspect-ratio:533/320;object-fit:cover;object-position:50% 50%;margin:2px auto 6px;-webkit-mask-image:radial-gradient(ellipse 84% 78% at 50% 50%,#000 70%,transparent 99.5%);mask-image:radial-gradient(ellipse 84% 78% at 50% 50%,#000 70%,transparent 99.5%)}
@media (min-width:760px){.genieHero{width:min(52vw,520px)}}

/* ---- title: heavy white sans; subline in gold ---- */
.toolScene .hero h1{font-family:Sora,sans-serif;font-weight:800;letter-spacing:-.02em;font-size:clamp(34px,8.8vw,54px);color:#fff;text-shadow:0 3px 26px rgba(16,8,38,.45)}
.toolScene .hero h1 span{color:#fff}
.toolScene .hero p.lede{color:#F6C453}

/* ---- upload panel: stitch rim, mockup frost, mockup flow ---- */
.toolScene .drop{position:relative;display:flex;flex-direction:column;align-items:center;border:1.5px solid rgba(255,230,170,.55);border-radius:26px;background:linear-gradient(172deg,rgba(219,203,255,.22),rgba(158,128,232,.10) 55%,rgba(126,95,205,.10));-webkit-backdrop-filter:blur(14px) saturate(1.5);backdrop-filter:blur(14px) saturate(1.5);box-shadow:inset 0 1px 0 rgba(255,255,255,.4),inset 0 0 60px rgba(242,177,52,.05),0 26px 50px -20px rgba(13,6,32,.85)}
.toolScene .drop::before{content:"";position:absolute;inset:9px;border:2px dashed rgba(246,205,102,.9);border-radius:19px;pointer-events:none}
.toolScene .drop::after{content:"";position:absolute;top:16px;right:20px;width:16px;height:16px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1 L14.6 9.4 L23 12 L14.6 14.6 L12 23 L9.4 14.6 L1 12 L9.4 9.4 Z' fill='%23FFDF8E'/%3E%3C/svg%3E") center/contain no-repeat;opacity:.9;pointer-events:none}
.toolScene .drop:hover,.toolScene .drop.over{border-color:rgba(255,230,170,.92);background:linear-gradient(172deg,rgba(226,213,255,.28),rgba(166,138,238,.14) 55%,rgba(134,102,214,.12));transform:translateY(-2px)}
.toolScene .drop p{color:#FFFBEB}
.toolScene .drop .dropOr{order:3;margin:12px 0 0}
.toolScene .drop .chooseBtn{order:4;margin-top:16px}

/* generator panel: same stitch rim */
.toolScene .dz{position:relative;border:1.5px solid rgba(255,230,170,.5)}
.toolScene .dz::before{content:"";position:absolute;inset:8px;border:2px dashed rgba(246,205,102,.75);border-radius:14px;pointer-events:none}

/* ---- gold pills: the mockup's deep gloss ---- */
.toolScene .chooseBtn,.toolScene .runBtn{background:linear-gradient(180deg,#FFF7DC 0%,#FFEBAE 26%,#F8C44A 52%,#F2B134 68%,#DE9A0B 88%,#CB8603 100%);color:#33200A;box-shadow:inset 0 2px 3px rgba(255,255,255,.95),inset 0 -7px 14px rgba(146,94,4,.38),0 24px 44px -12px rgba(222,156,10,.8),0 6px 18px -6px rgba(10,4,28,.5)}
.toolScene .chooseBtn{min-width:min(80%,430px);justify-content:center}
.toolScene .runBtn:hover:not(:disabled){background:linear-gradient(180deg,#FFFBEB 0%,#FFF0BE 26%,#F9CC5C 52%,#F5B93E 68%,#E7A511 88%,#D18D04 100%);transform:translateY(-1px)}
.toolScene .drop:hover .chooseBtn,.toolScene .drop.over .chooseBtn{transform:translateY(-2px) scale(1.03)}

/* ---- option rows: frosted pills, white text, gold accents ---- */
.toolScene .radioRow label{background:linear-gradient(180deg,rgba(255,255,255,.15),rgba(255,255,255,.06));border:1.5px solid rgba(255,255,255,.22);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 6px 14px -8px rgba(13,6,32,.6)}
.toolScene .radioRow label:hover{transform:translateY(-1px);border-color:rgba(246,205,102,.7)}
.toolScene .radioRow label:has(input:checked){background:linear-gradient(180deg,rgba(242,177,52,.32),rgba(242,177,52,.16));border-color:#F2B134;color:#FFE9B0;box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 6px 16px -8px rgba(217,148,13,.8)}
.toolScene .radioRow input{accent-color:#F2B134}
.toolScene .checkRow input{accent-color:#F2B134}
.toolScene .controls input[type=range]{accent-color:#F2B134}
.toolScene .controls input[type=text],.toolScene .controls input[type=password],.toolScene .controls input[type=number],.toolScene .controls textarea{background:rgba(255,255,255,.09);border:1.5px solid rgba(255,255,255,.24);color:#fff;box-shadow:inset 0 2px 6px rgba(13,6,32,.35)}
.toolScene .controls input::placeholder,.toolScene .controls textarea::placeholder{color:#F7F4FF}
.toolScene .controls select{appearance:none;-webkit-appearance:none;background-color:rgba(255,255,255,.09);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 9l7 7 7-7' fill='none' stroke='%23F2B134' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:16px;border:1.5px solid rgba(255,255,255,.24);color:#fff;padding-right:42px;box-shadow:inset 0 2px 6px rgba(13,6,32,.35);cursor:pointer}
.toolScene .controls select option{color:#251847;background:#fff}

/* ---- file / batch / field rows on glass ---- */
.toolScene .fileRow,.toolScene .batchRow,.toolScene .fieldRow{background:linear-gradient(180deg,rgba(255,255,255,.14),rgba(255,255,255,.06));border:1px solid rgba(255,255,255,.2);box-shadow:inset 0 1px 0 rgba(255,255,255,.22)}
.toolScene .fileRow .fn,.toolScene .fieldRow .fn,.toolScene .batchTxt b{color:#fff}
.toolScene .fileRow .fs,.toolScene .batchDet{color:#E9E2FC}
.toolScene .fileRow button{color:#FFECEC}
.toolScene .fileRow .mv{color:#FFF6D8}
.toolScene .fieldRow button{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.25);color:#FFE9B0}
.toolScene .batchDl{background:linear-gradient(180deg,#FFE29A,#F2B134 58%,#D9940D);color:#33200A;box-shadow:0 8px 16px -6px rgba(217,148,13,.7),inset 0 1.5px 0 rgba(255,255,255,.7)}
.toolScene .batchDl:hover{background:linear-gradient(180deg,#FFECB3,#F7BE45 58%,#E5A412)}

/* ---- thumbnails, mini-drop, camera button, chat, result text ---- */
.toolScene .thumb{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.22)}
.toolScene .thumb .pg{color:#4B2E83}
.toolScene .thumb .acts button{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.25);color:#EFE9FF}
.toolScene .thumb.sel{border-color:#F2B134;background:rgba(242,177,52,.14)}
.toolScene .miniDrop{background:rgba(255,255,255,.08);border-color:rgba(246,205,102,.55);color:#EFE9FF}
.toolScene .camBtn{background:rgba(255,255,255,.10);border:1.5px solid rgba(242,177,52,.65);color:#FFE1A0;box-shadow:inset 0 1px 0 rgba(255,255,255,.25)}
.toolScene .camBtn:hover:not(:disabled){background:rgba(242,177,52,.18)}
.toolScene .textOut textarea{background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.24);color:#fff}
.toolScene .chatRow input{background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.24);color:#fff}
.toolScene .chatRow input::placeholder{color:#F7F4FF}
.toolScene .chatRow button{background:linear-gradient(180deg,#FFE29A,#F2B134 58%,#D9940D);color:#33200A}
.toolScene .chatMsg.q{background:rgba(242,177,52,.16);color:#FFE9B0}
.toolScene .chatMsg.a{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.2);color:#EFE9FF}
.toolScene .chatEmpty{color:#E9E2FC}

/* ---- embed (app WebView): restore the light-card control set ---- */
html.embed .toolScene .radioRow label{background:linear-gradient(180deg,#fff,rgba(246,242,255,.85));color:#33205e;border-color:#d9cdf2}
html.embed .toolScene .radioRow label:has(input:checked){background:linear-gradient(180deg,#fdf6e0,#fdfaf0);border-color:#F2B134;color:#33205e}
html.embed .toolScene .controls input[type=text],html.embed .toolScene .controls input[type=password],html.embed .toolScene .controls input[type=number],html.embed .toolScene .controls textarea,html.embed .toolScene .textOut textarea,html.embed .toolScene .chatRow input{background:#fff;border-color:#d9cdf2;color:#251847;box-shadow:inset 0 2px 5px rgba(75,46,131,.05)}
html.embed .toolScene .controls select{background-color:#fff;background-image:none;color:#251847;border-color:#d9cdf2;padding-right:14px}
html.embed .toolScene .fileRow,html.embed .toolScene .batchRow,html.embed .toolScene .fieldRow{background:linear-gradient(180deg,rgba(246,242,255,.92),rgba(238,230,255,.66));border-color:#e0d5f7}
html.embed .toolScene .fileRow .fn,html.embed .toolScene .fieldRow .fn,html.embed .toolScene .batchTxt b{color:#33205e}
html.embed .toolScene .fileRow .fs,html.embed .toolScene .batchDet{color:#6D6198}
html.embed .toolScene .fileRow button{color:#a03d3d}
html.embed .toolScene .fileRow .mv{color:#4B2E83}
html.embed .toolScene .fieldRow button{background:#fff;border-color:#d9cdf2;color:#33205e}
html.embed .toolScene .batchDl{background:linear-gradient(135deg,#5b3a9e,#4B2E83);color:#fff}
html.embed .toolScene .thumb{background:linear-gradient(180deg,#fff,rgba(250,248,255,.9));border-color:#e0d5f7}
html.embed .toolScene .thumb .pg{color:#4B2E83}
html.embed .toolScene .thumb .acts button{background:#f8f5ff;border-color:#d9cdf2;color:#33205e}
html.embed .toolScene .miniDrop{background:linear-gradient(165deg,rgba(253,250,240,.95),rgba(246,241,255,.8));color:#33205e;border-color:rgba(75,46,131,.35)}
html.embed .toolScene .camBtn{background:linear-gradient(180deg,#fff,rgba(246,242,255,.9));color:#4B2E83;border-color:#4B2E83}
html.embed .toolScene .chatMsg.q{background:linear-gradient(160deg,#f0eaff,#e6dbff);color:#33205e}
html.embed .toolScene .chatMsg.a{background:linear-gradient(160deg,#fdfaf0,#fbf3da);color:#251847}
html.embed .toolScene .chatEmpty{color:#6d6198}
html.embed .toolScene .drop p{color:#F7F4FF}

/* ================================================================
   PHASE 9 — OWNER FIX ROUND (2026-11-10)
   1) Icon tiles join the approved mockup family: ONE glossy
      deep-violet tile, gold glyph, gold rim — the language of the
      Variant 1 mockup and the app icon set. Per-tool identity is
      carried by the 81 distinct glyph artworks, as in the app.
   2) Overflow root fix: an unbreakable long word in a card tagline
      ("Photographed…") overflowed the flex text column and the
      card itself, widening the page's scrollable area at ~360px
      on every page whose related set included it. Card text now
      uses overflow-wrap:break-word — a word breaks ONLY when it
      cannot fit a line by itself (an earlier anywhere draft broke
      ordinary words mid-word across the catalogue and was caught
      on rendered screenshots; break-word is the correct setting).
      On the homepage the favourite star is also taken out of flow
      (position:absolute, as here) so card text gets its full width.
   3) Defence in depth: horizontal overflow is clipped at the
      root (overflow-x:clip preserves position:sticky, unlike
      hidden). This is a safety net only — every measured root
      cause above is fixed at its component.
   ================================================================ */
.tic{color:#F6C453;box-shadow:0 6px 14px rgba(37,24,71,.30),inset 0 0 0 1.5px rgba(246,196,83,.38),inset 0 1.5px 0 rgba(255,255,255,.45),inset 0 -8px 14px rgba(0,0,0,.22)}
.tic-violet,.tic-indigo,.tic-blue,.tic-sky,.tic-teal,.tic-green,.tic-gold,.tic-orange,.tic-coral,.tic-pink,.tic-plum{background:linear-gradient(145deg,#8B6FC7,#4B2E83 58%,#38205F)}
.wcard .wtext h3,.wcard .wtext p{overflow-wrap:break-word}
html,body{overflow-x:clip}

/* ================================================================
   PHASE 11 — SLIM FIXED TOP BAR + BOTTOM BACK BUTTON ON TOOL PAGES
   (owner order 2026-11-11: the tool-page header wrapped into three
   rows on a phone — logo row, nav row, language row — eating 231px
   before the tool even started.)
   - Tool pages (body[data-tool]) get ONE compact sticky row:
     small logo + name, a "← All Tools" pill (the back link home),
     and the language switcher shrunk to the same line. The other
     nav links and the tall "Drop a file" button are hidden on tool
     pages only — the homepage and content pages keep the full nav.
   - Every tool page also carries a .backBar "← Back to All Tools"
     button after </main>, so a finished user can leave from the
     bottom without scrolling back up.
   ================================================================ */
body[data-tool] .nav{flex-wrap:nowrap;padding:7px 12px;gap:10px}
body[data-tool] .logo{font-size:17px;gap:7px;white-space:nowrap;flex:none}
body[data-tool] .logo img{width:26px;height:26px;border-radius:8px}
body[data-tool] .nav nav{flex-wrap:nowrap;gap:0;margin-left:auto}
body[data-tool] .nav nav a{display:none}
body[data-tool] .nav nav a[href="/#catalogue"]{display:inline-flex;align-items:center;white-space:nowrap;font-size:13.5px;font-weight:700;padding:6px 12px;border:1.5px solid rgba(242,177,52,.55);border-radius:999px}
body[data-tool] .nav nav a[href="/#catalogue"]::before{content:"←";margin-right:6px;font-weight:800}
[dir="rtl"] body[data-tool] .nav nav{margin-left:0;margin-right:auto}
[dir="rtl"] body[data-tool] .nav nav a[href="/#catalogue"]::before{content:"→";margin-right:0;margin-left:6px}
body[data-tool] .pj-lang{margin-left:2px;flex:none}
body[data-tool] .pj-lang-btn{padding:5px 9px;font-size:12.5px;gap:5px;border-width:1.5px;white-space:nowrap}
body[data-tool] .pj-lang-btn .pj-globe{font-size:13px}
.backBar{max-width:1160px;margin:0 auto;padding:30px 20px 4px;text-align:center}
.backBtn{display:inline-flex;align-items:center;gap:9px;background:linear-gradient(180deg,#5b3a9e,#4B2E83);color:#fff!important;font-family:Sora,sans-serif;font-weight:700;font-size:15.5px;text-decoration:none;padding:13px 28px;border-radius:999px;box-shadow:0 12px 24px -12px rgba(59,33,110,.6);transition:transform .15s}
.backBtn:hover{transform:translateY(-1px)}
.backBtn .backArrow{font-weight:800}
[dir="rtl"] .backBtn .backArrow{transform:scaleX(-1)}
html.embed .backBar{display:none!important}

/* ================================================================
   ROUND 45 FIXES (owner functional audit, 2026-11-12)
   · page-preview canvases now contain-fit their cells on every
     thumbnail grid (reorder / delete / rotate / split / extract /
     sign / crop) — previously only <img> thumbs were constrained,
     so <canvas> previews rendered at intrinsic pixel size and
     burst out of their boxes on mixed-page-size PDFs;
   · uniform grid cells: a thumb's preview area has a fixed height
     and the canvas fits inside it, whatever the page's shape;
   · file/result rows can never push the card wider than the
     screen (long names ellipsis instead of overflowing);
   · business-generator item rows + document preview.
   ================================================================ */
.thumb canvas{max-width:100%;height:auto;display:block;margin:0 auto 6px}
.thumb .cvBox{height:110px;display:flex;align-items:center;justify-content:center;overflow:hidden;margin-bottom:6px}
.thumb .cvBox canvas{max-width:100%;max-height:110px;width:auto;height:auto;margin:0}
.viewCanvas,canvas.pvFit{max-width:100%;height:auto}
/* A-90/W-142 safety net (2026-11-12): EVERY canvas shown on a tool page —
   page previews, stage canvases, copy-targets like #hfCanvas — is capped
   at its container's width, whatever class (or missing class) it carries.
   max-width only: heights stay governed by each canvas's own rules
   (overlay canvases keep height:100%, the signature pad keeps 200px). */
body[data-tool] canvas{max-width:100%}
.fileRow,.batchRow{max-width:100%;min-width:0}
/* A-96 (2026-11-13): the chosen-file row overflowed phone screens on every
   tool page. Cause: .fileList is a grid with no column template, so its
   implicit column sized to the row's min-content — the FULL unbroken file
   name — and the row (a grid item with automatic minimum size) grew past
   its container instead of letting .fn ellipsis-shrink. The minmax(0,1fr)
   track on .fileList + min-width:0 on .fileRow above cap the row at its
   container at any width; the name ellipsises and the size stays visible.
   Measured at 390px: row 382px wide / right edge 422px before, fits after. */
.fileRow .fn,.batchTxt b{min-width:0}
.toolcard{max-width:100%}
.controls .field{min-width:0}
.signStage{position:relative;max-width:520px;margin:14px auto 0;border:2px solid #e0d5f7;border-radius:12px;overflow:hidden;background:#fff}
.signStage canvas{display:block;width:100%;height:auto}
.signStage .sigOv{position:absolute;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;filter:drop-shadow(0 1px 2px rgba(20,10,50,.35))}
.signStage .sigOv:active{cursor:grabbing}
.pvNav{display:flex;gap:10px;align-items:center;justify-content:center;margin-top:10px;flex-wrap:wrap}
.pvNav button{border:1.5px solid #d9cdf2;background:#fff;border-radius:999px;padding:7px 16px;font-family:Sora;font-weight:700;font-size:13.5px;cursor:pointer;color:#33205e}
.pvNav .pgInfo{font-family:Sora;font-weight:700;font-size:13.5px;color:#4B2E83}
.toolScene .pvNav .pgInfo{color:#EFE9FF}
.itemRows{display:grid;gap:10px}
.itemRow{background:rgba(255,255,255,.94);border:1.5px solid #e0d5f7;border-radius:14px;padding:10px 12px;display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1.2fr) minmax(0,.7fr) minmax(0,.9fr) minmax(0,.9fr) auto;gap:8px;align-items:end}
.itemRow .mini{min-width:0}
.itemRow .mini label{font-family:Sora;font-weight:700;font-size:11.5px;color:#4B2E83;display:block;margin-bottom:4px}
.itemRow .mini input{width:100%;border:1.5px solid #d9cdf2;border-radius:9px;padding:8px 9px;font-size:14px;font-family:Inter;color:#251847;background:#fff;min-width:0}
.itemRow .rmItem{border:1.5px solid #e3b7b7;background:#fff5f5;color:#a03d3d;border-radius:9px;padding:8px 10px;cursor:pointer;font-weight:700}
.addItemBtn{border:2px dashed rgba(75,46,131,.4);background:rgba(255,255,255,.85);color:#4B2E83;border-radius:12px;padding:11px;font-family:Sora;font-weight:800;font-size:14px;cursor:pointer;width:100%}
@media(max-width:640px){.itemRow{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.itemRow .mini.name{grid-column:span 2}}
.docPreview{margin-top:16px;text-align:center}
.docPreview canvas{max-width:100%;height:auto;border:2px solid #e0d5f7;border-radius:10px;background:#fff;box-shadow:0 10px 24px -12px rgba(46,26,94,.35)}
.docPreview .pvCap{font-size:12.5px;color:#6d6198;margin-top:6px;font-family:Sora;font-weight:600}
.toolScene .docPreview .pvCap{color:#E9E2FC}
.tplRow{display:flex;gap:8px;flex-wrap:wrap}
.tplRow .tpl{border:2px solid #d9cdf2;background:#fff;border-radius:12px;padding:8px 12px;cursor:pointer;font-family:Sora;font-weight:700;font-size:13px;color:#33205e;text-align:left}
.tplRow .tpl small{display:block;font-family:Inter;font-weight:600;font-size:11px;color:#6D6198;margin-top:2px}
.tplRow .tpl[aria-pressed="true"]{border-color:#F2B134;background:#fdf6e0;box-shadow:0 4px 12px -4px rgba(184,134,11,.45)}
.logoPrev{display:none;margin-top:8px;align-items:center;gap:10px;font-size:13px;color:#4B2E83;font-family:Sora;font-weight:600}
.logoPrev.show{display:flex}
.logoPrev img{height:38px;width:auto;max-width:120px;border:1px solid #e0d5f7;border-radius:8px;background:#fff;padding:3px}

/* Round 45 — placeholders on white inputs (generator item rows) used the
   glass default (near-white lavender) and were effectively invisible.
   Scoped fix: readable muted violet inside white item rows. */
.itemRow ::placeholder{color:#6D6198!important;opacity:1}
/* Round 45 — same placeholder fix for the cover-letter composer panel
   (light panel, white inputs): its page-level rule lost the cascade to
   the glass ::placeholder default, so it lives here with !important. */
.cl-composer ::placeholder{color:#6D6198!important;opacity:1}
.cl-composer input,.cl-composer textarea,.cl-composer select{color:#251847!important;background:#fff!important}

/* Round 47 — TYPED VALUES invisible in generator item rows (owner report,
   invoice screenshot: Quantity "3" / Price "20" white-on-white). Cause:
   the item-row JS sets the type attribute only on the number fields
   (qty/price), so those two alone matched the glass-scene rule
   (.toolScene .controls input[type=number]{color:#fff;background:rgba(255,255,255,.09)}),
   whose specificity (0,3,1) beat .itemRow .mini input (0,2,1) and painted
   white text on the near-white item-row panel. Text fields carry no type
   attribute, never matched the glass rule, and stayed readable — exactly
   the screenshot. Fix: every control inside an item row is a light field,
   whatever its type — dark ink on white, at higher specificity. */
.toolScene .controls .itemRow .mini input,.toolScene .controls .itemRow .mini select,.toolScene .controls .itemRow .mini textarea{color:#251847;background:#fff;border-color:#d9cdf2;box-shadow:inset 0 2px 5px rgba(75,46,131,.05)}
.toolScene .controls .itemRow .mini input:focus,.toolScene .controls .itemRow .mini select:focus,.toolScene .controls .itemRow .mini textarea:focus{border-color:#F2B134;box-shadow:0 0 0 4px rgba(242,177,52,.18)}

/* Header & Footer tool — colour swatches + native colour picker (Round 47) */
.swRow{display:flex;gap:7px;flex-wrap:wrap;align-items:center}
.swRow .swatch{width:30px;height:30px;border-radius:9px;border:2px solid rgba(255,255,255,.45);cursor:pointer;padding:0;box-shadow:inset 0 0 0 1px rgba(37,24,71,.18)}
.swRow .swatch[aria-pressed="true"]{border-color:#F2B134;box-shadow:0 0 0 3px rgba(242,177,52,.35)}
.controls input[type=color]{width:52px;height:38px;padding:2px;border:2px solid #d9cdf2;border-radius:10px;background:#fff;cursor:pointer}
.offVal{font-family:Sora;font-weight:700;font-size:12px;color:#E9E2FC;margin-left:8px}

/* Edit PDF — dedicated editor (Round 47): sticky Word-style toolbar with a
   pinned Done button, full-width page sheets, tap-a-run text layer. */
#editorShell{margin-top:14px}
.edBar{position:sticky;top:8px;z-index:60;background:rgba(34,17,74,.98);border:1.5px solid rgba(255,255,255,.28);border-radius:14px;padding:10px 12px;display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;box-shadow:0 16px 34px -14px rgba(8,3,26,.65)}
.edGroup{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.edBtn{border:1.5px solid rgba(255,255,255,.35);background:rgba(255,255,255,.1);color:#EFE9FF;border-radius:10px;padding:8px 12px;font-family:Sora;font-weight:700;font-size:13.5px;cursor:pointer}
.edBtn:hover{background:rgba(255,255,255,.2)}
.edBtn.on{border-color:#F2B134;background:#FDF6E0;color:#33205E}
.edBtn.done{background:#F2B134;border-color:#F2B134;color:#33200A;font-weight:800;padding:9px 20px;font-size:14.5px}
.edBtn.danger{border-color:#e3b7b7;color:#ffb9b9}
.edBtn.sm{padding:4px 10px;font-size:12px}
.edBar input[type=text]{border:1.5px solid rgba(255,255,255,.3);background:rgba(255,255,255,.94);color:#251847;border-radius:10px;padding:8px 11px;font-family:Inter;font-size:14px;min-width:210px}
.edBar select{border:1.5px solid rgba(255,255,255,.3);background:rgba(255,255,255,.94);color:#251847;border-radius:10px;padding:8px 9px;font-family:Inter;font-size:14px;cursor:pointer}
.edCount{font-family:Sora;font-weight:700;font-size:13px;color:#CDBEF2}
.edBulletRow{flex-basis:100%;display:flex;gap:10px;align-items:flex-start}
.edBulletRow textarea{flex:1;border:1.5px solid rgba(255,255,255,.3);background:rgba(255,255,255,.94);color:#251847;border-radius:10px;padding:9px 11px;font-family:Inter;font-size:14px;resize:vertical}
.edBulletRow span{font-size:12.5px;color:#CDBEF2;max-width:210px;padding-top:4px}
.edHint{flex-basis:100%;margin:0;font-size:13px;color:#CDBEF2}
.runPanel{flex-basis:100%;background:rgba(255,255,255,.97);border-radius:12px;padding:12px 14px;color:#251847}
.runPanel .rpHead{display:flex;justify-content:space-between;align-items:center;font-family:Sora;font-weight:800;font-size:14px;color:#33205E;margin-bottom:8px}
.runPanel .rpHead .edBtn{background:#fff;color:#4B2E83;border-color:#d9cdf2}
.runPanel input[type=text]{width:100%;border:2px solid #d9cdf2;border-radius:10px;padding:10px 12px;font-family:Inter;font-size:15px;color:#251847;background:#fff}
.runPanel .rpMeta{font-size:12.5px;color:#6D6198;margin:8px 0 0;font-family:Sora;font-weight:600}
.runPanel .rpNotice{font-size:13px;color:#8a5a00;background:#FFF4D6;border:1px solid #ecd28a;border-radius:9px;padding:8px 11px;margin:8px 0 0}
.runPanel .rpBtns{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.runPanel .rpBtns .edBtn{background:#fff;color:#4B2E83;border-color:#d9cdf2}
.runPanel .rpBtns .edBtn.done{background:#F2B134;color:#33200A;border-color:#F2B134}
.runPanel .rpBtns .edBtn.danger{color:#a03d3d;border-color:#e3b7b7}
.edPage{position:relative;margin:16px auto;max-width:880px;background:#fff;border-radius:10px;box-shadow:0 18px 40px -16px rgba(8,3,26,.55);overflow:hidden;line-height:0}
.edPage canvas.base{display:block;width:100%;height:auto}
.edPage .ovl{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none}
.edPage .runs{position:absolute;left:0;top:0;width:100%;height:100%}
.edPage .pgTag{position:absolute;right:10px;top:10px;background:rgba(34,17,74,.85);color:#EFE9FF;font-family:Sora;font-weight:700;font-size:12px;padding:4px 10px;border-radius:999px;line-height:1.4}
.runSpan{position:absolute;cursor:text;border-radius:2px;line-height:1}
.runSpan:hover{background:rgba(242,177,52,.30);outline:1px solid rgba(217,148,13,.9)}
.runSpan.sel{background:rgba(242,177,52,.38);outline:2px solid #F2B134}

/* Page zoom for the page editors (A-85 / W-138): the rendered page
   (canvas + overlays) sits in a .zoomStage inside a clipped
   .zoomView; zooming is a CSS transform on the stage, so layout —
   and every getBoundingClientRect fraction reader — stays honest.
   At Fit the view keeps touch-action:pan-y so the page still
   scrolls normally; zoomed in, the view owns the gesture for
   pan/pinch. The zoom bar overlays the page's bottom-left corner. */
.zoomView{position:relative;overflow:hidden;line-height:0;touch-action:pan-y}
.zoomView.zOn{touch-action:none}
.zoomStage{position:relative;transform-origin:0 0;will-change:transform}
.zoomBar{position:absolute;left:10px;bottom:10px;z-index:6;display:flex;align-items:center;gap:6px;background:rgba(34,17,74,.92);border-radius:999px;padding:4px;box-shadow:0 6px 18px rgba(8,3,26,.4);line-height:1}
.zoomBar .zBtn{appearance:none;border:0;cursor:pointer;background:#4B2E83;color:#EFE9FF;font-family:Sora;font-weight:700;font-size:15px;min-width:34px;height:30px;border-radius:999px;padding:0 10px}
.zoomBar .zBtn:hover{background:#5D3DA3}
.zoomBar .zFit{font-size:12.5px}
.zoomBar .zPct{color:#EFE9FF;font-family:Sora;font-weight:700;font-size:12.5px;min-width:42px;text-align:center}

/* Fill PDF Forms — dedicated fill editor (Round 47, Job 5): real AcroForm
   fields rendered fillable in place on the page, signature placement with
   drag + resize (touch-action:none so the page never scrolls mid-drag),
   signature pad modal in front. */
.fldLayer{position:absolute;left:0;top:0;width:100%;height:100%}
.fldOv{position:absolute;box-sizing:border-box;background:rgba(255,246,214,.94);border:1.5px solid #d9930d;border-radius:4px;color:#251847;font-family:Inter;padding:0 4px;margin:0}
.fldOv:focus{outline:2px solid #4B2E83;outline-offset:0;background:#fff}
textarea.fldOv{padding:3px 4px;resize:none;line-height:1.25}
select.fldOv{cursor:pointer}
.fldChk{position:absolute;display:flex;align-items:center;justify-content:center;margin:0;cursor:pointer}
.fldChk input{width:82%;height:82%;max-width:22px;max-height:22px;accent-color:#4B2E83;cursor:pointer;margin:0}
.fldSigBtn{position:absolute;box-sizing:border-box;background:rgba(75,46,131,.92);color:#fff;border:2px dashed #F2B134;border-radius:6px;font-family:Sora;font-weight:700;font-size:12.5px;cursor:pointer;padding:0 6px}
.fldSigBtn:hover{background:#4B2E83}
.sigPlace{position:absolute;box-sizing:border-box;border:1.5px dashed rgba(75,46,131,.7);background:rgba(255,255,255,.3);cursor:move;touch-action:none;line-height:0}
.sigPlace img{width:100%;height:100%;display:block;pointer-events:none}
.szHandle{position:absolute;right:-10px;bottom:-10px;width:20px;height:20px;border-radius:50%;background:#F2B134;border:2px solid #fff;box-shadow:0 2px 6px rgba(8,3,26,.4);cursor:nwse-resize;touch-action:none;z-index:3}
.rmBadge{position:absolute;right:-9px;top:-9px;width:19px;height:19px;border-radius:50%;background:#a03d3d;color:#fff;font-size:11px;font-family:Sora;font-weight:800;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:3;line-height:1;box-shadow:0 2px 6px rgba(8,3,26,.35)}
.stampTxt{position:absolute;transform:translateY(-82%);font-family:Inter;font-size:14px;color:#251847;background:rgba(255,246,214,.88);border:1px dashed #d9930d;border-radius:4px;padding:1px 6px;white-space:nowrap;cursor:move;touch-action:none;line-height:1.3}
.stampTxt .rmBadge{right:-9px;top:-9px}
.sigModal{position:fixed;inset:0;background:rgba(20,8,48,.74);z-index:300;display:flex;align-items:center;justify-content:center;padding:14px}
.sigCard{background:#fff;border-radius:16px;max-width:660px;width:100%;padding:16px 18px;color:#251847;box-shadow:0 30px 60px -20px rgba(8,3,26,.6);max-height:92vh;overflow:auto}
.sigHead{display:flex;justify-content:space-between;align-items:center;font-family:Sora;font-size:16px;color:#33205E}
#fillPad{width:100%;height:220px;border:1.5px solid #d9cdf2;border-radius:10px;background:#fff;touch-action:none;display:block}

/* Crop PDF — free-size drag crop (Round 47, Job 7): the gold box sits on the
   rendered page; drag inside to move, drag corners/edges to resize. The page
   never scrolls mid-drag (pointer capture + touch-action:none). */
.cropStage{position:relative;max-width:860px;margin:8px auto;line-height:0}
.cropCanvas{display:block;width:100%;height:auto;border-radius:8px;box-shadow:0 14px 34px -14px rgba(8,3,26,.55)}
.cropBox{position:absolute;border:2px solid #F2B134;border-radius:2px;cursor:move;touch-action:none;z-index:3;box-sizing:border-box}
.cropHandle{position:absolute;width:18px;height:18px;border-radius:50%;background:#F2B134;border:2px solid #fff;box-shadow:0 2px 6px rgba(8,3,26,.45);z-index:4;touch-action:none;box-sizing:border-box}
.cropHandle.h-nw{left:-10px;top:-10px;cursor:nwse-resize}
.cropHandle.h-n{left:calc(50% - 9px);top:-10px;cursor:ns-resize}
.cropHandle.h-ne{right:-10px;top:-10px;cursor:nesw-resize}
.cropHandle.h-e{right:-10px;top:calc(50% - 9px);cursor:ew-resize}
.cropHandle.h-se{right:-10px;bottom:-10px;cursor:nwse-resize}
.cropHandle.h-s{left:calc(50% - 9px);bottom:-10px;cursor:ns-resize}
.cropHandle.h-sw{left:-10px;bottom:-10px;cursor:nesw-resize}
.cropHandle.h-w{left:-10px;top:calc(50% - 9px);cursor:ew-resize}

.edBar.pinned{position:fixed;top:8px;left:50%;transform:translateX(-50%);max-height:52vh;overflow:auto;z-index:150}

/* ================================================================
   A-97 CONTRAST ROUND (owner report, 2026-11-13: the PDF Inspector
   report rendered white-on-white — the white report card carried
   no ink colour of its own, so its body text inherited the violet
   scene's near-white card colour: #EFE9FF on #fff = 1.18:1, while
   its headings survived only because they had their own dark rule).
   Standing law from the same report: EVERY text must be prominent
   and readable wherever it appears. This section closes the whole
   defect class at the shared level:
   · .reportBox is a WHITE card in every scene — it now carries the
     dark brand ink itself (#251847, 16.15:1 on white) instead of
     inheriting whatever colour the surrounding scene dictates.
   · .logoPrev's caption sits straight on the violet glass in the
     scene — light there (8.81:1); its base dark ink stays correct
     for the light card / embed.
   · Embed (app WebView, light card) rescues for scene-coloured
     text that would otherwise sit pale on white: the generator
     preview caption and the Header & Footer value readouts go to
     the readable muted ink #6d6198 (5.51:1), and the five editor
     pages' inline #C9BFF0 hint paragraphs get the same rescue via
     the attribute-selector pattern already used for #6d6198 above.
   ================================================================ */
.reportBox{color:#251847}
.toolScene .logoPrev{color:#EFE9FF}
html.embed .toolScene .logoPrev{color:#4B2E83}
html.embed .docPreview .pvCap{color:#6d6198}
html.embed .offVal{color:#6d6198}
html.embed .toolScene .toolcard [style*="color:#C9BFF0"]{color:#6d6198!important}

/* ================================================================
   A-98 — RELATED-WISHES CARD TITLES NEVER SPLIT MID-WORD
   (owner report 2026-11-13, phone screenshots of /pdf-to-rtf/,
   /powerpoint-to-pdf/ and /linearize-pdf/: "PDF to Markdo wn",
   "PDF to PowerPo int", "Compre ss PDF", "Metadat a Editor",
   "PDF Inspecto r" — under every tool's Related wishes cards.)
   Root cause: at phone width .relGrid drops to 2 columns, so a
   card is ~170px wide; after card padding (17px x2), the fixed
   46px icon tile and the 12px flex gap, the .wtext title column
   is only ~74px — narrower than long single words (PowerPoint,
   Markdown, Metadata, Inspector, Compress). The Phase-9 rule
   .wcard .wtext h3{overflow-wrap:break-word} (kept for taglines)
   then legally breaks any word that cannot fit a line by itself
   — i.e. mid-word. Titles now wrap ONLY at word boundaries, and
   at <=520px the card stacks (icon tile above, title takes the
   card's full inner width) with a small font step-down, so every
   catalogue word fits whole. Desktop layout untouched.
   ================================================================ */
.wcard h3{overflow-wrap:normal;word-break:normal;hyphens:none}
@media(max-width:520px){
  .relGrid .wcard{flex-direction:column;gap:8px;padding:14px}
  .relGrid .wcard .wtext{width:100%}
  .relGrid .wcard h3{font-size:14.5px}
}

/* ================================================================
   r52 — EDIT PDF SLIM STICKY BAR + DONE ON EVERY ZOOM BAR
   (owner report, 2026-11-13 18:10, with a screen recording: he
   loves the editor itself, but the pinned toolbar panel still sat
   over the top half of the screen while he scrolled pages 1–4,
   and Done lived only inside that panel — after editing page 4
   he had to scroll back up hunting for it). Why r51 was not
   enough: its slim rules lived inside a max-width:720px media
   query (wider phones / tablets / the app WebView got the full
   52vh panel), the slim row could still wrap to two rows, and
   once a text run was tapped the expanded panel followed him
   down the page. Now, at EVERY width:
   · pinned + not expanded = SLIM BAR — one no-wrap row hard-
     capped at 64px tall: 🛠 Tools ▸ · Changes: N · Undo last ·
     ✓ Done, and nothing else. It can never cover more than
     ~64px of the document (overflow hidden enforces the cap).
   · pinned + expanded = the full toolbar; the 🛠 Tools button
     (relabelled ▾ by the page script) is the visible collapse
     control, Apply/Remove/✕ in the run panel collapses back to
     slim, and scrolling well past the expand point does too
     (page script, edPinCheck) unless a run edit is in progress.
   · r53: NO Done on individual pages (Faizan's order — a page-1
     Done sent users to Save before later pages were edited).
     Exactly two finish doors, both the same edFinish() flow: the
     toolbar's ✓ Done at the top, and ONE ✓ Done bar after the
     last page (#edEndBar, styled below), so a multi-page edit is
     finished once, at the end.
   Scoped to the Edit editor (body[data-tool="edit-pdf"]) and
   the pinned state only — the in-flow bar, the Fill editor and
   every other tool are untouched. !important on the hide rules
   because the bullet row / run panel carry inline display
   styles from the page script; !important on the slim width
   because the pin script sets an inline width on the bar. */
#edToolsToggle{display:none}
body[data-tool="edit-pdf"] .edBar.pinned #edToolsToggle{display:inline-block}
body[data-tool="edit-pdf"] .edBar.pinned:not(.expanded){flex-wrap:nowrap;max-height:64px;overflow:hidden;padding:8px 10px;width:auto !important;max-width:calc(100vw - 16px)}
body[data-tool="edit-pdf"] .edBar.pinned:not(.expanded) #edModes,
body[data-tool="edit-pdf"] .edBar.pinned:not(.expanded) #edInk,
body[data-tool="edit-pdf"] .edBar.pinned:not(.expanded) .edBulletRow,
body[data-tool="edit-pdf"] .edBar.pinned:not(.expanded) .edHint,
body[data-tool="edit-pdf"] .edBar.pinned:not(.expanded) .runPanel{display:none !important}
body[data-tool="edit-pdf"] .edBar.pinned:not(.expanded) .edGroup{flex-wrap:nowrap;gap:6px;min-width:0}
body[data-tool="edit-pdf"] .edBar.pinned .edBtn{white-space:nowrap}
body[data-tool="edit-pdf"] .edBar.pinned:not(.expanded) .edBtn{padding:6px 8px;font-size:12.5px}
body[data-tool="edit-pdf"] .edBar.pinned:not(.expanded) .edBtn.done{padding:7px 12px;font-size:13px}
body[data-tool="edit-pdf"] .edBar.pinned:not(.expanded) .edCount{font-size:12px;white-space:nowrap}
@media (max-width:720px){
  body[data-tool="edit-pdf"] .edBar.pinned .edGroup{gap:6px}
  body[data-tool="edit-pdf"] .edBar.pinned .edBtn{padding:6px 9px;font-size:12.5px}
  body[data-tool="edit-pdf"] .edBar.pinned .edBtn.done{padding:7px 14px;font-size:13.5px}
  body[data-tool="edit-pdf"] .edBar.pinned .edCount{font-size:12px}
  body[data-tool="edit-pdf"] .edBar.pinned:not(.expanded) .edBtn{padding:6px 8px;font-size:12.5px}
  body[data-tool="edit-pdf"] .edBar.pinned:not(.expanded) .edBtn.done{padding:7px 12px;font-size:13px}
}
/* r53: the single end-of-document Done bar — sits after the LAST
   page inside the editor shell; hidden with the shell until a PDF
   is open, and hidden again once Done is pressed. */
#edEndBar{margin:22px auto 6px;max-width:520px;text-align:center;padding:18px 16px;border:2px dashed #C9A227;border-radius:14px;background:#FFF9E8}
#edEndBar .edEndHint{margin:0 0 12px;font-size:14.5px;color:#5A4A12}
#edEndBar .edBtn.done{background:#F2B134;color:#33200A;font-weight:800;font-size:16.5px;padding:12px 26px;border-radius:10px}
#edEndBar .edBtn.done:hover{background:#FFC95E}

/* ================================================================
   A-114 — EDIT PDF: A REAL DESKTOP WORKSPACE (Faizan's order,
   2026-11-14 — "Desktop view بڑا کر دو"; verified live on desktop
   first: the editor sat in a ~783px phone-like column in the
   middle of a 1920px screen, the document ~725px wide, ~560px of
   empty scene on each side, and the pinned toolbar shrank to a
   ~350px centred pill). Desktop only — every rule below lives
   inside min-width:1024px, so phone/tablet behaviour is
   byte-for-byte what it was:
   · the toolbox widens to a 1500px workspace and the page sheet
     to 1420px; the page script drives the pdf.js render scale
     from that width (A-114 in edit-pdf/index.html), so the page
     is re-rendered large and crisp, never CSS-stretched.
   · the in-flow toolbar spreads its groups across the bar
     (modes left, ink middle, actions right) via space-between.
   · the PINNED bar takes the workspace's own width instead of
     the r52 slim pill's auto width: min(1408px, 100vw-92px) is
     exactly the in-flow bar's width at every viewport (toolbox
     1500 max − 2×20 padding − 2×26 card padding). The slim
     CONTENT stays (r52 law: Tools ▸ · Changes · Undo · Done,
     64px cap untouched) but spreads across that width — Tools
     toggle left, Changes count pushed right against Undo/Done.
   Scoped to body[data-tool="edit-pdf"]: the Fill editor and
   every other tool keep the shared 820px toolbox. */
@media (min-width:1024px){
  body[data-tool="edit-pdf"] .toolbox{max-width:1500px}
  body[data-tool="edit-pdf"] .edPage{max-width:1420px}
  body[data-tool="edit-pdf"] .edBar{justify-content:space-between}
  body[data-tool="edit-pdf"] .edBar.pinned{width:min(1408px,calc(100vw - 92px)) !important}
  body[data-tool="edit-pdf"] .edBar.pinned:not(.expanded){width:min(1408px,calc(100vw - 92px)) !important;max-width:calc(100vw - 16px)}
  body[data-tool="edit-pdf"] .edBar.pinned:not(.expanded) .edGroup{flex:1 1 auto}
  body[data-tool="edit-pdf"] .edBar.pinned:not(.expanded) .edCount{margin-left:auto}
}

/* ================================================================
   PJ CUSTOM DROPDOWNS (pjdd) — parity fix 2026-11-18.
   Native <select> popups inside the app WebView render as a plain
   system list that can sit wider than the screen and clip long
   labels. Every tool-card select is therefore mirrored by an
   in-flow, in-screen panel built by the enhancer at the end of
   tool.js: nothing overlaps the page, long labels wrap in full,
   and lists over 6 options get a filter box (the "search" the
   native popup never offered). The native select stays in the
   DOM (visually hidden) as the single source of truth, so every
   existing change handler and value read keeps working.
   ================================================================ */
body[data-tool] .controls select{font-size:16px;max-width:100%}
.pjdd{position:relative;min-width:0}
.pjdd-native{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important;min-width:0!important;padding:0!important;border:0!important;margin:0!important}
.pjdd-btn{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff;border:2px solid #d9cdf2;border-radius:12px;padding:11px 14px;font-family:Inter,system-ui,sans-serif;font-size:16px;line-height:1.3;color:#251847;cursor:pointer;text-align:left;box-shadow:inset 0 2px 5px rgba(75,46,131,.05)}
.pjdd-btn:focus-visible{border-color:#F2B134;box-shadow:0 0 0 4px rgba(242,177,52,.18);outline:none}
.pjdd-btn[disabled]{opacity:.55;cursor:not-allowed}
.pjdd-lab{white-space:normal;overflow-wrap:anywhere}
.pjdd-chev{flex:none;width:16px;height:16px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 9l7 7 7-7' fill='none' stroke='%23D9940D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
.toolScene .pjdd-btn{background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.24);color:#fff;box-shadow:inset 0 2px 6px rgba(13,6,32,.35)}
html.embed .toolScene .pjdd-btn{background:#fff;border-color:#d9cdf2;color:#251847;box-shadow:inset 0 2px 5px rgba(75,46,131,.05)}
.pjdd-panel{margin-top:8px;background:#fff;border:2px solid #4B2E83;border-radius:14px;box-shadow:0 14px 30px rgba(75,46,131,.18);overflow:hidden}
.pjdd-search{width:100%;border:0;border-bottom:1.5px solid #e0d5f7;padding:11px 14px;font-size:16px;font-family:Inter,system-ui,sans-serif;color:#251847;background:#fff;outline:none}
.pjdd-list{max-height:44vh;overflow-y:auto}
.pjdd-opt{display:block;width:100%;text-align:left;background:#fff;border:0;border-bottom:1px solid #f0eafd;padding:11px 14px;font-size:15.5px;line-height:1.35;font-family:Inter,system-ui,sans-serif;color:#251847;cursor:pointer;white-space:normal;overflow-wrap:anywhere}
.pjdd-opt:hover,.pjdd-opt:focus-visible{background:#f8f5ff;outline:none}
.pjdd-opt.sel{background:#f4efff;font-weight:700;box-shadow:inset 3px 0 0 #F2B134}
.pjdd-empty{padding:12px 14px;color:#6d6198;font-size:14.5px}
