.photo-studio{--panel:#fbfcf8;--edge:#d6ddd3;border:1px solid var(--edge);border-radius:18px;overflow:hidden;background:var(--panel);margin:10px 0 30px}.photo-studio button,.photo-studio select,.photo-studio input{font:inherit;font-size:13px}.photo-studio button,.photo-studio select,.photo-studio input:not([type=range]):not([type=color]){border:1px solid #becabc;border-radius:7px;background:#fff;color:#253c30;min-height:38px;padding:7px 10px}.photo-studio button{cursor:pointer}.photo-studio button:hover{background:#edf3e3}.photo-studio button:disabled{opacity:.4;cursor:default}.photo-studio button[aria-pressed=true],.photo-studio button.primary{background:#244c40;color:#fff;border-color:#244c40}.photo-studio :focus-visible{outline:3px solid #a5c464;outline-offset:2px}.studio-filebar{padding:14px;display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--edge);align-items:center}.studio-filebar .file-spacer{flex:1}.studio-filebar .document-size{font-size:12px;font-variant-numeric:tabular-nums;color:#64735e}.studio-layout{display:grid;grid-template-columns:156px minmax(0,1fr) 260px;min-height:620px}.studio-tools{padding:14px 12px;border-right:1px solid var(--edge)}.studio-tools .tool-options{display:grid;gap:8px}.studio-tools h2,.studio-inspector h2{font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:#67745e;margin:2px 0 12px}.studio-tools .tool-options button{text-align:left;display:flex;gap:9px;align-items:center}.tool-icon{font-size:17px;width:18px;text-align:center}.studio-tools .field{margin-top:18px;font-size:12px}.studio-tools input[type=color]{height:36px;width:100%;border:0;padding:0;background:transparent}.studio-tools input[type=range]{max-width:100%;width:100%}.studio-tools .tool-note{font-size:11px;line-height:1.6;color:#66755f;margin-top:16px}.studio-center{min-width:0;background:#222b28;display:flex;flex-direction:column}.studio-viewbar{display:flex;gap:8px;align-items:center;justify-content:space-between;padding:10px 14px;color:#dde5de;font-size:12px}.studio-viewbar label{display:flex;gap:6px;align-items:center}.studio-viewbar select{min-height:30px;padding:4px;background:#334139;color:#fff;border-color:#576559}.studio-viewport{height:510px;overflow:auto;display:flex;align-items:safe center;justify-content:safe center;padding:20px;position:relative;overscroll-behavior:contain}.studio-stage{position:relative;flex-shrink:0;box-shadow:0 4px 22px #0007;background-color:#fff;background-image:linear-gradient(45deg,#dcdedc 25%,transparent 25%),linear-gradient(-45deg,#dcdedc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#dcdedc 75%),linear-gradient(-45deg,transparent 75%,#dcdedc 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}.studio-stage canvas{display:block;width:100%;height:100%}.studio-stage #photo-canvas{touch-action:none;cursor:crosshair}.studio-stage #photo-overlay{position:absolute;inset:0;pointer-events:none}.studio-caption{font-size:11px;color:#b3c3b7;padding:10px 14px;margin-top:auto;line-height:1.5}.studio-inspector{padding:14px;max-height:630px;overflow:auto;border-left:1px solid var(--edge)}.studio-inspector details{border-bottom:1px solid var(--edge);padding:0 0 12px;margin-bottom:14px}.studio-inspector summary{font-size:13px;font-weight:650;cursor:pointer;margin-bottom:12px}.studio-inspector .field{font-size:12px;margin:10px 0;gap:4px}.studio-inspector input[type=range]{width:100%;margin:3px 0;accent-color:#355d45}.studio-row{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.studio-row>*{min-width:0}.studio-row .field{flex:1}.studio-row input{width:100%}.studio-inspector select{width:100%}.studio-inspector input[type=number],.studio-inspector input[type=text]{width:100%;min-width:0}.studio-inspector input[type=color]{height:34px;width:100%;padding:0;border:0;background:transparent}.studio-inspector .mini{font-size:11px;color:#6b775f;line-height:1.5;margin:8px 0}.layer-list{list-style:none;margin:10px 0;padding:0;display:grid;gap:5px}.layer-row{display:flex;align-items:center;gap:5px;padding:4px;border:1px solid transparent;border-radius:8px}.layer-row.active{background:#e6eecf;border-color:#a9ba8c}.layer-row button.layer-select{flex:1;min-width:0;text-align:left;border:0;background:transparent;padding:5px;display:flex;align-items:center;gap:7px}.layer-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.layer-thumb{width:30px;height:25px;object-fit:contain;background:repeating-conic-gradient(#e4e8df 0% 25%,white 0% 50%) 50%/8px 8px;border:1px solid #cad3c2;flex-shrink:0}.layer-row button.layer-eye{min-width:32px;padding:4px}.layer-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.layer-actions button{padding:6px 3px}.studio-status{padding:12px 16px;border-top:1px solid var(--edge);font-size:12px;color:#45613c;min-height:43px;margin:0}.studio-status.error{color:#a0392d}.crop-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;padding:10px 14px;background:#dce8bb;color:#254131;font-size:12px}.crop-actions[hidden]{display:none}.studio-inspector .check-label{display:flex;align-items:center;gap:6px;font-size:12px;margin:8px 0}.studio-inspector .check-label input{min-height:auto}.photo-studio[aria-busy=true]{opacity:.75}.native-editor-tag{font-size:12px;color:#5c6b50;display:flex;gap:16px;flex-wrap:wrap;margin:18px 0}.photo-studio a.download-result{color:#244c40;font-weight:650;text-decoration:underline}.photo-studio .new-document-fields{display:flex;gap:6px;align-items:center}.new-document-fields label{font-size:11px;color:#5e6e57}.photo-studio .new-document-fields input{width:72px}.studio-inspector .full-button{width:100%;margin-top:5px}
@media(max-width:1100px){.studio-layout{grid-template-columns:120px minmax(0,1fr) 230px}.studio-tools{padding:12px 8px}.studio-viewport{height:480px;padding:16px}}
@media(max-width:850px){.studio-layout{grid-template-columns:1fr}.studio-tools{border-right:0;border-bottom:1px solid var(--edge);display:flex;align-items:center;gap:12px;flex-wrap:wrap}.studio-tools h2,.studio-tools .tool-note{display:none}.studio-tools .tool-options{display:flex;gap:5px;flex-wrap:wrap}.studio-tools .field{margin:0;max-width:110px;flex:1}.studio-tools .color-field{max-width:45px}.studio-tools .tool-options button{padding:7px}.studio-inspector{max-height:none;overflow:visible;border-left:0;display:grid;grid-template-columns:1fr 1fr;gap:12px 18px}.studio-inspector details{margin:0;min-width:0}.studio-viewport{height:440px}.studio-filebar .file-spacer{display:none}.photo-studio .new-document-fields{flex-wrap:wrap}.studio-caption{margin:0}}
@media(max-width:520px){.studio-filebar{padding:10px;gap:6px}.studio-filebar button{font-size:12px;padding:7px}.studio-inspector{grid-template-columns:1fr}.studio-viewport{height:340px;padding:12px}.studio-viewbar{padding:8px;font-size:11px}.studio-tools{padding:10px;gap:8px}.studio-tools .tool-options{width:100%;display:grid;grid-template-columns:repeat(4,1fr)}.studio-tools .tool-options button{justify-content:center;font-size:11px;gap:4px}.studio-tools .tool-options .tool-icon{font-size:14px}.photo-studio{border-radius:12px}.native-editor-tag{gap:8px;font-size:11px}.studio-filebar .document-size{width:100%}.studio-status{line-height:1.7}}

.photo-studio .layer-select[aria-pressed=true]{color:#244c40}.layer-actions button{font-size:11px;padding:6px 0;word-break:keep-all}
