/* Loaded only by the Simplified Chinese shuttlecock studio. */
.cx-crop-dialog {
  box-sizing: border-box;
  width: min(900px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid #dbe4ec;
  border-radius: 12px;
  background: #fff;
  color: #17313d;
  box-shadow: 0 18px 65px #0b112033;
  font-family: inherit;
}
.cx-crop-dialog::backdrop { background: #0b112080; }
.cx-crop-dialog *, .cx-crop-dialog *::before, .cx-crop-dialog *::after { box-sizing: border-box; }
.cx-crop-dialog button, .cx-crop-dialog input { font: inherit; }
.cx-crop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #e2e8f0;
}
.cx-crop-eyebrow { font-size: 11px; color: #0284c7; font-weight: 700; letter-spacing: .08em; }
.cx-crop-header h2 { margin: 4px 0 0; color: #0f172a; font-size: 21px; font-weight: 700; line-height: 1.4; }
.cx-crop-close {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #64748b;
  font-size: 27px !important;
  line-height: 1;
  cursor: pointer;
}
.cx-crop-body { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 28px; padding: 24px; }
.cx-crop-preview-column, .cx-crop-controls { min-width: 0; }
.cx-crop-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: clamp(240px, 54dvh, 480px);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  background: #f1f5f9;
}
.cx-crop-stage canvas { display: block; flex: 0 0 auto; max-width: 100%; background: #fff; outline: 1px solid #94a3b8; cursor: grab; touch-action: none; }
.cx-crop-stage canvas.is-dragging { cursor: grabbing; }
.cx-crop-size { margin: 11px 0 0; color: #64748b; font-size: 11px; line-height: 1.7; text-align: center; }
.cx-crop-filename { margin: 0 0 10px; font-size: 13px; font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
#cx-crop-description { margin: 0 0 22px; color: #64748b; font-size: 12px; line-height: 1.8; }
.cx-crop-range-label { display: flex; justify-content: space-between; gap: 12px; color: #334155; font-size: 12px; font-weight: 600; }
.cx-crop-range-label output { color: #0369a1; font-variant-numeric: tabular-nums; }
.cx-crop-zoom { display: block; width: 100%; min-height: 36px; margin: 6px 0 15px; padding: 0; accent-color: #0284c7; cursor: pointer; }
.cx-crop-button-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.cx-crop-button-row button, .cx-crop-footer button {
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  color: #17313d;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.cx-crop-button-row button:hover, .cx-crop-close:hover, .cx-crop-footer button:hover { border-color: #0284c7; background: #f0f9ff; }
.cx-crop-hint, .cx-crop-keyboard { margin: 12px 0; color: #64748b; font-size: 11px; line-height: 1.8; }
.cx-crop-reset { min-height: 34px; margin: 0; padding: 0; border: 0; background: transparent; color: #0369a1; font-size: 12px !important; font-weight: 600 !important; cursor: pointer; }
.cx-crop-message { margin: 12px 0 0; color: #0369a1; font-size: 12px; line-height: 1.7; }
.cx-crop-message:empty { display: none; }
.cx-crop-footer { position: sticky; bottom: 0; z-index: 1; display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid #e2e8f0; background: #fff; }
.cx-crop-footer button { min-width: 88px; }
.cx-crop-footer .cx-crop-apply { border-color: #0284c7; background: #0284c7; color: #fff; }
.cx-crop-footer .cx-crop-apply:hover { border-color: #0369a1; background: #0369a1; }
.cx-crop-footer button:disabled { opacity: .6; cursor: wait; }
.cx-crop-dialog :focus-visible { outline: 2px solid #0284c7; outline-offset: 3px; }
.cx-crop-edit { margin-inline-end: 12px; }
.cx-crop-edit[hidden] { display: none; }
@media (max-width: 640px) {
  .cx-crop-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 8px; }
  .cx-crop-header { padding: 14px 16px; }
  .cx-crop-header h2 { font-size: 18px; }
  .cx-crop-body { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 16px; }
  .cx-crop-stage { height: clamp(200px, 42dvh, 350px); }
  #cx-crop-description { margin-bottom: 14px; }
  .cx-crop-footer { padding: 12px 16px; }
  .cx-crop-footer button { min-height: 44px; }
  .cx-crop-button-row button { min-height: 44px; }
}
