/* Sade atölye düzeni: büyük 3D sahne + tek adım paneli. tema.css'teki eski atölye kurallarını ezer. Atölye her temada koyudur. */
html .ws-sade { gap: 0; padding: 14px 16px 0; }
html .ws-sade .ws-govde { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: minmax(0, 1fr); gap: 14px; flex: none; height: calc(100vh - 78px - 14px - 86px); min-height: 560px; }
html .ws-sade .ws-sahne { min-height: 0; height: 100%; }

/* sahne üstü: solda 3D/2D, sağda küçük simgeler */
.ws-sahne-ust { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 6; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; }
.ws-sahne-ust > * { pointer-events: auto; }
html .ws-sade .ws-sekme { padding: 3px; border-radius: 12px; background: rgba(18, 17, 14, .82); border-color: rgba(255, 255, 255, .08); backdrop-filter: blur(6px); }
html .ws-sade .ws-sekme button { padding: 7px 13px; font-size: 13px; border-radius: 9px; gap: 6px; }
html .ws-sade .ws-sekme svg { width: 16px; height: 16px; }
html .ws-sade .ws-ust-arac { gap: 6px; }
html .ws-sade .ws-ust-arac button { width: 36px; height: 36px; min-width: 36px; padding: 0; border-radius: 10px; background: rgba(18, 17, 14, .82); border: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(6px); }
html .ws-sade .ws-ust-arac svg { width: 18px; height: 18px; }

/* sahne altı: tek sıra simge çubuğu */
.ws-alt-arac { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 6; display: flex; gap: 8px; align-items: center; max-width: calc(100% - 24px); }
html .ws-sade .ws-arac, html .ws-sade .ws-icdis, html .ws-sade .ws-isikmod { position: static; transform: none; display: flex; gap: 2px; padding: 4px; border-radius: 14px; background: rgba(18, 17, 14, .85); border: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(6px); flex: none; }
html .ws-sade .ws-arac button, html .ws-sade .ws-icdis button, html .ws-sade .ws-isikmod button { width: 38px; height: 38px; min-width: 0; padding: 0; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: #e8e6e3; font-size: 0; gap: 0; cursor: pointer; }
html .ws-sade .ws-arac button span { display: none; }
html .ws-sade .ws-arac svg, html .ws-sade .ws-icdis svg, html .ws-sade .ws-isikmod svg { width: 19px; height: 19px; }
html .ws-sade .ws-arac button:hover, html .ws-sade .ws-icdis button:hover, html .ws-sade .ws-isikmod button:hover { background: #2c2924; }
html .ws-sade .ws-arac button.aktif { background: #312e27; color: var(--altin); }
html .ws-sade .ws-icdis button.aktif, html .ws-sade .ws-isikmod button.aktif { background: var(--altin-gr); color: #ffffff; }
.ws-arac .ayrac { width: 1px; align-self: stretch; background: rgba(255, 255, 255, .12); margin: 6px 3px; }
html .ws-sade .ws-arac[hidden], html .ws-sade .ws-icdis[hidden], html .ws-sade .ws-isikmod[hidden] { display: none; }
html .ws-sade .ws-ipucu { top: auto; bottom: 66px; font-size: 12px; transition: opacity .8s; }
.ws-ipucu.soluk { opacity: 0; }

/* sağ panel */
.ws-yan { display: flex; flex-direction: column; min-height: 0; overflow: hidden; background: var(--koyu2); border: 1px solid #302d26; border-radius: 18px; color: var(--acik); }
.ws-yan-ust { padding: 16px 18px 14px; border-bottom: 1px solid #302d26; }
.ws-yan-ust h1 { font: 600 17px Outfit, sans-serif; margin: 0 0 14px; color: #fff; letter-spacing: .01em; }
html .ws-sade .ws-adimlar { flex-direction: row; gap: 0; justify-content: space-between; position: relative; overflow: visible; }
html .ws-sade .ws-adimlar::before { content: ""; position: absolute; left: 10%; right: 10%; top: 14px; height: 2px; background: #3c3830; }
html .ws-sade .ws-adimlar button { flex: 1; flex-direction: column; align-items: center; gap: 6px; padding: 0; background: none !important; color: #a5a19a; font-size: 11.5px; position: relative; z-index: 1; text-align: center; cursor: pointer; }
html .ws-sade .ws-adimlar button b { width: 28px; height: 28px; background: var(--koyu2); border: 1.5px solid #4e4940; color: #c6c3bd; font-size: 12.5px; }
html .ws-sade .ws-adimlar button:hover b { border-color: var(--altin); }
html .ws-sade .ws-adimlar button.aktif { color: #fff; font-weight: 600; }
html .ws-sade .ws-adimlar button.aktif b { background: var(--altin-gr); border-color: transparent; color: #ffffff; }
html .ws-sade .ws-adimlar button.bitti b { border-color: var(--altin); color: var(--altin); }
.ws-yan-ic { flex: 1; min-height: 0; overflow: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 16px; scrollbar-width: thin; scrollbar-color: #3c3830 transparent; }
html .ws-sade .ws-sol { background: none; border: 0; padding: 0; min-height: 0; max-height: none; overflow: visible; color: var(--acik); }
html .ws-sade .ws-sol:empty { display: none; }
.ws-yan-ic > * { flex: none; }
html .ws-sade .ws-sol #aParam:empty, html .ws-sade .ws-sol h3:only-child { display: none; }
html .ws-sade .ws-sag { max-height: none; overflow: visible; gap: 16px; }
html .ws-sade .ws-kutu { background: none; border: 0; border-radius: 0; padding: 0; }
html .ws-sade .ws-kutu + .ws-kutu { border-top: 1px solid #302d26; padding-top: 16px; }
html .ws-sade .ws-kutu.parla { box-shadow: none; }
.ws-yan:not([data-yan-adim="malzeme"]):not([data-yan-adim="donanim"]) .ws-sag { display: none; }
.ws-yan[data-yan-adim="malzeme"] .ws-k-donanim, .ws-yan[data-yan-adim="donanim"] .ws-k-malzeme { display: none; }
.ws-ipucu-metin { margin: 0; }

/* panel içi denetimler: her temada koyu */
html .ws-sade .ws-sol :is(h3, h4, label, .param label, dt, dd) { color: var(--acik); }
html .ws-sade .ws-sol h3 { font-size: 16px; margin-bottom: 12px; }
html .ws-sade .ws-sol :is(.kucuk, small) { color: var(--acik-soluk); }
html .ws-sade .ws-sol :is(select, input:not([type=checkbox]):not([type=range])) { background: #292621; color: var(--acik); border-color: #3d3932; }
html .ws-sade .ws-secim select { background: #292621; color: var(--acik); border-color: #3d3932; }
html .ws-sade .model-izgara { grid-template-columns: repeat(2, 1fr); gap: 10px; }
html .ws-sade .model-izgara button { background: #272520; color: var(--acik); border-color: #34312b; padding: 8px 6px 10px; font-size: 12.5px; }
html .ws-sade .model-izgara button img { max-height: 96px; background: radial-gradient(ellipse at 50% 65%, #3c3830, #25231e); border-radius: 8px; }
html .ws-sade .model-izgara button.secili { border-color: var(--altin); box-shadow: 0 0 0 2px rgba(221, 109, 72, .35); background: #2e2b25; }
html .ws-sade .ws-sol .btn-koyu { background: #292621; color: var(--acik); border-color: #3d3932; }
html .ws-sade .ws-sol .modul { background: #25231e; border-color: #3d3932; color: var(--acik); }
html .ws-sade .ws-sol .bolum-satir { background: #292621; border-color: #3d3932; }
html .ws-sade .ws-sol .segment button { background: #272520; color: var(--acik); border-color: #3d3932; }
html .ws-sade .ws-sol .segment button.secili { background: var(--altin-gr); color: #ffffff; border-color: transparent; }
html .ws-sade .ws-sol input[type=range] { accent-color: var(--altin); }
html .ws-sade .ws-renk-sekme button.aktif { background: var(--altin-gr); color: #ffffff; border-color: transparent; }
html .ws-sade .ws-swatch { grid-template-columns: repeat(4, 1fr); }

/* uyarılar panelin altında */
html .ws-sade .ws-uyari { position: static; max-width: none; padding: 0 18px; margin: 0 0 10px; gap: 6px; }
html .ws-sade .ws-uyari:empty { display: none; }
.ws-dl[hidden], .ws-ipucu-metin[hidden] { display: none !important; }
/* bilgi notları yalnız Özet adımında; uyarı ve hatalar her adımda */
.ws-yan:not([data-yan-adim="onizleme"]) .ws-uyari .uyari.bilgi { display: none; }
.ws-yan:not([data-yan-adim="onizleme"]) .ws-uyari:not(:has(.uyari:not(.bilgi))) { display: none; }
html .ws-sade .ws-uyari .uyari { background: #2e2a22; color: #eae8e4; border: 0; font-size: 12.5px; }
html .ws-sade .ws-uyari .uyari.hata { background: #2e1915; color: #f3b9a6; }

/* ileri / geri */
.ws-yan-nav { display: flex; gap: 10px; padding: 12px 18px 16px; border-top: 1px solid #302d26; }
.ws-yan-nav .btn { flex: 1; padding: 12px 10px; font-size: 14px; justify-content: center; }
.ws-yan-nav #aAdimIleri { flex: 2.2; }
.ws-yan-nav .btn-koyu { background: #292621; color: var(--acik); border: 1px solid #3d3932; }
.ws-yan-nav svg { width: 18px; height: 18px; vertical-align: -4px; }

/* alt çubuk: fiyat + küçük simgeler + sipariş */
html .ws-sade .ws-alt { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 24px; margin: 14px -16px 0; }
html .ws-sade .ws-fiyat { border: 0; padding: 0; display: flex; align-items: center; gap: 16px; min-width: 0; }
html .ws-sade .ws-fiyat strong { font-size: 28px; margin: 0; white-space: nowrap; }
html .ws-sade .ws-fiyat span { color: #e8e6e3; font-size: 13.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html .ws-sade .ws-alt-btn { align-items: center; gap: 4px; flex-wrap: nowrap; }
.ws-ikon-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 58px; padding: 6px 0; border: 0; border-radius: 10px; background: none; color: #c6c3bd; font-size: 11px; cursor: pointer; }
.ws-ikon-btn:hover { background: #2c2924; color: var(--altin); }
.ws-ikon-btn svg { width: 20px; height: 20px; }
html .ws-sade .ws-alt-btn .btn-altin { margin-left: 10px; padding: 13px 26px; }

/* orta ekran: panel daralır */
@media (max-width: 1250px) { html .ws-sade .ws-govde { grid-template-columns: minmax(0, 1fr) 340px; } }
/* tablet ve telefon: sahne üstte, panel altta */
@media (max-width: 1100px) {
  html .ws-sade .ws-govde { grid-template-columns: 1fr; height: auto; min-height: 0; }
  html .ws-sade .ws-sahne { height: 62vh; min-height: 380px; order: 0; }
  html .ws-sade .ws-yan { overflow: visible; }
  html .ws-sade .ws-yan-ic { overflow: visible; }
  html .ws-sade .ws-alt { grid-template-columns: 1fr; position: sticky; bottom: 0; gap: 10px; }
  html .ws-sade .ws-alt-btn { justify-content: space-between; }
}
@media (max-width: 600px) {
  html .ws-sade { padding: 10px 10px 0; }
  html .ws-sade .ws-sahne { height: 56vh; min-height: 320px; border-radius: 14px; }
  .ws-alt-arac { left: 8px; right: 8px; transform: none; max-width: none; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .ws-alt-arac::-webkit-scrollbar { display: none; }
  html .ws-sade .ws-arac button, html .ws-sade .ws-icdis button, html .ws-sade .ws-isikmod button { width: 36px; height: 36px; }
  .ws-yan-ust { padding: 14px 12px 12px; }
  .ws-yan-ic { padding: 14px 12px; }
  .ws-yan-nav { padding: 10px 12px 14px; }
  html .ws-sade .ws-alt { margin: 10px -10px 0; padding: 10px 12px; }
  html .ws-sade .ws-fiyat strong { font-size: 24px; }
  .ws-ikon-btn { width: 50px; }
  /* telefon: tek satır alt çubuk — fiyat · simgeler · sipariş */
  html .ws-sade .ws-alt { grid-template-columns: auto minmax(0, 1fr); gap: 6px; }
  html .ws-sade .ws-fiyat > div { display: none; }
  html .ws-sade .ws-alt-btn { justify-content: flex-end; gap: 0; }
  .ws-ikon-btn { width: 34px; padding: 8px 0; }
  .ws-ikon-btn span { display: none; }
  html .ws-sade .ws-alt-btn .btn-altin { margin-left: 4px; padding: 11px 12px; font-size: 13.5px; white-space: nowrap; }
  html .ws-sade .ws-alt-btn .btn-altin svg { display: none; }
}
