.advanced-tool{border-top:1px solid var(--line);margin:18px 0;padding-top:2px}.advanced-tool>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;font-size:12px;font-weight:600;padding:15px 0;list-style:none}.advanced-tool>summary:after{content:'+';font-size:17px;color:#87947c}.advanced-tool[open]>summary:after{content:'−'}.advanced-tool>summary>span{margin-left:auto;font-size:9px;font-weight:400;color:#8c9782}.tool-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 0 18px}.check-label{display:flex;align-items:center;gap:6px;font-size:11px;color:#67775b}.check-label input{accent-color:#c65b3a;width:15px;height:15px}.select-label{display:grid;gap:7px;font-size:11px;margin-bottom:14px}.select-label input,.curve-numbers input{background:#f1f4eb;border:1px solid #dce4d2;padding:10px;border-radius:5px;min-width:0;width:100%;color:inherit}.select-label select{padding:9px}#histogram{display:block;width:100%;height:90px;background:#28312c;border-radius:6px}#curve-graph{display:block;width:100%;height:auto;aspect-ratio:1;background:#f0f3ea;border:1px solid #d9e0d1;border-radius:5px;touch-action:none;overflow:visible;margin:12px 0;cursor:crosshair}.curve-numbers{display:grid;grid-template-columns:1.5fr 1fr;gap:12px}.curve-numbers label{display:grid;gap:6px;font-size:10px}.curve-numbers select{padding:8px;font-size:10px;min-width:0;width:100%}.hue-bands{display:grid;grid-template-columns:repeat(8,1fr);gap:5px}.hue-bands button{background:var(--swatch);aspect-ratio:1;border:3px solid #fcfcf8;border-radius:50%;outline:1px solid transparent;min-height:25px}.hue-bands button[aria-pressed=true]{outline-color:#738268;box-shadow:0 0 0 2px #dae0d2}.mask-add{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.mask-add button,.mask-list button{border:1px solid #dce4d2;background:#f1f4eb;border-radius:5px;padding:10px 5px;font-size:11px}.mask-list{display:grid;gap:6px;margin:15px 0}.mask-list button{text-align:left;padding:10px}.mask-list button[aria-pressed=true]{border-color:#cf6848;background:#fff3eb;color:#9f4a30}#mask-overlay{position:absolute;inset:0;width:100%;height:100%;z-index:8;touch-action:none;cursor:crosshair}#brush-controls{padding:10px 0 20px}.tool-tabs{gap:4px}.tool-tabs button{min-width:0}.tool-tabs button:last-child{white-space:nowrap}.canvas-footer>div{display:flex;align-items:center;gap:4px}.canvas-button[aria-pressed=true]{background:#e9eee0;color:#35452c}#photo-frame:has(~ #busy[hidden]){touch-action:none}#reference-sidecar{position:relative;width:45%;height:100%;min-width:0;display:flex;align-items:center;justify-content:center}#reference-sidecar img{max-width:100%;max-height:100%;object-fit:contain}#reference-sidecar span{position:absolute;left:10px;bottom:10px;background:#203329b3;color:#fff;padding:5px 8px;font-size:10px;border-radius:4px}.stage.side-by-side{gap:20px}.panel-footer{gap:8px}.panel-footer>span{margin-left:auto;font-size:8px}.workspace-dialog{width:540px;max-width:calc(100vw - 28px);max-height:88dvh;overflow:auto}.workspace-actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.workspace-actions .button{font-size:11px;min-height:38px;padding:9px 12px}.saved-list{display:grid;gap:7px;margin:12px 0 20px}.saved-list>div{display:flex;align-items:center;gap:8px;background:#f0f3ea;border:1px solid #e0e5d7;border-radius:6px}.saved-list button:first-child{text-align:left;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:12px;font-size:12px}.saved-list button:last-child{font-size:10px;color:#92694f;padding:9px}.workspace-dialog h3{margin-top:23px}.export-options input[type=range]{accent-color:#c65b3a}.export-options input[type=color]{width:100%;height:33px;background:transparent;border:1px solid #dce4d2}#workspace-status{color:#965638}.tool-panel .advanced-tool>.control:first-of-type{margin-top:16px}
@media(max-width:740px){.tool-tabs{padding:0 10px;gap:4px}.tool-tabs button{font-size:10px;gap:5px}.tool-tabs svg{width:14px;height:14px}.canvas-footer>span{max-width:37%}.canvas-footer{padding-left:9px;padding-right:9px}.canvas-button{padding:5px;font-size:8px}.panel-footer{padding:3px 10px}.panel-footer>span{font-size:7px}.panel-footer .text-button{font-size:9px}.stage.side-by-side{flex-direction:column;gap:12px}#reference-sidecar{width:100%;height:calc(50% - 6px)}#reference-sidecar span{bottom:3px;left:3px;font-size:8px}#curve-graph{max-height:250px}.workspace-dialog{padding:22px}.check-label{min-height:28px}}
@media(max-width:380px){.tool-tabs button{font-size:9px;gap:4px}.canvas-footer>span{max-width:30%;font-size:8px}.panel-footer>span{display:none}.panel-footer #help{margin-left:auto}}
.favorite-star{font-size:17px;line-height:1;color:#929b87;padding:3px}.favorite-star[aria-pressed=true]{color:#c05e3d}.favorite-tools{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0 16px}.favorite-tools button{font-size:10px;padding:7px 9px;border:1px solid #dde3d5;border-radius:5px;background:#f1f4eb}
#brush-cursor{position:absolute;z-index:9;pointer-events:none;border:1px solid white;outline:1px solid #1118;border-radius:50%;transform:translate(-50%,-50%);mix-blend-mode:difference}
.toast{pointer-events:none}@media(max-width:740px){.editor{min-height:0}.toast{top:108px;bottom:auto;max-width:calc(100vw - 28px);padding:9px 14px;font-size:10px}}
.output-tools{margin:18px 0 0}.output-tools .button{margin:0 0 8px;font-size:12px}.batch-picker{position:relative;overflow:hidden;margin:18px 0 8px;cursor:pointer}.batch-picker:focus-within{outline:2px solid #b85335;outline-offset:3px}.batch-picker:has(input:disabled){opacity:.5;cursor:default}.batch-picker input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:inherit}.batch-options{display:grid;grid-template-columns:1fr 1.7fr;gap:12px;margin:18px 0}.batch-options label{display:grid;gap:8px;font-size:11px}.batch-options select{width:100%;min-width:0;padding:10px;border:1px solid #dce4d2;border-radius:5px;background:#f1f4eb;color:inherit}.batch-list{display:grid;gap:8px;margin:16px 0}.batch-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:12px 14px;border:1px solid #dce4d2;border-radius:8px;background:#f4f6ef}.batch-row strong{font-size:12px;font-weight:500;overflow-wrap:anywhere}.batch-row span{grid-row:2;font-size:10px;color:#718067;line-height:1.6}.batch-row a{grid-column:2;grid-row:1/3;align-self:center;padding:8px;color:#9d4d33;font-size:12px}.batch-row.failed span{color:#a04b36}.dialog-note{font-size:11px!important;line-height:1.8!important;background:#f1f4eb;border-radius:7px;padding:12px 14px}#cube-status,#batch-status{font-size:12px;line-height:1.7;color:#82634d}#cube-dialog{max-height:88dvh;overflow:auto}#batch-download{margin-top:10px}#cube-download{margin-top:10px}
.batch-list{max-height:32dvh;overflow:auto;overscroll-behavior:contain}.batch-row.completed{grid-template-columns:40px minmax(0,1fr) auto}.batch-row.completed img{width:40px;height:44px;object-fit:cover;grid-column:1;grid-row:1/3;border-radius:4px;background:#dce4d2}.batch-row.completed strong,.batch-row.completed span{grid-column:2}.batch-row.completed a{grid-column:3}
/* Keep both the photo and tools usable on short, landscape touch screens. */
@media(pointer:coarse) and (min-width:540px) and (max-height:500px){
  .app-header{height:56px;padding:0 12px;gap:10px}.document-heading{display:none}.header-actions{margin-left:auto}.brand{font-size:20px}.brand-symbol{width:32px;height:32px}.header-actions #source-drop span{display:none}
  .editor{height:calc(100dvh - 56px);min-height:0;display:grid;grid-template-columns:minmax(0,1fr) min(310px,46vw)}.preview-panel{min-height:0;min-width:0}.tools-panel{min-height:0;border-left:1px solid #dce3d5;border-top:0}.tool-tabs{height:48px;padding:0 8px;gap:4px}.tool-tabs button{font-size:9px;gap:2px;flex-direction:column;white-space:nowrap}.tool-tabs svg{width:14px;height:14px}.tool-panel{padding:16px}.panel-footer{min-height:36px;padding:3px 10px}.panel-footer>span{display:none}.panel-footer #help{margin-left:auto}.preview-toolbar{height:40px;padding:0 10px}.canvas-footer{min-height:38px;padding:4px 10px}.canvas-footer>span{display:none}.canvas-footer>div{margin-left:auto}.stage{padding:8px 14px}.welcome{padding:10px 18px;grid-template-columns:1fr}.welcome h1{font-size:24px;margin:10px 0}.welcome-art,.welcome p,.welcome-formats{display:none}.welcome .button{padding:9px 12px;min-height:34px}.welcome-demo{margin-top:8px}.toast{top:64px;bottom:auto}
}
@media(pointer:coarse) and (max-width:539px) and (max-height:520px){.preview-panel{min-height:130px;flex-basis:38%}.editor:not(.has-photo) .preview-panel{flex-basis:38%}.welcome h1{font-size:20px}.welcome-art{display:none}.welcome{grid-template-columns:1fr}.welcome .eyebrow,.welcome-demo{display:none}}
@media(pointer:coarse){input[type=number],input[type=text],select{font-size:16px}.number-value{width:58px;min-height:30px}.range{padding:18px 0;touch-action:pan-y}.range::-webkit-slider-thumb{width:21px;height:21px}.range::-moz-range-thumb{width:21px;height:21px}.dialog-close{min-width:44px;min-height:44px}.hue-bands button{min-height:28px}.canvas-button{min-height:30px}dialog{max-height:88dvh;overflow:auto}.tool-scroll{overscroll-behavior:contain}}
