/* Only the designer gets this touch layout; customer embeds keep their own UI. */
.mobile-settings-toggle,.mobile-extra-tool { display:none!important; }
html body.jy-mobile-designer {
  --designer-top:calc(56px + env(safe-area-inset-top,0px));
  --designer-preview:clamp(190px,32dvh,320px);
  --designer-panel:calc(var(--designer-top) + var(--designer-preview));
  font-family:Arial,"Microsoft YaHei",system-ui,sans-serif;
}
html body.jy-mobile-designer .viewer-shell { height:100dvh!important;min-height:100dvh!important;max-height:100dvh!important;background:#f3f5f2!important; }
html body.jy-mobile-designer .viewer-topbar {
  inset:0 0 auto!important;transform:none!important;width:100%!important;max-width:none!important;
  height:var(--designer-top)!important;padding:env(safe-area-inset-top,0px) 10px 0!important;
  display:flex!important;align-items:center!important;background:#fff!important;z-index:80!important;
  border-bottom:1px solid #dfe5df;box-shadow:none!important;overflow:visible!important;
}
html body.jy-mobile-designer .topbar-card { display:block!important;width:100%!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;overflow:visible!important; }
html body.jy-mobile-designer .topbar-main { display:none!important; }
html body.jy-mobile-designer .topbar-actions-v82 { width:100%!important;max-width:none!important;flex-wrap:nowrap!important;overflow:visible!important;gap:6px!important; }
html body.jy-mobile-designer .topbar-actions-v82 > .jy-top-tool-v242,
html body.jy-mobile-designer .jy-tools-menu { flex:1 1 0!important;min-width:0!important; }
html body.jy-mobile-designer .topbar-actions-v82 > #jy-scene-fab-v72,
html body.jy-mobile-designer .topbar-actions-v82 > [data-reset-config] { display:none!important; }
html body.jy-mobile-designer .jy-top-tool-v242,
html body.jy-mobile-designer .jy-tools-menu > summary {
  height:auto!important;min-height:44px!important;padding:8px 6px!important;
  border:1px solid #dce4dc!important;border-radius:8px!important;
  font:600 13px/1.35 Arial,"Microsoft YaHei",sans-serif!important;
  white-space:normal!important;text-align:center!important;box-shadow:none!important;
}
html body.jy-mobile-designer .jy-tools-menu > summary { display:flex;align-items:center;justify-content:center;list-style:none;overflow-wrap:anywhere;box-sizing:border-box;width:100%; }
html body.jy-mobile-designer .jy-tools-menu > summary::-webkit-details-marker { display:none; }
html body.jy-mobile-designer [data-top-tool-v242="generate-quote"] { color:#fff!important;background:#284c40!important;border-color:#284c40!important; }
html body.jy-mobile-designer .jy-top-tool-v242.is-active { color:#274533!important;background:#e6efdd!important;border-color:#afc59c!important; }
html body.jy-mobile-designer .jy-tools-options {
  position:fixed!important;top:calc(var(--designer-top) + 6px)!important;right:10px!important;left:10px!important;
  width:auto!important;max-height:calc(100dvh - var(--designer-top) - 22px);overflow:auto;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px;z-index:90;
  border-radius:12px;background:#fff;box-shadow:0 12px 36px #20352b26;
}
html body.jy-mobile-designer .jy-tools-menu:not([open]) .jy-tools-options { display:none!important; }
html body.jy-mobile-designer .mobile-extra-tool { display:flex!important; }
html body.jy-mobile-designer .viewer-stage {
  top:var(--designer-top)!important;left:0!important;right:0!important;width:100%!important;
  height:var(--designer-preview)!important;min-height:0!important;max-height:none!important;max-width:none!important;
  margin:0!important;transform:none!important;will-change:auto!important;contain:none!important;overflow:visible!important;border-radius:0!important;box-shadow:none!important;z-index:35!important;
}
html body.jy-mobile-designer .three-hint { bottom:10px!important;left:10px!important;transform:none!important;max-width:calc(100% - 76px);font-size:10px!important;padding:5px 8px!important;white-space:normal!important;overflow-wrap:anywhere;line-height:1.4!important; }
html body.jy-mobile-designer :is(.post-select-hint-v216,.pergola-weight-toggle) { display:none!important; }
html body.jy-mobile-designer #jy-fullscreen-3d-btn-v107 { width:44px!important;height:44px!important;right:10px!important;bottom:10px!important;border-radius:10px!important;font-size:23px!important; }
html body.jy-mobile-designer .control-dock {
  inset:var(--designer-panel) 0 0!important;transform:none!important;width:100%!important;max-width:none!important;
  height:auto!important;max-height:none!important;min-height:0!important;padding:0!important;margin:0!important;z-index:30!important;
  border:0!important;border-top:1px solid #dce4dc!important;background:#fff!important;border-radius:0!important;
}
html body.jy-mobile-designer .control-card {
  display:grid!important;grid-template-rows:auto auto minmax(0,1fr) auto!important;gap:0!important;
  width:100%!important;max-width:none!important;height:100%!important;max-height:100%!important;min-height:0!important;
  margin:0!important;padding:0!important;overflow:hidden!important;transform:none!important;
  background:#fff!important;border:0!important;border-radius:0!important;box-shadow:none!important;
}
html body.jy-mobile-designer .dock-header { display:flex!important;align-items:center!important;gap:8px!important;padding:6px 12px!important;margin:0!important;min-height:48px!important;border:0!important; }
html body.jy-mobile-designer :is(.dock-header .eyebrow,[data-step-label],.dock-progress::after) { display:none!important;content:none!important; }
html body.jy-mobile-designer .dock-progress::after { display:none!important;content:none!important; }
html body.jy-mobile-designer .dock-progress { display:block!important;flex:1;min-width:0;text-align:left!important; }
html body.jy-mobile-designer .dock-progress strong { display:block!important;position:static!important;float:none!important;width:100%!important;margin:0!important;text-align:left!important;font-size:15px!important;line-height:1.4!important; }
html body.jy-mobile-designer .admin-language select { width:104px!important;min-height:40px!important;padding:6px!important;font-size:13px!important; }
html body.jy-mobile-designer .mobile-settings-toggle { display:block!important;flex:none;min-height:44px;padding:6px 8px;border:0;border-radius:8px;background:#edf3e7;color:#314b2b;font:600 12px/1.4 Arial,sans-serif;cursor:pointer; }
html body.jy-mobile-designer .step-nav { display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;margin:0!important;padding:0 12px 8px!important;border-bottom:1px solid #e5eae3; }
html body.jy-mobile-designer .step-tab { min-height:40px!important;height:auto!important;min-width:0!important;padding:7px 4px!important;font-size:13px!important;line-height:1.35!important;border-radius:7px!important;white-space:normal!important; }
html body.jy-mobile-designer .step-tab::before { display:none!important; }
html body.jy-mobile-designer .step-panel { min-height:0!important;max-height:none!important;padding:12px!important;margin:0!important;overflow:auto!important;overscroll-behavior:contain;scroll-padding:12px; }
html body.jy-mobile-designer .step-panel:not(.is-active) { display:none!important; }
html body.jy-mobile-designer .step-panel.is-active { display:block!important; }
html body.jy-mobile-designer .step-panel > * { margin-top:0!important;margin-bottom:14px!important; }
html body.jy-mobile-designer .step-panel :is(button,summary) { min-height:42px!important;height:auto!important;white-space:normal!important;line-height:1.4!important;font-size:13px!important; }
html body.jy-mobile-designer .step-panel summary { padding-top:10px!important;padding-bottom:10px!important;cursor:pointer; }
html body.jy-mobile-designer .step-panel :is(label,button,select,fieldset) { min-width:0!important;max-width:100%;overflow-wrap:anywhere; }
html body.jy-mobile-designer .step-panel :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),select,textarea) { box-sizing:border-box;min-width:0!important;max-width:100%!important;width:100%;min-height:42px!important;font-size:16px!important; }
html body.jy-mobile-designer .step-panel :is(input[type="checkbox"],input[type="radio"]) { width:20px!important;height:20px!important;flex:none; }
html body.jy-mobile-designer .step-panel input[type="range"] { min-height:36px;max-width:100%; }
html body.jy-mobile-designer .step-panel :is(p,small) { line-height:1.5!important;overflow-wrap:anywhere; }
html body.jy-mobile-designer :is(.profile-system-panel-v331,.support-wall-editor) { padding:12px!important;border-radius:10px!important; }
html body.jy-mobile-designer .profile-system-head-v331 { gap:10px;flex-wrap:wrap; }
html body.jy-mobile-designer .profile-system-grid-v331 { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
html body.jy-mobile-designer .profile-system-grid-v331 button { padding:10px!important;min-height:76px!important; }
html body.jy-mobile-designer .profile-system-grid-v331 button strong { font-size:15px!important; }
html body.jy-mobile-designer :is(.dimension-unit-row-v247,.toggle-row) { gap:10px!important;padding:10px!important;min-width:0; }
html body.jy-mobile-designer .dimension-unit-row-v247 > div { flex:1;min-width:0; }
html body.jy-mobile-designer .dimension-unit-row-v247 select { width:108px!important;min-width:108px!important;padding:8px!important;font:400 13px/1.4 Arial,sans-serif!important;letter-spacing:normal!important; }
html body.jy-mobile-designer .dock-actions { position:static!important;display:flex!important;justify-content:flex-end!important;gap:8px!important;margin:0!important;padding:6px 12px max(8px,env(safe-area-inset-bottom))!important;background:#fff!important;border-top:1px solid #e5eae3; }
html body.jy-mobile-designer .dock-actions .nav-btn { min-height:40px!important;height:auto!important;max-width:50%;padding:8px 18px!important;font:600 13px/1.4 Arial,sans-serif!important;border-radius:8px!important;box-shadow:none!important; }
html body.jy-mobile-designer .dock-actions .nav-btn::before { content:none!important; }
html body.jy-mobile-designer.mobile-settings-collapsed { --designer-panel:calc(100dvh - 60px - env(safe-area-inset-bottom));--designer-preview:calc(100dvh - var(--designer-top) - 60px - env(safe-area-inset-bottom)); }
html body.jy-mobile-designer.mobile-settings-collapsed .control-card { display:block!important; }
html body.jy-mobile-designer.mobile-settings-collapsed :is(.step-nav,.step-panel,.dock-actions) { display:none!important; }
/* Tool editors leave the model available above their scrollable sheet. */
html body.jy-mobile-designer :is(.jy-site-condition-toolbar-v227,.jy-site-sketch-toolbar-v238) { position:fixed!important;inset:var(--designer-panel) 0 0!important;width:100%!important;height:auto!important;z-index:50!important;pointer-events:none; }
html body.jy-mobile-designer :is(.jy-site-condition-panel-v227,.jy-site-sketch-panel-v238) { box-sizing:border-box;width:100%!important;height:100%!important;max-height:none!important;padding:14px!important;border-radius:12px 12px 0 0!important;pointer-events:auto;overflow:auto!important; }
html body.jy-mobile-designer :is(.jy-site-condition-panel-v227,.jy-site-sketch-panel-v238) > header { position:sticky;top:-14px;z-index:3;background:#fff;padding:10px 0; }
html body.jy-mobile-designer :is(.jy-site-condition-panel-v227,.jy-site-sketch-panel-v238,.jy-model-dialog-v233,.jy-customer-share-dialog-v351) :is(button,summary) { min-height:42px!important;height:auto!important;font-size:13px!important;line-height:1.4!important;white-space:normal!important; }
html body.jy-mobile-designer :is(.jy-site-condition-panel-v227,.jy-site-sketch-panel-v238,.jy-model-dialog-v233,.jy-customer-share-dialog-v351) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]),select,textarea) { min-width:0;max-width:100%;min-height:42px;font-size:16px!important; }
html body.jy-mobile-designer .jy-customer-share-options-v351 { grid-template-columns:repeat(2,minmax(0,1fr)); }
html body.jy-mobile-designer .jy-customer-share-options-v351 label { min-width:0;overflow-wrap:anywhere;font-size:13px;line-height:1.5;padding:10px; }
html body.jy-mobile-designer .jy-customer-share-dialog-v351 > fieldset > label { display:grid;gap:6px;margin:10px 0;font-size:13px;line-height:1.5; }
html body.jy-mobile-designer .jy-customer-share-dialog-v351 > fieldset > label input { box-sizing:border-box;width:100%;padding:10px;border:1px solid #cdd9d0;border-radius:8px;background:#fff; }
html body.jy-mobile-designer .jy-customer-share-dialog-v351 > fieldset > small { display:block;font-size:11px;line-height:1.5; }
html body.jy-mobile-designer .jy-customer-share-dialog-v351 > header { position:sticky;top:0;z-index:3;background:#f8f9f6; }
html body.jy-mobile-designer :is([data-share-close-v351],.jy-model-dialog-v233 > header button,[data-site-condition-close-v227]) { min-width:44px;flex-shrink:0; }
html body.jy-mobile-designer :is(.dimension-unit-row-v247 span,.profile-system-head-v331 span,.jy-site-condition-panel-v227 > header span,.jy-site-sketch-panel-v238 > header span) { font-size:11px!important;line-height:1.5!important; }
html body.jy-mobile-designer .pergola-weight-overlay { position:fixed!important;top:auto!important;left:10px!important;bottom:12px!important;width:calc(100vw - 20px)!important;max-width:none!important;max-height:50dvh!important;z-index:85!important; }
html body.jy-mobile-designer :is(button,summary,input,select):focus-visible { outline:2px solid #416538;outline-offset:2px; }
@media (max-width:980px) and (max-height:500px) and (orientation:landscape) {
  html body.jy-mobile-designer { --designer-preview:calc(100dvh - var(--designer-top));--designer-panel:var(--designer-top); }
  html body.jy-mobile-designer .viewer-stage { width:45%!important;right:auto!important; }
  html body.jy-mobile-designer .control-dock { left:45%!important;width:55%!important; }
  html body.jy-mobile-designer .step-nav { grid-template-columns:repeat(6,minmax(0,1fr))!important; }
  html body.jy-mobile-designer .step-tab { font-size:11px!important; }
  html body.jy-mobile-designer .mobile-settings-toggle { display:none!important; }
  html body.jy-mobile-designer.mobile-settings-collapsed .control-card { display:grid!important; }
  html body.jy-mobile-designer.mobile-settings-collapsed .step-nav { display:grid!important; }
  html body.jy-mobile-designer.mobile-settings-collapsed .step-panel.is-active { display:block!important; }
  html body.jy-mobile-designer.mobile-settings-collapsed .dock-actions { display:flex!important; }
  html body.jy-mobile-designer :is(.jy-site-condition-toolbar-v227,.jy-site-sketch-toolbar-v238) { left:45%!important;width:55%!important; }
}
