/* WhizPDF design system v2
   Layout: restrained Western SaaS. Neutrals carry the page; color lives ONLY
   in icon tiles, badges and the hero illustration. Blue #2563eb is the single
   action color (buttons / links). Every tool card carries its own hue via --c. */
* { margin:0; padding:0; box-sizing:border-box; }
:root {
  --ink:#0f172a; --muted:#64748b; --line:#e2e8f0; --line-2:#cbd5e1;
  --accent:#2563eb; --accent-ink:#1d4ed8; --bg:#f8fafc; --card:#ffffff;
  --radius:12px;
}
html { scroll-behavior:smooth; }
body {
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,"Helvetica Neue",Arial,sans-serif;
  color:var(--ink); background:var(--bg);
  font-size:16px; line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
.wrap { max-width:1120px; margin:0 auto; padding:0 24px; }
a { color:var(--accent); text-decoration:none; }
a:hover { color:var(--accent-ink); text-decoration:underline; }
h1 { font-size:clamp(30px,4.6vw,46px); line-height:1.12; letter-spacing:-0.025em; font-weight:800; }
h2 { font-size:clamp(21px,2.6vw,27px); letter-spacing:-0.015em; margin:0 0 6px; font-weight:750; }
h3 { font-size:16px; }
p { color:var(--ink); }
.section-sub { color:var(--muted); margin-bottom:26px; }

/* Header */
.site-header { background:rgba(255,255,255,.92); backdrop-filter:saturate(1.4) blur(8px); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:50; }
.header-inner { display:flex; align-items:center; justify-content:space-between; height:62px; position:relative; }
.logo { display:inline-flex; align-items:center; gap:9px; font-weight:750; font-size:18px; color:var(--ink); letter-spacing:-0.01em; }
.logo:hover { text-decoration:none; }
.nav { display:flex; align-items:center; gap:26px; }
.nav a { color:var(--ink); font-size:14.5px; font-weight:550; }
.nav a:hover { color:var(--accent); text-decoration:none; }
.nav-toggle { display:none; background:none; border:none; font-size:20px; cursor:pointer; color:var(--ink); }

/* ---- header mega menu ---- */
/* Anchor the dropdown to the header bar, not the button: the nav sits on the
   RIGHT side, so button-relative left offsets push the panel off-screen.
   padding-bottom/negative margin extend the hover area across the panel gap. */
.nav-mega { position:static; padding-bottom:16px; margin-bottom:-16px; }
.nav-mega-btn { display:flex; align-items:center; gap:6px; background:none; border:0;
  padding:8px 0; font:inherit; color:var(--ink); font-size:14.5px; font-weight:550;
  cursor:pointer; }
.nav-mega-btn:hover { color:var(--accent); }
.nav-mega-btn .car { transition:transform .15s ease; }
.nav-mega:hover .car, .nav-mega:focus-within .car, .nav-mega.mega-open .car { transform:rotate(180deg); }
.nav-mega-panel { display:none; position:absolute; top:calc(100% + 4px); left:0; right:0;
  margin:0 auto; width:max-content; max-width:calc(100vw - 48px); background:#fff; border:1px solid var(--line);
  border-radius:14px; padding:22px 28px 24px; z-index:60;
  grid-template-columns:repeat(5, auto); gap:18px 22px; justify-content:center;
  max-height:calc(100vh - 90px); overflow-y:auto;
  box-shadow:0 18px 50px rgba(15,23,42,.16); }
.nav-mega:hover .nav-mega-panel, .nav-mega:focus-within .nav-mega-panel,
.nav-mega.mega-open .nav-mega-panel { display:grid; }
.mega-cat-head { margin:0 0 9px; font-size:11.5px; font-weight:700;
  letter-spacing:.07em; text-transform:uppercase; color:var(--c,#2563eb); }
.mega-cat { grid-column:span 1; }
.mega-list { display:grid; grid-template-columns:minmax(0,1fr); gap:1px; }
.mega-item { display:flex; align-items:center; gap:9px; padding:5px 6px; margin:0 -6px;
  border-radius:8px; color:var(--ink); font-size:13px; text-decoration:none; }
.mega-item:hover { background:var(--soft,#f4f6f9); text-decoration:none; color:var(--accent); }
.mega-item .tico { flex:none; }
.mega-item span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }

/* Buttons */
.btn { display:inline-block; padding:9px 18px; border-radius:9px; font-size:14.5px; font-weight:650; border:1px solid transparent; cursor:pointer; letter-spacing:0; }
.btn:hover { text-decoration:none; }
.btn-primary { background:var(--accent); color:#fff; box-shadow:0 1px 2px rgba(37,99,235,.35), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { background:var(--accent-ink); color:#fff; }
.btn-ghost { border-color:var(--line-2); color:var(--ink); background:#fff; }
.btn-ghost:hover { border-color:#94a3b8; }
.btn-lg { padding:12px 26px; font-size:15.5px; border-radius:10px; }

/* Hero */
.hero { background:linear-gradient(180deg,#eef4fe 0%,#f8fafc 78%,var(--bg) 100%); border-bottom:1px solid var(--line); overflow:hidden; }
.hero-inner { display:grid; grid-template-columns:1.06fr .94fr; gap:40px; align-items:center; padding-top:64px; padding-bottom:56px; }
.hero-badge { display:inline-block; font-size:12.5px; font-weight:650; color:var(--accent-ink); background:#fff; border:1px solid #d7e3fb; border-radius:99px; padding:5px 15px; margin-bottom:20px; box-shadow:0 1px 2px rgba(37,99,235,.06); }
.hero h1 { max-width:520px; margin:0 0 16px; }
.hero-sub { color:var(--muted); max-width:480px; margin:0 0 28px; font-size:17px; }
.hero-actions { margin-bottom:20px; }
.hero-chips { display:flex; gap:8px; flex-wrap:wrap; }
.chip { display:inline-flex; align-items:center; gap:6px; font-size:12.5px; font-weight:600; color:#475569; background:#fff; border:1px solid var(--line); border-radius:99px; padding:5px 12px; }
.hero-art { display:flex; justify-content:center; }
.hero-art svg { width:min(420px,100%); height:auto; }

/* Trust band */
.trust-band { display:flex; gap:12px; align-items:flex-start; background:#f0f7f1; border:1px solid #d8e9db; border-radius:var(--radius); padding:14px 18px; margin:28px auto 8px; font-size:14.5px; }
.trust-band svg { flex:none; margin-top:2px; }
.trust-band div { color:#3d5a45; }

/* Tool grids */
section { padding:38px 0; }
.cat-block { margin-bottom:30px; }
.cat-head { display:flex; align-items:baseline; gap:10px; margin-bottom:6px; }
.cat-dot { flex:none; width:9px; height:9px; border-radius:3px; background:var(--c,#2563eb); align-self:center; }
.cat-head h3 { font-size:16px; font-weight:750; letter-spacing:-0.01em; color:var(--ink); text-transform:none; margin:0; }
.cat-head p { font-size:13.5px; color:var(--muted); margin:0; }
.tools-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(248px,1fr)); gap:14px; margin-top:12px; }
.tool-card {
  display:flex; gap:13px; align-items:flex-start;
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  padding:16px; color:var(--ink);
  transition:border-color .16s, box-shadow .16s, transform .16s;
}
.tool-card:hover {
  text-decoration:none; color:var(--ink);
  border-color:color-mix(in srgb, var(--c,#2563eb) 45%, white);
  box-shadow:0 6px 18px color-mix(in srgb, var(--c,#2563eb) 13%, transparent);
  transform:translateY(-2px);
}
.tico { flex:none; display:inline-flex; align-items:center; justify-content:center; }
.tc-body { min-width:0; }
.tool-card b { display:block; font-size:14.5px; margin:1px 0 3px; letter-spacing:-0.01em; }
.tool-card span.tc-body > span { display:block; font-size:13px; color:var(--muted); line-height:1.5; }

/* Why grid */
.why-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:14px; }
.why-card { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:22px 20px; }
.why-card svg { margin-bottom:12px; }
.why-card h3 { margin-bottom:6px; font-size:15px; font-weight:700; }
.why-card p { color:var(--muted); font-size:14px; }

/* Breadcrumb + tool page */
.breadcrumb { padding-top:22px; font-size:13px; color:var(--muted); display:flex; align-items:center; }
.crumb-dot { width:8px; height:8px; border-radius:3px; background:var(--c,#2563eb); margin-right:9px; flex:none; }
.breadcrumb span { margin:0 6px; color:#c3c9d2; }
.breadcrumb > span:last-child { margin:0; color:var(--muted); }
.tool-page { padding:10px 24px 48px; }
.tool-head { display:flex; gap:16px; align-items:center; margin:12px 0 22px; }
.tool-head-txt h1 { font-size:clamp(26px,3.4vw,36px); }
.tool-sub { color:var(--muted); font-size:16px; margin-top:5px; max-width:640px; }

/* Dropzone — the money element */
.dropzone {
  border:1.5px dashed var(--line-2); border-radius:16px; background:#fff;
  padding:46px 24px 38px; text-align:center; cursor:pointer;
  transition:border-color .16s, background .16s, box-shadow .16s;
}
.dropzone:hover, .dropzone.dragover {
  border-color:var(--c,var(--accent));
  background:#fbfdff;
  box-shadow:0 4px 22px color-mix(in srgb, var(--c,var(--accent)) 10%, transparent);
}
.dropzone.dragover { background:#f4f8ff; }
.dz-ico {
  width:60px; height:60px; border-radius:50%; display:inline-flex;
  align-items:center; justify-content:center;
  background:color-mix(in srgb, var(--c,#2563eb) 11%, white);
  color:var(--c,var(--accent)); margin-bottom:14px;
}
.dz-main { font-weight:650; font-size:16.5px; margin-bottom:16px; }
.dz-btn { pointer-events:none; }
.dz-note { font-size:13px; color:var(--muted); margin-top:14px; }
.dz-privacy { display:flex; align-items:center; justify-content:center; gap:6px; font-size:12.5px; color:#94a3b8; margin-top:10px; max-width:520px; margin-left:auto; margin-right:auto; line-height:1.5; }
.dz-privacy svg { flex:none; }
.dz-quota { font-size:13px; color:var(--muted); margin:12px 2px 0; }

/* Sections in tool page */
.tool-section { margin-top:38px; }
.steps { margin-left:0; list-style:none; counter-reset:step; }
.steps li { counter-increment:step; margin:10px 0; padding-left:40px; position:relative; }
.steps li::before {
  content:counter(step); position:absolute; left:0; top:1px;
  width:26px; height:26px; border-radius:50%;
  background:color-mix(in srgb, var(--c,#2563eb) 10%, white);
  color:var(--c,var(--accent)); font-size:13px; font-weight:700;
  display:flex; align-items:center; justify-content:center;
}
.features { list-style:none; }
.features li { margin:9px 0; padding-left:28px; position:relative; }
.features li::before { content:""; position:absolute; left:2px; top:7px; width:14px; height:14px; border-radius:50%; background:color-mix(in srgb, var(--c,#2563eb) 12%, white); border:4px solid var(--c,#2563eb); box-sizing:border-box; }

/* FAQ */
.faq details { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:13px 18px; margin-bottom:9px; }
.faq details[open] { border-color:var(--line-2); }
.faq summary { cursor:pointer; font-weight:650; font-size:14.5px; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:12px; }
.faq summary::after { content:"+"; color:var(--muted); font-size:18px; flex:none; }
.faq details[open] summary::after { content:"–"; }
.faq details p { margin-top:8px; color:var(--muted); font-size:14px; }

/* Related */
.related-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(248px,1fr)); gap:14px; }

/* Simple pages */
.simple-page { padding:44px 24px 60px; max-width:780px; }
.simple-page h1 { margin-bottom:18px; }
.simple-page h2 { font-size:17px; margin:24px 0 8px; }
.simple-page p, .simple-page li { color:#374151; font-size:14.5px; margin:7px 0; }
.simple-page ul, .simple-page ol { margin-left:22px; }
.draft-note { font-size:13px; color:#92400e; background:#fffbeb; border:1px solid #fde68a; border-radius:8px; padding:8px 14px; margin-bottom:16px; }

/* Pricing */
.price-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:16px; margin:24px 0; }
.price-card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:26px; }
.price-card.featured { border-color:var(--accent); box-shadow:0 4px 18px rgba(37,99,235,.12); }
.price-card .plan { font-size:13px; font-weight:650; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; }
.price-card .amount { font-size:34px; font-weight:800; margin:8px 0 2px; letter-spacing:-0.02em; }
.price-card .per { font-size:13px; color:var(--muted); }
.price-card ul { list-style:none; margin:16px 0 20px; }
.price-card li { font-size:14px; margin:7px 0; padding-left:26px; position:relative; }
.price-card li::before { content:""; position:absolute; left:0; top:5px; width:14px; height:14px; border-radius:50%; background:#e8f0fe; border:4px solid var(--accent); box-sizing:border-box; }
.price-badge { display:inline-block; margin-left:8px; padding:2px 8px; border-radius:99px; background:#ecfdf3; color:#067647; border:1px solid #abefc6; font-size:11px; font-weight:700; letter-spacing:.02em; vertical-align:2px; text-transform:none; }

/* Footer */
.site-footer { background:#0f172a; color:#9ca3af; margin-top:48px; padding:48px 0 26px; font-size:13.5px; }
.footer-grid { display:grid; grid-template-columns:1.4fr 1.6fr .8fr; gap:34px; }
.footer-brand .logo { color:#fff; }
.footer-tag { color:#d1d5db; margin:10px 0 6px; }
.footer-privacy { font-size:12.5px; color:#6b7280; }
.site-footer h4 { color:#fff; font-size:12.5px; text-transform:uppercase; letter-spacing:.05em; margin:0 0 10px; }
.site-footer a { display:block; color:#9ca3af; margin:6px 0; }
.site-footer a:hover { color:#fff; text-decoration:none; }
.copyright { border-top:1px solid #1e293b; margin-top:30px; padding-top:18px; font-size:12.5px; }

/* Cookie */
.cookie-bar { position:fixed; bottom:16px; left:50%; transform:translateX(-50%); background:#fff; border:1px solid var(--line); border-radius:10px; box-shadow:0 6px 24px rgba(15,23,42,.14); padding:12px 18px; display:flex; gap:16px; align-items:center; font-size:13.5px; z-index:100; max-width:92vw; }
.cookie-bar button { margin-left:auto; }

/* Responsive */
@media (max-width:1140px) and (min-width:761px) {
  .nav-mega-panel { grid-template-columns:repeat(3, minmax(0,1fr));
    width:min(880px, calc(100vw - 40px)); }
}
@media (max-width:900px) {
  .hero-inner { grid-template-columns:1fr; gap:8px; padding-top:44px; padding-bottom:40px; }
  .hero-art { display:none; }
}
@media (max-width:760px) {
  .nav { display:none; position:absolute; top:62px; left:0; right:0; background:#fff; border-bottom:1px solid var(--line); flex-direction:column; padding:16px 24px; gap:14px; align-items:flex-start; max-height:calc(100vh - 62px); overflow-y:auto; }
  .nav.open { display:flex; }
  .nav-toggle { display:block; }
  .nav-mega-panel { position:static; display:none; width:100%; border:0; border-radius:0;
    padding:4px 0 4px 10px; box-shadow:none; grid-template-columns:1fr; gap:14px;
    max-height:none; overflow:visible; }
  .nav-mega.mega-open .nav-mega-panel { display:grid; }
  .footer-grid { grid-template-columns:1fr; gap:24px; }
  .tool-head { flex-direction:row; }
}

/* ---- Blog ---- */
.blog-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:16px; margin-top:26px; }
.blog-card { display:flex; flex-direction:column; gap:6px; padding:20px; border:1px solid var(--line); border-radius:12px; background:var(--card); color:inherit; transition:box-shadow .15s,transform .15s; }
.blog-card:hover { box-shadow:0 6px 20px rgba(15,23,42,.08); transform:translateY(-2px); color:inherit; text-decoration:none; }
.blog-card .bc-date { font-size:12.5px; color:var(--muted); }
.blog-card b { font-size:16.5px; line-height:1.35; color:var(--ink); }
.blog-card .bc-desc { font-size:13.5px; color:#475569; line-height:1.55; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.post-meta { font-size:13px; color:var(--muted); margin:0 0 8px; }
.post-body { font-size:16px; line-height:1.75; color:#1e293b; max-width:760px; }
.post-body h2 { font-size:22px; margin:34px 0 12px; color:var(--ink); }
.post-body p { margin:14px 0; }
.post-body ul, .post-body ol { margin:14px 0; padding-left:24px; }
.post-body li { margin:7px 0; }
.post-body a { color:var(--accent); text-decoration:underline; text-underline-offset:2px; }
.post-cta { margin-top:40px; padding:22px 24px; border:1px solid var(--line); border-radius:14px; background:var(--card); display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.post-cta p { margin:0; font-weight:600; color:var(--ink); }

/* ---- Account / Contact / FAQ ---- */
.account-wrap { display:flex; flex-direction:column; align-items:center; padding:56px 20px 72px; }
.account-card { width:100%; max-width:420px; background:var(--card); border:1px solid var(--line); border-radius:16px; padding:36px 34px; box-shadow:0 1px 3px rgba(15,23,42,.05); }
.account-card h1 { font-size:23px; margin:0 0 6px; }
.acc-sub { color:var(--muted); font-size:14.5px; margin:0 0 24px; }
.btn-google { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; border:1px solid var(--line-2); border-radius:10px; padding:11px 14px; background:#fff; color:var(--ink); font-weight:600; font-size:14.5px; }
.btn-google:hover { background:#f8fafc; color:var(--ink); text-decoration:none; }
.acc-divider { display:flex; align-items:center; gap:12px; margin:20px 0; color:var(--muted); font-size:12.5px; text-transform:uppercase; letter-spacing:.04em; }
.acc-divider::before, .acc-divider::after { content:""; flex:1; height:1px; background:var(--line); }
.acc-form label { display:block; font-size:13.5px; font-weight:600; color:var(--ink); margin:14px 0 6px; }
.acc-form input { width:100%; box-sizing:border-box; border:1px solid var(--line-2); border-radius:10px; padding:11px 13px; font-size:15px; background:#fff; }
.acc-form input:focus { outline:2px solid var(--accent); outline-offset:-1px; border-color:var(--accent); }
.acc-row { display:flex; align-items:baseline; justify-content:space-between; }
.acc-forgot { font-size:13px; }
.acc-hint { font-size:12.5px; color:var(--muted); margin:6px 0 0; }
.acc-submit { width:100%; margin-top:22px; }
.acc-submit.is-busy { opacity:.7; cursor:wait; }
.acc-alt { font-size:14px; color:var(--muted); margin:20px 0 0; text-align:center; }
.acc-legal { font-size:12.5px; color:var(--muted); margin:16px 0 0; line-height:1.5; }
.acc-legal a { text-decoration:underline; }
.acc-note { max-width:420px; text-align:center; font-size:13px; color:var(--muted); margin-top:18px; }
.contact-grid { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); gap:36px; margin-top:8px; }
.contact-form label { display:block; font-size:13.5px; font-weight:600; margin:16px 0 6px; }
.contact-form input, .contact-form select, .contact-form textarea { width:100%; box-sizing:border-box; border:1px solid var(--line-2); border-radius:10px; padding:11px 13px; font-size:15px; font-family:inherit; background:#fff; }
.contact-form textarea { resize:vertical; }
.contact-form .btn { margin-top:20px; }
.contact-side h2 { font-size:17px; margin:26px 0 10px; }
.contact-side p { color:#475569; font-size:14.5px; line-height:1.65; }
.contact-mail { font-weight:600; }
@media (max-width:760px) { .contact-grid { grid-template-columns:1fr; } }
.faq-list { max-width:760px; }
@media (max-width:600px) { .account-card { padding:28px 22px; } }
.tool-intro { max-width:760px; font-size:15.5px; line-height:1.7; color:#475569; margin:26px 0 6px; }
.tool-intro { max-width:760px; font-size:15.5px; line-height:1.7; color:#475569; margin:26px 0 6px; }

/* ---- Checkout ---- */
.checkout-page { padding:48px 20px 80px; }
.checkout-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:32px; max-width:860px; margin-top:28px; }
.ck-plan { background:var(--card); border:1px solid var(--line); border-radius:16px; padding:28px 26px; }
.ck-plan-head { display:flex; align-items:center; gap:10px; font-size:17px; }
.ck-badge { background:#1e293b; color:#fff; font-size:11.5px; font-weight:700; letter-spacing:.06em; border-radius:6px; padding:3px 8px; }
.ck-amount { font-size:40px; font-weight:700; color:var(--ink); margin:18px 0 4px; }
.ck-amount span { font-size:14px; font-weight:400; color:var(--muted); }
.ck-features { list-style:none; margin:18px 0 0; padding:0; }
.ck-features li { padding:9px 0 9px 26px; position:relative; border-bottom:1px dashed var(--line); font-size:14.5px; color:#1e293b; }
.ck-features li:last-child { border-bottom:none; }
.ck-features li::before { content:""; position:absolute; left:2px; top:14px; width:14px; height:8px; border-left:2.5px solid #16a34a; border-bottom:2.5px solid #16a34a; transform:rotate(-45deg); }
.ck-back { display:inline-block; margin-top:20px; font-size:13.5px; }
.ck-pay { background:var(--card); border:1px solid var(--line); border-radius:16px; padding:28px 26px; }
.ck-pay h2 { font-size:19px; margin:0 0 8px; }
.ck-pay-note { font-size:13.5px; color:var(--muted); line-height:1.55; margin:0 0 20px; }
.ck-state { font-size:14px; font-weight:600; margin:16px 0 0; min-height:1em; }
.ck-state.ck-ok { color:#16a34a; }
.ck-state.ck-warn { color:#b45309; }
.ck-msg { font-size:13px; color:var(--muted); margin:8px 0 0; }
.ck-secure { font-size:12.5px; color:var(--muted); margin:18px 0 0; line-height:1.5; }
@media (max-width:720px) { .checkout-grid { grid-template-columns:1fr; } }

/* ---- Checkout ---- */
.checkout-page { padding:48px 20px 80px; }
.checkout-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:32px; max-width:860px; margin-top:28px; }
.ck-plan { background:var(--card); border:1px solid var(--line); border-radius:16px; padding:28px 26px; }
.ck-plan-head { display:flex; align-items:center; gap:10px; font-size:17px; }
.ck-badge { background:#1e293b; color:#fff; font-size:11.5px; font-weight:700; letter-spacing:.06em; border-radius:6px; padding:3px 8px; }
.ck-amount { font-size:40px; font-weight:700; color:var(--ink); margin:18px 0 4px; }
.ck-amount span { font-size:14px; font-weight:400; color:var(--muted); }
.ck-features { list-style:none; margin:18px 0 0; padding:0; }
.ck-features li { padding:9px 0 9px 26px; position:relative; border-bottom:1px dashed var(--line); font-size:14.5px; color:#1e293b; }
.ck-features li:last-child { border-bottom:none; }
.ck-features li::before { content:""; position:absolute; left:2px; top:14px; width:14px; height:8px; border-left:2.5px solid #16a34a; border-bottom:2.5px solid #16a34a; transform:rotate(-45deg); }
.ck-back { display:inline-block; margin-top:20px; font-size:13.5px; }
.ck-pay { background:var(--card); border:1px solid var(--line); border-radius:16px; padding:28px 26px; }
.ck-pay h2 { font-size:19px; margin:0 0 8px; }
.ck-pay-note { font-size:13.5px; color:var(--muted); line-height:1.55; margin:0 0 20px; }
.ck-state { font-size:14px; font-weight:600; margin:16px 0 0; min-height:1em; }
.ck-state.ck-ok { color:#16a34a; }
.ck-state.ck-warn { color:#b45309; }
.ck-msg { font-size:13px; color:var(--muted); margin:8px 0 0; }
.ck-secure { font-size:12.5px; color:var(--muted); margin:18px 0 0; line-height:1.5; }
@media (max-width:720px) { .checkout-grid { grid-template-columns:1fr; } }

/* ---------------- conversion panel ---------------- */
.conv-panel {
  margin:14px auto 0; max-width:640px;
  background:var(--card); border:1px solid var(--line);
  border-radius:var(--radius); padding:18px 20px;
  box-shadow:0 8px 24px rgba(15,23,42,.06);
}
.conv-file { display:flex; align-items:center; gap:10px; }
.conv-file-ico {
  flex:none; width:38px; height:38px; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  background:color-mix(in srgb, var(--c, #2563eb) 12%, #fff);
  color:var(--c, #2563eb);
}
.conv-file-name {
  flex:1; min-width:0; font-weight:600; font-size:14.5px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.conv-close {
  flex:none; width:28px; height:28px; border:1px solid var(--line);
  border-radius:8px; background:#fff; color:var(--muted);
  display:flex; align-items:center; justify-content:center; cursor:pointer;
}
.conv-close:hover { color:var(--ink); border-color:var(--line-2); }
.conv-progress { margin-top:14px; }
.conv-bar {
  height:6px; border-radius:99px; background:#eef2f7; overflow:hidden;
}
.conv-bar-fill {
  height:100%; width:0%; border-radius:99px;
  background:var(--c, var(--accent));
  transition:width .35s ease;
}
.conv-status { font-size:13px; color:var(--muted); margin-top:8px; }
.conv-result { margin-top:14px; }
.conv-done-msg { font-weight:650; font-size:15px; color:#15803d; }
.conv-actions { display:flex; gap:10px; margin-top:12px; flex-wrap:wrap; }
.conv-error {
  margin-top:12px; font-size:13.5px; color:#b91c1c;
  background:#fef2f2; border:1px solid #fecaca;
  border-radius:9px; padding:9px 12px; line-height:1.5;
}
.conv-error .quota-signup-link {
  color:#1d4ed8; font-weight:600; text-decoration:underline;
}

/* ---------------- tool option panel ---------------- */
.opt-panel {
  margin:18px auto 0; max-width:640px;
  background:var(--card); border:1px solid var(--line);
  border-radius:var(--radius); padding:18px 20px;
}
.opt-title { font-size:15px; font-weight:700; color:var(--ink); margin:0 0 12px; }
.opt-group { display:grid; gap:8px; }
.opt-card {
  display:flex; align-items:flex-start; gap:10px;
  border:1.5px solid var(--line); border-radius:10px;
  padding:10px 12px; cursor:pointer; transition:border-color .15s, background .15s;
}
.opt-card:hover { border-color:var(--line-2); background:#fafbff; }
.opt-card.opt-checked { border-color:var(--accent); background:#eff6ff; }
.opt-card input { margin-top:3px; accent-color:var(--accent); }
.opt-card-txt b { display:block; font-size:14px; color:var(--ink); }
.opt-desc { display:block; font-size:12.5px; color:var(--muted); margin-top:2px; line-height:1.45; }
.opt-field { margin-top:12px; }
.opt-field label { display:block; font-size:13px; font-weight:600; color:#374151; margin-bottom:5px; }
.opt-field input, .opt-field select {
  width:100%; max-width:380px; padding:9px 12px; font-size:14px;
  border:1.5px solid var(--line); border-radius:9px; background:#fff; color:var(--ink);
}
.opt-field input:focus, .opt-field select:focus {
  outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(37,99,235,.12);
}
.opt-field input.opt-invalid { border-color:#dc2626; }
.opt-field select { max-width:200px; }
.opt-msg { margin:10px 0 0; font-size:13px; color:#b91c1c; }
.opt-msg.ok { color:#15803d; }
.opt-start { margin-top:14px; width:100%; }
.opt-start:disabled { opacity:.5; cursor:not-allowed; }
.opt-urlbtn { margin-top:10px; width:100%; }

/* ---------- page editor workbench (split / organize / rotate / scan) ---------- */
.ed-overlay { position:fixed; inset:0; z-index:90; background:#f6f7f9;
  display:flex; flex-direction:column; animation:edIn .18s ease; }
@keyframes edIn { from { opacity:0; } to { opacity:1; } }
.ed-top { display:flex; align-items:center; gap:14px; padding:14px 22px;
  background:#fff; border-bottom:1px solid var(--line,#e5e7eb); }
.ed-title { font-weight:600; font-size:14.5px; color:#111827;
  max-width:340px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ed-count { font-size:13px; color:#6b7280; }
.ed-close { margin-left:auto; border:1px solid var(--line,#e5e7eb); background:#fff;
  border-radius:9px; width:34px; height:34px; display:grid; place-items:center;
  color:#374151; cursor:pointer; }
.ed-close:hover { background:#f3f4f6; }
.ed-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  padding:10px 22px; background:#fff; border-bottom:1px solid var(--line,#e5e7eb); }
.ed-tbtn { border:1px solid var(--line,#e5e7eb); background:#fff; color:#111827;
  font-size:13px; font-weight:600; border-radius:9px; padding:7px 14px; cursor:pointer; }
.ed-tbtn:hover { border-color:#c7cbd1; background:#f9fafb; }
.ed-hint { font-size:12.5px; color:#6b7280; }
.ed-body { flex:1; overflow-y:auto; padding:26px 22px 34px; }
.ed-grid { display:flex; flex-wrap:wrap; gap:20px; justify-content:center;
  align-content:flex-start; max-width:1080px; margin:0 auto; }
.ed-loading { font-size:14px; color:#6b7280; padding:60px 0; }
.ed-card { position:relative; background:#fff; border:1.5px solid var(--line,#e5e7eb);
  border-radius:12px; padding:10px 10px 6px; width:170px; cursor:pointer;
  transition:border-color .12s, box-shadow .12s; user-select:none; }
.ed-card:hover { border-color:#c7cbd1; box-shadow:0 4px 14px rgba(17,24,39,.08); }
.ed-num { position:absolute; top:-9px; left:-9px; z-index:2; min-width:22px; height:22px;
  padding:0 5px; border-radius:11px; background:#111827; color:#fff; font-size:11.5px;
  font-weight:700; display:grid; place-items:center; }
.ed-thumb { width:150px; height:190px; margin:0 auto; display:grid; place-items:center;
  overflow:hidden; }
.ed-rotwrap { transition:transform .15s ease; line-height:0; }
.ed-rotwrap.rot-side { transform-origin:center; }
.ed-rotwrap canvas, .ed-rotwrap img { max-width:150px; max-height:190px; }
.ed-acts { display:flex; justify-content:center; gap:6px; padding:7px 0 3px; }
.ed-act { border:1px solid var(--line,#e5e7eb); background:#fff; border-radius:7px;
  width:26px; height:24px; display:grid; place-items:center; color:#374151;
  cursor:pointer; font-size:14px; line-height:1; }
.ed-act:hover { background:#f3f4f6; }
/* split mode */
.ed-split-flag { display:none; position:absolute; top:8px; left:10px; z-index:2;
  background:#2563eb; color:#fff; font-size:10.5px; font-weight:700;
  padding:2px 7px; border-radius:6px; letter-spacing:.02em; }
.ed-card.ed-split-on { border-color:#2563eb; border-style:dashed;
  box-shadow:-5px 0 0 -1px #2563eb; }
.ed-card.ed-split-on .ed-split-flag { display:block; }
/* organize mode */
.ed-card.ed-deleted { opacity:.35; filter:grayscale(1); }
.ed-card.ed-dragging { opacity:.5; border-color:#2563eb; }
.ed-blankcard .ed-thumb { border:1.5px dashed #c7cbd1; border-radius:8px; }
.ed-blank-label { font-size:12px; color:#9ca3af; font-weight:600; }
.ed-card.ed-broken { border-color:#fecaca; background:#fef2f2; }
/* scan mode */
.ed-fx { display:flex; flex-wrap:wrap; gap:4px; justify-content:center;
  padding:7px 0 3px; }
.ed-fxbtn { border:1px solid var(--line,#e5e7eb); background:#fff; border-radius:999px;
  font-size:10.5px; font-weight:600; color:#4b5563; padding:3px 8px; cursor:pointer; }
.ed-fxbtn.on { background:#111827; color:#fff; border-color:#111827; }
.ed-fx-rot { font-size:16px; }
/* footer */
.ed-foot { padding:14px 22px 18px; background:#fff;
  border-top:1px solid var(--line,#e5e7eb); }
.ed-foot-row { display:flex; gap:10px; justify-content:flex-end; max-width:1080px;
  margin:0 auto; }
.ed-msg { margin:0 0 10px; font-size:13px; color:#b91c1c; text-align:right; }
@media (max-width:640px) {
  .ed-grid { gap:12px; }
  .ed-card { width:128px; }
  .ed-thumb { width:108px; height:140px; }
  .ed-rotwrap canvas, .ed-rotwrap img { max-width:108px; max-height:140px; }
}
.opt-cond { margin-top:12px; }
.opt-cond:first-child { margin-top:0; }
.opt-flabel { display:block; font-size:13px; font-weight:600; color:#374151; margin-bottom:6px; }
.opt-grid {
  display:grid; grid-template-columns:repeat(3, 44px); grid-auto-rows:36px;
  gap:6px; width:max-content; padding:8px; border:1.5px solid var(--line);
  border-radius:10px;
}
.opt-cell {
  border:1.5px solid var(--line); border-radius:7px; background:#fff;
  cursor:pointer; padding:0; transition:all .12s;
}
.opt-cell:hover { border-color:var(--accent); background:#eff6ff; }
.opt-cell.opt-cell-on { background:var(--accent); border-color:var(--accent); }
.opt-range { display:flex; align-items:center; gap:12px; max-width:380px; }
.opt-range input[type=range] { flex:1; accent-color:var(--accent); padding:0; border:0; }
.opt-range output {
  min-width:44px; text-align:center; font-size:13px; font-weight:650; color:var(--ink);
  background:#eef2f7; border-radius:7px; padding:4px 6px;
}
.opt-toggle { display:inline-flex; align-items:center; cursor:pointer; }
.opt-toggle input { position:absolute; opacity:0; pointer-events:none; }
.opt-toggle-ui {
  width:40px; height:22px; border-radius:99px; background:#cbd5e1;
  position:relative; transition:background .15s; display:inline-block;
}
.opt-toggle-ui::after {
  content:""; position:absolute; top:2px; left:2px; width:18px; height:18px;
  border-radius:50%; background:#fff; transition:left .15s;
  box-shadow:0 1px 3px rgba(15,23,42,.25);
}
.opt-toggle input:checked + .opt-toggle-ui { background:var(--accent); }
.opt-toggle input:checked + .opt-toggle-ui::after { left:20px; }
.opt-field input[type=color] {
  width:52px; height:34px; padding:2px; cursor:pointer;
}
.opt-field input[type=file] { padding:7px 10px; font-size:13px; }
.opt-field input[type=number] { max-width:140px; }

/* ---------- auth / account (auth.js) ---------- */
.acc-error { display: none; margin: 10px 0 0; padding: 10px 14px; border-radius: 8px;
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: 14px; }
.acc-success { margin: 0; padding: 10px 14px; border-radius: 8px;
  background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; font-size: 14px; }
.acc-info { margin: 0 0 14px; color: #4b5563; font-size: 14px; }
.acc-hint { margin: 6px 0 0; color: #6b7280; font-size: 13px; }
.nav-avatar { display: inline-flex; align-items: center; text-decoration: none; }
.nav-avatar-dot { display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; background: #2563eb; color: #fff;
  font-weight: 600; font-size: 14px; }
.account-root { max-width: 560px; margin: 48px auto; }
.acc-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 28px; }
.acc-id { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.acc-id strong { display: block; font-size: 16px; color: #111827; }
.acc-plan, .acc-unverified { display: inline-block; margin-top: 4px; font-size: 12px;
  padding: 2px 8px; border-radius: 999px; }
.acc-plan { background: #eff6ff; color: #2563eb; }
.acc-unverified { background: #fffbeb; color: #b45309; margin-left: 6px; }
.acc-avatar-big { width: 44px; height: 44px; font-size: 18px; flex: none; }
.acc-h3 { font-size: 14px; font-weight: 600; color: #374151; margin: 0 0 12px; }
.acc-usage { display: flex; gap: 12px; margin-bottom: 24px; }
.acc-usage-item { flex: 1; background: #f9fafb; border: 1px solid #e5e7eb;
  border-radius: 10px; padding: 14px 16px; }
.acc-usage-item strong { display: block; font-size: 22px; color: #111827; }
.acc-usage-item span { font-size: 13px; color: #6b7280; }
.acc-signout { width: 100%; }
.acc-loading { color: #9ca3af; }

/* ---------- account page v3 (full-bleed console, Foxit-grade) ---------- */
.acct2-root { max-width: 1020px; margin: 36px auto 72px; padding: 0 24px; }
.acct2 { position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(15,23,42,.05); }
.acct2::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 6px; background: #16243d; z-index: 1; }
.acct2-top { padding: 20px 40px; border-bottom: 1px solid var(--line); background: #fff; }
.acct2-top h2 { margin: 0; font-size: 20px; font-weight: 750; letter-spacing: -0.01em; color: var(--ink); }
.acct2-body { display: flex; align-items: stretch; }
.acct2-side { flex: 0 0 236px; border-right: 1px solid var(--line);
  padding: 34px 0 0; display: flex; flex-direction: column; background: #fff; }
.acct2-avatar { width: 86px; height: 86px; border-radius: 50%; margin: 0 auto;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff;
  font-size: 34px; font-weight: 700; display: flex; align-items: center;
  justify-content: center; box-shadow: 0 6px 16px rgba(37,99,235,.30); }
.acct2-plan { margin: 14px auto 28px; font-size: 11.5px; padding: 3px 12px;
  border-radius: 999px; }
.chip-free { background: #f1f5f9; color: #475569; }
.chip-pro { background: #fff7ed; color: #c2410c; }
.acct2-nav { display: flex; flex-direction: column; }
.acct2-nav button { display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 13px 24px; border: 0; border-left: 3px solid transparent;
  background: none; font-size: 14.5px; color: #334155; cursor: pointer; }
.acct2-nav button svg { color: #64748b; flex: none; }
.acct2-nav button:hover { background: #f4f6f9; }
.acct2-nav button.active { background: #eef1f6; color: var(--ink); font-weight: 650;
  border-left-color: #16243d; }
.acct2-nav button.active svg { color: var(--ink); }
.acct2-signout { margin-top: auto; display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left; padding: 14px 24px; border: 0;
  border-top: 1px solid var(--line); background: none; font-size: 14.5px;
  color: #334155; cursor: pointer; }
.acct2-signout svg { color: #64748b; }
.acct2-signout:hover { background: #fef2f2; color: #b91c1c; }
.acct2-signout:hover svg { color: #b91c1c; }
.acct2-main { flex: 1; min-width: 0; padding: 14px 44px 40px; }
.acct2-row { padding: 24px 0; border-bottom: 1px solid #e5e7eb; }
.acct2-main [data-pane] > .acct2-row:last-of-type { border-bottom: 0; }
.acct2-rowhead { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.acct2-label { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.acct-badge { font-size: 11px; padding: 2px 9px; border-radius: 999px; font-weight: 600; }
.badge-ok { background: #f0fdf4; color: #15803d; }
.badge-warn { background: #fffbeb; color: #b45309; }
.badge-dim { background: #f1f5f9; color: #475569; }
.acct2-editlink { margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: none; color: var(--accent); font-size: 13.5px;
  font-weight: 600; cursor: pointer; padding: 2px 4px; }
.acct2-editlink svg { width: 14px; height: 14px; }
.acct2-editlink:hover { text-decoration: underline; }
.acct2-value { font-size: 14.5px; color: #374151; word-break: break-all; }
.acct-dim { color: #6b7280; }
.acct2-input, .acct2-form input { display: block; width: 100%; max-width: 460px;
  border: 1px solid var(--line-2); border-radius: 7px; padding: 12px 14px;
  font-size: 14.5px; background: #fff; font-family: inherit; color: var(--ink); }
.acct2-input:focus, .acct2-form input:focus { outline: 2px solid var(--accent);
  outline-offset: -1px; border-color: var(--accent); }
.acct2-form { margin-top: 16px; max-width: 460px; }
.acct2-form label { display: block; font-size: 13px; font-weight: 600;
  color: var(--ink); margin: 14px 0 6px; }
.acct2-form .acc-hint { margin: 6px 0 0; }
.acct2-save { display: block; width: 100%; max-width: 460px; margin-top: 18px;
  background: var(--accent); color: #fff; border: 0; border-radius: 7px;
  padding: 13px 16px; font-size: 13px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; cursor: pointer; text-align: center; }
.acct2-save:hover { background: var(--accent-ink); color: #fff; text-decoration: none; }
.acct2-save:disabled { opacity: .6; cursor: default; }
.acct2-save.is-busy, .acct2-cancel.is-busy, .acct-signout.is-busy { cursor: wait; }
.acct2-cancel { display: block; width: 100%; max-width: 460px; margin-top: 10px;
  background: none; border: 0; color: var(--muted); font-size: 13.5px;
  cursor: pointer; text-align: center; padding: 6px; }
.acct2-cancel:hover { color: var(--ink); }
.acct2-note { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }
.acct2-limits { margin: 4px 0 0; padding: 0; list-style: none; }
.acct2-limits li { margin: 7px 0; padding-left: 24px; position: relative;
  font-size: 14px; color: #374151; }
.acct2-limits li::before { content: ""; position: absolute; left: 2px; top: 6px;
  width: 12px; height: 7px; border-left: 2px solid #16a34a;
  border-bottom: 2px solid #16a34a; transform: rotate(-45deg); }
.acct2-since { margin: 18px 0 0; font-size: 12.5px; color: #94a3b8; }
.acct2-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.acct2-stat { flex: 1; min-width: 170px; border: 1px solid var(--line);
  border-radius: 10px; background: #f8fafc; padding: 16px 18px; }
.acct2-stat strong { display: block; font-size: 26px; font-weight: 750;
  color: var(--ink); letter-spacing: -0.02em; }
.acct2-stat span { font-size: 13px; color: var(--muted); }
.acct-msg { margin: 8px 0 0; font-size: 13px; }
.acct-msg.ok { color: #15803d; }
.acct-msg.err { color: #b91c1c; }
.acct2-guest-body { padding: 42px 44px; max-width: 560px; }
.acct2-guest-body p { color: var(--muted); }
@media (max-width: 820px) {
  .acct2-body { flex-direction: column; }
  .acct2-side { flex: none; border-right: 0; border-bottom: 1px solid var(--line);
    padding-top: 28px; }
  .acct2-nav { flex-direction: row; border-top: 1px solid var(--line); margin-top: 22px; }
  .acct2-nav button { flex: 1; justify-content: center; border-left: 0;
    border-bottom: 3px solid transparent; padding: 12px 8px; }
  .acct2-nav button.active { border-bottom-color: #16243d; }
  .acct2-signout { margin-top: 0; border-top: 0; justify-content: center; }
  .acct2-main { padding: 10px 24px 32px; }
  .acct2-top { padding: 18px 24px; }
}

/* ---------- scan workbench (legacy documentScanner layout) ----------
   flex column: top bar / pages strip (flex:1) / filters bar / action bar  */
.ed-scan .ed-pages { flex:1; display:flex; align-items:center; gap:14px;
  padding:14px 18px; overflow-x:auto; overflow-y:hidden;
  background:#eef1ef; min-height:0; }
.ed-page { position:relative; flex:0 0 auto; height:100%; max-width:88%;
  display:flex; align-items:center; justify-content:center;
  background:#fff; border:2px solid #e5e7eb; border-radius:10px;
  overflow:hidden; cursor:pointer; padding:6px;
  box-shadow:0 2px 10px rgba(15,23,42,.08); }
.ed-page.on { border-color:#059669; box-shadow:0 0 0 3px rgba(5,150,105,.18); }
.ed-page img { max-width:100%; max-height:100%; width:auto; height:auto;
  display:block; object-fit:contain; background:#f9fafb; }
.ed-page-num { position:absolute; top:6px; left:6px; z-index:2;
  background:rgba(15,23,42,.62); color:#fff; font-size:12px; font-weight:700;
  padding:2px 8px; border-radius:5px; }
.ed-page-del { position:absolute; top:6px; right:6px; z-index:2;
  width:26px; height:26px; border-radius:50%; border:none; cursor:pointer;
  background:rgba(15,23,42,.62); color:#fff; font-size:15px; line-height:1;
  display:flex; align-items:center; justify-content:center; }
.ed-page-del:hover { background:#dc2626; }
.ed-page-loading { color:#94a3b8; font-size:18px; padding:0 26px; }
.ed-add-page { flex:0 0 auto; height:86%; min-width:190px;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:8px; background:rgba(255,255,255,.6); border:2px dashed #9ca3af;
  border-radius:10px; cursor:pointer; color:#059669; }
.ed-add-page:hover { border-color:#059669; background:#fff; }
.ed-add-icon { font-size:26px; font-style:normal; }
.ed-add-text { font-size:14px; font-weight:700; }
.ed-filters { display:flex; gap:10px; overflow-x:auto; padding:10px 16px;
  background:#fff; border-top:1px solid var(--line,#e5e7eb); flex:0 0 auto; }
.ed-fxth { position:relative; flex:0 0 auto; width:80px; display:flex; flex-direction:column;
  align-items:center; gap:4px; padding:5px; border:2px solid #e5e7eb;
  border-radius:10px; background:#fff; cursor:pointer; }
.ed-fxth:hover { background:#f8fafc; }
.ed-fxth.on { border-color:#059669; background:#ecfdf5; }
.ed-fxth-img { position:relative; width:72px; height:54px; border-radius:6px; overflow:hidden; background:#f1f5f9; }
.ed-fxth-img img { width:100%; height:100%; object-fit:cover; display:block; }
.ed-fxth-hot { position:absolute; top:2px; right:2px; font-style:normal;
  background:#ef4444; color:#fff; font-size:9px; font-weight:700;
  padding:1px 4px; border-radius:4px; }
.ed-fxth-label { font-size:12px; color:#4b5563; white-space:nowrap; }
.ed-fxth.on .ed-fxth-label { color:#059669; font-weight:700; }
.ed-scanbar { background:#fff; border-top:1px solid var(--line,#e5e7eb); padding:12px 16px 14px; flex:0 0 auto; }
.ed-scanbar .ed-msg { margin:0 0 8px; text-align:center; color:#b45309; font-size:13px; }
.ed-scanbar-row { display:flex; gap:12px; align-items:center; justify-content:center; flex-wrap:wrap; }
.ed-sbtn { padding:10px 20px; border-radius:9px; border:1px solid var(--line,#e5e7eb);
  background:#fff; color:#0f172a; font-weight:600; cursor:pointer; font-size:14px; }
.ed-sbtn:hover { border-color:#94a3b8; background:#f8fafc; }
.ed-scanbar .btn.btn-primary { padding:10px 24px; font-size:14px; }
.multi-links { display:flex; flex-direction:column; gap:6px; margin-top:10px; }
.multi-link { color:#2563eb; font-weight:600; text-decoration:none; font-size:14px; word-break:break-all; }
.multi-link:hover { text-decoration:underline; }
/* passport photo: swatch dots in radio cards + two-up result */
.opt-swatch { display:inline-block; width:14px; height:14px; border-radius:50%;
  border:1px solid rgba(15,23,42,.25); margin-right:7px; vertical-align:-2px; }
.pp-result { display:flex; gap:28px; justify-content:center; flex-wrap:wrap; margin-top:14px; }
.pp-cell { display:flex; flex-direction:column; align-items:center; gap:12px; }
.pp-cell img { max-width:240px; max-height:320px; border:1px solid var(--line,#e5e7eb);
  border-radius:10px; background:#fff; box-shadow:0 4px 16px rgba(15,23,42,.08); }
.pp-dl { padding:10px 22px; font-size:14px; }

/* ---- Passport & ID photo workbench (one-screen product layout) ---- */
.pp-workbench { margin-top:4px; }
.pp-chiprow { display:flex; flex-wrap:wrap; gap:8px; margin:2px 0 16px; }
.pp-chip { position:relative; border:1.5px solid var(--line-2,#e2e8f0); border-radius:10px;
  background:#fff; padding:8px 14px; cursor:pointer; line-height:1.35;
  transition:border-color .14s, background .14s, box-shadow .14s; }
.pp-chip input { position:absolute; opacity:0; pointer-events:none; }
.pp-chip b { display:block; font-size:13.5px; color:var(--ink,#0f172a); white-space:nowrap; }
.pp-chip small { display:block; font-size:11.5px; color:var(--muted,#64748b); white-space:nowrap; }
.pp-chip:hover { border-color:#cbd5e1; background:#fafbff; }
.pp-chip.opt-checked { border-color:var(--c,#2563eb);
  background:color-mix(in srgb, var(--c,#2563eb) 7%, white);
  box-shadow:inset 0 0 0 1px var(--c,#2563eb); }
.pp-chip.opt-checked b { color:var(--c,#2563eb); }
.pp-customrow { display:flex; gap:14px; align-items:flex-start; margin:0 0 16px; }
.pp-customrow[hidden] { display:none; }
.pp-customrow .opt-field { margin-top:0; }
.pp-grid { display:grid; grid-template-columns:minmax(280px,360px) 1fr; gap:16px; align-items:stretch; }
.pp-card { border:1px solid var(--line-2,#e2e8f0); border-radius:14px; background:#fff; padding:18px; }
.pp-card-h { font-size:15px; font-weight:700; margin:0 0 12px; display:flex; align-items:center; gap:9px; }
.pp-step { width:22px; height:22px; border-radius:50%; flex:none;
  background:color-mix(in srgb, var(--c,#2563eb) 12%, white);
  color:var(--c,#2563eb); font-size:12px; font-weight:700;
  display:inline-flex; align-items:center; justify-content:center; }
.pp-card .dropzone { padding:34px 16px 26px; border-radius:12px; }
.pp-card .dz-ico { width:46px; height:46px; margin-bottom:10px; }
.pp-card .dz-ico svg { width:20px; height:20px; }
.pp-card .dz-main { font-size:15px; margin-bottom:12px; }
.pp-thumb { text-align:center; }
.pp-thumb img { max-width:100%; max-height:240px; border-radius:8px;
  border:1px solid var(--line-2,#e2e8f0); background:#f8fafc; }
.pp-reupload { margin-top:12px; padding:8px 18px; font-size:13.5px; }
.pp-card-preview .conv-panel { border:none; padding:0; margin:0; box-shadow:none; }
.pp-empty { min-height:230px; display:flex; flex-direction:column; align-items:center;
  justify-content:center; gap:12px; color:var(--muted,#64748b); font-size:14px;
  text-align:center; padding:10px; }
.pp-empty[hidden] { display:none; }
.pp-empty svg { opacity:.4; }
.pp-empty p { margin:0; max-width:320px; line-height:1.55; }
.pp-colorrow { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:16px 2px 0; }
.pp-colorlabel { font-size:13.5px; font-weight:650; color:#374151; margin-right:4px; }
.pp-dot { position:relative; width:32px; height:32px; border-radius:50%; cursor:pointer;
  background:var(--sw,#fff); border:1px solid rgba(15,23,42,.16);
  display:inline-flex; align-items:center; justify-content:center; transition:box-shadow .12s; }
.pp-dot input { position:absolute; opacity:0; pointer-events:none; }
.pp-dot svg { opacity:0; color:#fff; filter:drop-shadow(0 0 2px rgba(0,0,0,.45)); transition:opacity .12s; }
.pp-dot:hover { box-shadow:0 0 0 2px #fff, 0 0 0 3.5px rgba(37,99,235,.35); }
.pp-dot.opt-checked { box-shadow:0 0 0 2px #fff, 0 0 0 4px var(--c,#2563eb); }
.pp-dot.opt-checked svg { opacity:1; }
.pp-actions { margin-top:18px; display:flex; gap:14px; align-items:center; flex-wrap:wrap; }
.pp-make { min-width:210px; padding:12px 30px; font-size:15px; }
.pp-make:disabled { opacity:.5; cursor:not-allowed; }
.pp-privacy { display:inline-flex; align-items:center; gap:6px; font-size:12.5px; color:#94a3b8; }
.pp-privacy svg { flex:none; }
.pp-cell b { font-size:13px; color:var(--ink,#0f172a); }
.pp-img-standard { max-height:250px; }
.pp-img-layout { max-height:180px; }
.pp-conv .conv-result { margin-top:10px; }
@media (max-width:860px) {
  .pp-grid { grid-template-columns:1fr; }
  .pp-result { gap:18px; }
}
@media (max-height:640px) {
  .ed-scan .ed-pages { padding:8px 12px; }
  .ed-filters { padding:6px 12px; }
  .ed-fxth { width:70px; }
  .ed-fxth-img { width:62px; height:46px; }
}
/* crop overlay (scan editor) — mirrors the legacy scanner's crop mode */
.ed-crop-ov { position:fixed; inset:0; z-index:95; background:rgba(15,23,42,.82);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px; padding:24px; }
.ed-crop-stage { position:relative; line-height:0; }
.ed-crop-img { display:block; max-width:min(1080px,90vw); max-height:calc(100vh - 200px); width:auto; height:auto; }
.ed-crop-cv { position:absolute; cursor:crosshair; touch-action:none; }
.ed-crop-actions { display:flex; gap:14px; }
.ed-crop-ok { padding:11px 30px; border:none; border-radius:9px; background:#22c55e; color:#fff;
  font-weight:700; font-size:15px; cursor:pointer; }
.ed-crop-ok:hover { background:#16a34a; }
.ed-crop-no { padding:11px 30px; border:1px solid rgba(255,255,255,.55); border-radius:9px;
  background:rgba(255,255,255,.12); color:#fff; font-weight:600; font-size:15px; cursor:pointer; }
.ed-crop-no:hover { background:rgba(255,255,255,.22); }

/* scan editor export modal: progress / results / error stay inside the editor */
.ed-smodal { position:absolute; inset:0; z-index:40; background:rgba(2,6,23,.62);
  display:flex; align-items:center; justify-content:center; }
.ed-smodal-box { width:min(520px,92%); background:#fff; border-radius:16px; padding:24px;
  box-shadow:0 24px 64px rgba(2,6,23,.35); text-align:center; }
.ed-smodal-bar { height:8px; border-radius:99px; background:#e2e8f0; overflow:hidden; margin-bottom:14px; }
.ed-smodal-bar i { display:block; height:100%; width:0%; background:#0d9488;
  border-radius:99px; transition:width .35s ease; }
.ed-smodal-txt { margin:0 0 14px; font-size:14px; color:#334155; line-height:1.5; }
.ed-smodal-links { display:flex; flex-direction:column; gap:9px; margin-bottom:14px; }
.ed-smodal-dl { display:block; padding:11px 14px; border:1px solid #ccfbf1; border-radius:10px;
  background:#f0fdfa; color:#0f766e; font-weight:600; font-size:14px; text-decoration:none;
  word-break:break-all; }
.ed-smodal-dl:hover { background:#ccfbf1; }
.ed-smodal-err { margin:0 0 14px; color:#b91c1c; font-size:14px; line-height:1.5; }

/* ---- option panel: compact desktop form (rows instead of phone-like stack) ---- */
.opt-row { display:grid; grid-template-columns:1fr 1fr; gap:0 18px; margin-top:12px; }
.opt-row:first-child { margin-top:0; }
.opt-row .opt-field { margin-top:0; }
.opt-row .opt-cond { margin-top:0; }
.opt-row-single { grid-template-columns:1fr; }
@media (max-width:640px) { .opt-row { grid-template-columns:1fr; gap:12px; } }
.opt-disabled { opacity:.45; pointer-events:none; }
/* type radio cards side by side (text | image) — only opt-wide radio groups */
.opt-group.opt-group-row { grid-template-columns:1fr 1fr; gap:10px; }
.opt-group.opt-group-row .opt-flabel { grid-column:1 / -1; }
@media (max-width:480px) { .opt-group.opt-group-row { grid-template-columns:1fr; } }
/* slimmer hero dropzone on pages that have an option panel below */
.dropzone.dz-slim { padding:26px 16px 20px; }
.dropzone.dz-slim .dz-ico { width:38px; height:38px; margin-bottom:6px; }
.dropzone.dz-slim .dz-ico svg { width:17px; height:17px; }
.dropzone.dz-slim .dz-main { font-size:14px; }
.dropzone.dz-slim .dz-note { display:none; }

/* ---- 自绘确认弹窗（账号页取消订阅等） ---- */
.wiz-modal-ov {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(15, 23, 42, .45);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: wizFade .16s ease;
}
.wiz-modal-ov.wiz-modal-out { animation: wizFadeOut .16s ease forwards; }
.wiz-modal {
  width: 100%; max-width: 400px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 28px 28px 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .22);
  animation: wizPop .18s ease;
  text-align: center;
}
.wiz-modal-ico {
  width: 46px; height: 46px; margin: 0 auto 14px;
  border-radius: 50%; background: #fffbeb;
  display: flex; align-items: center; justify-content: center;
}
.wiz-modal-title {
  font-size: 18px; font-weight: 750; letter-spacing: -0.01em;
  color: var(--ink); margin: 0 0 8px;
}
.wiz-modal-text {
  font-size: 14px; line-height: 1.6; color: var(--muted);
  margin: 0 0 22px;
}
.wiz-modal-actions { display: flex; gap: 10px; }
.wiz-btn {
  flex: 1; padding: 11px 14px; border-radius: 9px;
  font-size: 14px; font-weight: 650; cursor: pointer;
  border: 1px solid transparent; font-family: inherit;
}
.wiz-btn-ghost { background: #fff; border-color: var(--line-2); color: var(--ink); }
.wiz-btn-ghost:hover { border-color: #94a3b8; }
.wiz-btn-ghost:focus-visible { outline: 2px solid var(--accent); outline-offset: -1px; }
.wiz-btn-danger { background: #dc2626; color: #fff; }
.wiz-btn-danger:hover { background: #b91c1c; }
@keyframes wizFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wizFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes wizPop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@media (max-width: 420px) {
  .wiz-modal { padding: 22px 20px 18px; }
  .wiz-modal-actions { flex-direction: column-reverse; }
}

/* ---- checkout 页月付/年付切换 ---- */
#ck-billing {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin: 0 0 16px;
}
.ck-bill-opt {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 10px; border-radius: 10px;
  border: 1.5px solid var(--line-2); background: #fff;
  font-family: inherit; font-size: 13px; color: var(--muted);
  cursor: pointer;
}
.ck-bill-opt b { font-size: 14px; color: var(--ink); font-weight: 700; }
.ck-bill-opt.active {
  border-color: var(--accent);
  background: #eff6ff;
  color: var(--accent-ink);
}
.ck-bill-opt.active b { color: var(--accent-ink); }
@media (max-width: 420px) { #ck-billing { grid-template-columns: 1fr; } }

