/* PASTORIA — tasarla.css · tasarım sihirbazı ve atölye (Paket B) */

body.tsr{ display: flex; flex-direction: column; min-height: 100dvh; height: auto; overflow-x: clip; overflow-y: auto; padding-bottom: 0 }
body.tsr > .pst-test, body.tsr > .pst-ust, body.tsr > .tsr-adimlar, body.tsr > .tsr-alt{ flex: none }
.tsr-pastane{ font: italic 400 20px/1 var(--serif); color: var(--murekkep-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0 }
.pst-nav button[disabled]{ opacity: .35; cursor: default }

/* Adım çubuğu */
.tsr-adimlar{ border-bottom: 1px solid var(--cizgi); background: var(--kagit) }
.tsr-adimlar ol{ list-style: none; margin: 0 auto; padding: 8px 16px; width: min(1440px, 100%); display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain }
.tsr-adimlar ol::-webkit-scrollbar{ display: none }
.tsr-adimlar button{ display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 6px; border: 0; border-radius: 999px; background: none; font-size: 14px; font-weight: 600; color: var(--murekkep-2); white-space: nowrap; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none }
.tsr-adimlar button span{ width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; box-shadow: inset 0 0 0 1.5px var(--cizgi) }
.tsr-adimlar button[aria-current="step"]{ background: var(--murekkep); color: #FBEFE0 }
.tsr-adimlar button[aria-current="step"] span{ background: var(--ahududu); box-shadow: none; color: #fff }

/* Gövde: yapışkan 3D önizleme + doğal dış sayfa kaydırmalı panel */
.tsr-govde{ flex: 1; width: min(1440px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 420px; align-items: start; gap: 0; min-height: 0; overflow: visible }
body.tsr-atolye .tsr-govde{ grid-template-columns: 280px minmax(0, 1fr) 360px }
.tsr-sahne{
  position: sticky; top: 68px; min-height: 460px; height: calc(100dvh - 154px); max-height: 680px; display: flex; flex-direction: column; overflow: hidden;
  background: radial-gradient(110% 85% at 50% 34%, #FFFFFF 0, var(--kagit) 56%, var(--kagit-2) 100%);
  transition: background 320ms ease;
}
.tsr-sahne::before{
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .85;
  transition: opacity 320ms ease;
}
/* Temaya duyarlı pastane sahne arka planları (yalnız yerel CSS + SVG, dış kaynak yok) */
.tsr-sahne[data-tema-grup="futbol"]{
  background: radial-gradient(95% 75% at 50% 35%, #FFFFFF 0, #EEF6E8 52%, #D4E6C7 100%);
}
.tsr-sahne[data-tema-grup="futbol"]::before{
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 500'%3E%3Cg fill='none' stroke='%236F8A4B' stroke-opacity='.16' stroke-width='2'%3E%3Crect x='40' y='40' width='720' height='420' rx='12'/%3E%3Cline x1='400' y1='40' x2='400' y2='460'/%3E%3Ccircle cx='400' cy='250' r='82'/%3E%3Crect x='40' y='150' width='90' height='200'/%3E%3Crect x='670' y='150' width='90' height='200'/%3E%3C/g%3E%3C/svg%3E") center / cover no-repeat;
}
.tsr-sahne[data-tema-grup="uzay"]{
  background: radial-gradient(90% 80% at 50% 38%, #263159 0, #161D3A 56%, #0D1226 100%);
}
.tsr-sahne[data-tema-grup="uzay"]::before{
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400'%3E%3Cg fill='%23FFF4D2'%3E%3Ccircle cx='60' cy='50' r='2' opacity='.7'/%3E%3Ccircle cx='140' cy='90' r='1.5' opacity='.5'/%3E%3Ccircle cx='220' cy='40' r='2.5' opacity='.8'/%3E%3Ccircle cx='350' cy='60' r='1.5' opacity='.6'/%3E%3Ccircle cx='490' cy='55' r='2.5' opacity='.8'/%3E%3Ccircle cx='540' cy='140' r='1.8' opacity='.5'/%3E%3Ccircle cx='95' cy='210' r='2' opacity='.6'/%3E%3Ccircle cx='510' cy='260' r='2' opacity='.7'/%3E%3Ccircle cx='175' cy='320' r='1.5' opacity='.5'/%3E%3Ccircle cx='430' cy='340' r='2' opacity='.6'/%3E%3C/g%3E%3C/svg%3E") center / cover no-repeat;
}
.tsr-sahne[data-tema-grup="uzay"] .tsr-sahne-not,
.tsr-sahne[data-tema-grup="gece"] .tsr-sahne-not,
.tsr-sahne.gece .tsr-sahne-not{ color: rgba(251,245,236,.72) }
.tsr-sahne[data-tema-grup="kahraman"]{
  background: radial-gradient(95% 75% at 50% 32%, #FFFDF9 0, #EAF0FA 55%, #D3DFF2 100%);
}
.tsr-sahne[data-tema-grup="kahraman"]::before{
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 400'%3E%3Cpath fill='%232F6FD8' fill-opacity='.09' d='M0 400V290h55v-50h45v60h40v-90h60v90h50v-30h55v30h210v-70h50v70h45v-105h65v105h40v-45h85v145z'/%3E%3C/svg%3E") bottom / 100% auto no-repeat;
}
.tsr-sahne[data-tema-grup="pastel"]{
  background: radial-gradient(95% 78% at 50% 34%, #FFFFFF 0, #FDF0F5 52%, #F3E2F4 100%);
}
.tsr-sahne[data-tema-grup="pastel"]::before{
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400'%3E%3Cg fill='%23E4506E' fill-opacity='.08'%3E%3Ccircle cx='90' cy='90' r='44'/%3E%3Ccircle cx='510' cy='80' r='56'/%3E%3Ccircle cx='490' cy='310' r='38'/%3E%3Ccircle cx='110' cy='320' r='48'/%3E%3C/g%3E%3C/svg%3E") center / cover no-repeat;
}
.tsr-sahne[data-tema-grup="doga"]{
  background: radial-gradient(95% 78% at 50% 34%, #FFFFFF 0, #F2F5EA 54%, #E1E9D2 100%);
}
.tsr-sahne[data-tema-grup="yaris"]{
  background: radial-gradient(95% 78% at 50% 34%, #FFFFFF 0, #F8F3EE 55%, #E8DDD2 100%);
}
.tsr-sahne[data-tema-grup="yaris"]::before{
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 20'%3E%3Cg fill='%233A2418' fill-opacity='.08'%3E%3Crect x='0' y='0' width='10' height='10'/%3E%3Crect x='20' y='0' width='10' height='10'/%3E%3Crect x='40' y='0' width='10' height='10'/%3E%3Crect x='60' y='0' width='10' height='10'/%3E%3Crect x='80' y='0' width='10' height='10'/%3E%3Crect x='100' y='0' width='10' height='10'/%3E%3Crect x='120' y='0' width='10' height='10'/%3E%3Crect x='140' y='0' width='10' height='10'/%3E%3Crect x='10' y='10' width='10' height='10'/%3E%3Crect x='30' y='10' width='10' height='10'/%3E%3Crect x='50' y='10' width='10' height='10'/%3E%3Crect x='70' y='10' width='10' height='10'/%3E%3Crect x='90' y='10' width='10' height='10'/%3E%3Crect x='110' y='10' width='10' height='10'/%3E%3Crect x='130' y='10' width='10' height='10'/%3E%3Crect x='150' y='10' width='10' height='10'/%3E%3C/g%3E%3C/svg%3E") top / 320px 24px repeat-x;
}
.tsr-sahne[data-tema-grup="dugun"]{
  background: radial-gradient(95% 78% at 50% 34%, #FFFFFF 0, #FBF6EE 54%, #EFE3D0 100%);
}
.tsr-sahne[data-tema-grup="dugun"]::before{
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 500'%3E%3Cpath d='M130 500V210a170 170 0 0 1 340 0v290' fill='none' stroke='%23C08A2E' stroke-opacity='.18' stroke-width='2'/%3E%3Cpath d='M150 500V214a150 150 0 0 1 300 0v286' fill='none' stroke='%23C08A2E' stroke-opacity='.1' stroke-width='1.5'/%3E%3C/svg%3E") center bottom / contain no-repeat;
}
.tsr-sahne[data-tema-grup="cikolata"]{
  background: radial-gradient(95% 78% at 50% 34%, #FFFBF5 0, #F2E4D7 54%, #DFC8B4 100%);
}
.tsr-sahne[data-tema-grup="gece"],
.tsr-sahne.gece{
  background: radial-gradient(90% 78% at 50% 36%, #33241B 0, #1F1510 58%, #130C09 100%);
}
.tsr-sahne[data-tema-grup="gece"]::before,
.tsr-sahne.gece::before{
  background: radial-gradient(50% 40% at 50% 36%, rgba(233,207,138,.18), transparent 72%);
}
.tsr-sahne-ic{ flex: 1; min-height: 0; position: relative; display: grid; place-items: center }
.tsr-sahne-ic canvas{ position: absolute; inset: 0; cursor: grab; touch-action: pan-y !important }   /* dikey: sayfa kayar, yatay: pasta döner */
body.tsr-atolye .tsr-sahne-ic canvas{ touch-action: none !important }   /* süs adımında sürükleme pastada kalır */
.tsr-sahne-ic canvas:active{ cursor: grabbing }
.tsr-iki{ width: min(100%, 540px); max-height: 100%; height: auto; touch-action: none; display: block; margin: auto }
.tsr-iki-sus{ cursor: grab }
.tsr-iki-sus:active{ cursor: grabbing }
.tsr-sahne-arac{ position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; z-index: 4 }
.tsr-sahne-hizli{ position: absolute; left: 14px; top: 14px; z-index: 4; display: flex; flex-wrap: wrap; gap: 6px }
.tsr-hap{
  min-height: 36px; padding: 0 13px; border: 1px solid var(--cizgi); border-radius: 999px;
  background: color-mix(in srgb, var(--kart) 90%, transparent); backdrop-filter: blur(8px);
  color: var(--murekkep); font-size: 13px; font-weight: 700; cursor: pointer; touch-action: manipulation;
  box-shadow: var(--golge); transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 140ms ease;
}
.tsr-hap:active{ transform: scale(.96) }
.tsr-hap[hidden], .tsr-yuvarlak[hidden]{ display: none }
.tsr-hap[aria-pressed="true"]{ background: var(--murekkep); border-color: var(--murekkep); color: #FBEFE0 }
.tsr-hap.kutla{ border-color: var(--ahududu); color: var(--ahududu-koyu) }
.tsr-hap.kutla[aria-pressed="true"]{ background: var(--ahududu); border-color: var(--ahududu); color: #FFFFFF }
@media (hover: hover) and (pointer: fine){
  .tsr-hap:hover:not([aria-pressed="true"]){ border-color: var(--murekkep-3); background: var(--kart) }
}
/* Konfeti kutlama katmanı */
.tsr-konfeti{ position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 6 }
.tsr-konfeti i{
  position: absolute; top: -16px; width: 9px; height: 14px; border-radius: 2px;
  animation: konfetiDus 2.4s cubic-bezier(.15,.7,.35,1) forwards;
}
@keyframes konfetiDus{
  0%{ transform: translateY(0) rotate(0deg); opacity: 1 }
  80%{ opacity: 1 }
  100%{ transform: translateY(520px) rotate(540deg); opacity: 0 }
}
@media (prefers-reduced-motion: reduce){
  .tsr-konfeti i{ display: none }
}
.tsr-yuvarlak{ width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--kart); box-shadow: var(--golge); display: grid; place-items: center; font-weight: 700; font-size: 14px; cursor: pointer; touch-action: manipulation }
.tsr-yuvarlak svg{ width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
.tsr-yuvarlak[aria-pressed="true"]{ background: var(--murekkep); color: #FBEFE0 }
.tsr-sahne-not{ margin: 0; padding: 8px 18px 12px; font-size: 12.5px; color: var(--murekkep-3); text-align: center }

.tsr-panel{ border-left: 1px solid var(--cizgi); background: var(--kart); min-height: 100%; height: auto; overflow: visible }
.tsr-panel-ic{ padding: 22px 22px 32px; display: grid; gap: 14px; align-content: start }
.tsr-kitaplik{ border-right: 1px solid var(--cizgi); background: var(--kart); min-height: 100%; height: auto; overflow: visible; padding: 18px 14px 28px }
.tsr-h{ margin: 0; font: 400 32px/1.08 var(--serif) }
.tsr-h.kucuk{ font-size: 24px }
.tsr-a{ margin: 0; font-size: 14.5px; color: var(--murekkep-2); line-height: 1.55 }
.tsr-etiket{ display: block; margin-top: 4px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--murekkep-3) }
.tsr-etiket small{ text-transform: none; letter-spacing: 0; font-weight: 500 }
.tsr-tam{ width: 100%; min-height: 48px }
textarea.tsr-tam{ padding: 12px 14px; resize: vertical }
.tsr-kat-baslik{ margin: 14px 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--murekkep-3) }
.tsr-kat-baslik small{ font-weight: 500 }

.tsr-secenekler{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px }
.tsr-kart{ min-height: 64px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--cizgi); background: var(--kagit); text-align: left; cursor: pointer; font-size: 15.5px; touch-action: manipulation }
.tsr-kart[aria-pressed="true"]{ border-color: var(--ahududu); background: var(--ahududu-acik); box-shadow: inset 0 0 0 1px var(--ahududu) }

/* Tema seçici ve rehber şeridi */
.tsr-tema-bolum{ display: grid; gap: 10px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--cizgi) }
.tsr-temalar{ display: grid; grid-template-columns: 1fr; gap: 8px }
.tsr-tema-kart{ display: grid; gap: 4px; min-height: 60px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--cizgi); background: var(--kagit); text-align: left; cursor: pointer; touch-action: manipulation }
.tsr-tema-kart[aria-pressed="true"]{ border-color: var(--ahududu); background: var(--ahududu-acik); box-shadow: inset 0 0 0 1px var(--ahududu) }
.tsr-tema-bas{ display: flex; align-items: center; justify-content: space-between; gap: 10px }
.tsr-tema-kart b{ font-size: 15px; color: var(--murekkep) }
.tsr-tema-kart small{ font-size: 13px; color: var(--murekkep-2); line-height: 1.4 }
.tsr-tema-renk{ display: inline-flex; gap: 4px; flex: none }
.tsr-tema-renk i{ width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(58,36,24,.2) }
.tsr-tema-serit{ display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px; background: var(--fistik-acik); font-size: 13.5px; color: var(--murekkep-2) }
.tsr-tema-serit b{ font-size: 14px; color: var(--murekkep) }
.tsr-tema-serit.kucuk{ margin: 10px 0 12px; padding: 8px 10px; font-size: 12.5px }
.tsr-tema-hazir{ display: grid; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--fistik-acik); font-size: 13.5px; color: var(--murekkep-2) }
.tsr-tema-hazir b{ color: var(--murekkep) }
.tsr-diger-renk{ margin-top: 4px; font-size: 13.5px; color: var(--murekkep-2) }
.tsr-diger-renk summary{ cursor: pointer; font-weight: 600; color: var(--murekkep); min-height: 36px; display: flex; align-items: center }
.tsr-diger-renk .tsr-renkler{ margin-top: 8px }
.tsr-tum-sus{ width: 100%; margin-top: 12px; justify-content: center }

.tsr-kisi{ display: flex; align-items: center; gap: 14px }
.tsr-kisi output{ font: 400 64px/1 var(--serif); min-width: 2.2ch; text-align: center; font-variant-numeric: tabular-nums }
.tsr-kisi span{ font-size: 18px; color: var(--murekkep-2) }
input[type="range"]{ width: 100%; accent-color: var(--ahududu); height: 44px }
.tsr-oneri{ padding: 14px 16px; border-radius: 14px; background: var(--fistik-acik); display: grid; gap: 10px; justify-items: start }
.tsr-oneri p{ margin: 0 }

.tsr-segment{ display: flex; gap: 6px; flex-wrap: nowrap }
.tsr-segment.sar{ flex-wrap: wrap }
.tsr-segment button{ flex: 1; min-height: 46px; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--cizgi); background: var(--kagit); font-weight: 700; font-size: 14.5px; cursor: pointer; display: grid; place-content: center; text-align: center; touch-action: manipulation }
.tsr-segment button small{ font-weight: 500; font-size: 12px; color: var(--murekkep-3) }
.tsr-segment button[aria-pressed="true"]{ background: var(--murekkep); border-color: var(--murekkep); color: #FBEFE0 }
.tsr-segment button[aria-pressed="true"] small{ color: #E5D6C4 }
.tsr-segment button:disabled{ opacity: .4; cursor: not-allowed }
.tsr-segment.kucuk button{ min-height: 44px; font-size: 14px }
.tsr-kat{ border: 1px solid var(--cizgi); border-radius: 16px; padding: 10px 14px 14px; margin: 0; display: grid; gap: 10px }
.tsr-kat legend{ padding: 0 6px; font: 400 22px/1 var(--serif) }

.tsr-lezzetler{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px }
.tsr-lezzet{ display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; min-height: 56px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--cizgi); background: var(--kagit); cursor: pointer; touch-action: manipulation }
.tsr-lezzet i{ grid-row: 1 / 3; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08) }
.tsr-lezzet b{ font-size: 14px }
.tsr-lezzet small{ font-size: 12px; color: var(--murekkep-3) }
.tsr-lezzet[aria-pressed="true"]{ border-color: var(--ahududu); background: var(--ahududu-acik) }
.tsr-besin{ font-size: 14px; color: var(--murekkep-2) }
.tsr-besin summary{ cursor: pointer; font-weight: 600; color: var(--murekkep) }
.tsr-besin p{ margin: 6px 0 0 }

.tsr-renkler{ display: flex; flex-wrap: wrap; gap: 8px }
.tsr-renk{ width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--r); box-shadow: inset 0 0 0 1px rgba(58,36,24,.18); cursor: pointer; position: relative; touch-action: manipulation }
.tsr-renk[aria-pressed="true"]{ box-shadow: 0 0 0 2px var(--kart), 0 0 0 4px var(--ahududu) }
.tsr-renk.dogal{ background: conic-gradient(#F4A6B8, #F2C230, #6FB35A, #5B8DEF, #8E7CE0, #F4A6B8) }
.tsr-renk.ozel{ background: var(--r); overflow: hidden; display: inline-block }
.tsr-renk.ozel::after{ content: "+"; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5) }
.tsr-renk.ozel input{ position: absolute; inset: 0; opacity: 0; cursor: pointer }

/* Kütüphane */
.tsr-susler{ list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px }
.tsr-sus{ width: 100%; min-height: 84px; padding: 8px 6px; border-radius: 14px; border: 1px solid var(--cizgi); background: var(--kagit); display: grid; justify-items: center; gap: 2px; cursor: grab; text-align: center; touch-action: manipulation; user-select: none; -webkit-user-select: none }
.tsr-sus:active{ cursor: grabbing; transform: scale(.97) }
.tsr-sus-ikon{ width: 34px; height: 34px; display: grid; place-items: center; color: var(--ahududu-koyu) }
.tsr-sus-ikon svg{ width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round }
.tsr-sus b{ font-size: 12.5px; line-height: 1.2 }
.tsr-sus small{ font-size: 11.5px; color: var(--murekkep-3) }

.tsr-secili{ padding: 14px; border-radius: 16px; background: var(--kagit); display: grid; gap: 8px }
.tsr-secili-bas b{ display: block; font: 400 24px/1.1 var(--serif) }
.tsr-secili-bas small{ color: var(--murekkep-3) }
.tsr-dugmeler{ display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px }
.tsr-sil{ background: var(--murekkep) }
.tsr-katmanlar{ list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: km }
.tsr-katmanlar button{ width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--cizgi); background: var(--kart); cursor: pointer; text-align: left }
.tsr-katmanlar button[aria-pressed="true"]{ border-color: var(--ahududu); background: var(--ahududu-acik) }
.tsr-katmanlar small{ color: var(--murekkep-3); font-size: 12.5px }

.tsr-bilgi-kutu{ padding: 14px 16px; border-radius: 14px; background: var(--kagit-2); color: var(--murekkep-2); font-size: 14.5px; line-height: 1.55 }
.tsr-hata{ padding: 12px 14px; border-radius: 14px; background: var(--ahududu-acik); color: var(--ahududu-koyu) }
.tsr-hata ul{ margin: 6px 0 0; padding-left: 18px }

.tsr-ozet{ margin: 0; display: grid; gap: 0; border-top: 1px solid var(--cizgi) }
.tsr-ozet div{ display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--cizgi) }
.tsr-ozet dt{ font-size: 13px; font-weight: 700; color: var(--murekkep-3) }
.tsr-ozet dd{ margin: 0; font-size: 14.5px }
.tsr-kalem{ width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums }
.tsr-kalem td{ padding: 6px 0; border-bottom: 1px dashed var(--cizgi) }
.tsr-kalem td:last-child{ text-align: right; white-space: nowrap }
.tsr-kalem tfoot td{ font-weight: 700; font-size: 16px; border-bottom: 0; padding-top: 10px }

/* Alt çubuk */
.tsr-alt{ position: sticky; bottom: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px max(16px, calc((100% - 1440px) / 2 + 16px)) calc(12px + env(safe-area-inset-bottom)); background: var(--kart); border-top: 1px solid var(--cizgi); box-shadow: 0 -10px 30px -20px rgba(58,36,24,.35) }
.tsr-fiyat{ display: grid; min-width: 0 }
.tsr-fiyat b{ font-size: 22px; font-variant-numeric: tabular-nums }
.tsr-fiyat span{ font-size: 13px; color: var(--murekkep-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.tsr-fiyat.hatali em{ color: var(--ahududu); font-style: normal; font-weight: 700 }
.tsr-alt-eylem{ display: flex; gap: 8px; flex: none }

.tsr-bildirim{ position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 12px); opacity: 0; pointer-events: none; z-index: 40; max-width: min(520px, calc(100% - 32px)); padding: 12px 18px; border-radius: 14px; background: var(--murekkep); color: #FBEFE0; font-weight: 600; font-size: 14.5px; box-shadow: var(--golge-buyuk); transition: opacity .2s ease, transform .25s var(--hizli) }
.tsr-bildirim.gorunur{ opacity: 1; transform: translate(-50%, 0) }

@media (hover: hover) and (pointer: fine){
  .tsr-adimlar button:hover:not([aria-current]){ background: var(--kagit-2) }
  .tsr-kart:hover, .tsr-tema-kart:hover, .tsr-lezzet:hover, .tsr-sus:hover, .tsr-segment button:hover:not(:disabled):not([aria-pressed="true"]){ border-color: var(--murekkep-3) }
}

@media (max-width: 1100px){
  body.tsr-atolye .tsr-govde{ grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: auto auto }
  body.tsr-atolye .tsr-kitaplik{ grid-column: 1 / -1; grid-row: 2; height: auto; max-height: none; border-right: 0; border-top: 1px solid var(--cizgi) }
  .tsr-susler{ grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)) }
}
@media (max-width: 860px){
  body.tsr{ height: auto; min-height: 100dvh; overflow: visible }
  .tsr-govde, body.tsr-atolye .tsr-govde{ grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; overflow: visible }
  .tsr-sahne{ position: sticky; top: 60px; z-index: 5; min-height: 0; height: clamp(220px, 34svh, 290px); border-bottom: 1px solid var(--cizgi) }
  .tsr-sahne-ic{ min-height: 0 }
  .tsr-sahne-not{ display: none }
  .tsr-sahne-hizli{ left: 10px; top: auto; bottom: 10px; gap: 5px }
  .tsr-hap{ min-height: 40px; padding: 0 11px; font-size: 12.5px }
  .tsr-renk{ width: 42px; height: 42px }
  /* telefonda panel ve kütüphane sayfayla birlikte kayar: kendi kaydırma kutusu olmasın,
     yoksa overscroll-behavior: contain parmak kaydırmasının sayfaya geçmesini keser */
  .tsr-panel{ border-left: 0; height: auto; max-height: none; position: static; overflow: visible; overscroll-behavior: auto; min-width: 0 }
  .tsr-kitaplik, body.tsr-atolye .tsr-kitaplik{ grid-column: auto; grid-row: auto; order: 2; height: auto; max-height: none; overflow: visible; overscroll-behavior: auto; min-width: 0; border-right: 0; border-top: 0; border-bottom: 1px solid var(--cizgi); padding: 14px 16px }
  .tsr-panel{ order: 3 }
  .tsr-susler{ display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; overscroll-behavior-x: contain }
  .tsr-susler li{ flex: none; width: 96px }
  .tsr-pastane{ display: none }
  .tsr-fiyat b{ font-size: 19px; white-space: nowrap }
  .tsr-alt .pst-dugme{ padding: 0 16px; min-height: 44px }
  /* telefonda metin/not alanı odaktayken yapışkan çubuklar (üst + 3D sahne + alt çubuk = ~390px)
     klavye üstündeki ekranı tamamen kapatmasın diye position: static olur (display: none değil,
     böylece odak düşmez ve klavye kapanmaz) */
  body.tsr.tsr-klavye .pst-ust,
  body.tsr.tsr-klavye .tsr-sahne,
  body.tsr.tsr-klavye .tsr-alt{ position: static }
}
@media (max-width: 600px){
  .tsr-alt{ flex-wrap: wrap; gap: 8px 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)) }
  .tsr-fiyat{ flex: 1 1 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 8px }
  .tsr-alt-eylem{ flex: 1 1 100%; display: flex; gap: 8px }
  .tsr-alt-eylem .pst-dugme{ flex: 1 1 auto; min-height: 44px; font-size: 14.5px; padding: 0 14px }
  .tsr-alt-eylem #geri{ flex: 0 0 auto; min-width: 78px }
}
