/* Keep all existing controls; disclose them only when requested. */
.simple-details{margin:14px 0;padding:12px 14px;border:1px solid #334450;border-radius:12px;text-align:left}
.simple-details>summary{cursor:pointer;font-weight:700;color:#b8cbd4;min-height:28px;line-height:28px;list-style:revert}
.simple-details[open]>summary{margin-bottom:12px;color:#5eead4}
.simple-details>summary:focus-visible,[data-simple-advanced-toggle]:focus-visible{outline:2px solid #5eead4;outline-offset:4px}
.simple-details .figurine-toggle,.simple-details .hd-switch{margin:10px 0}
.simple-guide{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin:0 0 18px;padding:14px 18px;background:#122d31;border:1px solid #2b6366;border-radius:12px;color:#e5f6f2;font-size:13px}
.simple-guide strong{width:100%;font-size:15px}.simple-guide button{margin-left:auto;border:0;background:transparent;color:#5eead4;cursor:pointer}.simple-guide[hidden]{display:none}
.simple-guide-open{white-space:nowrap}.studio-simple .workspace-topline{display:none}
.simple-guide strong{width:auto}.studio-simple:has(#simpleGuide:not([hidden])) .workflow-bar{display:none}
.studio-simple #imageDrop{min-height:110px}.studio-simple #imageDrop .sico-tile--lg{width:38px;height:38px}
.studio-simple .simple-guide-open{border:0;background:transparent;color:#5eead4;cursor:pointer;font:inherit;font-size:13px}
.studio-simple .workspace-heading{margin-bottom:18px}.studio-simple .workspace-title{font-size:clamp(27px,3vw,40px)}
.studio-simple .workflow-bar small,.studio-simple .starter-strip{display:none}
.studio-simple #studioGate .gate-card{padding:12px}.studio-simple #studioGate h3{font-size:16px}
.studio-simple #creationBoard.is-empty{display:block}.studio-simple #creationBoard.is-empty>#boardNew,.studio-simple #creationBoard>.cb-tile--example{display:none}
.simple-board-intro{margin:80px auto;max-width:280px;text-align:center;color:#b8cbd4;font-size:18px;line-height:1.5}.simple-board-intro small{display:block;margin-top:12px;font-size:13px;color:#7d949f}
.studio-simple .panel .hint{font-size:12px}.studio-simple #panelImage>.hint:last-child{display:none}
.studio-simple #stlImportBtn{width:100%;margin-top:16px}.studio-simple #editstlImport>.hint{font-size:12px}
.studio-simple:not(.studio-advanced) [data-advanced-tool]{display:none!important}
.studio-simple .at-rail{overflow-y:auto}.studio-simple [data-simple-advanced-toggle]{font-size:12px;font-weight:700;min-height:46px;border:1px solid rgba(94,234,212,.45);background:rgba(45,212,191,.12);color:#ccfbf1;border-radius:12px}.studio-simple [data-simple-advanced-toggle][aria-expanded="true"]{border-color:#5eead4;background:rgba(45,212,191,.22);color:#fff}.studio-simple .at-rail [data-simple-advanced-toggle] i{color:#5eead4}.studio-simple [data-simple-advanced-toggle][aria-expanded="true"] i{color:#fff}
.studio-simple .choice__visual{display:none}.studio-simple .choice__card{min-width:0}
.studio-simple .choice__actions{flex-wrap:wrap}.studio-simple #dl3mfBtn{order:-1;flex-basis:100%}
.studio-simple .at-slot[data-at-slot="export"] .choice{display:block}.studio-simple .choice__hint{font-size:12px}
.studio-simple .steps{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:760px){.simple-guide{gap:8px}.simple-guide span{width:100%}.studio-simple .steps{grid-template-columns:1fr}.studio-simple .at-tabs{flex-wrap:wrap}.studio-simple .workspace-heading{flex-wrap:wrap}.studio-simple .simple-details{padding:10px}.studio-simple #dl3mfBtn{white-space:normal}}
@media(max-width:760px){.studio-simple:not(.studio-advanced) .at-tabs{grid-template-columns:repeat(5,minmax(0,1fr))}.studio-simple .at-tabs [data-simple-advanced-toggle]{font-size:10.5px}.studio-simple .result__head{margin-bottom:8px}}

/* restore-tools-2 : pe-tip au-dessus de la barre du bas (1024+), Historique 390, RTL atelier, Vendre [hidden] */
#studioApp.is-atelier .at-bar__btn[hidden],
#studioApp.is-atelier .at-foot__btn[hidden],
#studioApp.is-atelier .at-bar__sell[hidden] { display:none !important; }

#studioApp.is-atelier .pe-tip {
  bottom:88px;
  right:16px;
  left:auto;
  z-index:196;
  max-width:min(280px, calc(100vw - var(--at-rail, 78px) - 32px));
  white-space:normal;
  pointer-events:none;
}
@media (max-width:760px) {
  #studioApp.is-atelier .pe-tip { display:none !important; }
  #studioApp.is-atelier .at-panel__body { min-height:8rem; }
  #studioApp.is-atelier .at-hist.is-open { flex:0 1 auto; max-height:26vh; overflow:hidden; }
  #studioApp.is-atelier .at-hist.is-open .at-hist__list { overflow-x:auto; }
  #studioApp.is-atelier .at-hist.is-open .at-hist__img { width:72px; height:54px; }
  #studioApp.is-atelier .params-reset {
    position:sticky;
    top:0;
    z-index:3;
    margin-bottom:10px;
    padding-top:4px;
    padding-bottom:8px;
    background:var(--at-glass, rgba(13,19,26,.96));
  }
}

/* RTL : rail et panneau à droite, barre d'outils aperçu à gauche. Mobile (feuille bas) inchangé à part la barre d'outils. */
html[dir="rtl"] #studioApp.is-atelier .viewer-card { left:0; right:var(--at-rail); }
html[dir="rtl"] #studioApp.is-atelier .at-rail {
  left:auto;
  right:0;
  border-right:0;
  border-left:1px solid var(--at-line, rgba(255,255,255,.08));
}
html[dir="rtl"] #studioApp.is-atelier .at-panel {
  left:auto;
  right:calc(var(--at-rail) + 14px);
}
html[dir="rtl"] #studioApp.is-atelier .viewer__tools { right:auto; left:16px; }
html[dir="rtl"] #studioApp.is-atelier .pe-tip { right:auto; left:16px; }
@media (max-width:1180px) {
  html[dir="rtl"] #studioApp.is-atelier .at-bar { /* toujours centré */ }
}
@media (max-width:760px) {
  html[dir="rtl"] #studioApp.is-atelier .viewer-card { left:0; right:0; }
  html[dir="rtl"] #studioApp.is-atelier .at-panel { left:0; right:0; }
  html[dir="rtl"] #studioApp.is-atelier .viewer__tools { right:auto; left:10px; }
}


/* restore-tools-3 : 390 pe-foot vs chips */
@media (max-width: 480px) {
  #studioApp.is-atelier .pe-foot,
  #studioApp.is-atelier .params-overlay.params-sheet .pe-foot,
  #studioApp.is-atelier .at-slot .params-overlay .pe-foot {
    position: static !important;
  }
  #studioApp.is-atelier .pe-chips {
    position: relative;
    z-index: 3;
    margin-bottom: 12px;
    padding-bottom: 4px;
  }
  #studioApp.is-atelier .params-overlay,
  #studioApp.is-atelier .at-slot .params-overlay {
    padding-bottom: 16px;
  }
}

/* restore-tools-3 : Vendre X closes on pointerdown (no click delay) */
.sell-modal .modal__close {
  z-index: 8;
  pointer-events: auto;
}


/* restore-tools-5 : champs L/P/H lisibles à 1024 px (plus de « 10C » à la place de 100) */
#studioApp.is-atelier .pe-stretch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
#studioApp.is-atelier .pe-stretch label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 2px;
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
}
#studioApp.is-atelier .pe-stretch input[type="number"] {
  width: 4.8em;
  min-width: 4.8em;
  max-width: none;
  box-sizing: content-box;
  padding: 4px 6px;
  font-variant-numeric: tabular-nums;
}

/* restore-tools-5 : en arabe à 1024 px, le panneau Cotes ne doit plus recouvrir la barre de stats */
@media (min-width: 761px) and (max-width: 1180px) {
  html[dir="rtl"] #studioApp.is-atelier .viewer-card {
    padding-bottom: 56px;
  }
  html[dir="rtl"] #studioApp.is-atelier .viewer__stats,
  html[dir="rtl"] #studioApp.is-atelier #viewerStats {
    position: relative;
    z-index: 6;
  }
  html[dir="rtl"] #studioApp.is-atelier .at-panel {
    max-height: calc(100% - 108px);
  }
}
