/* V278: tylko styl panelu inteligentnych detali - bez lokalnego nagłówka. */
/* Kontrolki automatycznego detalu. */
.details-ai-config{margin:12px 0 17px;padding:12px;border-radius:10px;border:1px solid #2d617e;background:linear-gradient(145deg,#15344c,#091e2c)}
.details-ai-title{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;font-weight:900;color:#c6f0ff}
.details-ai-title small{font-size:10px;font-weight:700;color:#8bb8ce;white-space:nowrap}
.details-ai-config p{font-size:11px;line-height:1.5;color:#bbd2e2;margin:7px 0}
.details-ai-config input[type=range]{margin-bottom:2px}
.details-ai-running{margin-top:11px;border-top:1px solid #36607a;padding-top:10px}
.details-ai-running[hidden]{display:none!important}
.details-ai-progress-label,.details-ai-time{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#c3e3f2;font-size:11px}
.details-ai-progress{height:9px;background:#061521;border-radius:20px;overflow:hidden;margin:7px 0 9px;border:1px solid #39617c}
.details-ai-progress span{height:100%;width:0;display:block;background:linear-gradient(90deg,#288dc1,#82e2fc);transition:width .2s}
.details-ai-time .btn{min-height:31px;padding:5px 10px;border-color:#6b647b;color:#fbe9f2}
.tool.special{border-color:#4c87a5;background:linear-gradient(150deg,#183951,#164960)}
.tool.special:hover{border-color:#80dbff;background:#1d597a}
.tool.special:disabled{opacity:.55}

/* Ustawienia wspólnej nawigacji nie powinny zmieniać podglądu 3D. */
.editor-page .preview.panel {background:linear-gradient(160deg,#10283b,#071624);border-color:#2a506c} 
.editor-page .preview-stage {background:#061827}

/* Po usunięciu przypiętego nagłówka edytor rozpoczyna się od góry,
   tak samo jak strona główna. */
body:has(.jmc-shared-nav-shell){padding-top:0!important}
/* Wspólny arkusz ustawień obsługuje motyw nawigacji; nie narzuca układu
   dużego hero strony głównej w małym pasku edytora. */
html[data-jmc-theme] body .editor-page>.hero{
  display:flex!important;min-height:0!important;height:auto!important;
  align-items:flex-end!important;justify-content:space-between!important;
  grid-template-columns:none!important;gap:16px!important;
  padding:0!important;margin:0 0 16px!important;flex-wrap:wrap!important;
}
html[data-jmc-theme] body .editor-page>.hero h1{
  max-width:none!important;font-size:clamp(29px,4.5vw,52px)!important;
  line-height:1.12!important;letter-spacing:-.065em!important;
  text-wrap:initial!important;filter:none!important;
  margin:8px 0!important;
}
html[data-jmc-theme] body .editor-page>.hero .eyebrow{
  display:inline-flex!important;margin:0!important;padding:0!important;
  background:transparent!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;color:#6dceef!important;font-size:11px!important;
  letter-spacing:.15em!important;
}
html[data-jmc-theme] body .editor-page>.hero .eyebrow::before{display:none!important}
html[data-jmc-theme] body .editor-page>.hero p{max-width:740px!important;font-size:14px!important;line-height:1.6!important;margin:0!important}
/* Nie pozwalamy globalnemu wyglądowi kart galerii nadpisać sceny modelu. */
html[data-jmc-theme] body .editor-page .preview.panel{background:linear-gradient(160deg,#10283b,#071624)!important;border-color:#2a506c!important}
html[data-jmc-theme] body .editor-page .preview-stage{background:#061827!important}
/* W mobilnym edytorze panel podglądu musi rosnąć wraz z modelem 3D,
   globalny kompaktowy widok miniaturek (.preview) go nie dotyczy. */
@media(max-width:600px){
 html[data-jmc-theme] body .editor-page .preview.panel{
   height:auto!important;min-height:0!important;max-height:none!important;
   overflow:visible!important;
 }
 html[data-jmc-theme] body .editor-page .preview-stage{
   height:auto!important;min-height:390px!important;max-height:none!important;
 }
 html[data-jmc-theme] body .editor-page .preview-stage canvas{
   max-width:100%!important;max-height:none!important;
 }
}
html:is([data-jmc-theme="dark"],[data-jmc-theme="namemc-dark"]) body .editor-page>.hero h1{
  color:#eff8ff!important;
}
html:is([data-jmc-theme="light"],[data-jmc-theme="namemc"]) body .editor-page>.hero h1{
  color:#19364a!important;
}
html[data-jmc-theme] body .editor-page>.hero p{color:#b5cddf!important}
html:is([data-jmc-theme="light"],[data-jmc-theme="namemc"]) body .editor-page>.hero p{color:#546c7e!important}


/* V282: licznik użyć Detali AI i pomocniczy opis trybu 3D. */
.details-ai-usage{margin:10px 0 6px;padding:10px;border:1px solid #315a72;border-radius:9px;background:rgba(5,17,29,.34)}
.details-ai-usage-note{font-size:11px;line-height:1.45;color:#bcd9e9}
.details-ai-progress-usage span{background:linear-gradient(90deg,#f0b64a,#f8e27a)}
.mode-helper{display:flex;flex-wrap:wrap;gap:7px;margin:11px 0 2px}
.mode-helper .mini-chip{background:#0a2032}
#skinPreviewCanvas{touch-action:none!important;cursor:crosshair}
html[data-jmc-theme] #skinPreviewCanvas{touch-action:none!important}


/* V283: wspólny tryb 3D bez przełączania. */
.hybrid-3d-info{margin:12px 0 6px;padding:10px;border:1px solid #315a72;border-radius:10px;background:rgba(5,17,29,.34)}
.hybrid-3d-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.hybrid-3d-item{display:grid;gap:3px;padding:9px 10px;border-radius:8px;background:#0a2032;border:1px solid #2a5066;color:#d9eef9;font-size:11px}
.hybrid-3d-item strong{font-size:11px;color:#eff8ff}.hybrid-3d-item span{color:#a9c7d8;line-height:1.4}
@media(max-width:640px){.hybrid-3d-grid{grid-template-columns:1fr}}

.preview-modes{display:none!important}

/* V288 — nowy silnik detali pixel-art; opcje w panelu narzędzi. */
.editor-page .details-ai-config #detailsProfile{
  width:100%;margin:3px 0 5px;padding:10px;border:1px solid #3a6e90;
  background:#0a2538;color:#e7f7ff;border-radius:8px;font-size:12px;font-weight:700;
}
.editor-page .details-ai-safety{margin:10px 0 0;color:#aedbea;font-size:10px;line-height:1.65}
.editor-page #applyDetails{background:linear-gradient(125deg,#174866,#225477);border-color:#78c9ef}
.editor-page #applyDetails:not(:disabled):hover{box-shadow:0 0 0 2px rgba(96,201,235,.25)}
