/* (28/11/2026) Fenêtre « Nouvelle règle » (Automatisations), page Supervision et fenêtre « Nouveau post » (Posts), dans la DA
   actuelle (stylepro / motion / sections / ecrans). Purement visuel : mêmes champs, mêmes noms, mêmes id, mêmes actions.
   Chargé en dernier. Les fenêtres sont posées sur le body (règle) ou dans l'appli (post) : sélecteurs avec un id pour passer
   devant les anciennes règles ; sombre et clair par les jetons, 3 couleurs par --acc*. */

/* ---------- interrupteur commun (aussi hors de .app : la fenêtre de règle est posée sur le body) ---------- */
html body :is(.au-modal, #ps-modal, #view-supervision) input.ux-switch:not(#ot-z) {
  appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 36px !important; height: 20px !important; min-width: 36px; margin: 0; padding: 0;
  border: 0 !important; border-radius: 99px !important; background: var(--surface-3) !important; background-image: none !important; cursor: pointer; transition: background .15s;
}
/* dans Studio, app.css dessine une coche dans le ::before des cases à cocher : pas dans un interrupteur */
html body :is(.au-modal, #ps-modal, #view-supervision) input.ux-switch:not(#ot-z)::before { content: none !important; display: none !important; }
html body :is(.au-modal, #ps-modal, #view-supervision) input.ux-switch:not(#ot-z)::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: transform .18s cubic-bezier(.3, 1.3, .5, 1);
}
html body :is(.au-modal, #ps-modal, #view-supervision) input.ux-switch:checked:not(#ot-z) { background: var(--acc-fill, var(--acc)) !important; }
html body :is(.au-modal, #ps-modal, #view-supervision) input.ux-switch:checked:not(#ot-z)::after { transform: translateX(16px); background: var(--acc-ink, #fff); }
html body :is(.au-modal, #ps-modal, #view-supervision) input.ux-switch:focus-visible:not(#ot-z) { outline: 2px solid var(--acc); outline-offset: 2px; }
html body :is(.au-modal, #ps-modal, #view-supervision) input.ux-switch:disabled:not(#ot-z) { opacity: .5; cursor: default; }

/* ---------- champ avec son unité dans le champ ($, jours) ---------- */
html body :is(.au-modal, #ps-modal) :is(.au2-unit, .ps2-unit):not(#ot-z) { position: relative; display: flex; align-items: center; width: 100%; }
html body :is(.au-modal, #ps-modal) :is(.au2-unit, .ps2-unit) > input:not(#ot-z) { width: 100% !important; padding-right: 54px !important; }
html body :is(.au-modal, #ps-modal) :is(.au2-unit, .ps2-unit) > i:not(#ot-z) { position: absolute; right: 12px; font-style: normal; font-size: 13px; font-weight: 600; color: var(--muted); pointer-events: none; }
/* sans les petites flèches du navigateur, qui recouvraient l'unité (la saisie au clavier et les flèches haut / bas restent) */
html body :is(.au-modal, #ps-modal) :is(.au2-unit, .ps2-unit) > input[type="number"]:not(#ot-z) { -moz-appearance: textfield; appearance: textfield; }
html body :is(.au-modal, #ps-modal) :is(.au2-unit, .ps2-unit) > input[type="number"]:not(#ot-z)::-webkit-inner-spin-button,
html body :is(.au-modal, #ps-modal) :is(.au2-unit, .ps2-unit) > input[type="number"]:not(#ot-z)::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- listes : une flèche discrète (sans elle, une liste ressemble à un champ de saisie) ---------- */
html body :is(.au-modal.au2 .au-form, #ps-modal .ps-mr, #view-supervision .ot-cr-grid) select:not(#ot-z):not(#ot-y) {
  appearance: none; -webkit-appearance: none; padding-right: 36px !important; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%238c8c8b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 12px center !important; background-size: 14px 14px !important;
}

/* ================= A. Fenêtre « Nouvelle règle » / « Modifier la règle » ================= */
/* un long choix (« Créer une tâche « À faire » avec un message prêt ») passe à la ligne au lieu d'être coupé */
html body .au-modal.au2 .au-form select:not(#ot-z):not(#ot-y) { height: auto !important; min-height: 40px; padding-top: 9px !important; padding-bottom: 9px !important; white-space: normal; line-height: 1.35 !important; }
html body .au-modal.au2 > .co-card.au-form:not(#ot-z) {
  width: min(640px, calc(100vw - 32px)) !important; max-width: none !important; max-height: min(88vh, 880px) !important;
  display: flex !important; flex-direction: column !important; gap: 0 !important; padding: 0 !important; overflow: hidden !important;
}
html body .au-modal.au2 .au2-head:not(#ot-z) { display: flex; align-items: center; gap: 12px; padding: 20px 60px 14px 22px; border-bottom: 1px solid var(--line); flex: none; }
html body .au-modal.au2 .au2-head h2:not(#ot-z) { margin: 0; font: 650 19px/1.2 "Hanken Grotesk", Inter, sans-serif; letter-spacing: -.01em; }
html body .au-modal.au2 .au2-head p:not(#ot-z) { margin: 3px 0 0; }
html body .au-modal.au2 .au2-ico:not(#ot-z) { width: 36px; height: 36px; flex: none; }
html body .au-modal.au2 legend .au2-ico:not(#ot-z) { width: 26px; height: 26px; }
html body .au-modal.au2 .au2-ico svg:not(#ot-z) { width: 55%; height: 55%; }
html body .au-modal.au2 .au2-body:not(#ot-z) { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 22px 20px; display: flex; flex-direction: column; gap: 14px; }
html body .au-modal.au2 .au-form label:not(#ot-z) { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); min-width: 0; }
html body .au-modal.au2 .au-form :is(input:not([type="checkbox"]), select, textarea):not(#ot-z) {
  width: 100%; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--line-2) !important; border-radius: 10px !important;
  background: var(--bg-2, var(--surface-2)) !important; color: var(--fg) !important; font: 500 14px/1.3 Inter, sans-serif; box-shadow: none;
}
html body .au-modal.au2 .au-form textarea:not(#ot-z) { height: auto !important; min-height: 104px !important; padding: 10px 12px; resize: vertical; line-height: 1.5; }
html body .au-modal.au2 .au-form :is(input:not([type="checkbox"]), select, textarea):focus:not(#ot-z) { outline: none; border-color: var(--acc-line, var(--acc)) !important; box-shadow: 0 0 0 3px var(--acc-soft) !important; }
/* les deux blocs « Quand » → « Alors », reliés par une flèche */
html body .au-modal.au2 .au2-blk:not(#ot-z) { position: relative; margin: 0; padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
html body .au-modal.au2 .au2-when:not(#ot-z) { border-color: color-mix(in srgb, var(--c4) 32%, var(--line)); }
html body .au-modal.au2 .au2-then:not(#ot-z) { border-color: color-mix(in srgb, var(--c2) 32%, var(--line)); }
html body .au-modal.au2 .au2-blk > legend:not(#ot-z) { float: left; width: 100%; margin: 0 0 2px; padding: 0; display: flex; align-items: center; gap: 9px; font: 650 14.5px/1.2 "Hanken Grotesk", Inter, sans-serif; color: var(--fg); }
html body .au-modal.au2 .au2-blk > legend + *:not(#ot-z) { clear: both; }
html body .au-modal.au2 .au2-arrow:not(#ot-z) { display: grid; place-items: center; width: 30px; height: 30px; margin: -8px auto; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); position: relative; z-index: 1; }
html body .au-modal.au2 .au2-arrow svg:not(#ot-z) { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html body .au-modal.au2 .au2-row:not([hidden]):not(#ot-z) { display: grid !important; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; }
html body .au-modal.au2 .au2-row:not([hidden]) > label:only-child:not(#ot-z) { grid-column: 1 / 2; }
html body .au-modal.au2 .au-p[hidden]:not(#ot-z), html body .au-modal.au2 .au2-help[hidden]:not(#ot-z), html body .au-modal.au2 label[hidden]:not(#ot-z) { display: none !important; }
html body .au-modal.au2 .au2-txt:not([hidden]):not(#ot-z) { display: flex !important; flex-direction: column; gap: 8px; }
html body .au-modal.au2 .au2-vars:not(#ot-z) { display: flex; flex-wrap: wrap; gap: 6px; }
html body .au-modal.au2 .au2-vars .lib-chip:not(#ot-z) { height: 28px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--surface); color: var(--fg-2); font: 600 12px/1 Inter, sans-serif; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
html body .au-modal.au2 .au2-vars .lib-chip:hover:not(#ot-z) { border-color: var(--acc-line, var(--acc)); color: var(--acc-text, var(--fg)); background: var(--acc-soft); }
html body .au-modal.au2 :is(.au-hint, .au2-help):not(#ot-z) { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
html body .au-modal.au2 .au-hint:empty:not(#ot-z) { display: none; }
/* le pied, toujours visible */
html body .au-modal.au2 .au2-foot:not(#ot-z) { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 22px; border-top: 1px solid var(--line); background: var(--surface); }
html body .au-modal.au2 .au2-foot .au-onl:not(#ot-z) { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 10px !important; font: 600 13.5px/1.2 Inter, sans-serif; color: var(--fg); cursor: pointer; }
html body .au-modal.au2 .au2-grow:not(#ot-z) { flex: 1; }
html body .au-modal.au2 .au2-foot :is(.btn-main, .btn-ghost):not(#ot-z) { height: 38px; padding: 0 18px; width: auto; }

/* ================= B. Supervision ================= */
html body #view-supervision .ot-crs:not(#ot-z) { display: flex !important; flex-direction: column; gap: 12px; }
html body #view-supervision .sup-cr.ot-cr:not(#ot-z) {
  display: flex !important; flex-direction: column; align-items: stretch !important; gap: 14px; grid-template-columns: none !important; padding: 16px 18px !important; margin: 0 !important;
  border: 1px solid var(--line) !important; border-left: 3px solid var(--c, var(--line-2)) !important; border-radius: 14px !important; background: var(--surface-2) !important;
}
html body #view-supervision .sup-cr.ot-cr:not(#ot-z)::before { display: none; }
html body #view-supervision .ot-cr.ot-off:not(#ot-z) { background: color-mix(in srgb, var(--surface-2) 60%, var(--surface)) !important; }
html body #view-supervision .ot-cr-top:not(#ot-z) { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; width: 100%; min-width: 0; }
html body #view-supervision .ot-cr .sup-cr-id:not(#ot-z) { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
html body #view-supervision .ot-cr .sup-cr-id > div:not(#ot-z) { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
html body #view-supervision .ot-cr .sup-cr-id > div > b:not(#ot-z) { font: 650 15px/1.2 "Hanken Grotesk", Inter, sans-serif; color: var(--fg); }
html body #view-supervision .ot-cr .sup-cr-id > small:not(#ot-z) { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
html body #view-supervision .ot-cr .sup-acts:not(#ot-z) { display: flex; gap: 8px; flex: none; align-items: center; align-self: flex-start !important; margin-left: auto; }
html body #view-supervision .ot-cr-grid:not(#ot-z) {
  display: grid; grid-template-columns: minmax(150px, 1fr) minmax(250px, 1.5fr) minmax(130px, .8fr) minmax(190px, 1.1fr); gap: 16px; align-items: start;
  width: 100%; min-width: 0; padding-top: 14px; border-top: 1px solid var(--line);
}
html body #view-supervision .ot-cr-grid .ux-f:not(#ot-z) { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 0; }
html body #view-supervision .ot-cr-grid .ux-f > span:first-child:not(#ot-z) { font: 600 12px/1.2 Inter, sans-serif; color: var(--muted); letter-spacing: 0; text-transform: none; }
html body #view-supervision .ot-cr-grid :is(select, input[type="time"], .ux-in):not(#ot-z) { height: 38px; border-radius: 10px !important; }
html body #view-supervision .ot-cr-grid select:not(#ot-z) { width: 100%; }
html body #view-supervision .ot-cr-grid .sup-hours:not(#ot-z) { display: flex; align-items: center; gap: 8px; }
html body #view-supervision .ot-cr-grid .sup-hours input:not(#ot-z) { flex: 1 1 0; min-width: 0; width: auto; padding: 0 10px; }
html body #view-supervision .ot-cr-grid .sup-hours > i:not(#ot-z) { font-style: normal; color: var(--muted); font-size: 13px; }
html body #view-supervision .ot-cr-grid .sup-hours-f > small:not(#ot-z) { color: var(--muted); font-size: 12px; }
html body #view-supervision .ot-cr-grid .ux-in:not(#ot-z) { display: flex; align-items: center; width: 100%; }
html body #view-supervision .ot-cr-grid .sup-auth:not(#ot-z) { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; min-width: 0; }
html body #view-supervision .ot-cr-grid .sup-auth > label:not(#ot-z) { display: flex; align-items: center; gap: 10px; font: 600 13px/1.25 Inter, sans-serif; color: var(--fg); cursor: pointer; }
html body #view-supervision .ot-cr-grid .sup-auth > small:not(#ot-z) { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
/* pause pour toute l'agence : un bandeau clair */
html body #view-supervision .sup-pfs:not(#ot-z) {
  display: flex !important; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-top: 14px !important; padding: 12px 16px !important;
  border: 1px solid var(--line) !important; border-radius: 12px; background: var(--surface-2); border-top-style: solid !important;
}
html body #view-supervision .sup-pfs > span:not(.sx-ico):not(#ot-z) { flex: 1 1 auto; font: 600 13.5px/1.2 Inter, sans-serif; color: var(--fg); text-align: left; margin-right: auto; }
html body #view-supervision .sup-pfs .ot-pfs-i:not(#ot-z) { width: 30px; height: 30px; flex: none; }
html body #view-supervision .sup-pfs .ot-pfs-i svg:not(#ot-z) { width: 55%; height: 55%; }
html body #view-supervision .sup-pfs > label:not(#ot-z) { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 Inter, sans-serif; color: var(--fg-2); cursor: pointer; }
/* événements récents : une frise */
html body #view-supervision .sup-events:not(#ot-z) { position: relative; padding-left: 18px !important; }
html body #view-supervision .sup-events:not(#ot-z)::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--line); }
html body #view-supervision .sup-ev:not(#ot-z) { position: relative; display: grid !important; grid-template-columns: 92px auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 9px 0 !important; border: 0 !important; }
html body #view-supervision .sup-ev:not(#ot-z)::before { content: ""; position: absolute; left: -17px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--surface); border: 2px solid var(--acc, var(--fg-2)); }
html body #view-supervision .sup-ev > small:not(#ot-z) { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
html body #view-supervision .sup-ev > span:last-child:not(#ot-z) { color: var(--fg-2); font-size: 13.5px; }
html body #view-supervision .sup-ev > span:last-child b:not(#ot-z) { color: var(--fg); }

/* ================= C. Fenêtre « Nouveau post » / « Modifier le post » ================= */
html body #ps-modal > .ps-card:not(#ot-z) {
  width: min(640px, calc(100vw - 32px)) !important; max-width: none !important; max-height: min(88vh, 900px) !important;
  display: flex !important; flex-direction: column !important; gap: 0 !important; padding: 0 !important; overflow: hidden !important;
}
html body #ps-modal .ps2-head:not(#ot-z) { display: flex; align-items: center; gap: 12px; padding: 20px 60px 14px 22px; border-bottom: 1px solid var(--line); flex: none; }
html body #ps-modal .ps2-head h2:not(#ot-z) { margin: 0; font: 650 19px/1.2 "Hanken Grotesk", Inter, sans-serif; letter-spacing: -.01em; }
html body #ps-modal .ps2-head p:not(#ot-z) { margin: 3px 0 0; }
html body #ps-modal .ps2-hi:not(#ot-z) { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--acc-soft); color: var(--acc-text, var(--acc)); }
html body #ps-modal .ps2-hi svg:not(#ot-z) { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html body #ps-modal .ps2-body:not(#ot-z) { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 22px 20px; display: flex; flex-direction: column; gap: 14px; }
html body #ps-modal .ps2-tw:not(#ot-z) { position: relative; }
html body #ps-modal .ps2-tw textarea:not(#ot-z) {
  width: 100%; min-height: 148px !important; padding: 12px 14px 30px !important; border: 1px solid var(--line-2) !important; border-radius: 12px !important; resize: vertical;
  background: var(--bg-2, var(--surface-2)) !important; color: var(--fg) !important; font: 500 14.5px/1.55 Inter, sans-serif;
}
html body #ps-modal .ps2-tw textarea:focus:not(#ot-z) { outline: none; border-color: var(--acc-line, var(--acc)) !important; box-shadow: 0 0 0 3px var(--acc-soft) !important; }
html body #ps-modal .ps2-count:not(#ot-z) { position: absolute; right: 12px; bottom: 9px; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; pointer-events: none; }
html body #ps-modal .ps2-count.near:not(#ot-z) { color: var(--warn); }
html body #ps-modal .ps2-box:not(#ot-z) { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px dashed var(--line-2); border-radius: 14px; background: var(--surface-2); }
html body #ps-modal .ps-sec:not(#ot-z) { display: flex; flex-direction: column; gap: 3px; margin: 0; }
html body #ps-modal .ps-sec b:not(#ot-z) { display: inline-flex; align-items: center; gap: 7px; font: 650 13.5px/1.2 "Hanken Grotesk", Inter, sans-serif; color: var(--fg); }
html body #ps-modal .ps-sec small:not(#ot-z) { font-size: 12.5px; line-height: 1.45; }
html body #ps-modal .ps2-si:not(#ot-z) { width: 16px; height: 16px; fill: none; stroke: var(--acc-text, var(--acc)); stroke-width: 1.8; stroke-linejoin: round; }
html body #ps-modal #ps-media:empty:not(#ot-z) { display: none; }
html body #ps-modal .ps-mr:not(#ot-z) { display: grid !important; grid-template-columns: 30px minmax(0, 1fr) 128px 36px; gap: 8px; align-items: center; margin: 0 0 8px !important; }
html body #ps-modal .ps-mr:last-child:not(#ot-z) { margin-bottom: 0 !important; }
html body #ps-modal .ps2-mi:not(#ot-z) { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--acc-soft); color: var(--acc-text, var(--acc)); }
html body #ps-modal .ps2-mi svg:not(#ot-z) { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
html body #ps-modal :is(.ps-mr input, .ps-mr select, .ps2-unit input, #ps-at):not(#ot-z) {
  height: 40px !important; padding: 0 12px; border: 1px solid var(--line-2) !important; border-radius: 10px !important;
  background: var(--bg-2, var(--surface)) !important; color: var(--fg) !important; font: 500 14px/1.3 Inter, sans-serif; width: 100%;
}
html body #ps-modal .ps-mr .co-x:not(#ot-z) { position: static !important; width: 36px !important; height: 36px !important; min-width: 36px; display: grid; place-items: center; border-radius: 10px; }
html body #ps-modal .ps2-add:not(#ot-z) {
  align-self: flex-start; height: 36px; padding: 0 14px; border: 1px dashed var(--acc-line, var(--line-2)); border-radius: 10px; background: transparent;
  color: var(--acc-text, var(--fg)); font: 600 13px/1 Inter, sans-serif; cursor: pointer; transition: background .15s;
}
html body #ps-modal .ps2-add:hover:not(#ot-z) { background: var(--acc-soft); }
html body #ps-modal .ps2-paid:not(#ot-z) { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; min-height: 40px; }
html body #ps-modal .ps2-sw:not(#ot-z) { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 10px; font: 600 13.5px/1.2 Inter, sans-serif; color: var(--fg); cursor: pointer; }
html body #ps-modal .ps-price:not([hidden]):not(#ot-z) { display: block; width: 140px; }
html body #ps-modal .ps-price[hidden]:not(#ot-z) { display: none !important; }
html body #ps-modal .ps2-when:not(#ot-z) { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
html body #ps-modal #ps-at:not(#ot-z) { width: auto; min-width: 220px; }
html body #ps-modal #ps-at[hidden]:not(#ot-z) { display: none !important; }
html body #ps-modal .ps-note:not(#ot-z) { margin: 0; font-size: 12.5px; line-height: 1.5; }
html body #ps-modal > .ps-card > .ps-acts:not(#ot-z) { flex: none; display: flex; justify-content: flex-end; gap: 10px; margin: 0 !important; padding: 12px 22px; border-top: 1px solid var(--line); background: var(--surface); }
html body #ps-modal > .ps-card > .ps-acts :is(.btn-main, .btn-ghost):not(#ot-z) { height: 38px; padding: 0 18px; }

/* ================= Téléphone ================= */
@media (max-width: 760px) {
  /* les deux fenêtres : feuilles du bas avec en-tête, contenu qui défile et pied collé */
  html body :is(.au-modal.au2 > .co-card.au-form, #ps-modal > .ps-card):not(#ot-z) {
    width: 100% !important; max-height: calc(var(--vvh, 100dvh) - 28px) !important; padding: 0 !important; border-radius: 22px 22px 0 0 !important;
  }
  html body :is(.au-modal.au2 > .co-card.au-form, #ps-modal > .ps-card):not(#ot-z)::before { position: static; margin: 8px auto 0; flex: none; }
  html body :is(.au-modal.au2 .au2-head, #ps-modal .ps2-head):not(#ot-z) { padding: 10px 60px 12px 18px; }
  html body :is(.au-modal.au2 .au2-body, #ps-modal .ps2-body):not(#ot-z) { padding: 14px 18px 18px; }
  html body .au-modal.au2 .au2-foot:not(#ot-z) { flex-wrap: wrap; padding: 10px 18px calc(10px + env(safe-area-inset-bottom, 0px)); }
  html body .au-modal.au2 .au2-foot .au-onl:not(#ot-z) { flex: 1 1 100%; min-height: 36px; }
  html body .au-modal.au2 .au2-grow:not(#ot-z) { display: none; }
  html body .au-modal.au2 .au2-foot :is(.btn-main, .btn-ghost):not(#ot-z) { flex: 1 1 0; height: 44px; }
  html body .au-modal.au2 .au2-row:not([hidden]):not(#ot-z) { grid-template-columns: minmax(0, 1fr); }
  html body .au-modal.au2 .au-form :is(input:not([type="checkbox"]), select):not(#ot-z) { height: 44px; font-size: 16px; }
  html body .au-modal.au2 .au-form textarea:not(#ot-z) { font-size: 16px; }
  html body .au-modal.au2 .au-form select:not(#ot-z):not(#ot-y) { min-height: 44px !important; }
  html body #ps-modal > .ps-card > .ps-acts:not(#ot-z) { padding: 10px 18px calc(10px + env(safe-area-inset-bottom, 0px)); }
  html body #ps-modal > .ps-card > .ps-acts :is(.btn-main, .btn-ghost):not(#ot-z) { flex: 1 1 0; height: 44px; }
  html body #ps-modal .ps-mr:not(#ot-z) { grid-template-columns: 30px minmax(0, 1fr) 44px; }
  html body #ps-modal .ps-mr select:not(#ot-z) { grid-column: 2 / 3; grid-row: 2; }
  html body #ps-modal .ps-mr .co-x:not(#ot-z) { width: 44px !important; height: 44px !important; }
  html body #ps-modal :is(.ps-mr input, .ps-mr select, .ps2-unit input, #ps-at, .ps2-tw textarea):not(#ot-z) { font-size: 16px; }
  html body #ps-modal #ps-at:not(#ot-z) { flex: 1 1 100%; min-width: 0; }
  /* Supervision : la grille passe sur deux colonnes, puis une */
  html body #view-supervision .ot-cr-top:not(#ot-z) { flex-wrap: wrap; }
  html body #view-supervision .ot-cr .sup-acts:not(#ot-z) { width: 100%; }
  html body #view-supervision .ot-cr .sup-acts > button:not(#ot-z) { flex: 1 1 0; height: 44px; }
  html body #view-supervision .ot-cr-grid:not(#ot-z) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-auto-flow: row dense; gap: 14px 12px; }
  html body #view-supervision .ot-cr-grid .sup-hours-f:not(#ot-z), html body #view-supervision .ot-cr-grid .sup-auth:not(#ot-z) { grid-column: 1 / -1; }
  html body #view-supervision .ot-cr-grid .sup-auth:not(#ot-z) { padding-top: 0; }
  html body #view-supervision .ot-cr-grid :is(select, input[type="time"], .ux-in):not(#ot-z) { height: 44px; }
  html body #view-supervision .sup-pfs > span:not(.sx-ico):not(#ot-z) { flex: 1 1 calc(100% - 48px); }
  html body #view-supervision .sup-ev:not(#ot-z) { grid-template-columns: auto minmax(0, 1fr); }
  html body #view-supervision .sup-ev > span:last-child:not(#ot-z) { grid-column: 1 / -1; }
}
