/* The editor is its own viewport. The landing page retains its existing layout. */
body.editing {overflow:hidden;overscroll-behavior:none}
body.editing>.site-header,body.editing>.site-footer,body.editing main>section:not(.workspace) {display:none}
#workspace {position:fixed;inset:0;z-index:40;width:100%;height:100vh;height:100dvh;max-width:none;margin:0;padding:0;display:flex;flex-direction:column;background:#191c16;overflow:hidden}
#workspace[hidden] {display:none}
.editor-header {display:flex;align-items:center;gap:18px;min-height:82px;padding:12px max(22px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left));border-bottom:1px solid #41473a;background:#191c16;flex-shrink:0;z-index:12}
.editor-back {width:36px;height:38px;display:grid;place-items:center;flex-shrink:0;border:0;border-radius:5px;background:transparent;color:#c5ccbc;font:24px Arial,sans-serif}
.editor-back:hover {color:var(--lime);background:#c9fc6610}
.editor-brand {display:flex;align-items:center;gap:12px;flex-shrink:0;padding-right:22px;border-right:1px solid #41473a}
.editor-brand img {width:55px;height:35px;object-fit:contain}
.editor-brand>span {font-size:18px;line-height:1.05;font-weight:500;letter-spacing:-.04em}
.editor-file {flex:1;min-width:0}
.editor-file h2 {font-size:17px;line-height:1.5;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.02em}
.editor-file p {color:#9da78f;font-size:12px;line-height:1.6;font-variant-numeric:lining-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.editor-actions {display:flex;align-items:center;gap:10px;flex-shrink:0}
#workspace .editor-actions .button {min-height:44px;height:44px;padding:10px 15px;font-size:14px;gap:9px;border-radius:5px}
#workspace .editor-actions .icon {width:19px;height:19px}
#workspace .new-image-button {color:var(--lime);border-color:#839e51;background:#c9fc6609}
#workspace .new-image-button:hover {background:#c9fc661a}
#workspace .settings-toggle[aria-expanded=true] {background:#c9fc6614;border-color:#829b56;color:var(--lime)}
#workspace .editor-layout {position:relative;display:grid;grid-template-columns:292px minmax(0,1fr);flex:1;min-height:0;border:0;overflow:hidden}
#workspace[data-settings=closed] .editor-layout {grid-template-columns:minmax(0,1fr)}
#settingsPanel {display:block;grid-column:1;grid-row:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#5b674c transparent;padding:23px 21px 30px;border:0;border-right:1px solid #41473a;background:#1b1e18}
#settingsPanel[hidden] {display:none}
#settingsPanel .panel-heading {margin-bottom:23px}
#settingsPanel .panel-heading h3 {font-size:20px}
.panel-heading-actions {display:flex;align-items:center;gap:12px}
#settingsPanel .editor-back {width:28px;height:34px;font-size:25px}
#settingsPanel .setting-label {font-size:15px}
#settingsPanel .setting-row {margin:22px 0 7px;align-items:center}
#settingsPanel .setting-row .setting-label {margin:0}
#settingsPanel .quality-label {margin:22px 0 9px}
#settingsPanel select {min-height:44px;padding:10px;font-size:15px}
#settingsPanel .setting-help {font-size:13px;line-height:1.65}
#settingsPanel .auto-update-note {font-size:13px;line-height:1.65;margin-top:20px}
#settingsPanel .settings-hint {font-size:12px;margin-top:10px}
#settingsPanel .fill-option {padding:12px;margin-top:20px}
#settingsPanel .checkbox-row {font-size:15px}
#settingsPanel .palette-section {margin-top:22px;padding-top:20px}
#workspace .preview-panel {position:relative;grid-column:2;grid-row:1;min-width:0;min-height:0;display:flex;flex-direction:column;order:initial;overflow:hidden}
#workspace[data-settings=closed] .preview-panel {grid-column:1}
#previewStage {display:block;flex:1;position:relative;min-width:0;min-height:0;height:auto;overflow:hidden;background-color:#efeee8;isolation:isolate}
#compareStage,#compareScroll,#compareArt {position:absolute;inset:0;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden}
#compareScroll {touch-action:none;overscroll-behavior:none;cursor:grab;outline:none}
#compareScroll:focus-visible {box-shadow:inset 0 0 0 3px #64892c}
#compareScroll.is-panning {cursor:grabbing}
#compareArt .camera-image {position:absolute;inset:auto;left:0;top:0;max-width:none;max-height:none;min-width:0;min-height:0;padding:0;object-fit:fill;transform-origin:0 0;user-select:none;-webkit-user-drag:none;pointer-events:none}
#compareOriginal {image-rendering:pixelated}
#compareVectorLayer {position:absolute;inset:0;overflow:hidden;clip-path:inset(0 0 0 var(--compare,50%));pointer-events:none}
#compareVector {image-rendering:auto}
#workspace .pane-label {top:18px;left:20px;z-index:2;border-radius:4px;padding:7px 10px;font-size:11px;max-width:42%;user-select:none}
#workspace .vector-label {left:auto;right:20px}
#comparisonLine {z-index:3;width:36px}
#comparisonLine span {width:36px;height:42px;border-radius:18px;border:1px solid #2e3b1e;box-shadow:0 2px 10px #20261a30;font-size:17px}
#comparisonLine::before {background:#688d35;width:1px}
#workspace .preview-toolbar {position:absolute;left:50%;bottom:22px;transform:translateX(-50%);z-index:4;display:flex;flex-wrap:nowrap;gap:13px;min-height:50px;max-width:calc(100% - 24px);padding:6px 10px 6px 16px;border:1px solid #5d684f;border-radius:10px;background:#1c2219f5;box-shadow:0 5px 24px #19201522;color-scheme:dark}
#workspace .preview-mode {font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px;border-right:1px solid #4a5540;padding-right:14px}
#workspace .zoom-tools {gap:2px}
#workspace .zoom-tools button {width:34px;height:34px;font-size:23px;border-radius:5px}
#workspace .zoom-tools button:disabled {opacity:.3}
#workspace .zoom-tools span {min-width:48px;font-size:13px}
#workspace .zoom-tools .icon {width:18px;height:18px}
#fullscreenButton {margin-left:5px;border-left:1px solid #48513d!important}
#workspace .result-bar {min-height:43px;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:4px 18px;flex-shrink:0;padding:10px 18px max(10px,env(safe-area-inset-bottom));font-size:12px;line-height:1.5;background:#1b2017}
#workspace #resultStats {color:#8e9b80}
#zoomHelp {margin-left:auto;color:#88957b;font-size:11px}
#workspace .processing-overlay.is-background {inset:64px 18px auto auto;max-width:calc(100% - 36px);border-radius:8px;z-index:5;box-shadow:0 4px 22px #19201520}
.settings-scrim {display:none}
.resume-editor {margin-top:18px;width:100%;justify-content:space-between}
.toast {z-index:60}
body.dragging:after {z-index:70}
@media(min-width:1001px) {#settingsScrim {display:none!important}}
@media(max-width:1200px) {.editor-actions .new-image-button span {display:none}.editor-brand {padding-right:16px}.editor-header {gap:14px}#zoomHelp {display:none}}
@media(max-width:1000px) {
  #workspace .editor-layout,#workspace[data-settings=closed] .editor-layout {grid-template-columns:minmax(0,1fr)}
  #workspace .preview-panel {grid-column:1}
  #settingsPanel {position:absolute;z-index:10;left:0;top:0;bottom:0;width:min(340px,calc(100% - 40px));box-shadow:8px 0 30px #10180f33;padding:23px 24px}
  #settingsScrim:not([hidden]) {display:block;position:absolute;inset:0;z-index:9;border:0;background:#18231344;backdrop-filter:blur(2px);cursor:pointer}
  .editor-header {min-height:72px;padding:10px 14px;gap:12px}.editor-brand {padding-right:14px}.editor-brand img {width:44px;height:30px}.editor-brand>span {font-size:15px}
  #workspace .editor-actions .button {padding:10px 12px}.editor-actions {gap:8px}
}
@media(max-width:740px) {
  .editor-brand>span {display:none}.editor-brand {border:0;padding:0}.editor-file p {display:none}.editor-file h2 {font-size:14px}.editor-header {gap:9px}
  .editor-actions .settings-toggle span {display:none}#workspace .editor-actions .button {padding:10px;gap:7px}.editor-actions .download-format {display:none}
  #workspace .pane-label {left:12px;top:14px;font-size:10px;padding:6px 8px}#workspace .vector-label {left:auto;right:12px}
  #workspace .preview-toolbar {bottom:16px;padding:5px 7px;gap:7px}#workspace .preview-mode {padding:0 8px;max-width:110px;font-size:12px}
  #workspace .result-bar {padding:8px 12px max(8px,env(safe-area-inset-bottom));font-size:11px;gap:3px 12px}#workspace #resultStats {width:100%}
}
@media(max-width:430px) {
  .editor-brand {display:none}.editor-back {width:28px}.editor-header {padding-inline:9px;gap:6px;min-height:64px}.editor-actions {gap:6px}
  #workspace .editor-actions .button {font-size:12px;padding:8px;min-height:40px;height:40px}.editor-file {min-width:50px}
  #workspace .preview-mode {max-width:85px;font-size:11px}#workspace .preview-toolbar {gap:3px}
}
@media(max-height:500px) and (orientation:landscape) {.editor-header{min-height:58px;padding-block:7px}#workspace .result-bar{min-height:32px;padding-block:6px}#workspace .preview-toolbar{bottom:10px}#workspace .pane-label{top:10px}}
