/* Responsive refinements: keep the full circular identity and every control reachable. */
[hidden]{display:none!important}
/* Contain full-bleed section reveals without creating a nested scroll container. */
main#main{overflow-x:clip}
.pm-nav>*{min-width:0}
.pm-article-content,.pm-article-content>*,.pm-article-shell>*,.pm-buying-hero-grid>*,.pm-studio-header>*,.pm-studio-stage,.pm-tool-top>*,.pm-pdf-vault-grid>*{min-width:0}
.pm-article-content a,.pm-source-note,.pm-breadcrumb,.pm-output-notice{overflow-wrap:anywhere}
.pm-comparison-scroll,.pm-output-table-wrap{max-width:100%;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
.pm-search-form:focus-within{outline:3px solid var(--pm-cyan);outline-offset:4px}
.pm-dialog{max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
.pm-cookie-banner{max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
.pm-cookie-title-wrap,.pm-cookie-title-wrap>div{min-width:0}
.pm-cookie-icon{flex-shrink:0}
.pm-cookie-header{flex-wrap:wrap}
.pm-cookie-status-pill{max-width:100%;white-space:normal}
.pm-cookie-actions>button{min-height:44px}
.pm-cookie-option>div{min-width:0}

@media(max-width:1280px){
  :root{--pm-brand-header-height:120px;--pm-responsive-gutter:max(24px,env(safe-area-inset-left),env(safe-area-inset-right))}
  html{scroll-padding-top:calc(var(--pm-brand-header-height) + 20px)}
  .pm-wrap{width:calc(100% - var(--pm-responsive-gutter) - var(--pm-responsive-gutter))}
  .pm-nav{display:flex;justify-content:space-between;gap:16px}
  .pm-nav-links{display:none}
  .pm-logo .pm-brand-image{width:104px;height:104px}
  .pm-nav-tools{gap:8px}
  .pm-menu-button{display:grid;flex-shrink:0}
  .pm-icon-button,.pm-search-pill{min-width:44px;min-height:44px}
  .pm-shop-link{min-height:44px}
  .pm-mobile-nav{display:block;position:absolute;top:100%;right:0;bottom:auto;left:0;max-height:calc(100dvh - var(--pm-brand-header-height) - 44px);overflow-y:auto;overscroll-behavior:contain;background:#fff;border-bottom:1px solid var(--pm-line);box-shadow:0 20px 40px #0b173929;padding:16px max(20px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));z-index:29}
  .pm-mobile-nav-grid{display:grid;gap:4px}
  .pm-mobile-nav a{display:flex;align-items:center;gap:12px;min-height:48px;padding:12px;border-radius:8px;font-size:15px;line-height:1.5;font-weight:650;color:var(--pm-navy)}
  .pm-mobile-nav a:hover,.pm-mobile-nav a:focus-visible{background:var(--pm-pale);color:var(--pm-blue)}
  .pm-mobile-nav .pm-icon{width:18px;height:18px;color:var(--pm-blue)}
  .pm-topbar-links{display:none}
  .pm-topbar-copy{display:none}
  .pm-reveal-3d,.pm-tilt-3d{transform:none!important}
  .pm-topics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pm-topic{min-width:0}
  .pm-topic>div{min-width:0}
  .pm-topic strong,.pm-topic span{overflow-wrap:break-word}
  .pm-buying-hero-grid,.pm-studio-header,.pm-decoder-grid,.pm-pdf-vault-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pm-stack-item{grid-template-columns:repeat(3,minmax(0,1fr))}
  .pm-stack-field{min-width:0}
  .pm-cost-packs,.pm-cost-two-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pm-article-shell{grid-template-columns:minmax(0,1fr)}
  .pm-article-rail{position:static;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
  .pm-article-aside{grid-column:auto;position:static;grid-template-columns:repeat(2,minmax(0,1fr))}
  input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px!important;max-width:100%}
  input:not([type=checkbox]):not([type=radio]),select{min-height:48px}
  button,.pm-button,.pm-actions>a,.pm-filter-chip{min-height:44px;touch-action:manipulation}
  .pm-studio-tab{transition:background .2s,border-color .2s,color .2s,box-shadow .2s,transform .2s}
}
@media(max-width:760px){
  :root{--pm-brand-header-height:112px;--pm-responsive-gutter:max(16px,env(safe-area-inset-left),env(safe-area-inset-right))}
  .pm-logo .pm-brand-image{width:96px;height:96px}
  .pm-nav{gap:12px}
  .pm-search-pill{padding:10px}
  .pm-search-pill-text{display:none}
  .pm-shop-link{padding:10px 14px}
  .pm-buying-hero-grid,.pm-studio-header,.pm-decoder-grid,.pm-pdf-vault-grid,.pm-article-rail,.pm-article-aside,.pm-cost-packs{grid-template-columns:minmax(0,1fr)}
  .pm-hero-copy{padding-top:32px}
  .pm-hero-description{font-size:16px;line-height:1.75}
  .pm-art{height:420px;min-height:0;max-width:100%}
  .pm-art:before{width:min(340px,100%);height:auto;aspect-ratio:1;top:45px}
  .pm-art:after{width:min(390px,110%);height:auto;aspect-ratio:1;top:25px}
  .pm-3d-switcher{width:100%;max-width:390px;border-radius:16px;padding:4px;gap:2px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .pm-3d-chip{min-width:0;min-height:44px;white-space:normal;line-height:1.35;font-size:11px;padding:7px 5px;border-radius:12px}
  .pm-hud-top{top:72px}
  .pm-hud-bottom{bottom:58px}
  .pm-topic{padding:18px 12px;gap:10px;align-items:flex-start}
  .pm-topic-icon{width:36px;height:36px;border-radius:10px}
  .pm-topic strong{font-size:13px;line-height:1.5}
  .pm-topic span:not(.pm-topic-icon){font-size:11px;line-height:1.5}
  .pm-section{padding-block:52px}
  .pm-section-heading{margin-bottom:28px}
  .pm-section-heading h2{font-size:clamp(36px,9vw,52px);line-height:1.08;letter-spacing:-1px}
  .pm-tool-top{flex-direction:column;align-items:flex-start;gap:18px}
  .pm-studio-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .pm-studio-tab{padding:14px 12px;gap:8px}
  .pm-studio-tab-num{font-size:20px;padding:5px 7px}
  .pm-studio-tab strong{font-size:12px}
  .pm-studio-tab span:not(.pm-studio-tab-num){font-size:11px}
  .pm-studio-stage,.pm-pdf-vault{padding:22px 16px}
  .pm-stack-item{grid-template-columns:repeat(2,minmax(0,1fr));padding:16px 12px}
  .pm-stack-field:first-child{grid-column:1/-1}
  .pm-decoder-box,.pm-sleep-inputs-grid,.pm-tool-output,.pm-pdf-capture-form{padding:20px 14px}
  .pm-sleep-inputs-grid,.pm-output-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pm-pdf-vault-grid{gap:24px}
  .pm-tool-actions,.pm-tool-preset-actions,.pm-cost-actions{gap:14px}
  .pm-tool-actions>button,.pm-pdf-submit-btn{white-space:normal;line-height:1.5}
  .pm-article-content{font-size:16px;line-height:1.8}
  .pm-article-content h2{font-size:32px;line-height:1.15}
  .pm-article-shell{padding-block:32px 52px;gap:28px}
  .pm-article-head h1{font-size:clamp(38px,8vw,58px);overflow-wrap:break-word}
  .pm-breadcrumb{flex-wrap:wrap;line-height:1.6}
  .pm-dialog{padding:52px 20px 24px;border-radius:14px}
  .pm-dialog h2{font-size:32px}
  .pm-dialog-close{top:8px;right:8px}
  .pm-quiet-dialog .pm-quiet-art{height:230px}
  .pm-quiet-dialog .pm-quiet-orb{width:145px;height:145px}
  .pm-quiet-dialog .pm-quiet-art:before{width:200px;height:200px}
  .pm-quiet-dialog .pm-quiet-art:after{width:225px;height:225px}
  .pm-cookie-banner{left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));width:auto;max-height:calc(100dvh - 24px)}
  .pm-cookie-card{padding:20px}
  .pm-cookie-title{font-size:26px}
  .pm-cookie-desc{font-size:13px}
  .pm-cookie-locked{white-space:normal;text-align:center}
}
@media(max-width:380px){
  .pm-shop-link{width:44px;padding:10px;justify-content:center}
  .pm-shop-link>span{display:none}
  .pm-nav-tools{gap:6px}
  .pm-topic{flex-direction:column}
  .pm-studio-tabs,.pm-stack-item,.pm-sleep-inputs-grid,.pm-output-metrics,.pm-cost-two-fields{grid-template-columns:minmax(0,1fr)}
  .pm-tool-preset-actions{width:100%}
  .pm-tool-preset-actions>button{width:100%}
}
@media(max-height:520px) and (max-width:1280px){
  .pm-dialog{padding-top:48px}
  .pm-quiet-dialog .pm-quiet-art{height:120px}
  .pm-quiet-dialog .pm-quiet-orb{width:90px;height:90px}
  .pm-quiet-dialog .pm-quiet-art:before{width:110px;height:110px}
  .pm-quiet-dialog .pm-quiet-art:after{width:120px;height:120px}
}
@media(hover:none),(pointer:coarse){
  .pm-tilt-3d{transform:none!important}
}
