/* Approved phone layout. Desktop structure and product rendering are retained. */
.jma-brand-name,.jma-language,.jma-delivery,.jma-step-picker,.jma-studio-title,.jma-3d-label{display:none}
@media screen and (max-width:760px){
 html[data-theme] body.jma-public{--jk-bg:#faf8f4;--jk-surface:#fffdfa;--jk-soft:#f1ece5;--jk-ink:#282522;--jk-muted:#6b655e;--jk-line:#e4dfd6;--jk-primary:#e8590c;--jk-accent:#d84d00;--jk-accent-soft:#fbe8d8;background-image:none!important}
 html[data-theme=dark] body.jma-public{--jk-bg:#1e1e1c;--jk-surface:#242422;--jk-soft:#2e2d29;--jk-ink:#f5f2eb;--jk-muted:#c6c0b7;--jk-line:#3d3b36;--jk-primary:#e8590c;--jk-accent:#f87c38;--jk-accent-soft:#3b2b21}
 body.jma-public.jm-ready .header-inner{min-height:64px;padding:8px 14px;gap:6px}
 body.jma-public .header-inner .brand{gap:9px;flex-shrink:0;min-width:0}
 body.jma-public .header-inner .brand-logo{width:36px!important;height:37px!important}
 body.jma-public .jma-brand-name{display:block;font:600 13px/1.2 Outfit,Arial,sans-serif;letter-spacing:.8px;color:var(--jk-ink);white-space:nowrap}
 body.jma-public .header-inner .brand-context,body.jma-public .header-actions>.language-switch{display:none!important}
 body.jma-public .header-actions{margin-left:auto;gap:1px!important}
 body.jma-public .jma-language{display:block;margin:0}
 body.jma-public .jma-language select{width:59px;height:44px;min-height:44px;border:0;background:transparent;color:var(--jk-ink);font:500 14px Outfit,Arial,sans-serif;padding:8px 3px;cursor:pointer}
 body.jma-public.jm-ready .header-actions :is(.theme-toggle,.menu-btn){min-width:42px;width:42px;height:44px;min-height:44px;border:0;background:transparent;border-radius:7px}
 body.jma-public .header-actions .theme-toggle svg{width:21px;height:21px;flex-shrink:0}
 html[data-theme=light] body.jma-public .header-actions .theme-toggle .theme-moon,html[data-theme=dark] body.jma-public .header-actions .theme-toggle .theme-sun{display:none!important}
 html[data-theme=light] body.jma-public .header-actions .theme-toggle .theme-sun,html[data-theme=dark] body.jma-public .header-actions .theme-toggle .theme-moon{display:block!important}
 body.jma-public .header-actions .menu-btn{font-size:25px}
 body.jma-public[data-page=home] .jk-home-hero{min-height:0;display:block;padding:0 16px;overflow:visible;isolation:auto;background:var(--jk-bg)}
 body.jma-public[data-page=home] .jk-home-hero:before,body.jma-public[data-page=home] .jk-home-hero:after{display:none!important}
 body.jma-public[data-page=home] .jk-home-hero>.jk-container{width:100%;max-width:640px;padding:0;margin:0 auto}
 html[data-theme] body.jma-public[data-page=home] .jk-hero-copy{width:100%;max-width:none;padding:24px 0 0}
 body.jma-public .jk-hero-copy .jk-kicker{font-size:10px;letter-spacing:1.7px;margin:0 0 12px;color:var(--jk-primary)}
 body.jma-public .jk-hero-copy .jk-kicker:before{display:none}
 body.jma-public .jk-hero-copy h1{font-size:clamp(36px,10.8vw,54px);line-height:1.01;max-width:none;letter-spacing:-1.1px;margin:0 0 12px}
 body.jma-public .jk-hero-copy .jk-lead{font-size:15px;line-height:1.5;max-width:100%;margin:0 0 18px}
 html[data-theme] body.jma-public[data-page=home] .jk-theme-media.jk-hero-photo{position:relative!important;inset:auto!important;z-index:auto;display:block;width:100%!important;height:auto!important;aspect-ratio:1.15;overflow:hidden;border-radius:9px;margin:0 0 12px;filter:none!important}
 html[data-theme] body.jma-public[data-page=home] .jk-hero-photo>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:58% center!important;filter:none!important}
 html[data-theme=light] body.jma-public[data-page=home] .jk-hero-photo>.jk-photo-light,html[data-theme=dark] body.jma-public[data-page=home] .jk-hero-photo>.jk-photo-dark{display:block!important;opacity:1!important;visibility:visible!important}
 html[data-theme=light] body.jma-public[data-page=home] .jk-hero-photo>.jk-photo-dark,html[data-theme=dark] body.jma-public[data-page=home] .jk-hero-photo>.jk-photo-light{display:none!important}
 body.jma-public .jk-hero-copy .jk-actions{display:flex;flex-direction:column;gap:0;max-width:none}
 body.jma-public .jk-hero-copy .jk-actions>a{flex:auto;width:100%;font-size:16px;min-height:48px;padding:12px 16px;justify-content:center;border-radius:7px}
 body.jma-public .jk-hero-copy .jk-actions>.primary-btn{gap:18px}
 body.jma-public .jk-hero-copy .jk-actions>.secondary-btn{background:transparent;border:0;min-height:44px;color:var(--jk-ink);text-decoration:underline;text-underline-offset:4px;font-size:14px}
 body.jma-public .jk-hero-copy .jk-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:none;margin:8px 0 0;padding:12px 0 18px;border:0;border-bottom:1px solid var(--jk-line);border-radius:0;background:transparent;backdrop-filter:none}
 body.jma-public .jk-stats>div:nth-child(2),body.jma-public .jk-stats>div:nth-child(3){display:none}
 body.jma-public .jk-stats>div:first-child{display:flex;flex-direction:row;align-items:center;gap:8px;padding:0}
 body.jma-public .jk-stats strong{font-size:24px}
 body.jma-public .jk-stats span{font-size:12px;line-height:1.35;letter-spacing:0;text-transform:none}
 body.jma-public .jk-stats>.jma-delivery{display:flex;flex-direction:row;align-items:center;gap:9px;border-left:1px solid var(--jk-line);padding-left:14px}
 .jma-delivery svg{width:28px;height:28px;flex:none;fill:none;stroke:var(--jk-primary);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 body.jma-public .jk-home-hero+.jk-section{padding-top:24px}
 body.jma-public .jk-home-products .jk-card-photo{aspect-ratio:1.15}
 body.jma-public .jk-home-products .jk-card-body h3{font-size:17px;line-height:1.3}
 body.jma-public .jk-home-products .jk-card-body .jk-text-link{font-size:12px;min-height:36px}
 body.jma-public .jm-bottom-nav{background:var(--jk-surface);border-color:var(--jk-line);box-shadow:0 -4px 18px #00000008;padding-top:6px;padding-bottom:max(6px,env(safe-area-inset-bottom))}
 body.jma-public .jm-nav-item{min-height:48px;gap:4px;background:transparent!important;color:var(--jk-muted)}
 body.jma-public .jm-nav-item[aria-current]{color:var(--jk-primary)}
 body.jma-public .jm-nav-item>span{font-size:11px}
 body.jma-public .jm-nav-item svg{width:22px;height:22px}
 /* The native modal keeps its focus trap, Escape, scroll restoration and original links. */
 body.jma-public #jkMobileSheet[data-kind=menu]{inset:var(--jm-visible-top,0px) 0 auto;max-width:none;width:100%;height:var(--jm-visible-height,100dvh);max-height:none;margin:0;border:0;border-radius:0;background:var(--jk-bg);box-shadow:none}
 body.jma-public #jkMobileSheet[data-kind=menu] .jm-sheet-head{padding:16px 22px 8px;border:0;background:var(--jk-bg);flex-wrap:wrap}
 body.jma-public #jkMobileSheet[data-kind=menu] .jm-sheet-grip{display:none}
 .jma-menu-brand{display:flex;align-items:center;gap:12px;flex:1;font-size:14px;font-weight:600;letter-spacing:1.2px}
 .jma-menu-brand img{width:39px;height:40px;object-fit:contain}
 body.jma-public .jma-menu .jm-sheet-close{order:1;border:0;background:transparent;font-size:32px}
 body.jma-public .jma-menu #jmSheetTitle{order:2;flex-basis:100%;font:400 40px/1.15 'Cormorant Garamond',Georgia,serif;padding-top:20px;margin:0}
 body.jma-public .jma-menu .jm-sheet-content{padding:0 22px max(18px,env(safe-area-inset-bottom));display:flex;flex-direction:column}
 body.jma-public .jma-menu #mobileNav{flex:none;gap:0}
 body.jma-public .jma-menu #mobileNav a{font-size:18px;padding:13px 0;min-height:52px;border-radius:0;display:flex;justify-content:space-between}
 body.jma-public .jma-menu #mobileNav a:after{content:'→';font-size:21px;font-weight:300;color:var(--jk-muted)}
 body.jma-public .jma-menu #mobileNav .login-btn{background:var(--jk-soft);border:0;border-radius:8px;padding-inline:14px;margin:12px 0 8px}
 .jma-menu-extras{padding-top:16px;margin-top:auto}
 .jma-menu-preferences{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
 .jma-menu-languages,.jma-menu-themes{display:flex;gap:4px}
 .jma-menu-languages{border:1px solid var(--jk-line);padding:3px;border-radius:8px}
 .jma-menu-preferences button{border:0;background:transparent;color:var(--jk-ink);min-width:44px;min-height:44px;padding:8px;border-radius:6px;cursor:pointer}
 .jma-menu-languages button[aria-pressed=true]{background:var(--jk-primary);color:white}
 .jma-menu-themes button{border:1px solid var(--jk-line);border-radius:50%}
 .jma-menu-themes button[aria-pressed=true]{color:var(--jk-primary);border-color:var(--jk-primary)}
 .jma-menu-themes svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;vertical-align:middle}
 .jma-menu-create{display:flex;align-items:center;justify-content:center;background:var(--jk-primary);color:#fff!important;min-height:50px;border-radius:8px;font-size:16px;gap:20px;padding:12px;text-decoration:none}
 .jma-menu-phone{display:block;text-align:center;color:var(--jk-ink);font-size:15px;padding:16px 0 0;text-decoration:none;min-height:44px}
 /* Both editor modes share their controls and validation; only the arrangement changes. */
 html[data-theme] body.jma-wizard{--bg:#faf8f4;--panel:#fffdfa;--ink:#282522;--muted:#6b655e;--line:#e4dfd6;--soft:#f1ece5;--orange:#e8590c;--selected:#fff0e4;--jk-bg:var(--bg);--jk-surface:var(--panel);--jk-ink:var(--ink);--jk-muted:var(--muted);--jk-line:var(--line);background:var(--bg);color:var(--ink)}
 html[data-theme=dark] body.jma-wizard{--bg:#1e1e1c;--panel:#242422;--ink:#f5f2eb;--muted:#c6c0b7;--line:#3d3b36;--soft:#2e2d29;--selected:#3b2b21}
 .jma-wizard .topbar{height:62px;padding:0 14px;gap:8px;background:var(--panel)}
 .jma-wizard .original-brand{gap:8px}.jma-wizard .original-brand>span{display:none}
 .jma-wizard .original-brand img{width:34px;height:35px}
 .jma-wizard .jma-brand-name{display:block;font-size:12px;letter-spacing:.6px;white-space:nowrap}
 .jma-wizard .home-link{display:none}.jma-wizard .top-actions{gap:3px}
 .jma-wizard .top-actions :is(button,select){min-height:44px}.jma-wizard .language select{width:51px;padding:6px 2px;font-size:14px}
 .jma-wizard .project-trigger{min-width:42px;padding:8px;gap:4px}
 .jma-wizard .wizard-intro{display:block;padding:15px 16px 12px}
 .jma-wizard .wizard-intro :is(.eyebrow,#studioTitle,#designIntro){display:none}
 .jma-wizard .jma-studio-title{display:block;font:400 34px/1.12 Georgia,serif;letter-spacing:-1px;margin:0 0 14px}
 .jma-wizard .mode-controls{display:flex;width:100%;margin:0;gap:3px;padding:3px;background:var(--soft)}
 .jma-wizard .mode-controls>button{flex:1;min-height:40px;font-size:14px}
 .jma-wizard .mode-controls>button[aria-pressed=true]{background:var(--panel);box-shadow:0 1px 5px #0001;color:var(--orange)}
 .jma-wizard .wizard-shell,.jma-wizard[data-layout=classic] .wizard-shell{display:block;padding:0 12px 16px;width:100%;max-width:none}
 .jma-wizard #workspace,.jma-wizard[data-layout=classic] #workspace{display:flex;flex-direction:column;gap:0;width:100%}
 .jma-wizard .stage-column{position:relative;top:auto;padding:0 0 10px;background:transparent;border:0;width:100%;z-index:auto}
 .jma-wizard .stage-tools{position:absolute;z-index:2;left:10px;right:10px;top:10px;padding:0;gap:6px;pointer-events:none}
 .jma-wizard .stage-tools>*{pointer-events:auto}.jma-wizard .stage-tools>strong{display:none}
 .jma-wizard .stage-tools .segmented{background:var(--panel);box-shadow:0 2px 10px #0001}
 .jma-wizard .stage-tools .segmented button{font-size:12px;min-height:38px;padding:7px 10px}
 .jma-wizard #zoom{display:flex;align-items:center;gap:4px;justify-content:center;background:var(--panel);width:58px;min-height:44px;margin-left:auto;padding:7px;box-shadow:0 2px 10px #0001}
 .jma-wizard #zoom .icon{width:15px}.jma-wizard .jma-3d-label{display:inline;font-size:13px;font-weight:600}
 .jma-wizard .live-drawing,.jma-wizard[data-layout=classic] .live-drawing{height:clamp(280px,80vw,370px);border-radius:10px;box-shadow:none}
 .jma-wizard .stage-caption{display:flex;justify-content:space-between;align-items:center;padding:0 4px;margin-top:10px;font-size:11px}
 .jma-wizard #previewDimensions{font-size:13px}.jma-wizard #neutralNote{max-width:52%;font-size:10px;line-height:1.4;text-align:right}
 .jma-wizard .preview-actions{margin-top:10px;display:flex;gap:5px;overflow:auto;flex-wrap:nowrap;padding-bottom:2px}
 .jma-wizard .preview-actions>button{min-height:42px;flex:1 0 auto;padding:7px 9px;font-size:11px}
 .jma-wizard #expandViewer{display:none}.jma-wizard #liveNote{font-size:11px;line-height:1.45;max-height:none;overflow:visible;margin:8px 3px 0}
 .jma-wizard .jma-step-picker{display:block;width:100%;background:var(--panel);border:1px solid var(--line);border-radius:9px;margin:0 0 10px;padding:0 12px}
 .jma-wizard .jma-step-picker>summary{font-size:13px;min-height:44px;padding:12px 0;cursor:pointer}
 .jma-wizard .jma-step-picker #sideNav,.jma-wizard[data-layout=classic] .jma-step-picker #sideNav{display:grid;grid-template-columns:1fr 1fr;overflow:visible;margin:0;padding:0 0 8px;gap:4px}
 .jma-wizard .jma-step-picker .wizard-step,.jma-wizard[data-layout=classic] .jma-step-picker .wizard-step{display:flex;flex-direction:row;min-width:0;width:100%;font-size:12px;text-align:left;min-height:48px;padding:6px}
 .jma-wizard .control-column,.jma-wizard[data-layout=classic] .control-column{width:100%;padding:18px 16px 0;border:1px solid var(--line);border-radius:18px 18px 10px 10px;max-height:none;overflow:visible;box-shadow:0 -4px 20px #00000004;position:relative}
 .jma-wizard .control-column:before{content:'';display:block;width:34px;height:4px;border-radius:4px;background:var(--line);margin:-8px auto 14px}
 .jma-wizard .progress-row{font-size:11px}.jma-wizard .progress-row #saveStatus{font-size:10px}
 .jma-wizard #stepTitle{font:500 22px/1.3 Arial,sans-serif;margin-bottom:16px}.jma-wizard progress{margin-bottom:16px}
 .jma-wizard .control-column :is(input,select,textarea){font-size:16px;min-height:44px}
 .jma-wizard .control-column input[type=checkbox]{min-height:20px}
 .jma-wizard .control-column :is(.option-card,.profile-chip,.jk-component-option,.sub-steps button,.shape-choice,.number-choice,.pane-picker button){min-height:48px;font-size:13px}
 .jma-wizard .option-card :is(strong,small),.jma-wizard .profile-frame label,.jma-wizard .jk-component-field legend{font-size:13px}
 .jma-wizard .profile-text p,.jma-wizard .step-help,.jma-wizard .section-help{font-size:13px;line-height:1.5}
 .jma-wizard .profile-chips{grid-template-columns:repeat(2,minmax(0,1fr))}.jma-wizard .profile-chip{padding:10px;gap:8px}
 .jma-wizard .swatches{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.jma-wizard .swatch{min-height:48px;position:relative}
 .jma-wizard .swatch.selected:after{content:'✓';position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);border-radius:50%;background:var(--orange);color:white;width:24px;height:24px;display:grid;place-items:center;font-size:15px}
 .jma-wizard .list-scroll{max-height:none;overflow:visible}.jma-wizard .jk-component-options{grid-template-columns:repeat(2,minmax(0,1fr))}
 .jma-wizard .wizard-navigation{position:sticky;bottom:0;z-index:6;padding:12px 0 max(12px,env(safe-area-inset-bottom));margin-top:18px;background:var(--panel)}
 .jma-wizard .wizard-navigation>div{gap:8px}.jma-wizard .wizard-navigation button{font-size:15px;min-height:50px;padding:10px 12px}
 .jma-wizard .wizard-navigation #wizardBack{flex:0 0 auto}.jma-wizard .wizard-navigation #wizardNext{flex:1}
 .jma-wizard .workspace-foot{padding:0 16px 18px;font-size:11px;align-items:center}
 .jma-wizard #zoomDialog .viewer-layout{grid-template-columns:1fr;grid-template-rows:minmax(230px,1fr) minmax(170px,35%)}
 .jma-wizard #zoomDialog .viewer-header{height:106px;padding:12px 16px;gap:8px;flex-wrap:wrap}
 .jma-wizard #zoomDialog .viewer-header>div:first-child{flex:1}.jma-wizard #zoomDialog .viewer-header h2{font-size:20px}
 .jma-wizard #zoomDialog .viewer-layout{height:calc(100dvh - 106px)}
 .jma-wizard #zoomDialog .viewer-panel{border-left:0;border-top:1px solid var(--line);padding:16px;display:grid;grid-template-columns:1fr 1fr;gap:16px;align-content:start}
 .jma-wizard #zoomDialog .viewer-panel>div+div{margin:0;padding:0;border:0}.jma-wizard #zoomDialog button{min-height:44px}
}
@media screen and (max-width:360px){body.jma-public .header-inner{padding-inline:10px!important}.jma-public .jma-brand-name{font-size:11px!important;letter-spacing:.3px!important}.jma-wizard .jma-brand-name{font-size:10px}.jma-wizard .topbar{padding-inline:10px}.jma-menu-preferences{gap:8px}.jma-menu-themes{gap:2px}.jma-menu-languages button{min-width:39px}.jma-wizard .stage-tools .segmented button{padding-inline:7px}.jma-wizard .live-drawing{height:280px}}
@media screen and (max-width:760px) and (max-height:600px){.jma-wizard .live-drawing,.jma-wizard[data-layout=classic] .live-drawing{height:250px}body.jma-public .jma-menu #jmSheetTitle{font-size:32px;padding-top:8px}.jma-menu-extras{margin-top:0}}
@media print{.jma-language,.jma-menu,.jma-step-picker,.jma-studio-title{display:none!important}}

@media screen and (min-width:761px){body.jma-public .jk-stats>.jma-delivery{display:none!important}}

/* Keep the primary action visible within a phone browser's usable viewport. */
@media screen and (max-width:760px){
 html[data-theme] body.jma-public[data-page=home] .jk-hero-copy{padding-top:18px}
 body.jma-public .jk-hero-copy .jk-kicker{margin-bottom:10px}
 body.jma-public .jk-hero-copy h1{font-size:clamp(34px,10vw,44px);line-height:1.04;margin-bottom:10px}
 body.jma-public .jk-hero-copy .jk-lead{font-size:14px;line-height:1.5;margin-bottom:14px}
 html[data-theme] body.jma-public[data-page=home] .jk-theme-media.jk-hero-photo{height:clamp(156px,28svh,230px)!important;aspect-ratio:auto}
}
