#photoEditor[hidden]{display:none!important}#photoEditor{position:fixed;inset:0;z-index:100;background:#26332f;color:#f5efdf;display:flex;flex-direction:column;padding:18px;gap:12px;font:14px 'Segoe UI','Microsoft YaHei',sans-serif;overflow:auto}#photoEditor header{position:static;pointer-events:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;color:inherit}#photoEditor h2{font:inherit;font-size:20px;margin:0}#photoEditor header p{display:block;font-size:12px;opacity:.8;margin:8px 0 0}#photoEditor button{background:#e2e9d5;color:#42563e}#photoEditor button:focus-visible,#photoEditor input:focus-visible,#photoEditor select:focus-visible{outline:2px solid #f0c78b;outline-offset:3px}#editorStage{display:flex;align-items:center;justify-content:center;flex:1;min-height:120px;overflow:hidden}#editorImage{display:block;max-width:100%;max-height:calc(100dvh - 240px);width:auto;height:auto;object-fit:contain;touch-action:none;cursor:grab;box-shadow:0 8px 32px #0005}#editorImage:active{cursor:grabbing}#photoEditor footer{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}#photoEditor label{display:flex;align-items:center;gap:8px}#photoEditor input{accent-color:#a8c18e}#photoEditor select{font:inherit;border:1px solid #92a58c;border-radius:10px;background:#f7f2e5;color:#42563e;padding:8px}#editorStatus{width:100%;text-align:center;margin:0;font-size:12px;min-height:16px}#editorZoom{max-width:140px}@media(max-width:600px){#photoEditor{padding:12px}#editorImage{max-height:calc(100dvh - 330px)}#photoEditor header p{font-size:11px}#photoEditor footer{gap:8px}#photoEditor h2{font-size:16px}}

/* Keep all four frame edges visible, using the actual remaining stage height. */
#photoEditor{height:100dvh;box-sizing:border-box}
#photoEditor header,#photoEditor footer{flex-shrink:0}
#editorStage{position:relative;flex:1 0 120px;min-height:120px}
#editorImage{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);max-width:100%;max-height:100%;width:auto;height:auto}
