/* Image2 editor launch workspace: use the existing Qt grey palette. */
:root { --launch-bg:#252627; --launch-panel:#333; --launch-raised:#4d4d4d; --launch-line:#555; --launch-text:#eee; --launch-muted:#b7b7b7; --launch-accent:#2580ed; }
html, body { background:var(--launch-bg); }
#screen { display:block; position:fixed; inset:0; }
#workspace-preview { position:fixed; inset:0; z-index:1; background:var(--launch-bg); color:var(--launch-muted); font:12px system-ui,sans-serif; pointer-events:none; }
.preview-menu { height:35px; display:flex; align-items:center; gap:28px; padding:0 52px; background:var(--launch-raised); border-bottom:1px solid var(--launch-line); white-space:nowrap; overflow:clip; }
.preview-menu strong { color:var(--launch-text); }
.preview-options { height:47px; display:flex; align-items:center; gap:20px; padding:0 15px; background:var(--launch-panel); border-bottom:1px solid var(--launch-line); overflow:clip; white-space:nowrap; }
.preview-options span { padding:5px 12px; border:1px solid var(--launch-line); }
.preview-tools { position:absolute; top:84px; bottom:24px; width:41px; background:var(--launch-raised); display:flex; flex-direction:column; align-items:center; gap:13px; padding-top:12px; overflow:clip; font-size:18px; }
.preview-tools svg { width:18px; height:18px; flex-shrink:0; }
.preview-panels { position:absolute; width:390px; right:0; top:84px; bottom:24px; background:var(--launch-panel); border-left:1px solid var(--launch-line); }
.preview-tabs { padding:12px; border-bottom:1px solid var(--launch-line); }
.preview-panel-options { padding:14px; font-size:11px; }
.preview-layer-space { height:calc(100% - 210px); min-height:90px; margin:0 8px; border:1px solid var(--launch-line); background:var(--launch-bg); }
.preview-foot { position:absolute; bottom:0; left:0; right:0; height:24px; background:var(--launch-panel); padding-left:12px; line-height:24px; }
#loader { z-index:2; padding:100px 410px 36px 60px; pointer-events:none; text-align:left; }
#loader .launch-card { pointer-events:auto; width:min(580px,100%); max-height:100%; border-radius:12px; padding:26px; background:var(--launch-panel); border-color:var(--launch-line); color:var(--launch-text); box-shadow:0 20px 65px #0006; }
#loader img { width:44px; height:44px; margin:0 0 12px; }
#title { font-size:26px; }
#title .launch-version { font-size:13px; }
.info { font-size:14px; color:var(--launch-muted); margin:12px 0; }
.launch-actions { margin:20px 0 14px; align-items:start; }
.launch-import { min-width:0; }
.launch-import .launch-choice { width:100%; }
.launch-formats { margin:8px 0 0; color:var(--launch-muted); font-size:12px; line-height:1.6; text-align:left; overflow-wrap:anywhere; }
.launch-choice, .launch-button { background:var(--launch-raised); border:1px solid var(--launch-line); color:var(--launch-text); border-radius:7px; min-height:42px; padding:8px 14px; font:inherit; cursor:pointer; }
.launch-choice, .launch-button { white-space:nowrap; }
.launch-choice[data-intent="new"],.launch-primary { background:var(--launch-accent); border-color:var(--launch-accent); }
.launch-choice:hover,.launch-button:hover { filter:brightness(1.15); background:var(--launch-raised); }
.launch-choice:focus-visible,.launch-button:focus-visible,input:focus-visible,select:focus-visible { outline:2px solid var(--launch-accent); outline-offset:3px; }
.launch-button:disabled { opacity:.6; cursor:wait; }
#intent-note { margin:10px 0; color:var(--launch-muted); font-size:13px; }
.stage-row { font-size:12px; color:var(--launch-muted); }
#status { color:var(--launch-muted); font-size:13px; margin-top:9px; min-height:2.6em; }
#status.error, #launch-error { color:#ffab99; }
#bar { height:4px; background:var(--launch-raised); }
#bar-fill { background:var(--launch-accent); }
.launch-view[hidden], #workspace-preview[hidden], #loader[hidden] { display:none !important; }
.launch-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:18px; }
.launch-heading h2 { margin:0; font-size:23px; }
.launch-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.launch-form-grid label { display:grid; gap:6px; color:var(--launch-muted); font-size:13px; }
.launch-form-grid .full { grid-column:1/-1; }
.launch-form-grid input,.launch-form-grid select { box-sizing:border-box; width:100%; min-width:0; padding:10px; border:1px solid var(--launch-line); border-radius:5px; background:var(--launch-bg); color:var(--launch-text); font:inherit; }
.launch-presets { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:14px 0; }
.launch-preset { display:flex; flex-direction:column; align-items:center; gap:7px; font-size:12px; min-height:95px; }
.launch-preset small { color:var(--launch-muted); font-size:11px; }
.preset-shape { height:28px; max-width:55px; border:1px solid var(--launch-muted); }
.launch-submit { width:100%; margin:14px 0 8px; }
.launch-filename { overflow-wrap:anywhere; font-weight:600; }
.launch-queue-actions { display:flex; gap:8px; flex-wrap:wrap; margin:14px 0; }
.launch-footer { margin-top:16px; font-size:11px; color:var(--launch-muted); }
.launch-footer a { color:var(--launch-muted); }
#launch-error:empty { display:none; }
#leave-guard[hidden] { display:none; }
#leave-guard { position:fixed; inset:0; z-index:2147483647; display:grid; place-items:center; padding:20px; box-sizing:border-box; font:15px/1.55 system-ui,sans-serif; }
.leave-guard-backdrop { position:absolute; inset:0; background:rgb(0 0 0 / .62); }
.leave-guard-dialog { position:relative; width:min(440px,100%); box-sizing:border-box; padding:24px; border:1px solid #626262; border-radius:12px; background:var(--launch-panel); color:var(--launch-text); box-shadow:0 24px 72px #0009; }
.leave-guard-dialog h2 { margin:0 0 8px; font-size:21px; }
.leave-guard-dialog p { margin:0; color:var(--launch-muted); }
.leave-guard-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:10px; margin-top:22px; }
.leave-guard-confirm { background:#b83a3a; border-color:#b83a3a; }
.leave-guard-confirm:hover { background:#c94343; }
@media (max-width:1000px) { .preview-panels { width:220px; } #loader { padding-right:240px; } }
@media (max-width:760px) { .preview-panels { width:150px; } #loader { padding:100px 20px 36px 52px; } .preview-menu { gap:16px; } }
@media (max-width:520px) { .preview-panels { display:none; } #loader .launch-card { padding:18px; } #loader { padding:92px 10px 28px 48px; } #title { font-size:22px; } .launch-presets { grid-template-columns:repeat(2,minmax(0,1fr)); } .launch-actions { grid-template-columns:1fr; } }
@media (max-width:520px) { .leave-guard-actions { flex-direction:column-reverse; } .leave-guard-actions .launch-button { width:100%; min-height:44px; } }
@media (max-height:650px) { #loader { padding-top:90px; justify-content:center; } #loader .launch-card { overflow:auto; } }
