html[data-production-shell] dialog.avatar-crop-dialog{width:min(740px,calc(100vw - 32px));max-height:calc(100dvh - 32px);height:auto;min-height:0;padding:0;border:1px solid #e2ded5;border-radius:24px;color:var(--ink,#231f20);background:var(--paper,#faf8f2);font:11px/1.5 "Segoe UI Variable","Segoe UI",Arial,sans-serif;overflow:hidden}
.avatar-crop-dialog::backdrop{background:#231f2070;backdrop-filter:blur(3px)}
.avatar-crop-head,.avatar-crop-foot{display:flex;align-items:center;gap:12px;padding:16px 20px;background:#faf8f2}.avatar-crop-head{border-bottom:1px solid #e2ded5;justify-content:space-between}.avatar-crop-head h2{margin:0;font-size:21px;line-height:1.3;font-weight:700}.avatar-crop-close{width:44px;height:44px;border:1px solid #ddd;border-radius:14px;background:white;font-family:inherit;font-size:16px;font-weight:700;line-height:1;cursor:pointer}
.avatar-crop-body{padding:20px;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(180px,1fr);gap:24px;overflow:auto;max-height:calc(100dvh - 195px)}.avatar-crop-stage{position:relative;aspect-ratio:1;width:100%;overflow:hidden;border:2px solid #ffc000;border-radius:18px;background:repeating-conic-gradient(#e8e5df 0 25%,white 0 50%) 0/20px 20px}.avatar-crop-stage canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}.avatar-crop-stage canvas:active{cursor:grabbing}.avatar-crop-stage canvas:focus-visible{outline:3px solid #276954;outline-offset:-4px}.avatar-crop-grid,.avatar-crop-circle{position:absolute;inset:0;pointer-events:none}.avatar-crop-grid{background:linear-gradient(to right,transparent 33%,#ffffff90 33%,#ffffff90 33.5%,transparent 33.5%,transparent 66%,#ffffff90 66%,#ffffff90 66.5%,transparent 66.5%),linear-gradient(to bottom,transparent 33%,#ffffff90 33%,#ffffff90 33.5%,transparent 33.5%,transparent 66%,#ffffff90 66%,#ffffff90 66.5%,transparent 66.5%)}.avatar-crop-circle{inset:5%;border:1px dashed #fff;border-radius:50%;box-shadow:0 0 0 1px #0003}
.avatar-crop-controls{display:grid;gap:8px;margin-top:12px}.avatar-crop-controls .field{display:grid;gap:0;font:700 9px/1.4 "Segoe UI Variable","Segoe UI",Arial,sans-serif}.avatar-crop-controls input[type=range]{appearance:auto;width:100%;min-height:44px;height:44px;padding:0;margin:0;accent-color:#c79700;cursor:pointer}.avatar-crop-controls button,.avatar-crop-foot button{font-family:inherit;font-size:11px;font-weight:700;min-height:44px}.avatar-crop-guide h3{font-size:14px;line-height:1.4;margin:12px 0 6px}.avatar-crop-guide p{font-size:11px;line-height:1.5;margin:0 0 12px;color:#706c65}.avatar-crop-previews{display:flex;gap:20px;flex-wrap:wrap;margin:18px 0}.avatar-crop-previews img{display:block;width:64px;height:64px;object-fit:cover;border:1px solid #e2ded5}.avatar-crop-previews .round{border-radius:50%}.avatar-crop-previews .square{border-radius:14px}.avatar-crop-previews small{display:block;margin-top:5px;font-size:9px}.avatar-crop-preservation{border-left:3px solid #ffc000;padding:8px 10px;background:#fff3c8;border-radius:8px}.avatar-crop-foot{border-top:1px solid #e2ded5;justify-content:flex-end}.avatar-crop-feedback{margin:0 auto 0 0;font-size:11px}.avatar-original-history{font-size:11px;margin-top:8px}.avatar-original-history summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.avatar-original-history a{display:flex;min-height:44px;font-size:11px;white-space:normal}
.avatar-crop-body{background:#faf8f2;max-height:calc(100dvh - 172px)}.avatar-crop-stage{width:min(100%,240px);margin:0 auto}.avatar-crop-controls{grid-template-columns:1fr 1fr;align-items:start}.avatar-crop-controls>.field{grid-column:1/-1}.avatar-crop-fine summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-size:11px;font-weight:700}.avatar-crop-fine .field{display:grid}.avatar-crop-controls>button{align-self:start}.avatar-crop-close{font-family:inherit;font-size:16px;font-weight:700}
@media(max-width:600px){html[data-production-shell] dialog.avatar-crop-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:20px}.avatar-crop-head,.avatar-crop-foot{padding:12px 14px}.avatar-crop-head h2{font-size:18px}.avatar-crop-body{grid-template-columns:1fr;gap:14px;padding:14px;max-height:calc(100dvh - 165px)}.avatar-crop-stage{max-width:240px;margin:auto}.avatar-crop-guide h3{font-size:14px}.avatar-crop-guide p{margin-bottom:8px}.avatar-crop-previews{margin:10px 0}.avatar-crop-controls{gap:0}.avatar-crop-foot{flex-wrap:wrap}.avatar-crop-feedback:empty{display:none}.avatar-crop-foot button{flex:1}.avatar-crop-preservation{margin-bottom:0}}
