/* Crop and document workflow, scoped to the standalone Studio. */
#hccs-crop-overlay{position:absolute;inset:0;overflow:hidden;z-index:7;touch-action:none;background:transparent}
#hccs-crop-overlay[hidden]{display:none!important}
.hccs-crop-frame{position:absolute;box-sizing:border-box;border:1px solid white;box-shadow:0 0 0 30000px #06162699;cursor:move;touch-action:none}
.hccs-crop-frame:focus-visible{outline:3px solid #44c3e3;outline-offset:3px}
.hccs-crop-thirds{position:absolute;pointer-events:none;background:#ffffff80}
.hccs-crop-thirds.v{top:0;width:1px;height:100%}.hccs-crop-thirds.v.one{left:33.333%}.hccs-crop-thirds.v.two{left:66.666%}
.hccs-crop-thirds.h{left:0;height:1px;width:100%}.hccs-crop-thirds.h.one{top:33.333%}.hccs-crop-thirds.h.two{top:66.666%}
.hccs-crop-corner{position:absolute;width:24px;height:24px;padding:0!important;min-height:0!important;border:2px solid #fff!important;background:#14354e!important;border-radius:5px!important;touch-action:none;transform:scale(var(--crop-inverse,1));z-index:2}
.hccs-crop-corner:focus-visible{outline:3px solid #44c3e3;outline-offset:3px}
.hccs-crop-corner.nw{left:0;top:0;transform-origin:top left;cursor:nwse-resize}.hccs-crop-corner.ne{right:0;top:0;transform-origin:top right;cursor:nesw-resize}.hccs-crop-corner.sw{left:0;bottom:0;transform-origin:bottom left;cursor:nesw-resize}.hccs-crop-corner.se{right:0;bottom:0;transform-origin:bottom right;cursor:nwse-resize}
.hccs-tool-intro{padding:18px;margin:0 0 20px;border-radius:15px;background:linear-gradient(125deg,#173f5d,#103047 65%,#145765);color:#fff;border:1px solid #367389}
.hccs-tool-intro small{font-size:9px;letter-spacing:.16em;color:#a5dce7}.hccs-tool-intro h3{font-size:22px;line-height:1.15;margin:9px 0!important;color:white!important}.hccs-tool-intro p{font-size:12px;line-height:1.6;color:#d8e7ed;margin:0}
.hccs-crop-ratios{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.hccs-crop-ratios button{background:#132e43;color:#eaf5ff;border:1px solid #34526a; border-radius:9px;min-height:60px;padding:9px 4px;font-size:12px}.hccs-crop-ratios small{display:block;font-size:10px;opacity:.7;margin-top:4px}.hccs-crop-ratios .is-active{background:#143b56!important;color:white!important;border-color:#58b8d2!important}
.hccs-crop-summary{font-size:13px;color:#3f8597;font-weight:700;margin:16px 0 10px}.hccs-crop-actions{display:flex;gap:8px;position:sticky;bottom:0;padding:12px 0;background:var(--hc-panel,#0d1d2a);z-index:2}.hccs-crop-actions button{min-height:42px;flex:1}.hccs-photo-controls{padding:0;border:0;margin:0;min-width:0}.hccs-photo-controls:disabled{opacity:.5}
#hccs-document-title{max-width:310px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--hc-text,#eef6ff);text-align:left;padding:4px 8px!important;border:1px solid transparent;background:transparent;font:inherit;font-weight:700;cursor:text;min-height:32px}
#hccs-document-title:hover,#hccs-document-title:focus-visible{border-color:#71a8bd;background:#e7f1f6;color:#102a43}
#hccs-name-error{color:#b42318;font-size:13px}.hccs-photo-controls .hccs-btn-row button{min-height:38px}
@media(max-width:600px){#hccs-document-title{max-width:170px}.hccs-tool-intro{padding:14px}.hccs-crop-corner{width:30px;height:30px}}

.hccs-crop-mobile-actions{display:none}.hccs-crop-mobile-actions[hidden]{display:none!important}
@media(max-width:820px){.hccs-crop-mobile-actions{position:absolute;left:12px;right:12px;bottom:max(14px,env(safe-area-inset-bottom));z-index:15;display:flex;gap:8px;padding:8px;border:1px solid #365168;border-radius:12px;background:#102438f2;box-shadow:0 6px 20px #0005}.hccs-crop-mobile-actions button{flex:1;min-height:44px;border-radius:8px;background:#223e54;color:white}}
