.mobile-product-nav,.mobile-product-search,.mobile-footer-toggle{display:none}
@media screen and (max-width:600px){
 body.mobile-product-ready{padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}
 html{scroll-padding-top:76px;scroll-padding-bottom:96px}
 .mobile-product-ready .pp-header-inner{min-height:62px!important;padding:8px 16px!important;gap:8px!important}
 .mobile-product-ready .pp-brand{font-size:18px!important;margin-right:auto}
 .mobile-product-ready .pp-brand-mark{width:36px!important;height:36px!important}
 .mobile-product-ready .pp-menu-toggle{min-width:44px;min-height:44px;padding:10px!important}
 .mobile-product-ready .pp-menu-toggle>span{display:none}
 .mobile-product-search{display:flex;align-items:center;justify-content:center;min-width:44px;height:44px;border:1px solid #e1e5eb;border-radius:10px;background:#fff;color:#553581;padding:10px}
 .mobile-product-search svg,.mobile-product-nav svg{width:22px;height:22px;flex:none}
 .mobile-product-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;z-index:1000;bottom:0;left:0;right:0;padding:6px 10px calc(6px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid #e5e7eb;box-shadow:0 -4px 18px #18213508}
 .mobile-product-nav>a,.mobile-product-nav>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:54px;padding:6px 4px;border:0;border-radius:10px;background:transparent;color:#526173;font:600 11px/1.3 Arial,sans-serif;text-decoration:none}
 .mobile-product-nav [aria-current=page]{background:#f1f9d6;color:#344600}
 .mobile-product-nav>button[aria-expanded=true],.mobile-product-nav>a:active,.mobile-product-nav>button:active{background:#f1e9fc;color:#7041aa}
 .mobile-product-nav :focus-visible,.mobile-product-search:focus-visible,.mobile-footer-toggle:focus-visible{outline:2px solid #9561D7;outline-offset:2px}
 .mobile-product-editing .mobile-product-nav{display:none}
 body.mobile-product-menu-open{overflow:hidden}
 .mobile-product-ready .pp-site-header.pp-menu-open .pp-primary-nav{position:fixed!important;top:66px!important;bottom:calc(80px + env(safe-area-inset-bottom,0px))!important;left:12px!important;right:12px!important;width:auto!important;max-height:none!important;overflow:auto!important;border-radius:14px!important;padding:14px!important;box-shadow:0 12px 44px #17202d26!important;background:#fff!important}
 .mobile-product-ready #pp-tool-finder{position:fixed!important;inset:auto 0 0!important;width:100%!important;max-width:none!important;margin:0!important;box-sizing:border-box;max-height:85vh!important;max-height:85dvh!important;padding:20px 18px calc(20px + env(safe-area-inset-bottom,0px))!important;border-radius:20px 20px 0 0!important;border:0!important;overflow:auto!important}
 .mobile-product-ready #pp-tool-finder::backdrop{background:#14203070}
 .mobile-product-ready #pp-finder-input{font-size:16px!important;min-height:48px}
 .mobile-product-ready .pp-finder-close{min-width:44px;min-height:44px}
 .mobile-product-ready .pp-finder-top{position:sticky;top:-20px;background:#fff;z-index:1;padding-block:4px}
 .mobile-product-ready #pp-finder-results>a{min-height:56px}
 .mobile-product-ready .pp-footer-nav{display:block!important;width:100%}
 .mobile-product-ready .pp-footer-column{border-bottom:1px solid #adb96e66;padding:0!important}
 .mobile-product-ready .pp-footer-column>h2{display:none}
 .mobile-footer-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:48px;padding:14px 0;border:0;background:transparent;color:#1b2900;font:600 14px/1.4 inherit;text-align:left}
 .mobile-footer-toggle::after{content:'+';font-size:20px}
 .mobile-footer-toggle[aria-expanded=true]::after{content:'−'}
 .mobile-footer-links{padding:0 0 14px}
 .mobile-footer-links[hidden]{display:none!important}
 .mobile-product-ready .pp-footer-column .mobile-footer-links a{display:block;padding:7px 0;min-height:32px}
 .mobile-product-ready .pp-footer-top{gap:22px!important}
 .mobile-product-ready .pp-footer-bottom{gap:14px!important}
 .mobile-product-ready .pp-site-footer{padding-block:28px!important}
 .mobile-product-ready .pixii-task-hero{padding-block:20px!important;gap:20px!important}
 .mobile-product-ready .hero-copy .hero-main-actions{display:none!important}
 .mobile-product-ready .hero-copy .hero-reassurance{margin-top:10px!important}
 .mobile-product-ready .hero-tools-column{gap:18px!important}
 .mobile-product-ready .hero-search-launcher{margin:0!important;padding:0!important}
 .mobile-product-ready .hero-search-open{min-height:54px!important}
 .mobile-product-ready .hero-search-launcher>p{font-size:14px!important;margin-bottom:10px!important}
 .mobile-product-ready main :is(.px-actions>.px-primary,.story-main-action,.studio-primary,.hero-browse-action){width:100%!important;min-height:48px!important;box-sizing:border-box;justify-content:center!important}
 .mobile-product-ready main :is(.suite-panel,.px-workspace,.tool-panel){min-width:0}
 .mobile-product-ready main :is(.px-table-wrap,.sheet-preview){max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
}
@media print{.mobile-product-nav,.mobile-product-search,.mobile-footer-toggle{display:none!important}.mobile-footer-links[hidden]{display:block!important}}
@media screen and (max-width:600px){
 html body .mobile-product-nav>a,html body .mobile-product-nav>button{display:flex!important}
 html body.mobile-product-ready .hero-task-grid{grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
 html body.mobile-product-ready main .hero-task-grid .hero-task-card{display:grid!important;grid-template-columns:38px minmax(0,1fr) 26px!important;align-items:center!important;gap:12px!important;min-height:70px!important;padding:12px!important}
 html body.mobile-product-ready .hero-task-card .hero-task-icon{margin:0!important;width:38px!important;min-width:0!important}
 html body.mobile-product-ready .hero-task-card .hero-task-icon svg{width:38px!important;height:38px!important}
 html body.mobile-product-ready .hero-task-card .hero-task-copy{min-width:0;text-align:center}
 html body.mobile-product-ready .hero-task-card .hero-task-arrow{position:static!important;margin:0!important}
 html body.mobile-product-ready .hero-task-tabs>button{min-height:44px!important;flex:1!important}
 .mobile-footer-toggle{font-family:inherit;font-size:14px;font-weight:600;line-height:1.4}
}
/* Header effects create a containing block: anchor the menu to the header
   and size it from the viewport instead of competing top/bottom offsets. */
@media screen and (max-width:600px){
 html body.mobile-product-ready .pp-site-header.pp-menu-open .pp-primary-nav{
  position:absolute!important;top:100%!important;bottom:auto!important;left:12px!important;right:12px!important;
  height:calc(100vh - 164px)!important;height:calc(100dvh - 164px)!important;
  max-height:calc(100dvh - 164px)!important;min-height:180px!important;
  display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;
  overflow-y:auto!important;overscroll-behavior:contain;
 }
 html body.mobile-product-ready .pp-site-header.pp-menu-open .pp-primary-nav>*{flex-shrink:0!important;width:100%!important}
}

/* Tool-directory cards need a full reading width on phones. */
@media screen and (max-width:600px){
 html body main :is(.grid,.ocr-card-row,.directory-grid,.px-grid):has(>.tool-card),
 html body main :is(.grid,.ocr-card-row,.directory-grid,.px-grid):has(>.category-tool){
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important;align-items:stretch!important;
 }
 html body main :is(.grid,.ocr-card-row)>.tool-card{
  width:100%!important;max-width:none!important;min-width:0!important;min-height:0!important;height:auto!important;
  padding:22px!important;box-sizing:border-box!important;
 }
 html body main .tool-card .card-action{white-space:nowrap!important;justify-content:center!important;gap:9px!important}
 html body main .tool-card :is(h3,p){max-width:100%!important;overflow-wrap:normal!important;word-break:normal!important}
}
/* Keep password controls within narrow phone viewports. */
@media(max-width:600px){
 html body main label:has(>input#password),html body main label:has(>input#confirm){min-width:0;width:100%;box-sizing:border-box}
 html body main input#password,html body main input#confirm{min-width:0;width:100%;max-width:100%;box-sizing:border-box}
 html body main div:has(>label>input#password){min-width:0;grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:600px){html body main fieldset:has(.password-fields){min-inline-size:0;min-width:0;width:100%;max-width:100%;box-sizing:border-box}html body main .password-fields{width:100%;max-width:100%;min-width:0;box-sizing:border-box}}
/* Compact mobile footer; retain comfortable expandable link controls. */
@media(max-width:600px){
 html body.mobile-product-ready .pp-site-footer{padding:18px 16px 12px!important}
 html body.mobile-product-ready .pp-footer-inner{padding:0!important}
 html body.mobile-product-ready .pp-footer-top{gap:12px!important}
 html body.mobile-product-ready .pp-footer-brand{margin:0!important;text-align:center!important}
 html body.mobile-product-ready .pp-footer-brand p{font-size:12px!important;line-height:1.5!important;margin:6px auto 10px!important;max-width:280px}
 html body.mobile-product-ready .mobile-footer-toggle{min-height:44px;padding:9px 0;font-size:13px}
 html body.mobile-product-ready .mobile-footer-links{padding:0 0 8px}
 html body.mobile-product-ready .pp-footer-column .mobile-footer-links a{font-size:12px!important;line-height:1.5;padding:8px 0;min-height:34px}
 html body.mobile-product-ready .pp-footer-bottom{margin-top:12px!important;padding-top:12px!important;gap:8px!important;text-align:center!important}
 html body.mobile-product-ready .pp-footer-bottom p{font-size:11px!important;margin:0!important}
 html body.mobile-product-ready .pp-footer-bottom nav{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 16px!important}
 html body.mobile-product-ready .pp-footer-bottom nav a{font-size:11px!important;line-height:1.5;min-height:30px;display:inline-flex;align-items:center}
 html body.mobile-product-ready .pp-footer-note{font-size:10px!important;line-height:1.5!important;margin:8px auto 0!important;max-width:300px;text-align:center}
}
@media(max-width:600px){html body.mobile-product-ready .pp-site-footer{padding-top:30px!important}}
/* Legal links above centered copyright on every page and viewport. */
html body .pp-site-footer .pp-footer-bottom{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;gap:10px!important}
html body .pp-site-footer .pp-footer-bottom>nav{order:0;display:flex;flex-wrap:wrap;align-items:center;justify-content:center!important}
html body .pp-site-footer .pp-footer-bottom>p{order:1;text-align:center!important;margin:0!important;width:100%}
/* Balanced legal footer with a quiet utility link. */
html body .pp-site-footer .pp-footer-bottom{gap:8px!important;padding-top:18px!important;margin-top:24px!important}
html body .pp-site-footer .pp-footer-bottom>nav{order:0;gap:8px 22px!important}
html body .pp-site-footer .pp-footer-bottom>nav a{font-size:12px!important;line-height:1.5;min-height:32px;display:inline-flex;align-items:center;text-decoration:none}
html body .pp-site-footer .pp-footer-bottom>a{order:1;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;padding:4px 8px!important;min-height:32px!important;font-size:12px!important;line-height:1.5;text-decoration:none!important}
html body .pp-site-footer .pp-footer-bottom>a:hover{text-decoration:underline!important;color:#573087!important}
html body .pp-site-footer .pp-footer-bottom>p{order:2;font-size:12px!important;line-height:1.5;margin-top:2px!important}
html body .pp-site-footer .pp-footer-note{display:block!important;width:100%;max-width:660px!important;box-sizing:border-box;margin:10px auto 0!important;text-align:center!important;font-size:11px!important;line-height:1.65!important;color:#394515!important}
@media(max-width:600px){html body.mobile-product-ready .pp-site-footer .pp-footer-bottom{margin-top:16px!important;padding-top:14px!important;gap:4px!important}html body.mobile-product-ready .pp-site-footer .pp-footer-bottom>nav{gap:6px 16px!important}html body.mobile-product-ready .pp-site-footer .pp-footer-bottom>nav a{font-size:11px!important}html body.mobile-product-ready .pp-site-footer .pp-footer-note{max-width:300px!important;font-size:10px!important;margin-top:8px!important}}
/* Scroll action is reachable without interrupting footer content. */
html body .site-scroll-top{position:fixed;right:22px;bottom:24px;z-index:80;display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;border:1px solid #e3d6f4;border-radius:50%;background:#fff;color:#7441b0;box-shadow:0 3px 16px #24113620;cursor:pointer}
html body .site-scroll-top[hidden]{display:none!important}
html body .site-scroll-top:hover{background:#c6ff00;color:#172000;border-color:#b5e600}
html body .site-scroll-top:focus-visible{outline:3px solid #9561d7;outline-offset:3px}
@media(max-width:600px){html body .site-scroll-top{right:16px;bottom:calc(80px + env(safe-area-inset-bottom));width:44px;height:44px}html body.mobile-product-editing .site-scroll-top,html body.mobile-product-menu-open .site-scroll-top{display:none!important}}
@media print{html body .site-scroll-top{display:none!important}}
/* Keep recent history visually secondary to tool categories. */
html body main #recent-tools :is(h2,h3),html body main .ux-recent .ux-heading :is(h2,h3){font-size:26px!important;line-height:1.35!important}
@media(max-width:600px){html body main #recent-tools :is(h2,h3),html body main .ux-recent .ux-heading :is(h2,h3){font-size:20px!important;line-height:1.4!important}}
