/* Shared small-screen layout for the Studio and its account screens. */
.studio-shortcuts{display:none}
@media(max-width:900px){
  html{scroll-padding-top:76px}
  .site-header{height:auto;min-height:0;flex-wrap:wrap;padding:16px 20px;gap:10px}
  .site-header .brand-signature{width:100%;justify-content:center;min-width:0}
  .site-header .logo{width:124px}
  .site-header .brand-artist{font-size:22px}
  .site-header .member-nav{width:100%;justify-content:space-between;gap:12px;font-size:13px}
  .site-header .member-nav button,.site-header .member-nav a{min-height:44px;display:inline-flex;align-items:center;padding:8px 4px}
  main{padding:0 20px}
  .hero{grid-template-columns:minmax(0,1fr);min-height:0;gap:28px;padding:30px 0 38px}
  .hero-copy{max-width:none;padding:0!important}
  .hero h1{font-size:clamp(36px,6.8vw,52px);line-height:1.15}
  .hero h1 em{white-space:normal}
  .hero .intro{font-size:14px;max-width:540px}
  .hero-art{width:100%;max-width:480px;justify-self:center;height:300px}
  .hero-meta{flex-wrap:wrap;font-size:10px;gap:8px}
  .membership-section{padding-bottom:36px}
  .membership-section .studio-heading{flex-direction:column;align-items:stretch;gap:20px}
  .membership-section h2{font-size:34px}
  .billing-toggle{align-self:flex-start;width:100%;max-width:300px}
  .billing-toggle button{flex:1;min-height:44px;font-size:14px;padding:10px 16px}
  .plan-cards{grid-template-columns:minmax(0,1fr);gap:16px}
  .plan-card{padding:24px}
  .plan-card h3{font-size:28px}
  .plan-card ul{font-size:14px;margin:20px 0}
  .plan-card .micro{font-size:12px}
  .plan-card .primary{font-size:14px;min-height:48px}
  #studio{align-items:stretch;flex-wrap:wrap;gap:16px}
  #studio>div{flex:1 1 100%;min-width:0}
  #studio h2{font-size:32px;line-height:1.2}
  #studio #reset{align-self:flex-start;padding:10px 16px;font-size:13px;border:1px solid #dfccd7;border-radius:8px;background:#f7eef3}
  .studio-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;position:sticky;top:8px;z-index:10;padding:5px;margin:0 0 20px;border:1px solid #e7d8e0;border-radius:12px;background:#fff;box-shadow:0 4px 18px #38232f0c}
  .studio-shortcuts a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 4px;border-radius:8px;font-size:12px;color:#713856;text-align:center;line-height:1.35}
  .studio-shortcuts a:hover,.studio-shortcuts a:focus-visible{background:#f8eef4}
  .studio-layout{display:flex;flex-direction:column;gap:20px}
  .editor-column,.result-column{width:100%;min-width:0}
  .editor-column{gap:20px}
  .result-column{order:0}
  .result-sticky{position:static;display:flex;flex-direction:column;gap:20px;min-width:0}
  .panel,.panel.photo-tool,.panel.library{padding:22px;min-width:0}
  .preview{width:100%;border-radius:12px;padding:22px}
  .preview-top{font-size:10px;letter-spacing:1px}
  .nail-stage{height:220px}
  .nail-wrap{width:90px;height:155px}
  .stage-caption{font-size:12px}
  .result{padding-top:16px}
  .result h3{font-size:27px}
  .result p{font-size:13px;max-width:440px}
  .badge{font-size:9px;letter-spacing:1px;padding:5px 10px}
  .hand-panel{margin:0;width:100%}
  .hand-panel h3{font-size:25px}
  .hand-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .hand-options label{font-size:13px}
  .hand-options select{font-size:16px;min-height:48px;padding:10px}
  .recipe-panel{width:100%;border:1px solid var(--line);border-radius:12px;padding:22px}
  .section-label{font-size:9px;letter-spacing:1px;gap:9px;margin-bottom:18px}
  .section-label>span{width:24px;height:24px;flex-shrink:0}
  .muted{font-size:13px;line-height:1.7}
  .micro,.recipe-panel .micro{font-size:12px;line-height:1.7}
  .batch-row{gap:12px;margin-bottom:16px;padding-bottom:16px}
  .batch-row label{font-size:13px}
  .batch-row>div{gap:10px}
  .quantity-box{padding:16px;margin:20px 0}
  .quantity-box .batch-row{flex-wrap:wrap}
  .quantity-box .batch-row label{max-width:none;font-size:14px;flex:1 1 100%}
  .quantity-box #batchMl{width:88px;font-size:16px;min-height:48px}
  .quantity-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  .quantity-presets button{font-size:12px;min-height:44px;padding:8px 4px}
  .quantity-box .micro{font-size:12px}
  .find-heading{align-items:center;flex-wrap:wrap;gap:12px}
  .find-heading h3{font-size:25px}
  .clear-button{font-size:12px;min-height:44px;padding:8px 12px}
  .color-picker-row{flex-wrap:wrap;padding:12px;gap:12px}
  .color-picker-row>div{flex:1;justify-content:flex-end}
  .color-picker-row>label{font-size:13px}
  .small-button{font-size:12px;min-height:44px}
  .hsv-controls label{font-size:13px}
  .hsv-controls input[type=range]{padding:10px 0;background-clip:content-box!important;box-sizing:content-box}
  .upload-box{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;padding:16px;margin-top:20px}
  .upload-box strong{font-size:13px}
  .upload-box p{font-size:12px}
  .upload-box .upload{grid-column:1/-1;width:100%;justify-content:center;min-height:48px;font-size:14px;margin:0}
  .feature-lock{font-size:13px;line-height:1.7;padding:14px}
  .feature-lock .text-button,.feature-lock a{font-size:13px;min-height:44px;display:inline-flex;align-items:center;margin-inline-start:0;margin-inline-end:14px}
  .tabs{display:flex;gap:8px}
  .tabs button{flex:1;white-space:normal;font-size:13px;min-height:48px;padding:10px 4px}
  .library-heading{align-items:flex-start}
  .shade-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 8px}
  .artist-shades{grid-template-columns:repeat(4,minmax(0,1fr))}
  .shade-button{font-size:11px;line-height:1.4;min-width:0}
  .shade-button img{height:64px}
  .artist-heading h3{font-size:23px}
  #volumeTitle{font-size:19px}
  .volume-row,.volume-total{font-size:14px;padding:12px 0}
  .download-button{min-height:50px;font-size:14px;margin-top:18px}
  .mix-note{margin:24px 0 40px;padding:18px;gap:12px}
  .mix-note p{font-size:12px}
  .community{grid-template-columns:minmax(0,1fr);gap:24px;padding-bottom:40px}
  .community h2{font-size:38px}
  .community-intro>p:not(.eyebrow){max-width:none;font-size:14px}
  .community-dots{display:none}
  #experimentForm{min-width:0;padding:22px}
  #experimentForm input:not([type=checkbox]):not([type=color]){max-width:100%;min-width:0;font-size:16px;min-height:48px}
  #experimentForm input[type=file]{width:100%;font-size:13px;white-space:normal}
  #experimentForm input[type=file]::file-selector-button{min-height:44px;max-width:100%;font:inherit;padding:8px 12px;margin-inline-end:10px;border:1px solid #dfccd7;border-radius:7px;background:#f7eef3;color:#713856}
  #actualAmounts{gap:10px}
  #actualAmounts label{min-width:0;font-size:12px}
  #sendExperiment{width:100%;min-height:50px;font-size:14px}
  #experimentForm .consent{font-size:12px;align-items:flex-start;gap:10px}
  #experimentForm .consent input{min-width:22px;width:22px;height:22px;flex-shrink:0}
  .demo-grid{grid-template-columns:minmax(0,1fr);gap:18px}
  .demo-content{padding:22px}
  .demo-content>p{font-size:14px}
  .demo-content .micro{font-size:12px}
  .demo-content button{min-height:44px;font-size:13px}
  .gallery .studio-heading{flex-wrap:wrap;align-items:flex-start;gap:12px}
  .gallery .studio-heading h2{font-size:32px}
  .current-results-heading h3{font-size:28px}
  .gallery-explainer{font-size:14px}
  .carousel-toolbar button{min-height:44px;min-width:44px}
  .gallery #sharedExperiments.results-carousel{grid-auto-columns:85%;gap:14px}
  .result-card-content{padding:18px}
  .result-amounts,.result-total{font-size:12px}
  .gallery #sharedExperiments .result-card h3{font-size:24px}
  footer{padding:24px 20px;gap:20px;flex-wrap:wrap}
  footer .brand-signature{min-width:0;flex-wrap:wrap}
  footer .logo{width:120px}
  footer .brand-artist{font-size:21px}
  #accountDialog,#publishDialog{width:calc(100% - 24px);max-height:calc(100dvh - 24px);padding:20px;overflow-y:auto}
  #accountDialog .account-heading{top:-20px}
  #accountDialog input,.tncs-member-renew select{font-size:16px!important;min-height:48px}
  #closeAccount,#closePublishDialog{min-width:44px;min-height:44px}
  .tncs-member-heading{flex-wrap:wrap}
  .tncs-member-dates{grid-template-columns:1fr;gap:4px}
  .tncs-member-dates dd{text-align:start;margin-bottom:10px}
  /* Account forms must remain readable when the phone keyboard opens. */
  body.tncs-auth{min-width:0}
  .tncs-auth-header{padding:16px 20px;gap:10px;flex-wrap:wrap}
  .tncs-auth-brand{gap:10px;min-width:0}
  .tncs-auth-brand img{width:112px}
  .tncs-auth-brand span:last-child{font-size:20px}
  .tncs-auth-header nav{width:100%;justify-content:space-between;gap:16px;font-size:12px;margin:0}
  .tncs-auth-header nav a,.tncs-auth-header nav button{min-height:44px;display:inline-flex;align-items:center}
  .tncs-auth-layout{display:flex;flex-direction:column;min-height:0;padding:0 16px;margin:20px auto;max-width:600px}
  .tncs-auth-story{display:block;padding:24px;min-height:0;border-radius:16px 16px 0 0!important}
  .tncs-auth-story h1{font-size:30px;line-height:1.25;letter-spacing:-.5px;margin:0}
  .tncs-auth-story h1 br{display:none}
  .tncs-auth-story .tncs-auth-eyebrow{margin-bottom:10px}
  .tncs-auth-story-copy>p:last-child,.tncs-auth-photo,.tncs-auth-story-footer{display:none}
  .tncs-auth-panel{padding:28px 24px;border:1px solid var(--line)!important;border-top:0!important;border-radius:0 0 16px 16px!important;min-width:0}
  .tncs-auth-panel-inner{max-width:none;min-width:0}
  .tncs-auth-panel h2{font-size:31px;line-height:1.2}
  .tncs-auth-panel :is(.woocommerce-error,.wc-block-components-notice-banner){overflow-wrap:anywhere;font-size:13px}
  .tncs-auth-description{font-size:14px;line-height:1.7;margin-bottom:24px}
  .tncs-auth-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:26px}
  .tncs-auth-tabs a{display:flex;align-items:center;min-height:44px;font-size:13px;padding-bottom:10px;line-height:1.4}
  .tncs-auth-panel label{font-size:13px;line-height:1.6;margin-bottom:8px;overflow-wrap:anywhere}
  body.tncs-auth .tncs-auth-panel input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]),body.tncs-auth .tncs-auth-panel select:not(.select2-hidden-accessible){font-size:16px!important;min-height:52px!important;height:52px!important;line-height:24px!important;min-width:0}
  body.tncs-auth .tncs-auth-panel textarea{font-size:16px!important;min-height:100px;line-height:1.6}
  body.tncs-auth .tncs-auth-panel .select2-container .select2-selection--single{height:52px!important;min-height:52px!important;font-size:16px}
  .tncs-auth-panel .select2-container{min-width:0;max-width:100%}
  body.tncs-auth .select2-dropdown{max-width:calc(100vw - 48px);font-size:16px}
  body.tncs-auth .select2-search__field{font-size:16px!important;min-height:44px}
  body.tncs-auth .select2-results__option{min-height:44px;padding:10px 12px;line-height:1.5}
  .tncs-auth-password button{top:4px;right:4px;height:44px;min-width:58px;font-size:12px}
  html[dir=rtl] .tncs-auth-password button{right:auto;left:4px}
  .tncs-auth-form-options{flex-wrap:wrap;gap:8px 16px;margin:6px 0 18px}
  .tncs-auth-form-options label{min-height:44px;font-size:12px;gap:8px;margin:0}
  .tncs-auth-form-options input{width:22px;height:22px;flex-shrink:0}
  .tncs-auth-form-options>a{min-height:44px;display:inline-flex;align-items:center;font-size:12px}
  .tncs-auth-panel button.tncs-auth-primary,.tncs-auth-recovery button[type=submit]{min-height:52px;font-size:14px;padding:14px 18px}
  .tncs-auth-switch{font-size:12px;line-height:1.8}
  .tncs-auth-switch a{display:inline-block;padding:6px 0}
  .tncs-auth-panel .woocommerce-privacy-policy-text{font-size:12px;line-height:1.7}
  .tncs-auth-upgrade p{font-size:13px}
  .tncs-auth-upgrade a{font-size:13px;min-height:44px;align-items:center}
  .tncs-auth-upgrade small{font-size:11px;line-height:1.7}
  .tncs-auth-footer{gap:16px;flex-wrap:wrap;padding:0 20px 24px;font-size:11px}
  .tncs-auth-footer a{min-height:44px;display:inline-flex;align-items:center}
}
@media(max-width:600px){
  .tncs-auth-story{display:none}
  .tncs-auth-panel{border-radius:16px!important;border-top:1px solid var(--line)!important}
  .tncs-auth-layout{margin-top:16px}
}
@media(max-width:360px){
  main{padding:0 14px}
  .site-header{padding:12px 14px}
  .site-header .logo{width:110px}
  .site-header .brand-artist{font-size:20px}
  .panel,.panel.photo-tool,.panel.library,.recipe-panel,#experimentForm{padding:18px}
  .hand-options{gap:8px}
  .studio-shortcuts a{font-size:11px}
  .quantity-box{padding:12px}
  .tncs-auth-layout{padding:0 12px}
  .tncs-auth-panel{padding:24px 20px}
  .tncs-auth-header{padding:12px 16px}
  .tncs-auth-brand img{width:106px}
  .tncs-auth-brand span:last-child{font-size:19px}
}
