/* Éditeur de logo (broderie) */
body.le-open { overflow: hidden; }
.le-modal { position: fixed; inset: 0; z-index: 400; background: rgba(0,0,0,.72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.le-box { background: #fff; border-radius: 8px; width: min(1100px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; overflow: hidden; }
.le-head, .le-foot { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line-soft, #e8e8e4); }
.le-head strong { font-family: var(--font-title, sans-serif); text-transform: uppercase; font-size: 18px; flex: 1; }
.le-foot { border-top: 1px solid var(--line-soft, #e8e8e4); border-bottom: 0; }
.le-foot span { flex: 1; }
.le-x { border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; }
.le-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; min-height: 0; flex: 1; }
.le-stage { display: flex; flex-direction: column; min-height: 0; background: #f0f0ee; }
.le-preview { position: relative; flex: 1; min-height: 360px; height: 56vh; display: flex; align-items: center; justify-content: center; }
.le-preview.is-checker { background: repeating-conic-gradient(#e4e4e0 0% 25%, #fafaf8 0% 50%) 50% / 20px 20px; }
.le-preview canvas { max-width: 100%; max-height: 100%; box-shadow: 0 2px 12px rgba(0,0,0,.12); touch-action: none; }
.le-crop { position: absolute; border: 2px dashed #e0892a; background: rgba(224,137,42,.12); pointer-events: none; }
.le-view { display: flex; gap: 18px; justify-content: center; padding: 8px; font-size: 14px; }
.le-view input { accent-color: var(--ink, #111); }
.le-hint { margin: 0 0 10px; text-align: center; font-size: 13px; color: var(--muted, #737482); }
.le-tools { overflow-y: auto; padding: 4px 18px 18px; border-left: 1px solid var(--line-soft, #e8e8e4); }
.le-tools section { padding: 14px 0; border-bottom: 1px solid var(--line-soft, #e8e8e4); }
.le-tools h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.le-row { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.le-btn { min-height: 38px; padding: 6px 14px; border: 1px solid var(--line, #d0d0d0); border-radius: 4px; background: #fff; cursor: pointer; font-weight: 700; font-size: 13px; }
.le-btn:hover { border-color: var(--ink, #111); }
.le-primary { background: var(--accent, #36302f); color: #fff; border-color: var(--accent, #36302f); text-transform: uppercase; letter-spacing: .04em; }
.le-primary:hover { background: #000; }
.le-tools select { width: 100%; min-height: 38px; border: 1px solid var(--line, #d0d0d0); border-radius: 4px; padding: 4px 8px; background: #fff; margin-bottom: 8px; }
.le-range { display: block; font-size: 13px; margin-bottom: 8px; }
.le-range input { width: 100%; accent-color: var(--ink, #111); }
.le-check { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.le-palette { display: grid; gap: 6px; }
.le-map { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.le-map select { flex: 1; margin: 0; }
.le-sw { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); flex: none; }
.le-small { font-size: 12px; color: var(--muted, #737482); margin: 8px 0 0; }
@media (max-width: 800px) {
    .le-body { grid-template-columns: 1fr; overflow-y: auto; }
    .le-preview { height: 42vh; min-height: 260px; }
    .le-tools { border-left: 0; overflow: visible; }
    .le-modal { padding: 0; }
    .le-box { max-height: 100vh; height: 100%; border-radius: 0; }
}
.le-sws { display: inline-flex; align-items: center; flex: none; }
.le-sws .le-sw + .le-sw { margin-left: -8px; }
