.crop-page [hidden]{display:none!important}
.crop-workspace{border:1px solid var(--line);border-radius:10px;background:var(--paper);overflow:hidden;box-shadow:none}
.crop-page button{border:1px solid var(--line);border-radius:8px;background:white;padding:10px 14px;font-size:12px;font-weight:600;color:var(--ink);line-height:1.4}
.crop-page button:hover:not(:disabled){background:var(--surface)}
.crop-page button.primary{background:var(--blue);color:white;border-color:var(--blue);box-shadow:none}
.crop-page button.primary:hover:not(:disabled){background:var(--accent)}
.crop-buttons{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.batch-bar{background:var(--surface);padding:23px 26px;display:flex;align-items:center;gap:20px;justify-content:space-between;border-bottom:1px solid var(--line)}
.batch-bar h2{font-size:17px;margin:0 0 7px}
.batch-bar p{font-size:12px;color:var(--muted);margin:0;line-height:1.6}
.crop-status{font-size:12px;line-height:1.6;color:var(--muted);margin:0;padding:0 26px;overflow-wrap:anywhere}
.crop-status:not(:empty){padding-top:13px;padding-bottom:13px}
.crop-empty{display:grid;grid-template-columns:180px minmax(0,1fr);gap:30px;align-items:center;padding:45px;max-width:880px;margin:auto}
.crop-empty h3{font-size:22px;letter-spacing:-.6px;margin:0 0 12px}
.crop-empty p{font-size:14px;color:var(--muted);line-height:1.7;margin:10px 0}
.empty-illustration{height:160px;position:relative;background:var(--surface);border-radius:10px;overflow:hidden}
.empty-frame{position:absolute;inset:20px 40px;border:2px dashed var(--line)}
.empty-vase{position:absolute;bottom:20px;left:64px;width:52px;height:104px;background:var(--accent);border-radius:10px 10px 30px 30px}
.empty-vase:before{content:'';position:absolute;top:-30px;left:20px;width:2px;height:40px;background:var(--accent);transform:rotate(-10deg)}
.empty-region{position:absolute;left:58px;bottom:15px;width:66px;height:134px;border:2px solid var(--line);background:#34594c0a}
.crop-layout{display:grid;grid-template-columns:220px minmax(0,1fr)}
.batch-sidebar{background:var(--paper);border-right:1px solid var(--line);padding:23px 16px}
.sidebar-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.sidebar-heading h2{font-size:16px;margin:0}
.sidebar-heading>span{font-size:12px;color:var(--muted)}
.batch-summary{font-size:12px;line-height:1.7;color:var(--muted);margin:15px 0}
.demo-note{font-size:12px;line-height:1.6;background:var(--surface);padding:9px;border-radius:6px;color:var(--muted)}
.image-list{display:flex;flex-direction:column;gap:8px}
.crop-page .image-choice{display:flex;gap:10px;align-items:center;text-align:left;padding:9px;width:100%;font-weight:400;background:white}
.crop-page .image-choice[aria-pressed=true]{border:2px solid var(--line);padding:8px;background:var(--surface)}
.image-thumb{width:46px;height:46px;object-fit:contain;background:var(--surface);flex-shrink:0;border-radius:5px}
.image-choice-copy{min-width:0;display:block}
.image-choice-name{display:block;font-size:12px;font-weight:600;overflow-wrap:anywhere;margin-bottom:5px}
.image-choice-status{display:block;font-size:12px;color:var(--muted);line-height:1.4}
.photo-review{min-width:0;padding:24px 26px}
.review-heading{display:flex;align-items:flex-start;gap:18px;justify-content:space-between;margin-bottom:16px}
.review-heading h2{font-size:18px;overflow-wrap:anywhere;margin:10px 0 4px}
.review-heading button{flex-shrink:0;font-size:12px;padding:8px 10px}
.review-heading .section-label{font-size:12px}
.small-note{font-size:12px!important;line-height:1.7;color:var(--muted)}
.editor-instruction{font-size:12px;line-height:1.6;margin:12px 0;color:var(--muted)}
.original-stage{background:var(--surface);position:relative;display:flex;justify-content:center;overflow:hidden;border:1px solid var(--line);border-radius:8px;padding:12px}
.original-stage canvas{display:block;max-width:100%;height:auto;max-height:460px;touch-action:none;cursor:crosshair;object-fit:contain}
.stage-label{position:absolute;top:20px;left:20px;font-size:8px;letter-spacing:1px;padding:5px 7px;background:#fffdf3e6;pointer-events:none;color:var(--ink);border-radius:3px}
.region-panel{padding:15px 0;border-bottom:1px solid var(--line)}
.region-panel fieldset,.ratio-grid fieldset{border:0;padding:0;margin:0;min-width:0}
.region-panel legend{font-size:12px;font-weight:600;margin-bottom:9px}
.region-panel legend span{font-weight:400;color:var(--muted)}
.region-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-width:620px}
.crop-page label{font-size:12px;color:var(--muted);line-height:1.5}
.crop-page input[type=number]{display:block;width:100%;border:1px solid var(--line);border-radius:6px;padding:9px;font-size:12px;color:var(--ink);background:var(--paper);margin-top:4px;min-width:0}
.crop-page input[aria-invalid=true]{border-color:#ad482e;background:#fff6ef}
.region-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:11px}
.region-actions button{font-size:12px;padding:8px 10px}
.region-panel .small-note{margin-bottom:0}
.file-error{font-size:12px;line-height:1.6;background:#fff2e8;color:#8a3623;padding:9px 12px;border-radius:6px;overflow-wrap:anywhere}
.file-error:empty{display:none}
.crop-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:19px 0 13px}
.crop-heading h3{font-size:13px;margin:0}
.state-pill{font-size:12px;padding:6px 9px;border-radius:20px;background:var(--surface);color:var(--muted);text-align:center}
.state-pill[data-state=fits]{background:var(--surface);color:var(--muted)}
.state-pill[data-state=at_risk]{background:#fff0de;color:#8a4b25}
.crop-previews{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.crop-preview{min-width:0;margin:0;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:10px}
.crop-preview figcaption{font-size:12px;font-weight:600;margin-bottom:9px}
.crop-stage{height:165px;display:flex;align-items:center;justify-content:center;border-radius:4px;background:var(--surface);padding:5px}
.crop-stage canvas{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.crop-preview p{font-size:12px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere;margin:10px 0 0}
.crop-preview[data-state=cut]{border-color:#dfb895;background:#fff9f0}
.crop-preview[data-state=cut] p{color:#8a4b25}
.ratio-settings{border-top:1px solid var(--line);padding:19px 26px;background:var(--paper)}
.ratio-settings summary{font-size:12px;font-weight:600;cursor:pointer}
.ratio-settings>p{font-size:12px;line-height:1.7;color:var(--muted);max-width:800px}
.ratio-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;max-width:720px;margin:16px 0}
.ratio-grid fieldset{display:flex;align-items:end;gap:8px}
.ratio-grid legend{font-size:12px;font-weight:600;margin-bottom:6px}
.ratio-grid span{padding-bottom:10px}
.ratio-grid label{flex:1;min-width:0}
.batch-export{background:var(--surface);border-top:1px solid var(--line);padding:25px 26px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px 25px;align-items:center}
.batch-export h2{font-size:23px;letter-spacing:-.6px;margin:12px 0}
.batch-export p{font-size:12px;line-height:1.6;margin:8px 0}
.batch-export .crop-buttons{flex-direction:column;align-items:stretch}
.batch-export .crop-status{grid-column:1/-1;padding:0}
.how-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:32px;margin:23px 0 0;padding-left:21px}
.how-steps li{padding-left:4px;font-size:14px;line-height:1.5}
.how-steps p{font-size:12px;line-height:1.8;color:var(--muted)}
.crop-example-image{display:block;max-width:100%;height:auto;border-radius:12px;border:1px solid var(--line)}

@media(max-width:950px){.batch-bar{align-items:flex-start;flex-direction:column;gap:14px}
.crop-layout{grid-template-columns:180px minmax(0,1fr)}
.photo-review{padding:20px}
.crop-previews{gap:8px}
.crop-stage{height:125px}
.crop-preview{padding:7px}
.how-steps{grid-template-columns:repeat(2,1fr)}
.batch-export{grid-template-columns:1fr}
.batch-export .crop-buttons{flex-direction:row;flex-wrap:wrap}}

@media(max-width:700px){.crop-page .wrap{padding-left:18px;padding-right:18px}
.batch-bar{padding:20px 17px}
.batch-bar h2{font-size:15px}
.crop-page button{font-size:12px;padding:10px 12px}
.crop-empty{grid-template-columns:1fr;padding:25px;gap:23px}
.empty-illustration{max-width:190px;width:100%;margin:auto}
.crop-empty h3{font-size:20px}
.crop-layout{grid-template-columns:1fr}
.batch-sidebar{border-right:0;border-bottom:1px solid var(--line);padding:17px}
.image-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:220px;overflow:auto}
.image-choice-name{font-size:12px}
.image-thumb{width:35px;height:35px}
.photo-review{padding:20px 17px}
.review-heading{gap:10px}
.review-heading h2{font-size:16px}
.review-heading button{font-size:12px;padding:8px}
.review-heading .section-label{font-size:8px}
.original-stage{padding:8px}
.original-stage canvas{max-height:380px}
.stage-label{top:13px;left:13px;font-size:7px}
.region-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.region-panel legend span{display:block;margin-top:4px}
.crop-heading{align-items:flex-start}
.crop-previews{gap:6px}
.crop-preview{padding:6px}
.crop-stage{height:95px;padding:3px}
.crop-preview figcaption{font-size:12px}
.crop-preview p{font-size:12px}
.ratio-settings{padding:19px 17px}
.ratio-grid{grid-template-columns:1fr;gap:15px;max-width:280px}
.batch-export{padding:22px 17px}
.batch-export h2{font-size:22px}
.batch-export .crop-buttons{flex-direction:column;align-items:stretch}
.crop-status{padding-left:17px;padding-right:17px}
.how-steps{grid-template-columns:1fr;gap:15px}
.how-steps p{margin-bottom:0}}
