/* The mobile editor is one viewport: preview, swatches and actions stay together. */
.color-heading{margin:0;padding:12px 22px;border-bottom:1px solid var(--line);font-size:14px;font-weight:500;color:var(--accent)}.color-heading span{font-size:11px;color:var(--muted);margin-left:5px}
.header-actions{display:flex;gap:22px;align-items:center}.header-actions button{min-height:44px;color:var(--accent)}#looksCount{border-radius:50%;background:#ede2d6;min-width:19px;text-align:center}
.quick-adjust{display:flex;align-items:center;gap:14px;margin:16px 22px}.quick-adjust label{font-size:12px;white-space:nowrap}.quick-adjust output{color:var(--accent)}.quick-adjust input{flex:1;min-width:40px}.quick-adjust button{min-width:44px;min-height:40px;color:var(--accent)}
.input-actions{flex-wrap:wrap}.input-actions .button{flex:1 1 auto}.compare-controls span{white-space:nowrap}.output-actions{margin-top:12px}
dialog{border:1px solid #e0d3c5;border-radius:18px;background:#f4f0e9;color:#44382f;width:min(94vw,680px);max-height:90dvh;padding:20px;box-sizing:border-box;box-shadow:0 12px 70px #38271e33;overscroll-behavior:contain}
dialog::backdrop{background:#201a168a}.export-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.export-heading h2{margin:0;font-size:20px}.export-heading button{min-height:44px;min-width:44px}
dialog p{font-size:13px}#exportImage{display:block;width:100%;max-height:62dvh;object-fit:contain;margin:14px 0}#exportDownload{display:flex;justify-content:center;min-height:44px}dialog .looks-section{padding-top:12px;margin:0}dialog .looks-heading .eyebrow,dialog .looks-heading h2{display:none}dialog .looks-heading{justify-content:flex-end}dialog .looks-grid{grid-template-columns:repeat(2,minmax(0,1fr))}dialog .looks-description{font-size:12px}dialog .custom-color{margin:12px 0}dialog .adjustments{padding:16px 0 0}dialog .gentle-note{margin:8px 0}dialog .range-heading{font-size:13px}dialog input[type=range]{min-height:30px}#offlineProgress{display:block;width:100%;margin-top:14px}#installDialog button{min-height:44px}.help-links{border-top:1px solid var(--line);padding-top:18px}.help-links a{text-decoration:underline}#installDialog small{color:var(--muted)}
@media(max-width:760px), (max-width:1000px) and (orientation:landscape) and (max-height:520px){
 html,body{height:100%;overflow:hidden;overscroll-behavior:none}body{height:100svh;height:100dvh;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);display:flex;flex-direction:column}
 .site-header{height:48px;min-height:48px;padding:0 14px;border-bottom:0}.brand{gap:8px}.brand-mark{width:27px;height:27px;font-size:22px;padding-bottom:3px}.brand strong{font-size:17px;letter-spacing:3px}.brand-en{display:none}.header-actions{gap:15px}.header-actions button{font-size:11px}
 main{padding:0 8px 8px;width:100%;flex:1;min-height:0;max-width:none;margin:0}.intro,footer{display:none}.workspace{height:100%;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 228px;align-items:stretch;gap:6px}
 .mirror-panel{position:relative;min-height:0;display:grid;grid-template-rows:36px minmax(0,1fr) 42px;border-radius:12px}.panel-heading{height:auto;min-height:36px;padding:0 10px;border:0}.panel-heading h2{font-size:11px}.step{display:none}.source-tabs{padding:2px}.source-tabs button{min-height:30px;font-size:11px;padding:3px 10px}
 .stage{height:auto;min-height:0;margin:0 5px;border-radius:8px}.canvas-stage canvas{object-fit:contain}.empty-copy{bottom:24px;left:20px;right:20px}.empty-copy h3{font-size:21px;margin:5px 0 12px}.small-caps{display:none}.empty-copy p{font-size:10px;margin-top:8px}.empty-copy button{min-height:40px;padding:8px 14px}.empty-state img{object-fit:cover}
 .preview-tools{position:absolute;z-index:2;top:40px;right:11px;left:auto;padding:0;min-height:30px;gap:6px;background:#fffaf0e8;border-radius:6px;max-width:80%}.preview-tools .text-button{min-height:30px;padding:3px 8px;font-size:10px}.compare-controls{padding-right:8px;max-width:125px}.compare-controls input{margin:0;min-height:26px}.image-meta,.image-tag{display:none}.look-label{bottom:33px;right:8px;padding:4px 7px;font-size:10px}
 .input-actions{padding:3px 5px;gap:5px;flex-wrap:nowrap;align-items:stretch}.input-actions .button,.input-actions .text-button{flex:1;max-width:none;min-width:0;min-height:36px;padding:6px;font-size:11px;white-space:nowrap;justify-content:center}.input-actions svg{display:none}
 .status-message{position:absolute;z-index:2;bottom:47px;left:12px;right:12px;min-height:0;padding:3px 6px;text-align:center;font-size:9px;line-height:1.5;background:#fffaf0e8;border-radius:5px;pointer-events:none;max-height:44px;overflow:hidden}.status-message.error{font-size:11px;background:#fff4e8;max-height:66px}.privacy-note{display:none}.busy-overlay p{font-size:11px}.busy-overlay{gap:8px;padding:12px}
 .style-panel{min-height:0;display:grid;grid-template-rows:32px minmax(0,1fr) 43px;border-radius:12px}.style-panel>.panel-heading{display:none}.color-heading{display:flex;align-items:center;padding:0 13px;font-size:12px;min-height:30px}.color-heading span{font-size:9px}
 #colorPanel{min-height:0;display:grid;grid-template-rows:31px minmax(66px,1fr) 35px}.section-caption{display:none}.filter-list{display:flex;flex-wrap:nowrap;gap:3px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;margin:0;padding:2px 9px}.filter-list button{flex-shrink:0;padding:4px 8px;min-height:27px;font-size:10px}
 .color-grid{display:flex;gap:8px;max-height:none;min-height:0;overflow-x:auto;overflow-y:hidden;padding:3px 12px;align-items:center;scroll-snap-type:x proximity;scrollbar-width:none}.swatch{min-width:50px;flex:0 0 50px;gap:4px;padding:4px 2px;font-size:10px;scroll-snap-align:start}.swatch-circle{width:35px;height:35px}.swatch.active .swatch-circle:after{inset:-3px}
 .quick-adjust{margin:0 12px;gap:12px;height:35px}.quick-adjust label{font-size:11px}.quick-adjust button{min-height:34px;font-size:11px}.quick-adjust input{min-height:26px;margin:0}.quick-adjust output{display:inline-block;min-width:25px}
 .output-actions{padding:3px 8px;margin:0;display:flex;align-items:stretch;flex-wrap:nowrap;gap:7px}.output-actions .button,.output-actions .text-button{flex:1;min-height:35px;padding:5px 10px;justify-content:center;font-size:11px;margin:0}.output-actions #downloadButton{background:var(--accent);color:#fff9f2;border-color:var(--accent)}
 dialog{padding:16px;max-height:88dvh}dialog .text-button{min-height:40px}dialog .looks-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.toast{bottom:calc(235px + env(safe-area-inset-bottom));font-size:12px;width:max-content;max-width:90vw;padding:10px 14px}
}
@media(max-width:760px) and (max-height:650px){.site-header{height:42px;min-height:42px}.workspace{grid-template-rows:minmax(0,1fr) 216px}.style-panel{grid-template-rows:30px minmax(0,1fr) 40px}.mirror-panel{grid-template-rows:32px minmax(0,1fr) 38px}.panel-heading{min-height:32px}.preview-tools{top:36px}.status-message{bottom:43px}.empty-copy h3{font-size:18px}.empty-copy p{display:none}}
@media(max-width:1000px) and (orientation:landscape) and (max-height:520px){
 html,body{height:100%;overflow:hidden}body{height:100dvh;display:flex;flex-direction:column}.site-header{height:38px;min-height:38px}.intro,footer{display:none}main{padding:0 8px 8px;flex:1;min-height:0;width:100%}.workspace{height:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(285px,.8fr);grid-template-rows:minmax(0,1fr);gap:8px}.mirror-panel{min-height:0}.style-panel{height:100%;min-height:0}.stage{min-height:0}.toast{bottom:20px}
}

/* Preparation stays inside the preview; the palette remains usable. */
#video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#211c19;z-index:3}
.startup-panel{position:absolute;z-index:8;top:12px;left:12px;right:12px;display:flex;align-items:center;gap:12px;padding:13px 15px;border:1px solid #d7c7b4;border-radius:12px;background:#fffaf2f5;box-shadow:0 4px 20px #30251c16;pointer-events:auto}
.startup-panel .spinner{width:23px;height:23px;flex-shrink:0;margin:0}.startup-copy{min-width:0;flex:1}.startup-copy strong{font-size:13px;font-weight:600}.startup-copy p{font-size:11px;line-height:1.6;color:#7c6757;margin:3px 0 0}.startup-copy progress{width:100%;height:5px;display:block;margin-top:9px;accent-color:var(--accent)}.startup-panel button{min-height:44px;min-width:60px;font-size:11px;color:var(--accent)}
.startup-panel[data-phase=ready]{border-color:#b2c1a6}.startup-panel[data-phase=error]{border-color:#d0a493}
@media(max-width:760px), (max-width:1000px) and (orientation:landscape) and (max-height:520px){.startup-panel{top:8px;left:8px;right:8px;padding:10px;gap:9px}.startup-copy strong{font-size:12px}.startup-copy p{font-size:10px}.startup-panel .spinner{width:18px;height:18px}.startup-panel button{min-width:52px}.startup-panel~.preview-tools{display:none}}
@media(prefers-reduced-motion:reduce){.spinner{animation:none!important}}

/* Camera direction controls stay inside the preview; labels are never mirrored. */
.camera-controls{position:absolute;left:12px;bottom:56px;z-index:4;display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.camera-controls>span{font-size:10px;color:#fff;background:#211c19a6;padding:3px 7px;border-radius:5px}
.camera-controls button{min-height:44px;padding:8px 11px;border:1px solid #dbcdbd;border-radius:9px;background:#fffaf2ed;color:#684733;font-family:inherit;font-size:12px;cursor:pointer}
.camera-controls button:disabled{opacity:.5;cursor:default}.camera-controls button>span{font-size:18px;vertical-align:middle;margin-right:3px}
.quick-adjust{justify-content:space-between}.quick-adjust>span{font-size:11px;color:var(--muted)}
