/* Mobile layout: preserve all content, assets and customer tools. */
/* Contact form precedes preparation notes in DOM; preserve desktop columns. */
.tg-contact58>.tg-prose{grid-column:1;grid-row:1}
.tg-contact58>form{grid-column:2;grid-row:1}
@media(max-width:760px){
 html:root{scroll-padding-top:112px}
 header.tg-header>.tg-top .tg-wrap{min-height:26px;padding-block:5px;gap:12px;line-height:1.4}
 header.tg-header>.tg-headrow{position:relative;min-height:58px;padding-block:6px;column-gap:6px;row-gap:6px;flex-wrap:wrap}
 header.tg-header a.tg-brand{width:auto;min-width:0;min-height:0;flex:0 0 auto}
 header.tg-header a.tg-brand img.tg-official-logo{width:44px}
 header.tg-header .tg-headlinks.heads33{gap:4px;flex:0 0 auto;margin-left:auto;align-items:center}
 header.tg-header .heads33 .head33,header.tg-header .account-menu33>summary,header.tg-header .tg-menu-toggle{min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center;padding:8px;gap:5px}
 header.tg-header .heads33 .favhead33,header.tg-header .heads33 .contact33{display:none}
 header.tg-header .heads33 .head33>span{display:none}
 header.tg-header .account-menu33{position:static}
 header.tg-header .account-drop33{right:0;top:calc(100% - 2px);width:min(320px,100%);max-height:calc(100dvh - 112px);overflow-y:auto;overscroll-behavior:contain}
 header.tg-header.menu-open>.tg-headrow>.tg-search{display:block;flex:0 0 100%;width:100%;min-width:0;max-width:none;order:3;margin-bottom:0}
 header.tg-header .tg-search input{font-size:16px;min-height:46px;padding-block:11px}
 header.tg-header .tg-search-result{max-height:40dvh;overflow-y:auto}
 header.tg-header.menu-open>.tg-navrow{max-height:calc(100dvh - 164px);overflow-y:auto;overscroll-behavior:contain}
 header.tg-header .tg-nav{padding-top:0}
 header.tg-header .tg-nav>a,header.tg-header .tg-navsummary{min-height:46px;display:flex;align-items:center}
 header.tg-header .tg-navdetails{padding-block:0}
 .tg-main .tg-hero{padding:24px 0 30px}
 .tg-main .tg-hero-grid{gap:24px}
 .tg-main .tg-hero h1{font-size:clamp(28px,8.2vw,34px);line-height:1.16;letter-spacing:-1px;margin-block:18px}
 .tg-main .tg-lead{font-size:15px;line-height:1.75}
 .tg-main .tg-actions{gap:10px;margin-top:22px}
 .tg-main .tg-hero .tg-actions{display:grid;grid-template-columns:1fr 1fr}
 .tg-main .tg-hero .tg-actions>.tg-btn{padding:12px 10px;font-size:12px;gap:8px;justify-content:center;min-width:0}
 .tg-main .tg-hero-note{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:22px;line-height:1.6}
 .tg-main .tg-hero-note>span{padding-inline:8px;font-size:10px}
 .tg-main .tg-hero-note>span:first-child{padding-left:0}
 .tg-main .tg-hero-note strong{font-size:11px}
 .tg-main .tg-section{padding-block:32px}
 .tg-main .tg-pagehero{padding:20px 0 26px}
 .tg-main .tg-pagehero h1{font-size:clamp(27px,7.6vw,34px);line-height:1.2;letter-spacing:-.8px;margin-block:18px}
 .tg-main .tg-pagehero .tg-breadcrumb{margin-bottom:20px;line-height:1.6}
 .tg-main .tg-contact58{gap:28px}
 .tg-main .tg-contact58>form,.tg-main .tg-contact58>.tg-prose{grid-column:auto;grid-row:auto}
 .tg-main .tg-form{padding:22px 18px}
 .tg-main .tg-form h2{font-size:24px}
 .tg-main input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.tg-main select,.tg-main textarea,.tg-product-main select{font-size:16px;min-height:46px}
 .tg-main .tg-form label{font-size:13px}
 .tg-main .tg-form-check{font-size:13px!important;line-height:1.65;gap:12px}
 .tg-main .tg-form-check input{width:20px;height:20px;flex:none}
 #quote31 input,#quote31 textarea,#quote31 select,#quote31 button{scroll-margin-top:112px}
 .tg-main .tg-btn,.tg-product-main .button{min-height:46px;justify-content:center}
 .tg-product-main .scene{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  justify-items:center;
  gap:8px;
  height:auto;
  padding:16px 10px;
 }
 .tg-product-main .scene .back-title{
  position:static;
  text-align:center;
  color:#625e59;
  line-height:1.5;
 }
 .tg-product-main .scene .stage{
  top:auto;
  height:clamp(210px,65vw,340px);
  min-width:0;
 }
 .tg-product-main .scene .view-toggle{
  position:static;
  transform:none;
 }
 .tg-product-main .layout{grid-template-columns:minmax(0,1fr);gap:22px}
 .tg-product-main .layout>section{min-width:0}
 .tg-product-main .view-toggle button{min-height:44px;min-width:80px}
 .tg-product-main .palette{grid-template-columns:repeat(auto-fit,minmax(44px,1fr))}
 .tg-product-main .palette button{min-height:44px;min-width:44px}
 .account-area33 .account-title33{flex-wrap:wrap;align-items:flex-start;gap:12px}
 .account-area33 .account-title33 h1{font-size:28px;line-height:1.2}
 .account-area33 .account-title33>.tg-btn{white-space:normal;min-height:44px;padding:10px 14px;font-size:12px}
 .account-area33 .account-side33 nav{scrollbar-width:thin;scroll-padding-inline:10px}
 .account-area33 .account-side33 nav a{min-height:46px;display:flex;align-items:center;flex-shrink:0}
 .account-area33 .account-toolbar33 button,.account-area33 .account-toolbar33 select{min-height:44px}
 .tg-main .local-note33{font-size:12px;line-height:1.7}
 .tg-main .local-note33 a{display:inline}
 .tg-main .help-grid33>a,.tg-main .overview33>a{padding:18px}
 .links33{padding-block:14px}
 .links33>.tg-wrap{flex-wrap:nowrap;overflow-x:auto;gap:20px;scrollbar-width:thin;padding-block:4px}
 .links33>.tg-wrap>*{flex-shrink:0;white-space:nowrap;min-height:44px;display:flex;align-items:center}
 .links33>.tg-wrap>b{width:auto}
 .tg-footer .tg-footer-main h3{margin-bottom:12px}
 .tg-footer .tg-footer-main>div:not(:first-child)>a{min-height:44px;display:flex;align-items:center;padding-block:8px}
 .tg-floating-help{width:44px;height:44px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px))}
 .help-dialog33{max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;padding:20px}
 .help-dialog33 .help-top33>button{min-height:44px;min-width:44px}
 /* Studio retains all seven tools and the complete graphic library. */
 body:not(.tg-staff)>.bottom{padding-bottom:calc(12px + env(safe-area-inset-bottom,0px));height:calc(76px + env(safe-area-inset-bottom,0px))}
 body:not(.tg-staff)>.bottom button{min-height:44px}
 body:not(.tg-staff)>dialog{max-height:calc(100dvh - 24px);overflow-y:auto}
 .tg-staff input:not([type=checkbox]):not([type=radio]){font-size:16px;min-height:46px}
}
/* Fit the brand and all five touch controls on the same mobile row. */
@media(max-width:480px){
 header.tg-header>.tg-headrow{column-gap:6px;align-items:center}
 header.tg-header .tg-headlinks.heads33{gap:2px;align-items:center}
 header.tg-header .heads33 .account-menu33>summary{width:44px;padding-inline:0}
 header.tg-header .heads33 .account-menu33>summary>span,
 header.tg-header .heads33 .account-menu33>summary>i{display:none}
 header.tg-header .heads33 .account-menu33>summary>svg{display:block}
 header.tg-header .heads33 .carthead33{padding-inline:4px;gap:2px}
 header.tg-header .heads33 .carthead33>svg{width:16px;flex-shrink:0}
 header.tg-header .heads33 .carthead33>b{min-width:16px;padding-inline:2px}
}
@media(max-width:359px){
 header.tg-header a.tg-brand img.tg-official-logo{width:42px}
 header.tg-header .tg-headlinks.heads33{gap:2px}
 .tg-main .tg-hero .tg-actions{grid-template-columns:1fr}
 .tg-main .saved-grid33,.tg-main .overview33,.tg-main .help-grid33{grid-template-columns:1fr}
}

@media (max-width:760px) {
 .tg-main .product-grid-swatches button{flex:1 0 25%;min-width:44px;max-width:56px}
 .tg-main .product-grid-name{overflow-wrap:anywhere}
 .tg-main .tg-actions>.tg-btn{white-space:normal;text-align:center}
 .tg-main .tg-form :is(input,select,textarea){max-width:100%;box-sizing:border-box}
}
@media (max-height:500px) and (pointer:coarse) {
 .assistant78 .assistant-head78{padding-block:6px}
 .assistant78 .assistant-actions78{padding-block:6px calc(6px + env(safe-area-inset-bottom,0px))}
 .assistant78 .assistant-tools78{min-height:44px}
}

@media (max-width:1024px) and (pointer:coarse) {
 .account-area33 .group-intro33{grid-template-columns:minmax(0,1fr)}
 .account-area33 .group-intro33 .tg-btn{white-space:normal;text-align:center}
}
