/* PDFPremium workspace. Scoped to the homepage so standalone tool,
   article and directory pages retain their established layout. */
html.pp-workspace {
  --surface: #fff;
  --surface-2: #f7f9fc;
  --surface-3: #edf2fa;
  --ink: #17263d;
  --ink-soft: #5c6b7f;
  --blue: #2459d3;
  --blue-deep: #204dae;
  --lav: #2459d3;
  --line: #e0e6ef;
  --shadow: 0 10px 28px rgba(20, 42, 77, .08);
  --shadow-soft: 0 2px 7px rgba(20, 42, 77, .035);
  --radius: 14px;
  --radius-lg: 20px;
  --pp-blue: #2459d3;
  --pp-violet: #2459d3;
  --pp-header-height: 72px;
}
html.pp-workspace { scroll-padding-top: 100px; }
:where(html.pp-workspace) body { background: var(--surface-2); color: var(--ink); font-size: 15px; }
:where(html.pp-workspace) h1, :where(html.pp-workspace) h2, :where(html.pp-workspace) h3, :where(html.pp-workspace) h4 { letter-spacing: -.035em; }
:where(html.pp-workspace) ::selection { background: #d6e4ff; color: #17263d; }
:where(html.pp-workspace) button, :where(html.pp-workspace) a, :where(html.pp-workspace) input, :where(html.pp-workspace) textarea, :where(html.pp-workspace) select { -webkit-tap-highlight-color: transparent; }
:where(html.pp-workspace) button:focus-visible, :where(html.pp-workspace) a:focus-visible, :where(html.pp-workspace) [role="button"]:focus-visible { outline: 3px solid #4b81ed; outline-offset: 4px; }
:where(html.pp-workspace) #mouseGlow, :where(html.pp-workspace) .float-icons, :where(html.pp-workspace) .hero::before, :where(html.pp-workspace) .hero::after, :where(html.pp-workspace) .btn-primary::after { display: none !important; }
:where(html.pp-workspace) header { background: #13253f; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
:where(html.pp-workspace) header > nav { max-width: 1232px; min-height: var(--pp-header-height); padding: 12px 32px; gap: 16px; }
:where(html.pp-workspace) .logo { color: #fff; font-size: 1.25rem; letter-spacing: -.04em; }
:where(html.pp-workspace) .logo-accent { background: none; color: #fff; -webkit-text-fill-color: currentColor; }
:where(html.pp-workspace) .logo:hover .logo-svg { transform: none; }
:where(html.pp-workspace) .nav-links { margin-left: auto; gap: 28px; font-size: .85rem; color: #d7e1ef; }
:where(html.pp-workspace) .theme-btn, :where(html.pp-workspace) .dots-btn, :where(html.pp-workspace) .pp-settings-btn { color: #dce5f2; border: 1px solid #34445b; background: transparent; border-radius: 9px; box-shadow: none; font-size: 1rem; }
:where(html.pp-workspace) .theme-btn:hover, :where(html.pp-workspace) .dots-btn:hover, :where(html.pp-workspace) .pp-settings-btn:hover { background: #253b59; }
:where(html.pp-workspace) .dots-btn { font-size: 1.4rem; }
:where(html.pp-workspace) .mega-menu, html.pp-workspace[data-theme="dark"] .mega-menu { background: var(--surface); border-color: var(--line); box-shadow: 0 16px 36px rgba(12,31,56,.16); border-radius: 14px; }
:where(html.pp-workspace) .mega-menu::before { display: none; }
:where(html.pp-workspace) .mega-item, html.pp-workspace[data-theme="dark"] .mega-item { color: var(--ink-soft); border-radius: 7px; }
:where(html.pp-workspace) .mega-item:hover, html.pp-workspace[data-theme="dark"] .mega-item:hover { background: var(--surface-3); color: var(--blue); transform: none; }

/* A short hero with actual starting points instead of decorative counters. */
:where(html.pp-workspace) .hero { background: var(--surface); border-bottom: 1px solid var(--line); }
:where(html.pp-workspace) .hero-inner { max-width: 1232px; padding: 64px 32px 58px; grid-template-columns: 1.17fr 1fr; gap: 76px; align-items: center; }
:where(html.pp-workspace) .eyebrow { border: 0; border-radius: 0; padding: 0; background: none; color: var(--blue); font-family: 'Inter', sans-serif; font-size: .68rem; letter-spacing: .14em; font-weight: 700; margin-bottom: 18px; }
:where(html.pp-workspace) .eyebrow::before { display: none; }
:where(html.pp-workspace) .hero h1 { color: var(--ink); font-size: clamp(2.5rem,4.3vw,3.7rem); line-height: 1.06; max-width: 600px; }
:where(html.pp-workspace) .hero h1 em { color: var(--blue); background: none; -webkit-text-fill-color: currentColor; }
:where(html.pp-workspace) .hero p.lead { font-size: 1rem; line-height: 1.75; color: var(--ink-soft); max-width: 530px; margin-top: 22px; }
:where(html.pp-workspace) .hero p.lead strong { color: var(--ink); }
:where(html.pp-workspace) .hero-ctas { margin-top: 28px; gap: 12px; }
:where(html.pp-workspace) .btn { border-radius: 9px; padding: 13px 20px; font-size: .88rem; min-height: 46px; }
:where(html.pp-workspace) .btn:hover { transform: none; }
:where(html.pp-workspace) .btn-primary, :where(html.pp-workspace) .btn-primary:hover { background: var(--blue); box-shadow: none; }
:where(html.pp-workspace) .btn-primary:hover { background: var(--blue-deep); }
:where(html.pp-workspace) .btn-ghost, :where(html.pp-workspace) .btn-ghost:hover { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
:where(html.pp-workspace) .btn-ghost:hover { background: var(--surface-2); }
:where(html.pp-workspace) .pp-hero-notes { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 18px; color: var(--ink-soft); font-size: .74rem; }
:where(html.pp-workspace) .pp-hero-notes span { display: inline-flex; align-items: center; gap: 7px; }
:where(html.pp-workspace) .pp-hero-notes span::before { content: '✓'; font-weight: 700; color: #197758; }
:where(html.pp-workspace) .pp-quickstart { background: #13253f; color: #fff; border-radius: 18px; padding: 26px; box-shadow: 0 15px 30px rgba(19,37,63,.12); }
:where(html.pp-workspace) .pp-quickstart-label { color: #aebed5; font-size: .65rem; letter-spacing: .13em; font-weight: 600; text-transform: uppercase; }
:where(html.pp-workspace) .pp-quickstart h2 { font-size: 1.25rem; letter-spacing: -.025em; margin: 8px 0 22px; color: #fff; }
:where(html.pp-workspace) .pp-quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
:where(html.pp-workspace) .pp-quick-link { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 15px; min-width: 0; border: 1px solid #3a4b65; border-radius: 10px; background: #20354f; color: #fff; text-align: left; transition: background .15s, border-color .15s; }
:where(html.pp-workspace) .pp-quick-link:hover { background: #2a4463; border-color: #7996bd; }
:where(html.pp-workspace) .pp-quick-link svg { width: 24px; height: 24px; stroke: #b5ccf5; }
:where(html.pp-workspace) .pp-quick-link strong { display: flex; justify-content: space-between; gap: 8px; width: 100%; font-size: .82rem; font-weight: 600; }
:where(html.pp-workspace) .pp-quick-link strong::after { content: '↗'; color: #91aad0; }
:where(html.pp-workspace) .pp-quick-link small { color: #b9c7db; font-size: .71rem; line-height: 1.5; margin-top: -5px; }
:where(html.pp-workspace) .pp-quick-footer { padding-top: 20px; margin-top: 20px; border-top: 1px solid #34465f; color: #b9c7db; font-size: .71rem; line-height: 1.65; }
:where(html.pp-workspace) .category-row { max-width: 1232px; margin: 0 auto; padding: 28px 32px 0; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
:where(html.pp-workspace) .category-card { padding: 20px; border-radius: 12px; box-shadow: none; gap: 13px; border-color: var(--line); }
:where(html.pp-workspace) .category-card:hover { transform: none; box-shadow: var(--shadow-soft); border-color: #a4bcdf; }
:where(html.pp-workspace) .category-card .cat-icon { width: 42px; height: 46px; border-radius: 10px; font-size: 1.35rem; background: var(--surface-3) !important; }
:where(html.pp-workspace) .category-card h3 { font-family: 'Inter', sans-serif; letter-spacing: -.02em; font-size: .88rem; }
:where(html.pp-workspace) .category-card p { max-width: 250px; font-size: .74rem; line-height: 1.55; padding-right: 12px; }
:where(html.pp-workspace) .category-card .cat-count { margin-top: 6px; font-family: 'Inter',sans-serif; font-size: .66rem; letter-spacing: 0; text-transform: none; color: var(--ink-soft); }
:where(html.pp-workspace) .category-card .cat-arrow { right: 14px; font-size: 1.1rem; }

/* Tool directory: stable layout, visible search, clear category selection. */
:where(html.pp-workspace) .section { max-width: 1232px; padding: 56px 32px; }
:where(html.pp-workspace) .section-head { max-width: 700px; margin-bottom: 28px; }
:where(html.pp-workspace) .section-head .eyebrow { padding: 0; background: none; border: none; color: var(--blue); margin-bottom: 12px; }
:where(html.pp-workspace) .section-head h2 { font-size: clamp(1.65rem,2.6vw,2.1rem); line-height: 1.2; }
:where(html.pp-workspace) .section-head p { color: var(--ink-soft); font-size: .91rem; line-height: 1.7; margin-top: 10px; }
:where(html.pp-workspace) #tools .section-head, html.pp-workspace[data-theme="dark"] #tools .section-head { max-width: none; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
:where(html.pp-workspace) #tools .section-head::before { display: none; }
:where(html.pp-workspace) #tools .section-head h2, html.pp-workspace[data-theme="dark"] #tools .section-head h2 { color: var(--ink); background: none; -webkit-text-fill-color: currentColor; }
:where(html.pp-workspace) #tools .tool-search { max-width: 720px; margin-top: 24px; }
:where(html.pp-workspace) #tools .tool-search input { border: 1px solid #cbd6e5 !important; border-radius: 10px !important; padding-left: 46px !important; padding-right: 49px; height: 54px; color: var(--ink); background: var(--surface); box-shadow: 0 2px 4px rgba(20,42,77,.025); font-size: .92rem; }
:where(html.pp-workspace) #tools .tool-search input:focus { transform: none; box-shadow: 0 0 0 3px rgba(36,89,211,.12) !important; }
:where(html.pp-workspace) #tools .tool-search input::placeholder { color: #6d7c91; opacity: 1; }
:where(html.pp-workspace) .ts-ic { left: 16px; font-size: .95rem; }
:where(html.pp-workspace) .pp-search-clear { position: absolute; right: 8px; top: 8px; width: 38px; height: 38px; display: grid; place-items: center; color: var(--ink-soft); background: var(--surface-2); border: 0; border-radius: 6px; font-size: 1.3rem; cursor: pointer; }
:where(html.pp-workspace) .pp-search-clear[hidden] { display: none; }
:where(html.pp-workspace) #searchDrop { border-radius: 10px; box-shadow: 0 12px 30px rgba(14,35,65,.14); }
:where(html.pp-workspace) .sd-item { padding: 13px 16px; }
:where(html.pp-workspace) .sd-item.active { outline: 2px solid var(--blue); outline-offset: -2px; }
:where(html.pp-workspace) #tools .quick-chips { gap: 7px; margin-top: 17px; }
:where(html.pp-workspace) #tools .quick-chips .chips-label { width: auto; display: inline-flex; color: var(--ink-soft); font-size: .68rem; letter-spacing: 0; font-weight: 500; text-transform: none; margin-right: 2px; }
:where(html.pp-workspace) #tools .quick-chips .chips-label::after { display: none; }
:where(html.pp-workspace) #tools .q-chip, html.pp-workspace[data-theme="dark"] #tools .q-chip { background: var(--surface); color: var(--ink-soft); border: 1px solid var(--line); box-shadow: none; font-weight: 500; font-size: .73rem; min-height: 34px; padding: 6px 10px; }
:where(html.pp-workspace) #tools .q-chip:hover { transform: none; border-color: #a4bcdf; color: var(--blue); box-shadow: none; background: var(--surface); }
:where(html.pp-workspace) #quickChips .q-chip.cat { display: none; }
:where(html.pp-workspace) #yourTools { background: var(--surface) !important; border: 1px solid var(--line); border-radius: 10px; margin-top: 20px !important; }
:where(html.pp-workspace) #totd { display: none !important; }
:where(html.pp-workspace) .pp-catalog-nav { display: flex; align-items: center; gap: 7px; padding: 8px 0 16px; border-bottom: 1px solid var(--line); scroll-margin-top: 95px; overflow-x: auto; scrollbar-width: thin; }
:where(html.pp-workspace) .pp-category-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; white-space: nowrap; background: transparent; color: var(--ink-soft); border: 1px solid transparent; padding: 11px 14px; border-radius: 9px; font-size: .8rem; font-weight: 600; min-height: 44px; cursor: pointer; }
:where(html.pp-workspace) .pp-category-button:hover { background: var(--surface-3); }
:where(html.pp-workspace) .pp-category-button[aria-pressed="true"] { background: #e8effd; color: #204dae; border-color: #d3e0fa; }
:where(html.pp-workspace) .pp-category-button span { padding: 2px 6px; border-radius: 5px; font-size: .63rem; font-weight: 500; background: var(--surface); color: var(--ink-soft); }
:where(html.pp-workspace) .pp-search-status { margin-top: 18px; color: var(--ink-soft); font-size: .77rem; }
:where(html.pp-workspace) .pp-category-excluded { display: none !important; }
:where(html.pp-workspace) .tools-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
:where(html.pp-workspace) .tool-card { padding: 21px; gap: 11px; background: var(--surface); border: 1px solid var(--line) !important; box-shadow: none; border-radius: 12px; transform: none !important; transition: border-color .15s, box-shadow .15s; min-width: 0; }
:where(html.pp-workspace) .tool-card::before, :where(html.pp-workspace) .tool-card::after { display: none; }
:where(html.pp-workspace) .tool-card:hover, :where(html.pp-workspace) .tool-card:focus-visible { border-color: #94b3e5 !important; box-shadow: var(--shadow); }
:where(html.pp-workspace) .tool-card .tool-icon { width: 40px; height: 40px; border-radius: 9px; background: #edf2ff; font-size: 1.15rem; }
:where(html.pp-workspace) #image-tools .tool-card .tool-icon { background: #e9f5f1; }
:where(html.pp-workspace) #utility-tools .tool-card .tool-icon { background: #f5f0e6; }
:where(html.pp-workspace) .tool-card:hover .tool-icon { animation: none; background: var(--surface-3); transform: none; }
:where(html.pp-workspace) .tool-card h3 { font-family: 'Inter',sans-serif; font-size: .88rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.45; overflow-wrap: anywhere; }
:where(html.pp-workspace) .tool-card p { color: var(--ink-soft); font-size: .76rem; line-height: 1.6; }
:where(html.pp-workspace) .tool-card .badge { margin-top: 4px; padding: 0; background: none; border: 0; color: var(--blue); font-family: 'Inter',sans-serif; font-size: .71rem; text-transform: none; letter-spacing: 0; font-weight: 500; }
:where(html.pp-workspace) .sub-head { margin: 28px 0 2px; }
:where(html.pp-workspace) .sub-head .sh-label { font-size: .75rem; font-weight: 600; color: var(--ink-soft); letter-spacing: .01em; text-transform: none; white-space: normal; }
:where(html.pp-workspace) #image-tools, :where(html.pp-workspace) #utility-tools { padding-top: 20px; }
:where(html.pp-workspace) #image-tools .section-head, :where(html.pp-workspace) #utility-tools .section-head { padding-top: 22px; border-top: 1px solid var(--line); max-width: none; }
:where(html.pp-workspace) #image-tools .section-head h2, :where(html.pp-workspace) #utility-tools .section-head h2 { font-size: 1.6rem; }
:where(html.pp-workspace) #noResults { border: 1px dashed var(--line); border-radius: 12px; background: var(--surface); margin-top: 24px; padding: 32px 20px; }
:where(html.pp-workspace) .reveal { opacity: 1 !important; transform: none !important; }

/* Processing dialogs: readable, scrollable, and keyboard focus stays visible. */
:where(html.pp-workspace) .overlay { background: rgba(12,26,48,.57); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); padding: 24px; z-index: 160; }
:where(html.pp-workspace) .overlay .modal { max-width: 860px; width: min(860px,100%); border: 1px solid var(--line); border-radius: 17px; max-height: calc(100dvh - 48px); box-shadow: 0 28px 80px rgba(0,0,0,.27); }
:where(html.pp-workspace) .modal-head { background: var(--surface); padding: 24px 28px 21px; border-bottom-color: var(--line); }
:where(html.pp-workspace) .modal-head h3 { font-size: 1.3rem; line-height: 1.3; }
:where(html.pp-workspace) .modal-head p { font-size: .84rem; line-height: 1.6; max-width: 640px; }
:where(html.pp-workspace) .modal-close { border-radius: 8px; width: 38px; height: 38px; min-width: 38px; min-height: 38px; background: var(--surface-2); color: var(--ink-soft); font-size: 1rem; }
:where(html.pp-workspace) .modal-body { padding: 26px 28px 30px; }
:where(html.pp-workspace) .dropzone { padding: 34px 20px; border: 1.5px dashed #b4c5e0; background: var(--surface-2); border-radius: 12px; }
:where(html.pp-workspace) .dropzone:hover, :where(html.pp-workspace) .dropzone.drag { background: var(--surface-3); border-color: var(--blue); }
:where(html.pp-workspace) .dropzone p { font-size: .85rem; }
:where(html.pp-workspace) .dropzone .dz-icon { font-size: 1.7rem; }
:where(html.pp-workspace) .file-list { gap: 8px; }
:where(html.pp-workspace) .file-item { border: 1px solid var(--line); border-radius: 9px; box-shadow: none; }
:where(html.pp-workspace) .modal-body input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="color"]), :where(html.pp-workspace) .modal-body select, :where(html.pp-workspace) .modal-body textarea { background-color: var(--surface); color: var(--ink); border-color: var(--line); border-radius: 8px; }
:where(html.pp-workspace) .modal-body .btn, :where(html.pp-workspace) .modal-body .dl-btn, :where(html.pp-workspace) .action-row .btn { min-height: 44px; border-radius: 8px; box-shadow: none; }
:where(html.pp-workspace) .result-box { background: var(--surface-3); border-color: var(--line); border-radius: 10px; }
:where(html.pp-workspace) .result-box .dl-btn { background: var(--blue); box-shadow: none; border-radius: 8px; }
:where(html.pp-workspace) .overlay.active .modal, :where(html.pp-workspace) .result-box.active { animation: fadeIn .12s ease both; }

/* Supporting information and consistent landing pages. */
:where(html.pp-workspace) #how, :where(html.pp-workspace) #why, :where(html.pp-workspace) #faq { border-top: 1px solid var(--line); }
:where(html.pp-workspace) .how-steps { gap: 30px; }
:where(html.pp-workspace) .how-num { box-shadow: none; background: var(--surface-3); color: var(--blue); font-size: 1rem; }
:where(html.pp-workspace) .how-step h3 { font-size: 1.05rem; }
:where(html.pp-workspace) .how-step p { font-size: .84rem; }
:where(html.pp-workspace) .feat-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
:where(html.pp-workspace) .feat-card { padding: 24px; border-radius: 12px; box-shadow: none; }
:where(html.pp-workspace) .feat-card:hover, :where(html.pp-workspace) .blog-card:hover { transform: none; box-shadow: none; }
:where(html.pp-workspace) .feat-ic { width: 38px; height: 38px; font-size: 1.15rem; border-radius: 9px; background: var(--surface-3); }
:where(html.pp-workspace) .feat-card h3 { font-size: .95rem; }
:where(html.pp-workspace) .feat-card p { font-size: .8rem; line-height: 1.7; }
:where(html.pp-workspace) .blog-card, :where(html.pp-workspace) .faq-item, :where(html.pp-workspace) .related-card { border-color: var(--line); border-radius: 12px; box-shadow: none; }
:where(html.pp-workspace) .blog-thumb { height: 104px; background: #e9eff8; font-size: 2rem; }
:where(html.pp-workspace) .blog-body { padding: 20px; }
:where(html.pp-workspace) .blog-body h3 { line-height: 1.45; }
:where(html.pp-workspace) .blog-body p { font-size: .82rem; }
:where(html.pp-workspace) .blog-tag { font-family: 'Inter',sans-serif; font-size: .63rem; }
:where(html.pp-workspace) .faq-list { max-width: 900px; }
:where(html.pp-workspace) .faq-item { padding: 22px; }
:where(html.pp-workspace) .faq-item h3 { line-height: 1.5; font-size: .96rem; }
:where(html.pp-workspace) .faq-item p { font-size: .86rem; line-height: 1.75; }
:where(html.pp-workspace) .soon-section { padding-top: 20px; opacity: .88; }
:where(html.pp-workspace) .strip { background: #eaf0fa; color: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
:where(html.pp-workspace) .strip-inner { max-width: 1232px; padding: 32px; gap: 30px; }
:where(html.pp-workspace) .strip h4 { color: var(--ink); font-size: .9rem; }
:where(html.pp-workspace) .strip p { color: var(--ink-soft); font-size: .79rem; line-height: 1.75; }
:where(html.pp-workspace) footer { background: #13253f; border-top: 0; color: #b4c2d6; }
:where(html.pp-workspace) .footer-grid { max-width: 1232px; padding: 44px 32px 32px; }
:where(html.pp-workspace) .footer-col h5, :where(html.pp-workspace) .footer-brand { color: #fff; }
:where(html.pp-workspace) .footer-col p, :where(html.pp-workspace) .footer-col a { color: #b4c2d6; font-size: .78rem; line-height: 1.75; }
:where(html.pp-workspace) .footer-col a:hover { color: #fff; }
:where(html.pp-workspace) .footer-bottom { color: #b4c2d6; border-color: #33465f; font-size: .72rem; }
:where(html.pp-workspace) #seoFooter { max-width: 1168px; margin-left: auto; margin-right: auto; padding-bottom: 24px; color: #b4c2d6; }
:where(html.pp-workspace) #seoFooter a { color: #c8d4e6; }
:where(html.pp-workspace) .tool-hero { background: #13253f; padding: 48px 24px; }
:where(html.pp-workspace) .tool-hero .th-icon { font-size: 2.5rem; margin-bottom: 18px; }
:where(html.pp-workspace) .tool-hero h1 { font-size: clamp(1.8rem,3.3vw,2.5rem); }
:where(html.pp-workspace) .tool-hero .cta-btn, :where(html.pp-workspace) .cta-btn { border-radius: 9px; box-shadow: none; }
:where(html.pp-workspace) .tool-hero .crumbs { color: #c0cee2 !important; justify-content: center; gap: 7px; flex-wrap: wrap; }
:where(html.pp-workspace) .tool-hero .crumbs a { color: #c0d4f5 !important; }
:where(html.pp-workspace) article { color: var(--ink); }

/* Explicit dark palette; no low-contrast inherited gradients. */
html.pp-workspace[data-theme="dark"] { --surface: #17243a; --surface-2: #101b2d; --surface-3: #22344f; --ink: #e8edf6; --ink-soft: #adbbcf; --blue: #95b6ff; --blue-deep: #b4cdff; --lav: #95b6ff; --line: #304158; }
html.pp-workspace[data-theme="dark"] .hero, html.pp-workspace[data-theme="dark"] .tool-card { background: var(--surface); }
html.pp-workspace[data-theme="dark"] .hero h1 { color: var(--ink); }
html.pp-workspace[data-theme="dark"] .btn-primary, html.pp-workspace[data-theme="dark"] .result-box .dl-btn { background: #3269dd; color: #fff; }
html.pp-workspace[data-theme="dark"] .btn-ghost { color: var(--ink); background: var(--surface-2); }
html.pp-workspace[data-theme="dark"] #tools .tool-search input { background: var(--surface); color: var(--ink); border-color: #4b617f !important; }
html.pp-workspace[data-theme="dark"] #tools .tool-search input::placeholder { color: #a2b2c8; }
html.pp-workspace[data-theme="dark"] .pp-category-button[aria-pressed="true"] { background: #263f68; border-color: #426299; color: #ccdeff; }
html.pp-workspace[data-theme="dark"] .tool-card .tool-icon, html.pp-workspace[data-theme="dark"] #image-tools .tool-icon, html.pp-workspace[data-theme="dark"] #utility-tools .tool-icon { background: #273c5c; }
html.pp-workspace[data-theme="dark"] .dropzone { border-color: #506782; }
html.pp-workspace[data-theme="dark"] .strip, html.pp-workspace[data-theme="dark"] .blog-thumb { background: #1a2b45; }
html.pp-workspace[data-pp-density="compact"] .tool-card { padding: 15px; gap: 8px; }
html.pp-workspace[data-pp-density="compact"] .tool-card p { display: none; }

@media (max-width: 1050px) {
  :where(html.pp-workspace) .hero-inner { gap: 36px; padding-top: 48px; padding-bottom: 48px; }
  :where(html.pp-workspace) .nav-links { gap: 16px; }
  :where(html.pp-workspace) .tools-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  :where(html.pp-workspace) .category-card { padding: 17px; }
  :where(html.pp-workspace) .category-card .cat-icon { display: none; }
  :where(html.pp-workspace) .category-card p { font-size: .72rem; }
}
@media (max-width: 760px) {
  html.pp-workspace { --pp-header-height: 64px; }
  :where(html.pp-workspace) header > nav { padding: 10px 20px; gap: 9px; }
  :where(html.pp-workspace) .logo { font-size: 1.1rem; }
  :where(html.pp-workspace) .logo-svg img { width: 30px; height: 30px; }
  :where(html.pp-workspace) .hero-inner { grid-template-columns: minmax(0,1fr); padding: 38px 22px; gap: 28px; }
  :where(html.pp-workspace) .hero h1 { max-width: 560px; font-size: clamp(2.25rem,7.1vw,3.3rem); }
  :where(html.pp-workspace) .hero p.lead { max-width: 540px; font-size: .91rem; margin-top: 17px; }
  :where(html.pp-workspace) .pp-quickstart { padding: 22px; }
  :where(html.pp-workspace) .pp-quick-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  :where(html.pp-workspace) .pp-quick-link { padding: 14px 10px; }
  :where(html.pp-workspace) .pp-quick-link small { display: none; }
  :where(html.pp-workspace) .pp-quick-link strong { font-size: .7rem; }
  :where(html.pp-workspace) .pp-quick-link strong::after { display: none; }
  :where(html.pp-workspace) .pp-quick-footer { margin-top: 16px; padding-top: 14px; }
  :where(html.pp-workspace) .category-row { padding: 22px 20px 0; gap: 9px; }
  :where(html.pp-workspace) .category-card { padding: 14px; }
  :where(html.pp-workspace) .category-card h3 { font-size: .8rem; }
  :where(html.pp-workspace) .category-card p, :where(html.pp-workspace) .category-card .cat-arrow { display: none; }
  :where(html.pp-workspace) .section { padding: 38px 20px; }
  :where(html.pp-workspace) .section-head h2 { font-size: 1.65rem; }
  :where(html.pp-workspace) .tools-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  :where(html.pp-workspace) .tool-card { padding: 16px; gap: 9px; }
  :where(html.pp-workspace) .tool-card h3 { font-size: .79rem; }
  :where(html.pp-workspace) .tool-card p { font-size: .73rem; }
  :where(html.pp-workspace) .pp-category-button { font-size: .73rem; padding: 10px 11px; }
  :where(html.pp-workspace) .feat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  :where(html.pp-workspace) .footer-grid { padding: 32px 20px; }
  :where(html.pp-workspace) .strip-inner { padding: 28px 20px; }
}
@media (max-width: 520px) {
  :where(html.pp-workspace) .nav-links { background: #13253f; }
  :where(html.pp-workspace) .theme-btn, :where(html.pp-workspace) .pp-settings-btn, :where(html.pp-workspace) .dots-btn { min-width: 36px; min-height: 38px; }
  :where(html.pp-workspace) .dots-btn { display: none; }
  :where(html.pp-workspace) header > nav { padding: 9px 16px; gap: 8px; }
  :where(html.pp-workspace) .logo { margin-right: auto; gap: 8px; font-size: 1rem; }
  :where(html.pp-workspace) .hero-inner { padding: 32px 20px; }
  :where(html.pp-workspace) .hero h1 { font-size: 2.4rem; }
  :where(html.pp-workspace) .hero-ctas { margin-top: 22px; }
  :where(html.pp-workspace) .hero-ctas .btn { font-size: .81rem; padding: 12px 16px; }
  :where(html.pp-workspace) .pp-hero-notes { gap: 12px; font-size: .65rem; margin-top: 21px; }
  :where(html.pp-workspace) .pp-quickstart { padding: 18px; border-radius: 13px; }
  :where(html.pp-workspace) .pp-quickstart h2 { margin-bottom: 16px; font-size: 1.1rem; }
  :where(html.pp-workspace) .pp-quick-grid { grid-template-columns: 1fr 1fr; }
  :where(html.pp-workspace) .pp-quick-link { padding: 14px; flex-direction: row; align-items: center; gap: 10px; }
  :where(html.pp-workspace) .pp-quick-link svg { width: 20px; height: 20px; flex-shrink: 0; }
  :where(html.pp-workspace) .pp-quick-link strong { font-size: .73rem; }
  :where(html.pp-workspace) .category-row { padding: 16px 16px 0; gap: 8px; }
  :where(html.pp-workspace) .category-card { padding: 12px 10px; border-radius: 9px; }
  :where(html.pp-workspace) .category-card h3 { font-size: .73rem; line-height: 1.4; }
  :where(html.pp-workspace) .category-card .cat-count { font-size: .63rem; }
  :where(html.pp-workspace) .section { padding-left: 16px; padding-right: 16px; }
  :where(html.pp-workspace) .section-head p { font-size: .83rem; }
  :where(html.pp-workspace) #tools .tool-search input { font-size: 16px; }
  :where(html.pp-workspace) #tools .quick-chips { gap: 6px; }
  :where(html.pp-workspace) #tools .q-chip { font-size: .68rem; padding: 6px 9px; }
  :where(html.pp-workspace) .pp-catalog-nav { margin-right: -16px; padding-right: 16px; }
  :where(html.pp-workspace) .tools-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  :where(html.pp-workspace) .tool-card { padding: 16px 13px; gap: 10px; border-radius: 10px; }
  :where(html.pp-workspace) .tool-card h3 { font-size: .82rem; }
  :where(html.pp-workspace) .tool-card p { font-size: .73rem; line-height: 1.55; }
  :where(html.pp-workspace) .tool-card .tool-icon { width: 36px; height: 36px; font-size: 1.12rem; }
  :where(html.pp-workspace) .tool-card .badge { font-size: .68rem; }
  :where(html.pp-workspace) .overlay { padding: 0; align-items: flex-end; }
  :where(html.pp-workspace) .overlay .modal { max-height: 94dvh; border-radius: 24px 24px 0 0; }
  :where(html.pp-workspace) .modal-head { padding: 19px 17px 16px; }
  :where(html.pp-workspace) .modal-head h3 { font-size: 1.15rem; }
  :where(html.pp-workspace) .modal-body { padding: 20px 17px calc(22px + env(safe-area-inset-bottom,0px)); }
  :where(html.pp-workspace) .modal-head p { font-size: .8rem; }
  :where(html.pp-workspace) .feat-card { padding: 18px; }
  :where(html.pp-workspace) .feat-card h3 { font-size: .86rem; }
  :where(html.pp-workspace) .feat-card p { font-size: .76rem; }
  :where(html.pp-workspace) .blog-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html.pp-workspace { scroll-behavior: auto; }
  :where(html.pp-workspace) *, :where(html.pp-workspace) *::before, :where(html.pp-workspace) *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

:where(html.pp-workspace) .pp-skip-link { position: fixed; left: 16px; top: -80px; z-index: 10000; padding: 12px 18px; background: #fff; color: #173660; border: 2px solid #2459d3; border-radius: 8px; font-weight: 600; }
:where(html.pp-workspace) .pp-skip-link:focus { top: 12px; }

/* Explicit file ordering for merge and batch workflows. */
:where(html.pp-workspace) .file-order { flex:0 0 32px; width:32px; height:32px; border:1px solid var(--line); background:var(--surface); color:var(--ink); border-radius:6px; cursor:pointer; }
:where(html.pp-workspace) .file-order:disabled { opacity:.35; cursor:default; }
:where(html.pp-workspace) .file-row .remove { flex:0 0 32px; width:32px; height:32px; border:0; background:transparent; font:inherit; cursor:pointer; }
:where(html.pp-workspace) .file-row .fname { min-width:0; overflow-wrap:anywhere; }
@media(max-width:420px){:where(html.pp-workspace) .file-row { gap:7px; }:where(html.pp-workspace) .file-row .fsize {font-size:.65rem;} }

/* Use the measured header edge for every attached navigation surface. */
:where(html.pp-workspace) .hero-inner > *, :where(html.pp-workspace) .category-card > div { min-width: 0; }
:where(html.pp-workspace) .tab-bar { top: var(--pp-nav-offset, var(--pp-header-height)); }
@media (min-width:901px) {
  :where(html.pp-workspace) .nav-item .mega-menu.mega-full { top: var(--pp-nav-offset, var(--pp-header-height)); }
}
@media (max-width:900px) {
  :where(html.pp-workspace) .hero-inner { grid-template-columns: minmax(0,1fr); }
  :where(html.pp-workspace) .nav-links { top: var(--pp-nav-offset, var(--pp-header-height)); }
}
@media (max-width:640px) {
  :where(html.pp-workspace) .overlay { padding: 0; align-items: flex-end; }
  :where(html.pp-workspace) .overlay .modal { width: 100%; max-width: 100%; max-height: 94dvh; border-radius: 24px 24px 0 0 !important; border-bottom: 0; }
}
@media (max-width:520px) {
  :where(html.pp-workspace) .category-row, :where(html.pp-workspace) .feat-grid { grid-template-columns: minmax(0,1fr); }
  :where(html.pp-workspace) .category-card { padding: 16px; }
  :where(html.pp-workspace) .category-card .cat-icon { display: flex; }
  :where(html.pp-workspace) .category-card h3 { font-size: .88rem; }
  :where(html.pp-workspace) .category-card p { display: block; font-size: .75rem; padding-right: 0; }
}
@media (max-width:380px) {
  :where(html.pp-workspace) header > nav { gap: 6px; }
  :where(html.pp-workspace) .logo { font-size: .95rem !important; }
  :where(html.pp-workspace) .theme-btn, :where(html.pp-workspace) .pp-settings-btn { width: 34px; min-width: 34px; margin-right: 0; }
  :where(html.pp-workspace) .hamburger { padding: 6px; }
  :where(html.pp-workspace) .tools-grid { grid-template-columns: minmax(0,1fr); }
}
