/* Éditeur visuel Outilix (lot N1) : mobile d'abord, zones tactiles >= 44 px. */
.ox-st { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 980px) { .ox-st { grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); } .ox-st__panel { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; padding-right: 4px; } }
.ox-st__stage { display: grid; gap: 12px; min-width: 0; }
.ox-st__preview { padding: 10px; }
.ox-st__cv { display: block; width: 100%; height: auto; touch-action: pan-y; cursor: crosshair; background: transparent; outline-offset: 3px; user-select: none; -webkit-user-select: none; }
.ox-st__tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ox-st__tools .ox-btn { min-width: 44px; padding: 0 12px; }
.ox-st__tools .ox-btn[disabled] { opacity: .35; }
.ox-st__pages { display: flex; flex-wrap: wrap; gap: 6px; }
.ox-st__pages:empty { display: none; }
.ox-st__panel { display: grid; gap: 10px; min-width: 0; }
.ox-st__sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm, 12px); }
.ox-st__sec > summary { cursor: pointer; font-weight: 800; padding: 12px 14px; min-height: 44px; display: flex; align-items: center; }
.ox-st__secbody { padding: 4px 14px 14px; display: grid; gap: 10px; }
.ox-st__tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.ox-st__thumb { display: grid; gap: 4px; padding: 6px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; font: 700 .72rem var(--font); color: var(--text); text-align: center; min-height: 44px; }
.ox-st__thumb[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.ox-st__thumbcv { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.ox-st__pals { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.ox-st__pal { height: 44px; border-radius: 12px; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.ox-st__pal[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--accent); }
.ox-st__rng { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: .86rem; font-weight: 700; align-items: center; }
.ox-st__rng .ox-range { grid-column: 1 / -1; }
.ox-st__val { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.ox-st__color { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .86rem; font-weight: 700; }
.ox-st__color input[type=color] { width: 48px; height: 44px; padding: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }
.ox-st__sw { display: inline-flex; gap: 2px; }
.ox-st__dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; margin: 7px 2px; padding: 0; }
.ox-st__dot::after { content: ""; position: absolute; }
.ox-st__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ox-st__chips .ox-chip { min-height: 44px; }
.ox-st__picker { border: 2px solid var(--accent-2); border-radius: 16px; background: var(--surface); padding: 10px; }
.ox-st__pickerhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ox-st__icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; max-height: 280px; overflow: auto; }
.ox-st__icon { display: grid; place-items: center; height: 52px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); cursor: pointer; color: var(--text); }
.ox-st__icon:hover { border-color: var(--accent); color: var(--accent); }
.ox-st__out { display: grid; gap: 8px; margin-bottom: 8px; }
.ox-st__payzone { display: grid; gap: 8px; padding: 14px; border-radius: var(--r); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.ox-st__pay { width: 100%; min-height: 54px; font-size: 1.1rem; }
.ox-st__props { display: grid; gap: 8px; }
.ox-st__sheet { width: 100%; height: auto; border-radius: 6px; box-shadow: var(--shadow-lg); background: #fff; }
.ox-st__extra:empty { display: none; }
.ox-st__sub { font-weight: 800; margin: 4px 0 0; }
.ox-st__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
@media (prefers-reduced-motion: reduce) { .ox-st * { transition: none !important; animation: none !important; } }
