.me-crop-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 10, 14, 0.88);
    backdrop-filter: blur(4px);
}

.me-crop-overlay[hidden] {
    display: none !important;
}

.me-crop-dialog {
    width: min(540px, 100%);
    max-height: min(96vh, 760px);
    overflow: auto;
    background: #01222B;
    border: 1px solid #3D3D3D;
    border-radius: 12px;
    color: #e8eaef;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.me-crop-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #2a3a40;
}

.me-crop-head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #FFAA00;
}

.me-crop-body {
    padding: 16px;
}

.me-crop-hint {
    margin: 0 0 12px;
    font-size: 0.88rem;
    color: #9aa3b2;
    line-height: 1.45;
}

.me-crop-stage-wrap {
    position: relative;
    margin: 0 auto 12px;
    max-width: 100%;
    touch-action: none;
    user-select: none;
}

.me-crop-stage {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
    border: 3px solid #FF9933;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
    cursor: grab;
}

.me-crop-stage.is-dragging {
    cursor: grabbing;
}

.me-crop-stage img {
    position: absolute;
    top: 0;
    left: 0;
    max-width: none;
    pointer-events: none;
    transform-origin: 0 0;
}

.me-crop-frame-label {
    position: absolute;
    left: 8px;
    bottom: 8px;
    z-index: 2;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65);
    color: #FFAA00;
    font-size: 0.72rem;
    pointer-events: none;
}

.me-crop-tools {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.me-crop-zoom-label {
    min-width: 56px;
    text-align: center;
    font-size: 0.88rem;
    color: #c0c0c0;
    font-variant-numeric: tabular-nums;
}

.me-crop-foot {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 0 16px 16px;
    flex-wrap: wrap;
}

.me-crop-status {
    flex: 1 1 100%;
    margin: 0 0 4px;
    font-size: 0.82rem;
    color: #9aa3b2;
    min-height: 1.2em;
}

.me-crop-preview-note {
    margin: 0;
    font-size: 0.82rem;
    color: #888;
    text-align: center;
}

.me-crop-preview-thumb {
    display: block;
    max-width: 100%;
    max-height: 120px;
    margin: 10px auto 0;
    border-radius: 6px;
    border: 1px solid #FF9933;
}
