/* Dige Studio v4 | self-contained, mobile-first interface | no external dependencies */
.editor-page{background:#f5f6fa;color:#172539}
.editor-page main{min-height:0;display:block}
.editor-page .topbar,.editor-page .footer{display:none!important}
.editor-shell{height:100dvh;min-height:0;background:#f7f8fc;display:flex;flex-direction:column;overflow:hidden}
.studio-head{min-height:72px;flex:0 0 auto;background:#fff;border-bottom:1px solid #e8eaf0;display:flex;gap:13px;align-items:center;padding:9px clamp(12px,2vw,28px);z-index:12}
.studio-back{width:44px;height:44px;flex:0 0 44px;border:1px solid #e4e7eb;border-radius:13px;display:grid;place-items:center;font-size:2rem;line-height:1;color:#172539}
.studio-title{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.studio-title strong{font-size:clamp(.91rem,1.6vw,1.07rem);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:850}
.studio-title small{display:flex;align-items:center;gap:7px;color:#778194;font-size:.72rem;white-space:nowrap;overflow:hidden}
.studio-title small .status{padding:3px 8px;font-size:.65rem}
.studio-url{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.studio-actions{display:flex;align-items:center;gap:9px;flex:0 0 auto}
.studio-actions .btn{white-space:nowrap;min-height:42px;border-radius:12px;padding:9px 14px;font-weight:800}
.studio-actions #publishBtn{background:#ff6038;border-color:#ff6038;box-shadow:0 5px 12px #ff603820}
.studio-actions #saveStatus{color:#607087;font-size:.73rem;min-width:0;margin-right:3px;white-space:nowrap}
.studio-switcher{flex:0 0 auto;background:#fff;min-height:70px;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px clamp(12px,2vw,28px);border-bottom:1px solid #ebedf2}
.studio-switcher>div:first-child{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}
.studio-switcher strong{white-space:nowrap;font-size:.89rem;font-weight:850}
.studio-switcher small{font-size:.74rem;color:#728097}
.studio-sparkle{display:grid;place-items:center;background:#fff0e8;color:#f45f36;border-radius:11px;width:37px;height:37px;font-size:1.2rem}
.studio-switch{display:flex;align-items:center;background:#f3f5f9;border-radius:13px;padding:4px;gap:2px}
.studio-switch button{border:0;border-radius:10px;color:#64748b;font-weight:800;font-size:.79rem;background:transparent;padding:11px 15px;white-space:nowrap;min-height:42px;cursor:pointer}
.studio-switch button.active{background:#fff;color:#15243c;box-shadow:0 2px 9px #12243c16}
.editor-shell .editor-workspace{display:grid;flex:1;min-height:0;overflow:hidden}
.editor-workspace.mode-quick{grid-template-columns:minmax(390px,570px) minmax(360px,1fr)}
.editor-workspace.mode-advanced{grid-template-columns:290px 320px minmax(350px,1fr)}
.editor-workspace.mode-quick>.editor-sidebar,.editor-workspace.mode-quick>.editor-inspector{display:none!important}
.editor-workspace.mode-advanced>.quick-panel{display:none!important}
.quick-panel{overflow-y:auto;min-height:0;height:100%;padding:clamp(19px,2.3vw,34px) clamp(19px,3vw,45px);background:#fff;border-right:1px solid #e8eaf0;overscroll-behavior:contain}
.wizard-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.wizard-kicker{font-size:.7rem;font-weight:900;letter-spacing:.12em;color:#ed643f}
.wizard-heading h2{font-size:clamp(1.5rem,2vw,1.95rem);font-weight:850;letter-spacing:-.04em;line-height:1.15;margin:6px 0}
.wizard-heading p{color:#7a8494;font-size:.84rem;line-height:1.55;max-width:410px;margin:0}
.wizard-count{white-space:nowrap;font-size:.72rem;font-weight:800;color:#8b95a4;padding-top:5px}
.wizard-meter{width:100%;height:5px;background:#f0f2f6;border-radius:10px;overflow:hidden;margin:21px 0 15px}
.wizard-meter span{display:block;width:25%;height:100%;background:#ff6038;border-radius:10px;transition:width .2s ease}
.wizard-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:23px}
.wizard-steps button{min-width:0;display:flex;align-items:center;justify-content:center;gap:5px;border:1px solid #e8ebf1;background:#fff;color:#778397;font-size:.68rem;font-weight:760;border-radius:12px;padding:11px 4px;cursor:pointer;min-height:43px;white-space:nowrap}
.wizard-steps button span{background:#f1f2f5;border-radius:50%;display:grid;place-items:center;width:18px;height:18px;font-size:.62rem;flex:0 0 18px}
.wizard-steps button.selected{background:#fff1eb;border-color:#ffcab6;color:#bd5030}
.wizard-steps button.selected span{background:#ff6038;color:#fff}
.quick-fields{display:grid;gap:16px;min-width:0}
.q-intro{font-size:.81rem;line-height:1.5;background:#f5f8ff;border-radius:12px;padding:14px 16px;color:#586b83}.q-intro strong{color:#1f3653}
.q-fields-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.q-field{display:flex;flex-direction:column;gap:7px;min-width:0}.q-field>span{font-weight:750;font-size:.82rem;color:#35465e}
.q-field>small,.q-help{font-size:.7rem;color:#7e8998;line-height:1.55}
.q-field input,.q-field textarea{width:100%;min-width:0;background:#fff;border:1px solid #dce2eb;color:#172539;padding:13px 14px;border-radius:12px;font:500 16px/1.35 system-ui,sans-serif;box-sizing:border-box;min-height:50px;transition:border-color .15s,box-shadow .15s}
.q-field textarea{resize:vertical;min-height:102px}
.q-field input:focus,.q-field textarea:focus{outline:0;border-color:#fa805b;box-shadow:0 0 0 3px #f7755629}
.q-field input::placeholder,.q-field textarea::placeholder{color:#a0aab8;font-weight:400}
.q-upload{border:1px dashed #d5dbe6;border-radius:15px;padding:14px;background:#fcfcfe}
.q-upload-top{display:flex;align-items:center;gap:16px}
.q-upload-photo{height:90px;width:96px;flex:0 0 96px;display:grid;place-items:center;background:linear-gradient(135deg,#fbe9e0,#e6ecf7);border-radius:12px;overflow:hidden;color:#c66e4e;font-size:2.2rem}
.q-upload-photo img{width:100%;height:100%;object-fit:cover}
.q-upload-top>div:last-child{flex:1;min-width:0}.q-upload-top strong{font-size:.85rem;display:block}.q-upload-top small{font-size:.7rem;color:#7b8799;display:block;line-height:1.45;margin:4px 0 8px}
.q-file-button{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;background:#fff;border:1px solid #dbe1ec;color:#172539;font-size:.77rem;font-weight:850;border-radius:9px;min-height:38px;padding:8px 13px}
.q-file-button input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.q-offer{background:#fbfcff;border:1px solid #e6eaf2;border-radius:15px;padding:15px;display:grid;gap:11px}
.q-offer-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.q-offer-head b{font-size:.86rem}.q-small-action{border:0;background:#fff1ee;color:#a54d33;cursor:pointer;padding:9px 11px;border-radius:8px;font-size:.76rem;font-weight:850;min-height:40px}
.q-offer-line{display:grid;grid-template-columns:1fr 1fr;gap:10px}.q-add{min-height:48px;border:1px dashed #d8b69b;border-radius:12px;background:#fff9f5;color:#bb6239;font-weight:850;cursor:pointer;font-size:.85rem}
.q-divider{display:flex;align-items:center;gap:13px;color:#728096;font-size:.71rem;font-weight:900;letter-spacing:.1em;margin-top:8px}.q-divider:after{content:"";height:1px;background:#e3e7ef;flex:1}
.q-label-title{font-size:.9rem;margin:10px 0 0;font-weight:850}
.q-colors{display:flex;gap:12px;flex-wrap:wrap}
.q-color{width:48px;height:48px;border:3px solid white;outline:1px solid #e0e4eb;border-radius:50%;background:var(--swatch);cursor:pointer;display:grid;place-items:center;color:#fff;font-weight:900;font-size:1.3rem}
.q-color.chosen{outline:3px solid #172539}
.q-checks{display:grid;gap:8px}.q-check{display:flex;align-items:center;gap:10px;padding:12px 13px;border:1px solid #e7e9ed;background:#fafbfd;border-radius:11px;font-size:.83rem;font-weight:700;color:#657184}.q-check span:first-child{border:1px solid #d2d8e3;width:23px;height:23px;border-radius:50%;display:grid;place-items:center;color:#8d9cab;font-size:.77rem}.q-check.good span:first-child{background:#e2f5ec;border-color:#b9e7cd;color:#158454}.q-check small{font-size:.67rem;color:#9aa2af;margin-left:auto}
.q-final-actions{display:flex;gap:10px;flex-wrap:wrap}.q-final-actions button{min-height:44px;border-radius:10px}
.wizard-bottom{position:sticky;bottom:-1px;background:linear-gradient(0deg,#fff 85%,#ffffffeb);padding:16px 0 8px;margin-top:22px;display:flex;gap:9px;align-items:center;z-index:4}
.wizard-bottom button{min-height:49px;border-radius:12px;font-size:.83rem;font-weight:850;padding:10px 19px}
.wizard-bottom #wizardNext{flex:1}.wizard-bottom #wizardPreview{border-color:#d6dde7}
.mode-quick .editor-preview{height:100%;overflow:hidden}
.editor-preview .preview-hint{margin:0;padding:9px;text-align:center;font-size:.71rem;color:#7c889b;background:#f9fbff;border-top:1px solid #e6eaf0}
/* Preview content disables link/form interactions, while retaining touch scrolling. */
.editor-preview iframe{touch-action:pan-y!important}
.quick-preview-actions{display:none}
.editor-mobile-nav{display:none}
@media(max-width:1250px){.editor-workspace.mode-quick{grid-template-columns:minmax(350px,47%) minmax(0,1fr)}.editor-workspace.mode-advanced{grid-template-columns:255px 285px minmax(0,1fr)}}
@media(max-width:900px){
 body.editor-page{overflow:hidden!important;height:100dvh!important}
 .editor-shell{height:100dvh;max-height:100dvh;overflow:hidden}
 .studio-head{padding:8px 13px;min-height:64px;gap:9px}
 .studio-back{width:40px;height:40px;flex-basis:40px;border-radius:11px}
 .studio-actions{gap:5px}.studio-actions #saveStatus,.studio-actions .studio-save,.studio-actions .studio-live{display:none!important}
 .studio-actions #publishBtn{min-height:43px;padding:8px 13px;font-size:.78rem}
 .studio-url{display:none}
 .studio-switcher{padding:8px 12px;gap:9px;min-height:62px}
 .studio-switcher>div:first-child{gap:7px}.studio-switcher small{display:none}.studio-sparkle{width:32px;height:32px}.studio-switch button{padding:8px 10px;min-height:40px;font-size:.73rem}
 .editor-shell .editor-workspace{display:block!important;overflow:hidden!important;min-height:0;flex:1}
 .editor-workspace.mode-quick .quick-panel{display:block!important;width:100%!important;height:100%!important;min-height:0;overflow-y:auto;overflow-x:hidden;padding:19px 17px max(20px,env(safe-area-inset-bottom));border:0}
 .editor-workspace.mode-quick>.editor-sidebar,.editor-workspace.mode-quick>.editor-inspector,.editor-workspace.mode-quick>.editor-preview{display:none!important}
 .editor-workspace.mode-quick.quick-show-preview>.quick-panel{display:none!important}
 .editor-workspace.mode-quick.quick-show-preview>.editor-preview{display:flex!important;width:100%!important;height:100%!important;min-height:0!important;overflow:hidden!important}
 .editor-workspace.mode-advanced>.quick-panel{display:none!important}
 .editor-workspace.mode-advanced .mobile-panel-sections .editor-sidebar{display:block!important}
 .editor-shell:has(.mode-advanced) .editor-mobile-nav{display:grid!important}
 .editor-shell:has(.mode-quick) .editor-mobile-nav{display:none!important}
 .editor-shell:has(.quick-show-preview) .quick-preview-actions{display:flex;justify-content:center;align-items:center;flex:0 0 auto;background:#fff;border-top:1px solid #e1e6ee;min-height:69px;padding:9px 16px max(10px,env(safe-area-inset-bottom))}
 .quick-preview-actions .btn{min-height:46px;min-width:190px}
 .editor-workspace.mode-advanced .editor-sidebar,.editor-workspace.mode-advanced .editor-inspector,.editor-workspace.mode-advanced .editor-preview{width:100%!important;height:100%!important}
 .wizard-heading h2{font-size:1.42rem}.wizard-heading p{font-size:.77rem}.wizard-count{font-size:.66rem}
 .wizard-meter{margin:14px 0 13px}.wizard-steps{margin-bottom:16px}.wizard-steps button{gap:3px;padding:9px 2px;font-size:.62rem;min-height:46px;flex-direction:column}.wizard-steps button span{height:17px;width:17px;flex-basis:17px}
 .q-fields-grid,.q-offer-line{grid-template-columns:minmax(0,1fr)}
 .quick-fields{gap:13px}.q-field input,.q-field textarea{font-size:16px;min-height:52px}.q-upload-photo{height:78px;width:80px;flex-basis:80px}
 .wizard-bottom{margin-top:18px;padding:11px 0 4px}.wizard-bottom button{padding:9px 13px;min-height:48px}
 .editor-shell:has(.mode-quick) #editorToast{bottom:28px;right:13px;left:13px;text-align:center}
 .editor-shell:has(.mode-advanced) #editorToast{bottom:83px}
 .preview-top{gap:6px;flex-wrap:nowrap}.preview-top .mobile-live-link{display:none!important}
}
@media(max-width:420px){.studio-head{gap:6px}.studio-title strong{max-width:130px}.studio-switcher strong{font-size:.78rem}.studio-switch button{font-size:.67rem;padding:7px}.wizard-bottom #wizardBack{min-width:60px}.wizard-bottom #wizardPreview{min-width:67px}.wizard-bottom #wizardNext{min-width:90px}}

/* App-like account workspace on mobile */
.dash-bottom-nav{display:none}.dashboard-background{background:#f6f8fc}.dashboard-background .dash-heading h1{letter-spacing:-.05em}.dashboard-background .site-card{box-shadow:0 9px 30px #15223809}.dashboard-background .site-buttons a{min-height:45px}.dashboard-background .site-card-thumb{background:linear-gradient(130deg,#152946,#2e5678)}
@media(max-width:720px){.dashboard-background .dash-wrap{padding:24px 0 104px}.dashboard-background .dash-heading{gap:14px;margin-bottom:17px}.dashboard-background .dash-heading h1{font-size:clamp(1.9rem,7vw,2.4rem);margin:6px 0}.dashboard-background .dash-heading p{font-size:.9rem}.dashboard-background .dash-heading>.btn{width:100%;min-height:52px}.dashboard-background .stat-row{grid-template-columns:1fr 1fr;gap:10px}.dashboard-background .stat-row>div{padding:16px;border-radius:13px}.dashboard-background .stat-row strong{font-size:1.5rem;margin-top:2px}.dashboard-background .sites-grid{gap:13px}.dashboard-background .site-card{border-radius:16px;display:grid;grid-template-columns:105px minmax(0,1fr);min-height:162px}.dashboard-background .site-card-thumb{height:100%;min-height:162px}.dashboard-background .site-card-display strong{font-size:.8rem;padding:0 5px;line-height:1.3}.dashboard-background .site-card-display small{display:none}.dashboard-background .site-card-body{padding:15px 12px;min-width:0}.dashboard-background .site-card h3{font-size:1rem}.dashboard-background .url-line{font-size:.7rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:7px 0}.dashboard-background .site-mini-stats{font-size:.66rem;padding-bottom:10px;gap:2px}.dashboard-background .site-buttons{gap:7px;flex-wrap:wrap}.dashboard-background .site-buttons a{min-height:39px;padding:7px 9px;font-size:.72rem;flex:1}.dashboard-background .site-card-heading{gap:6px;flex-wrap:wrap}.dashboard-background .dash-heading-sm{margin-top:30px}.dash-bottom-nav{display:grid;position:fixed;left:0;right:0;bottom:0;z-index:40;grid-template-columns:repeat(3,1fr);min-height:66px;padding-bottom:env(safe-area-inset-bottom);background:#fff;border-top:1px solid #e6eaf1;box-shadow:0 -5px 20px #1829450a}.dash-bottom-nav a{display:flex;align-items:center;justify-content:center;gap:1px;flex-direction:column;font-size:.7rem;font-weight:850;color:#617087;min-height:60px}.dash-bottom-nav a span{font-size:1.35rem;line-height:1.3}.dash-bottom-nav a[aria-current]{color:#ee6036}.new-panel .form-stack input{min-height:52px;font-size:16px}.new-panel .btn{min-height:52px}}
/* v5 – mobile map picker & touch-friendly, sortable sections */
.q-map-card{padding:16px;border:1px solid #dae3ea;background:linear-gradient(135deg,#f7fbff,#fff);border-radius:18px;display:grid;gap:12px;min-width:0}
.q-map-card .q-field{min-width:0}.q-map-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.q-map-actions .btn{min-height:45px;white-space:normal;line-height:1.25;border-radius:11px}
.dige-map-picker{height:260px;min-height:260px;width:100%;border-radius:14px;border:1px solid #d3dfe8;background:#e2eaf0;overflow:hidden;isolation:isolate;z-index:1}
.dige-map-picker .leaflet-container{z-index:0}.dige-map-picker .leaflet-control-attribution{font-size:10px}
#mapStatus{font-size:.79rem;font-weight:650;line-height:1.5;color:#315071;padding:9px 10px;background:#e9f3fb;border-radius:10px}
.map-coordinates{font-size:.76rem;color:#526b7d;font-weight:750}.q-map-card .q-help{font-size:.74rem;line-height:1.45;color:#697b86}
.q-remove-image{margin-left:8px;min-height:38px;padding:7px 11px;border:0;background:#fbece8;border-radius:9px;font-size:.76rem;font-weight:750;color:#a1452c;cursor:pointer}
.q-offer .q-upload{padding:10px}.q-offer .q-upload-photo{height:63px;width:73px;flex-basis:73px}
.section-tile{touch-action:pan-y;user-select:none;-webkit-user-select:none}.tile-grip{font-size:1.3rem;color:#677d95;flex:0 0 24px;display:grid;place-items:center;cursor:grab;touch-action:none;min-width:24px;min-height:42px}
.section-tile.is-dragging{opacity:.45}.section-tile.is-drop-target{outline:2px dashed #ec7c49;outline-offset:-3px}.tile-grip.held{color:#ed6435;cursor:grabbing}
@media(max-width:900px){.q-map-card{padding:12px}.dige-map-picker{min-height:280px;height:280px}.q-map-actions .btn{min-height:48px;font-size:.75rem}.q-offer .q-upload-top{gap:9px}.tile-grip{min-width:38px}}
@media(max-width:360px){.q-map-actions{grid-template-columns:1fr 1fr}.q-map-actions .btn{font-size:.71rem;padding:6px}}
.q-style-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.q-style{background:#fff;border:1.5px solid #dbe3ef;border-radius:12px;min-height:78px;cursor:pointer;padding:9px 7px;display:grid;justify-items:center;gap:5px;font-size:.72rem;color:#243344}
.q-style.picked{outline:2px solid #e9663d;border-color:#e9663d}.q-style-swatch{width:55px;height:25px;border-radius:7px;background:linear-gradient(70deg,#ea6948 45%,#f5e1cc 45%)}
.q-style-swatch.look-spotlight{background:linear-gradient(120deg,#1c7367,#b9d9d0)}.q-style-swatch.look-minimal{background:linear-gradient(120deg,#283448,#fff)}
.q-style-swatch.look-classic{background:linear-gradient(120deg,#c9aa67,#f9f1e1)}.q-style-swatch.look-festival{background:linear-gradient(120deg,#d84f3c,#ffcb59)}.q-style-swatch.look-gallery{background:linear-gradient(120deg,#5979ab,#c5daf1)}
@media(max-width:390px){.q-style-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
