/* Outil de maquettage : styles isolés des constantes qu'il permet de régler. */
.ds-editor, .ds-editor-launcher, .ds-editor-inspector {
  font-family: "Roboto", system-ui, sans-serif; font-size: 14px; font-weight: 400;
  line-height: 1.45; letter-spacing: 0; text-transform: none;
  color: #39434a; -webkit-font-smoothing: antialiased;
}
.ds-editor-launcher {
  position: fixed; z-index: 110; right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom)); display: inline-flex;
  align-items: center; gap: 10px; min-height: 52px; padding: 0 20px;
  border: 0; border-radius: 999px; background: #0090d6; color: #fff;
  box-shadow: 0 6px 24px #002d4b30; cursor: pointer;
  transition: background 180ms ease, transform 250ms ease, opacity 250ms ease;
}
.ds-editor-launcher:hover { background: #0079b4; transform: translateY(-2px); }
.ds-editor-launcher[aria-expanded="true"] { opacity: 0; transform: translateY(12px); pointer-events: none; }
.ds-editor-launcher svg, .ds-editor svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ds-editor-launcher__dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.ds-editor-launcher__dot[hidden] { display: none; }
.ds-editor {
  position: fixed; z-index: 111; inset: 16px 16px 16px auto; width: min(410px, calc(100vw - 32px));
  display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto;
  border: 1px solid #e5ebef; border-radius: 28px; overflow: hidden;
  background: #fff; box-shadow: 0 20px 80px #14334829, 0 2px 12px #1433480d;
  transform: translateX(calc(100% + 32px)); opacity: 0;
  transition: transform 400ms cubic-bezier(.22, 1, .36, 1), opacity 240ms ease;
}
.ds-editor[hidden] { display: none; }
.ds-editor.is-open { transform: none; opacity: 1; }
.ds-editor button, .ds-editor input, .ds-editor select { font: inherit; letter-spacing: inherit; text-transform: none; }
.ds-editor button { cursor: pointer; border: 0; }
.ds-editor button:disabled { opacity: .38; cursor: default; }
.ds-editor :focus-visible, .ds-editor-launcher:focus-visible { outline: 2px solid #0090d6; outline-offset: 3px; }
.ds-editor__header { padding: 24px 24px 18px; background: linear-gradient(150deg, #eef8fd, #fff 80%); }
.ds-editor__topline, .ds-editor__title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ds-editor__kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 500; letter-spacing: .1em; color: #0079b4; text-transform: uppercase; }
.ds-editor__kicker::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.ds-editor__close { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #647783; background: #eaf0f4; }
.ds-editor__close:hover { color: #0079b4; background: #d8edf7; }
.ds-editor__title { margin: 5px 0 0; font-size: 25px; line-height: 1.2; font-weight: 400; letter-spacing: -.025em; color: #273f4e; }
.ds-editor__title:focus { outline: none; }
.ds-editor__description { margin-top: 8px; max-width: 300px; font-size: 12px; color: #6c7d87; }
.ds-editor__catalog { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: #0079b4; font-size: 12px; font-weight: 500; text-decoration: none; }
.ds-editor__catalog:hover { color: #005f8d; text-decoration: underline; text-underline-offset: 3px; }
.ds-editor__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }
.ds-editor__count { font-size: 11px; color: #6c7d87; }
.ds-editor__compare { padding: 7px 11px; border-radius: 999px; color: #0079b4; background: #e7f3fa; font-size: 11px; font-weight: 500; }
.ds-editor__compare[aria-pressed="true"] { color: #fff; background: #39434a; }
.ds-editor__tabs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; padding: 0 20px 14px; box-shadow: 0 1px 0 #edf0f2; }
.ds-editor__tab { padding: 9px 4px; border-radius: 999px; background: transparent; color: #6c7d87; font-size: 12px; }
.ds-editor__tab[aria-selected="true"] { color: #0079b4; background: #eaf5fb; font-weight: 500; }
.ds-editor__body { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 22px 24px 26px; }
.ds-editor__panel[hidden] { display: none; }
.ds-editor__field { display: grid; gap: 8px; margin-bottom: 20px; }
.ds-editor__label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: #435966; }
.ds-editor__hint { color: #84929b; font-size: 11px; font-weight: 400; }
.ds-editor__select, .ds-editor__number, .ds-editor__hex { width: 100%; min-width: 0; border: 1px solid #e1e8ec; border-radius: 12px; color: #39434a; background: #f8fafb; padding: 11px 12px; outline-offset: 2px; }
.ds-editor__select { padding-right: 28px; }
.ds-editor__number { font-variant-numeric: tabular-nums; padding-right: 30px; }
.ds-editor__input-wrap { position: relative; }
.ds-editor__unit { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #84929b; font-size: 11px; pointer-events: none; }
.ds-editor__input-wrap:has(input[type="number"]) .ds-editor__unit { right: 30px; }
.ds-editor__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ds-editor__range { width: 100%; margin: 4px 0 0; accent-color: #0090d6; cursor: pointer; }
.ds-editor__class-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; margin: -10px 0 22px; }
.ds-editor__class { font: 10px/1.5 ui-monospace, monospace; color: #718692; }
.ds-editor__locate, .ds-editor__reset-style, .ds-editor__auto { color: #0079b4; background: transparent; padding: 3px 0; font-size: 11px; }
.ds-editor__locate:hover, .ds-editor__reset-style:hover, .ds-editor__auto:hover { color: #005f8d; }
.ds-editor__color-row { display: flex; align-items: center; gap: 10px; }
.ds-editor__color { width: 44px; height: 42px; flex: none; padding: 4px; background: #f8fafb; border: 1px solid #e1e8ec; border-radius: 12px; cursor: pointer; }
.ds-editor__color::-webkit-color-swatch-wrapper { padding: 0; }
.ds-editor__color::-webkit-color-swatch { border: 0; border-radius: 7px; }
.ds-editor__hex { flex: 1; width: 90px; font-size: 12px; text-transform: uppercase; }
.ds-editor__auto { min-width: 34px; }
.ds-editor__note { margin: 0 0 20px; color: #718692; font-size: 12px; line-height: 1.6; }
.ds-editor__separator { height: 1px; background: #edf0f2; margin: 20px 0; }
.ds-editor__footer { padding: 16px 24px 18px; background: #fff; box-shadow: 0 -1px 0 #edf0f2; }
.ds-editor__actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.ds-editor__export { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; padding: 10px 16px; border-radius: 999px; color: #fff; background: #0090d6; font-weight: 500; }
.ds-editor__export:hover:not(:disabled) { background: #0079b4; }
.ds-editor__copy { display: grid; place-items: center; width: 43px; border-radius: 50%; background: #eaf5fb; color: #0079b4; }
.ds-editor__footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.ds-editor__status { max-width: 230px; color: #84929b; font-size: 10px; }
.ds-editor__reset { padding: 3px 0; color: #647783; background: transparent; font-size: 10px; }
.ds-editor-highlight { outline: 2px dashed #0090d6 !important; outline-offset: 8px; scroll-margin-block: 160px 100px; }
.ds-editor-inspector { position: fixed; z-index: 110; inset: 0; overflow: hidden; pointer-events: none; }
.ds-editor-inspector[hidden] { display: none; }
.ds-editor-inspector__frame { position: absolute; border: 2px solid #0090d6; background: #0090d608; box-shadow: 0 0 0 2px #ffffff80; }
.ds-editor-inspector__label { position: absolute; width: max-content; padding: 10px 12px; border-radius: 12px; background: #193f55; color: #fff; box-shadow: 0 6px 24px #14334826; }
.ds-editor-inspector__heading { display: block; margin-bottom: 5px; font-size: 9px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #a9d7ee; }
.ds-editor-inspector__style { display: grid; gap: 2px; }
.ds-editor-inspector__style + .ds-editor-inspector__style { margin-top: 8px; }
.ds-editor-inspector__style code { font: 12px/1.4 ui-monospace, monospace; color: #fff; overflow-wrap: anywhere; }
.ds-editor-inspector__style > span { font-size: 10px; line-height: 1.4; color: #c3d9e5; }
@media (max-width: 640px) {
  .ds-editor { inset: 12px 12px max(12px, env(safe-area-inset-bottom)) auto; width: calc(100vw - 24px); border-radius: 24px; }
  .ds-editor-launcher { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); min-height: 48px; padding-inline: 16px; }
  .ds-editor__header { padding: 18px 20px 14px; }
  .ds-editor__body { padding: 20px; }
  .ds-editor__footer { padding-inline: 20px; }
  .ds-editor__select, .ds-editor__number, .ds-editor__hex { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ds-editor, .ds-editor-launcher { transition: none; }
}
