/* PC: atolye pencereleri (ajan düzeni, 2026-11-26)
   İşlemehane / Zanaathane: beş tezgâh kartı ızgarada (dar: 2 sütun, geniş: 3 sütun), altıncı hücre binanın özeti.
   Tezgâh: solda kademe + tarif listesi (malzemeler ve çantadaki sayılar), ortada seçili tarifin tezgâhı
   (malzeme → ürün sahnesi, nadirlik formu, adet ve Üret); Sıra ve Teslim Rafı dar ekranda tezgâhın altında,
   geniş ekranda sağda ayrı sütun. Yalnız transform / opacity canlanır. */

/* yalnız PC'de görünen ek parçalar */
.wh-win .wh-pc, .wh-win .wh-sum, .ws-win .ws-rt-in, .ws-win .ws-rt-m, .ws-win .ws-q-tx, .ws-win .ws-q-bar, .ws-win .ws-odds { display: none; }

/* =====================================================================
   İşlemehane / Zanaathane: tezgâh kartları
   ===================================================================== */
.app.desk .wh-win { container: whw / inline-size; }
.app.desk .wh-win > .sh-body { container: whb / inline-size; overflow: hidden; gap: 10px; padding: 0 20px 18px; }
.app.desk .wh-win .wh-note { font: 400 12.5px var(--fb); color: var(--muted); padding: 0 2px; }
.app.desk .wh-win .wh-list { container-type: normal; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 10px; }
@container whw (min-width: 1000px) {
  .app.desk .wh-win .wh-list { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

.app.desk .wh-win .wh-card { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "med tx side" "pc pc pc";
  align-items: start; align-content: stretch; gap: 9px 12px; padding: 12px 14px 12px; min-height: 0; transition: transform .18s var(--spring); }
.app.desk .wh-win .wh-card:hover { transform: translateY(-2px); box-shadow: 0 0 0 1.5px #0b0a0a, inset 0 0 0 1px color-mix(in srgb, var(--c) 75%, #6d5e3b), inset 0 1px 0 rgba(255, 236, 200, .12), 0 14px 26px -14px #000, 0 0 22px -10px var(--c); }
.app.desk .wh-win .wh-card:active { transform: translateY(0) scale(.99); }
.app.desk .wh-win .wh-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.app.desk .wh-win .wh-med { grid-area: med; --m: 54px; margin-top: 2px; }
.app.desk .wh-win .wh-tx { grid-area: tx; gap: 3px; }
.app.desk .wh-win .wh-side { grid-area: side; padding: 0; align-self: start; }
.app.desk .wh-win .wh-side { gap: 8px; } .app.desk .wh-win .wh-card:hover .wh-go { transform: translateX(2px); } .app.desk .wh-win .wh-go { transition: transform .2s var(--spring); }
.app.desk .wh-win .wh-nm { font-size: 17px; }
.app.desk .wh-win .wh-tag { display: block; font-size: 11.5px; }
.app.desk .wh-win .wh-it { width: 28px; height: 28px; }
.app.desk .wh-win .wh-fx { width: 60%; }

/* kartın PC ayrıntısı */
.app.desk .wh-win .wh-pc { grid-area: pc; min-height: 0; align-self: stretch; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "xp tl" "sts sts"; align-items: center; gap: 8px 14px; padding-top: 9px; border-top: 1px solid color-mix(in srgb, var(--c) 20%, #2a2521); }
.app.desk .wh-win .wh-xpl { grid-area: xp; display: flex; align-items: center; gap: 8px; min-width: 0; }
.app.desk .wh-win .wh-xpb { flex: 1; min-width: 30px; height: 5px; border-radius: 3px; background: #0d0c0b; box-shadow: inset 0 0 0 1px #2a2521; overflow: hidden; }
.app.desk .wh-win .wh-xpb > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #a98c4d, #dabe79); box-shadow: 0 0 8px rgba(231, 194, 106, .5); }
.app.desk .wh-win .wh-xpl small { flex: none; font: 600 10.5px var(--fn); color: #a89e92; white-space: nowrap; }
.app.desk .wh-win .wh-tl { grid-area: tl; display: flex; align-items: center; gap: 3px; min-width: 0; }
.app.desk .wh-win .wh-tl > i { width: 21px; height: 19px; display: grid; place-items: center; border-radius: 5px; font: 700 9px/1 var(--fs); font-style: normal; color: #5d554e; background: #0f0e0d; box-shadow: inset 0 0 0 1px #2a2521; }
.app.desk .wh-win .wh-tl > i.on { color: color-mix(in srgb, var(--c) 45%, #f3d68e); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, #4a3f2e); }
.app.desk .wh-win .wh-tl > i.cur { color: #1c1408; background: linear-gradient(180deg, #d6bd78, #a98c4d); box-shadow: 0 0 10px -3px rgba(231, 194, 106, .7); }
.app.desk .wh-win .wh-tl small { display: none; margin-left: 6px; font: 500 10.5px var(--fb); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app.desk .wh-win .wh-sts { grid-area: sts; display: flex; align-items: center; gap: 6px; min-width: 0; align-self: end; }
.app.desk .wh-win .wh-sts > span { display: grid; gap: 4px; padding: 5px 9px 6px; border-radius: 10px; background: rgba(10, 9, 8, .55); box-shadow: inset 0 0 0 1px #2a2521; min-width: 0; }
.app.desk .wh-win .wh-sts small { font: 700 8px/1 var(--fs); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.app.desk .wh-win .wh-sts b { font: 700 15px/1 var(--fn); color: #e9dfcf; }
.app.desk .wh-win .wh-sts b.ok { color: #8fe07f; }
.app.desk .wh-win .wh-qw { flex: 1; }
.app.desk .wh-win .wh-qs { display: flex; gap: 4px; }
.app.desk .wh-win .wh-q { position: relative; width: 26px; height: 26px; flex: none; border-radius: 7px; border: 1px dashed #4a4030; font-style: normal; }
.app.desk .wh-win .wh-q.full { border: 0; }
.app.desk .wh-win .wh-q .wh-q-ic { width: 26px; height: 26px; }
.app.desk .wh-win .wh-q.oth { opacity: .4; }
.app.desk .wh-win .wh-q.run::after { content: ''; position: absolute; left: 1px; right: 1px; bottom: -4px; height: 2px; border-radius: 1px; background: var(--gold); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); box-shadow: 0 0 6px rgba(231, 194, 106, .7); }
.app.desk .wh-win .wh-open { grid-area: open; align-self: end; display: none; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 14px; border-radius: 15px; white-space: nowrap;
  font: 700 12px var(--fb); color: #1c1408; background: linear-gradient(180deg, #d6bd78, #a98c4d); box-shadow: 0 0 0 1.5px #0b0a0a, inset 0 1px 0 rgba(255, 248, 225, .5); }
.app.desk .wh-win .wh-open .ic { font-size: 9px; transition: transform .2s var(--spring); }
.app.desk .wh-win .wh-card:hover .wh-open .ic { transform: translateX(3px); }
.app.desk .wh-win .wh-card.off .wh-open { color: var(--dim); background: #221e1a; box-shadow: 0 0 0 1.5px #0b0a0a, inset 0 0 0 1px #3a332b; }
.app.desk .wh-win .wh-card.off .wh-open .ic { font-size: 10px; }

/* altıncı hücre: özet */
.app.desk .wh-win .wh-sum { position: relative; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 9px; padding: 12px 14px; border-radius: 16px;
  background: radial-gradient(120% 90% at 100% 0%, rgba(231, 194, 106, .07), transparent 60%), linear-gradient(180deg, #1a1714, #121010);
  box-shadow: 0 0 0 1.5px #0b0a0a, inset 0 0 0 1px #2e2820; animation: whIn .45s var(--spring) both; animation-delay: .25s; }
.app.desk .wh-win .wh-sum-h { display: grid; gap: 4px; }
.app.desk .wh-win .wh-sum-h small, .app.desk .wh-win .wh-sum-r > small { font: 700 8.5px/1 var(--fs); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.app.desk .wh-win .wh-sum-h b { font: 700 15px/1.15 var(--fs); color: #f1e6cc; }
.app.desk .wh-win .wh-sum-h b em { font-style: normal; color: var(--gold); }
.app.desk .wh-win .wh-sum-r { display: grid; gap: 6px; }
.app.desk .wh-win .wh-sum-t { display: none; gap: 2px; }
.app.desk .wh-win .wh-sum-t > span { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto 38px; align-items: center; gap: 10px; height: 30px; padding: 0 10px; border-radius: 8px; }
.app.desk .wh-win .wh-sum-t > span:nth-child(odd) { background: rgba(255, 255, 255, .02); }
.app.desk .wh-win .wh-sum-t i { width: 7px; height: 7px; border-radius: 50%; background: #3a332b; }
.app.desk .wh-win .wh-sum-t .busy i { background: #5fd36f; box-shadow: 0 0 6px #5fd36f; }
.app.desk .wh-win .wh-sum-t b { font: 600 12.5px var(--fb); color: #e2d8c6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app.desk .wh-win .wh-sum-t small { font: 600 11px var(--fn); color: var(--muted); }
.app.desk .wh-win .wh-sum-t em { justify-self: end; font: 700 11.5px var(--fn); font-style: normal; color: var(--dim); }
.app.desk .wh-win .wh-sum-t .busy em { color: #8fe07f; }
.app.desk .wh-win .wh-sum-r > small b { color: var(--gold); font-family: var(--fn); letter-spacing: 0; }
.app.desk .wh-win .wh-rk { display: flex; flex-wrap: wrap; gap: 5px; min-height: 30px; align-items: center; }
.app.desk .wh-win .wh-rk .wh-rk-ic { width: 30px; height: 30px; }
.app.desk .wh-win .wh-rk em { font: 600 10.5px var(--fn); font-style: normal; color: var(--muted); padding: 2px 6px; border-radius: 6px; box-shadow: inset 0 0 0 1px #3a332b; }
.app.desk .wh-win .wh-rk em.wh-none { font-family: var(--fb); color: var(--dim); box-shadow: none; padding: 0; }
.app.desk .wh-win .wh-hint { margin: auto 0 0; font: 400 11px/1.45 var(--fb); color: #8f867d; }
.app.desk .wh-win .wh-hint b { color: #e0d2b4; font-weight: 600; }

/* geniş pencere (1920): kartlar dikey ve ferah */
@container whw (min-width: 1000px) {
  .app.desk .wh-win .wh-card { grid-template-rows: auto minmax(0, 1fr); gap: 12px 16px; padding: 18px 20px; }
  .app.desk .wh-win .wh-med { --m: 92px; }
  .app.desk .wh-win .wh-med b { font-size: 12.5px; height: 19px; min-width: 26px; }
  .app.desk .wh-win .wh-kick { font-size: 9.5px; }
  .app.desk .wh-win .wh-nm { font-size: 25px; }
  .app.desk .wh-win .wh-tag { font-size: 13px; }
  .app.desk .wh-win .wh-it { width: 44px; height: 44px; }
  .app.desk .wh-win .wh-flow { gap: 6px; margin-top: 6px; }
  .app.desk .wh-win .wh-flow small { font-size: 12px; }
  .app.desk .wh-win .wh-pc { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr); grid-template-areas: "xp" "tl" "sts" "open"; gap: 12px; padding-top: 14px; }
  .app.desk .wh-win .wh-xpl small { font-size: 12px; }
  .app.desk .wh-win .wh-xpb { height: 6px; }
  .app.desk .wh-win .wh-tl > i { width: 30px; height: 26px; font-size: 11px; border-radius: 7px; }
  .app.desk .wh-win .wh-tl small { display: block; font-size: 11.5px; }
  .app.desk .wh-win .wh-sts { align-self: start; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .app.desk .wh-win .wh-qw { grid-column: 1 / -1; }
  .app.desk .wh-win .wh-sts > span { padding: 9px 12px 10px; gap: 7px; border-radius: 12px; }
  .app.desk .wh-win .wh-sts small { font-size: 9px; }
  .app.desk .wh-win .wh-sts b { font-size: 20px; }
  .app.desk .wh-win .wh-qs { gap: 8px; }
  .app.desk .wh-win .wh-q, .app.desk .wh-win .wh-q .wh-q-ic { width: 44px; height: 44px; border-radius: 9px; }
  .app.desk .wh-win .wh-go { display: none; }
  .app.desk .wh-win .wh-open { display: inline-flex; justify-self: stretch; justify-content: center; height: 40px; border-radius: 12px; font-size: 14px; }
  .app.desk .wh-win .wh-sum { padding: 18px 20px; gap: 14px; }
  .app.desk .wh-win .wh-sum-t { display: grid; }
  .app.desk .wh-win .wh-sum-h b { font-size: 20px; }
  .app.desk .wh-win .wh-rk .wh-rk-ic { width: 40px; height: 40px; }
  .app.desk .wh-win .wh-hint { font-size: 12.5px; }
}

/* =====================================================================
   Tezgâh (openShop)
   ===================================================================== */
.app.desk .ws-win { container: wsw / inline-size; }
.app.desk .ws-win:not(.ws-bench-on) > .sh-body { container: wsb / inline-size; display: grid; overflow: hidden; padding: 0 20px 18px; gap: 10px 14px;
  grid-template-columns: 252px minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto;
  grid-template-areas: "prof prof" "ctl bench" "list bench" "list bot"; }
.app.desk .ws-win:not(.ws-bench-on) > .sh-body > .ws-prof { grid-area: prof; }
.app.desk .ws-win:not(.ws-bench-on) > .sh-body > .ws-ctl { grid-area: ctl; }
.app.desk .ws-win:not(.ws-bench-on) > .sh-body > .ws-strip { grid-area: list; }
.app.desk .ws-win:not(.ws-bench-on) > .sh-body > .ws-bench { grid-area: bench; }
.app.desk .ws-win:not(.ws-bench-on) > .sh-body > .ws-bot { grid-area: bot; }
@container wsw (min-width: 1100px) {
  .app.desk .ws-win:not(.ws-bench-on) > .sh-body { grid-template-columns: 300px minmax(0, 1fr) 300px; grid-template-rows: auto auto minmax(0, 1fr);
    grid-template-areas: "prof prof prof" "ctl bench bot" "list bench bot"; gap: 12px 16px; padding: 0 20px 20px; }
}

/* meslek şeridi: seviye, usta, XP */
.app.desk .ws-win .ws-prof { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; padding: 8px 14px; border-radius: 12px;
  background: linear-gradient(90deg, rgba(231, 194, 106, .08), rgba(231, 194, 106, .01) 60%), #131110; box-shadow: 0 0 0 1px #0b0a0a, inset 0 0 0 1px #2a2521; }
.app.desk .ws-win .ws-pr1 { justify-content: flex-start; align-items: baseline; gap: 12px; }
.app.desk .ws-win .ws-pr1 b { font-size: 11.5px; }
.app.desk .ws-win .ws-pr1 small { font-size: 11.5px; }
.app.desk .ws-win .ws-xp { height: 6px; background: #0d0c0b; box-shadow: inset 0 0 0 1px #2a2521; }

/* kademe ve İşleme / Üretim */
.app.desk .ws-win .ws-ctl { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.app.desk .ws-win .ws-tiers button, .app.desk .ws-win .ws-seg button { height: 38px; }
.app.desk .ws-win .ws-tiers button b { font-size: 14px; }
.app.desk .ws-win .ws-tiers button small { font-size: 8.5px; }
.app.desk .ws-win .ws-tiers button:not(.on):hover, .app.desk .ws-win .ws-seg button:not(.on):hover { color: #f2ead8; }
.app.desk .ws-win .ws-seg button { height: 32px; font-size: 12.5px; }

/* tarif listesi */
.app.desk .ws-win .ws-strip { min-height: 0; flex-direction: column; align-items: stretch; gap: 2px; overflow-x: hidden; overflow-y: auto; scroll-snap-type: none; padding: 5px;
  border-radius: 14px; background: #131110; box-shadow: 0 0 0 1px #0b0a0a, inset 0 0 0 1px #2a2521; scrollbar-width: thin; scrollbar-color: #3a332b transparent; }
.app.desk .ws-win .ws-strip::-webkit-scrollbar { display: block; width: 6px; }
.app.desk .ws-win .ws-strip::-webkit-scrollbar-thumb { background: #3a332b; border-radius: 3px; }
.app.desk .ws-win .ws-rcat { writing-mode: horizontal-tb; rotate: none; align-self: stretch; display: flex; align-items: center; gap: 8px; padding: 9px 7px 4px; border: 0;
  font: 700 9px/1 var(--fs); letter-spacing: .16em; color: #8a7a5c; }
.app.desk .ws-win .ws-rcat::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, #3a3124, transparent); }
.app.desk .ws-win .ws-rcat:first-child { padding-top: 4px; }
.app.desk .ws-win .ws-rt { width: auto; flex: none; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "ic nm n" "ic in in";
  justify-items: stretch; align-items: center; gap: 3px 10px; padding: 6px 8px 6px 6px; border-radius: 10px; text-align: left; scroll-snap-align: none;
  background: none; box-shadow: none; transition: transform .15s var(--spring); }
.app.desk .ws-win .ws-rt:hover { background: #1d1a17; }
.app.desk .ws-win .ws-rt:active { transform: scale(.98); }
.app.desk .ws-win .ws-rt.on { background: linear-gradient(90deg, rgba(231, 194, 106, .16), rgba(231, 194, 106, .03)); box-shadow: inset 2px 0 0 var(--gold), inset 0 0 0 1px rgba(231, 194, 106, .24); }
.app.desk .ws-win .ws-rt .ws-rt-ic { grid-area: ic; width: 40px; height: 40px; align-self: center; }
.app.desk .ws-win .ws-rt b { grid-area: nm; font: 600 12.5px/1.15 var(--fb); text-align: left; }
.app.desk .ws-win .ws-rt .ws-rc-n { grid-area: n; justify-self: end; font-size: 11px; }
.app.desk .ws-win .ws-rt-in { grid-area: in; display: flex; flex-wrap: wrap; gap: 2px 8px; min-width: 0; }
.app.desk .ws-win .ws-rt-in em { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; font: 500 10.5px/1.25 var(--fb); font-style: normal; color: #9d948a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app.desk .ws-win .ws-rt-in u { text-decoration: none; padding: 0 4px; border-radius: 4px; font: 700 9.5px/1.35 var(--fn); background: #0d0c0b; }
.app.desk .ws-win .ws-rt-in em.ok u { color: #8fe07f; box-shadow: inset 0 0 0 1px rgba(143, 224, 127, .3); }
.app.desk .ws-win .ws-rt-in em.no u { color: #ff8a78; box-shadow: inset 0 0 0 1px rgba(255, 138, 120, .28); }
.app.desk .ws-win .ws-rt-m { grid-area: m; font: 500 10px var(--fn); color: var(--dim); white-space: nowrap; }
.app.desk .ws-win .ws-strip.lock { flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 12px; padding: 20px 16px; }
.app.desk .ws-win .ws-strip.lock .ws-lk { width: 48px; height: 48px; font-size: 19px; }

/* tezgâh: seçili tarif */
.app.desk .ws-win .ws-bench { container: wsbn / inline-size; min-height: 0; gap: 10px; padding: 14px 16px 14px; border-radius: 16px; overflow: hidden;
  background: radial-gradient(80% 55% at 50% 30%, rgba(231, 160, 80, .07), transparent 70%), linear-gradient(180deg, #181513, #111010);
  box-shadow: 0 0 0 1px #0b0a0a, inset 0 0 0 1px #2e2820, inset 0 1px 0 rgba(255, 236, 200, .05); }
.app.desk .ws-win .ws-bench:empty { display: grid; place-items: center; }
.app.desk .ws-win .ws-bench:empty::before { content: 'Soldan bir tarif seç'; font: 500 12px var(--fb); color: var(--dim); }
html[lang=en] .app.desk .ws-win .ws-bench:empty::before { content: 'Pick a recipe on the left'; }
.app.desk .ws-win .ws-bt { text-align: left; gap: 4px; padding-bottom: 9px; border-bottom: 1px solid #262119; }
.app.desk .ws-win .ws-bt b { font: 700 20px/1.1 var(--fs); letter-spacing: .02em; }
.app.desk .ws-win .ws-bt small { display: block; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* sahne: malzemeler → ürün */
.app.desk .ws-win .ws-bench .ws-stage { flex: 1 1 auto; min-height: 104px; flex-direction: row; gap: 18px; border-radius: 14px; overflow: hidden;
  background: radial-gradient(50% 70% at 72% 55%, rgba(231, 194, 106, .08), transparent 70%), repeating-linear-gradient(90deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 22px); }
.app.desk .ws-win .ws-bench .ws-socks { gap: 10px; }
.app.desk .ws-win .ws-bench .ws-sock { width: 92px; flex-direction: column; gap: 5px; padding: 8px 5px 8px; transition: transform .18s var(--spring); }
.app.desk .ws-win .ws-bench .ws-sock:hover { transform: translateY(-2px); }
.app.desk .ws-win .ws-bench .ws-sock .ws-sock-ic { width: min(46px, 38cqh); height: min(46px, 38cqh); }
.app.desk .ws-win .ws-bench .ws-sock small { display: block; font-size: 10.5px; max-width: 100%; }
.app.desk .ws-win .ws-bench .ws-sock b { padding: 2px 7px; font-size: 10.5px; }
.app.desk .ws-win .ws-bench .ws-flow { font-size: 11px; }
.app.desk .ws-win .ws-bench .ws-prod { width: min(112px, 84cqh); }
.app.desk .ws-win .ws-bench .ws-ring.a { display: none; }
.app.desk .ws-win .ws-bench .ws-ring.b { display: block; width: 128%; }

/* nadirlik formu */
.app.desk .ws-win .ws-panel { gap: 7px; padding: 10px 12px 11px; border-radius: 14px; }
.app.desk .ws-win .ws-ph { min-height: 24px; }
.app.desk .ws-win .ws-ph + .ws-ph, .app.desk .ws-win .ws-pk + .ws-ph, .app.desk .ws-win .ws-pk-fix + .ws-ph { margin-top: 1px; padding-top: 7px; }
.app.desk .ws-win .ws-pk { gap: 6px; }
.app.desk .ws-win .ws-pk-r { gap: 4px; padding: 5px 5px 5px; transition: opacity .2s; }
.app.desk .ws-win .ws-pk-r button { width: 24px; height: 22px; }
.app.desk .ws-win .ws-pk-r button:not(:disabled):hover { color: var(--gold); box-shadow: inset 0 0 0 1px #6d5e3b; }
.app.desk .ws-win .ws-reset { height: 24px; }
.app.desk .ws-win .ws-reset:hover { color: var(--gold); }
.app.desk .ws-win .ws-dist { height: 7px; }

/* özet ve sipariş */
.app.desk .ws-win .ws-bench .ws-info { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.app.desk .ws-win .ws-bench .ws-info > span { display: grid; justify-items: start; gap: 4px; padding: 6px 10px 7px; border-radius: 10px; background: #121110; box-shadow: inset 0 0 0 1px #24201c; }
.app.desk .ws-win .ws-bench .ws-info small { font-size: 8.5px; letter-spacing: .1em; }
.app.desk .ws-win .ws-bench .ws-info b { font-size: 13px; }
.app.desk .ws-win .ws-bench .ws-pill { grid-template-columns: minmax(0, .9fr) auto minmax(0, 1.4fr); gap: 8px; padding: 6px; border-radius: 14px; }
.app.desk .ws-win .ws-bench .ws-step, .app.desk .ws-win .ws-bench .ws-maxb { border-radius: 10px; }
.app.desk .ws-win .ws-bench .ws-step button { height: 32px; min-width: 32px; border-radius: 8px; }
.app.desk .ws-win .ws-bench .ws-maxb { height: 36px; padding: 0 11px; font-size: 11.5px; }
.app.desk .ws-win .ws-bench .ws-go { height: 38px; border-radius: 10px; font-size: 14.5px; }
.app.desk .ws-win .ws-bench .ws-step button:not(:disabled):hover, .app.desk .ws-win .ws-bench .ws-maxb:not(:disabled):hover { color: var(--gold); }
.app.desk .ws-win .ws-bench .ws-go:not(:disabled):hover { filter: brightness(1.08); }
.app.desk .ws-win .ws-bench .ws-go:not(:disabled):active { transform: scale(.98); }

/* Sıra ve Teslim Rafı (dar: tezgâhın altında yan yana) */
.app.desk .ws-win .ws-bot { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px; }
.app.desk .ws-win .ws-box { align-content: start; gap: 7px; padding: 9px 11px 10px; border-radius: 14px; background: #131110; box-shadow: 0 0 0 1px #0b0a0a, inset 0 0 0 1px #2a2521; }
.app.desk .ws-win .ws-sec b { font-size: 9.5px; letter-spacing: .14em; }
.app.desk .ws-win .ws-take { height: 24px; padding: 0 10px; transition: transform .15s; }
.app.desk .ws-win .ws-take:hover { filter: brightness(1.08); }
.app.desk .ws-win .ws-take:active { transform: scale(.96); }
.app.desk .ws-win .ws-queue, .app.desk .ws-win .ws-rack { gap: 10px; min-height: 48px; }
.app.desk .ws-win .ws-q .ws-q-ic, .app.desk .ws-win .ws-q.empty > i, .app.desk .ws-win .ws-rack .ws-rk { width: 34px; height: 34px; }
.app.desk .ws-win .ws-q.run::before { width: 40px; height: 40px; }
.app.desk .ws-win .ws-q-x { transition: transform .15s; }
.app.desk .ws-win .ws-q-x:hover { transform: scale(1.15); color: #ff8a78; }
.app.desk .ws-win .ws-rack .ws-rk { transition: transform .15s var(--spring); }
.app.desk .ws-win .ws-rack .ws-rk:hover { transform: translateY(-2px); }

/* geniş pencere (1920): tezgâh iki sütun, Sıra ve Raf sağ sütunda ayrıntılı */
@container wsw (min-width: 1100px) {
  .app.desk .ws-win .ws-prof { padding: 10px 16px; }
  .app.desk .ws-win .ws-pr1 b, .app.desk .ws-win .ws-pr1 small { font-size: 12.5px; }
  .app.desk .ws-win .ws-tiers button { height: 44px; }
  .app.desk .ws-win .ws-tiers button b { font-size: 16px; }
  .app.desk .ws-win .ws-rt { grid-template-columns: 46px minmax(0, 1fr) auto; grid-template-areas: "ic nm n" "ic in in" "ic m m"; padding: 8px 10px 8px 8px; gap: 3px 12px; }
  .app.desk .ws-win .ws-rt .ws-rt-ic { width: 46px; height: 46px; }
  .app.desk .ws-win .ws-rt b { font-size: 14px; }
  .app.desk .ws-win .ws-rt-m { display: block; }
  .app.desk .ws-win .ws-rt-in em { font-size: 11.5px; }
  .app.desk .ws-win .ws-rt-in u { font-size: 10.5px; }

  .app.desk .ws-win .ws-bench { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto auto;
    grid-template-areas: "bt bt" "stage stage" "panel odds" "info info" "pill pill"; gap: 14px 16px; padding: 22px 24px; }
  .app.desk .ws-win .ws-odds { grid-area: odds; display: grid; align-content: start; gap: 6px; padding: 14px 16px 16px; border-radius: 16px;
    background: linear-gradient(180deg, #161412, #111010); box-shadow: 0 0 0 1px #0b0a0a, inset 0 0 0 1px #2a2521; }
  .app.desk .ws-win .ws-odds .ws-sec { margin-bottom: 2px; }
  .app.desk .ws-win .ws-od { position: relative; display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 104px; align-items: center; gap: 10px; height: 34px; padding: 0 12px 0 10px;
    border-radius: 9px; background: #0f0e0d; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 22%, #24201c); overflow: hidden; }
  .app.desk .ws-win .ws-od .qd { position: relative; left: auto; top: auto; margin: 0; width: 9px; height: 9px; }
  .app.desk .ws-win .ws-od b { font: 600 12.5px var(--fb); color: var(--c); white-space: nowrap; }
  .app.desk .ws-win .ws-od em { font: 700 13px var(--fn); font-style: normal; color: #efe6d6; }
  .app.desk .ws-win .ws-od small { justify-self: end; font: 600 11px var(--fn); color: #a89e92; white-space: nowrap; }
  .app.desk .ws-win .ws-od > i { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--c); transform-origin: 0 50%; transform: scaleX(var(--w)); opacity: .85; transition: transform .35s var(--ease); }
  .app.desk .ws-win .ws-od.z { opacity: .45; }
  .app.desk .ws-win .ws-bt { grid-area: bt; padding-bottom: 14px; }
  .app.desk .ws-win .ws-bt b { font-size: 28px; }
  .app.desk .ws-win .ws-bt small { font-size: 13px; }
  .app.desk .ws-win .ws-bench .ws-stage { grid-area: stage; gap: 36px; min-height: 220px; }
  .app.desk .ws-win .ws-bench .ws-socks { gap: 16px; }
  .app.desk .ws-win .ws-bench .ws-sock { width: 140px; padding: 14px 8px; gap: 9px; border-radius: 16px; }
  .app.desk .ws-win .ws-bench .ws-sock .ws-sock-ic { width: min(76px, 34cqh); height: min(76px, 34cqh); }
  .app.desk .ws-win .ws-bench .ws-sock small { font-size: 12px; }
  .app.desk .ws-win .ws-bench .ws-sock b { font-size: 12px; padding: 3px 9px; }
  .app.desk .ws-win .ws-bench .ws-flow { font-size: 15px; }
  .app.desk .ws-win .ws-bench .ws-prod { width: min(230px, 60cqh); }
  .app.desk .ws-win .ws-bench .ws-ring.a { display: block; width: 168%; }
  .app.desk .ws-win .ws-bench .ws-ring.b { width: 134%; }
  .app.desk .ws-win .ws-panel { grid-area: panel; align-self: stretch; align-content: start; gap: 10px; padding: 14px 16px 16px; }
  .app.desk .ws-win .ws-ph b { font-size: 15px; }
  .app.desk .ws-win .ws-pk-r { padding: 8px 6px; gap: 7px; }
  .app.desk .ws-win .ws-pk-r small { font-size: 11px; }
  .app.desk .ws-win .ws-pk-r b { font-size: 15px; }
  .app.desk .ws-win .ws-pk-r button { width: 28px; height: 26px; }
  .app.desk .ws-win .ws-dist { height: 9px; }
  .app.desk .ws-win .ws-bench .ws-info { grid-area: info; align-self: stretch; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .app.desk .ws-win .ws-bench .ws-info > span { padding: 9px 14px 10px; gap: 6px; border-radius: 12px; }
  .app.desk .ws-win .ws-bench .ws-info small { font-size: 9.5px; }
  .app.desk .ws-win .ws-bench .ws-info b { font-size: 16px; }
  .app.desk .ws-win .ws-bench .ws-pill { grid-area: pill; grid-template-columns: minmax(0, .8fr) auto minmax(0, 1.6fr); padding: 8px; border-radius: 16px; }
  .app.desk .ws-win .ws-bench .ws-go { height: 46px; border-radius: 12px; font-size: 17px; }
  .app.desk .ws-win .ws-bench .ws-step button, .app.desk .ws-win .ws-bench .ws-maxb { height: 40px; min-width: 40px; }
  .app.desk .ws-win .ws-bench .ws-step b { font-size: 19px; }
  .app.desk .ws-win .ws-bench .ws-maxb { font-size: 12.5px; padding: 0 14px; }

  /* sağ sütun */
  .app.desk .ws-win .ws-bot { min-height: 0; display: flex; flex-direction: column; gap: 12px; }
  .app.desk .ws-win .ws-box { padding: 12px 12px 12px; gap: 10px; }
  .app.desk .ws-win .ws-box:last-child { flex: 1; min-height: 0; overflow: hidden; }
  .app.desk .ws-win .ws-sec b { font-size: 10.5px; }
  .app.desk .ws-win .ws-sec small { font-size: 11.5px; }
  .app.desk .ws-win .ws-take { height: 28px; padding: 0 12px; font-size: 11.5px; border-radius: 8px; }
  .app.desk .ws-win .ws-queue { display: grid; gap: 6px; align-items: stretch; }
  .app.desk .ws-win .ws-q { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; grid-template-areas: "ic tx t"; align-items: center; justify-items: start; gap: 10px;
    min-height: 58px; padding: 8px 34px 8px 8px; border-radius: 12px; background: #0f0e0d; box-shadow: inset 0 0 0 1px #24201c; overflow: hidden; }
  .app.desk .ws-win .ws-q.run { background: linear-gradient(90deg, rgba(231, 194, 106, .1), rgba(231, 194, 106, .02)); box-shadow: inset 0 0 0 1px rgba(231, 194, 106, .3); }
  .app.desk .ws-win .ws-q.run:hover { box-shadow: inset 0 0 0 1px rgba(231, 194, 106, .55); }
  .app.desk .ws-win .ws-q .ws-q-ic, .app.desk .ws-win .ws-q.empty > i { grid-area: ic; width: 40px; height: 40px; }
  .app.desk .ws-win .ws-q.run::before { left: 5px; top: calc(50% - 23px); width: 46px; height: 46px; }
  .app.desk .ws-win .ws-q-tx { grid-area: tx; display: grid; gap: 3px; min-width: 0; width: 100%; }
  .app.desk .ws-win .ws-q-tx b { font: 600 12.5px/1.15 var(--fb); color: #ece3d2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .app.desk .ws-win .ws-q-tx em { font: 500 11px/1.2 var(--fb); font-style: normal; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .app.desk .ws-win .ws-q-tx em i { font-style: normal; font-weight: 600; }
  .app.desk .ws-win .ws-q.empty .ws-q-tx em { color: var(--dim); }
  .app.desk .ws-win .ws-q small { grid-area: t; font: 700 11.5px var(--fn); color: #e6dccb; }
  .app.desk .ws-win .ws-q.run small { color: var(--gold); }
  .app.desk .ws-win .ws-q-x { right: 8px; top: calc(50% - 11px); width: 22px; height: 22px; font-size: 9px; }
  .app.desk .ws-win .ws-q.run .ws-q-bar { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform-origin: 0 50%;
    transform: scaleX(var(--p, 0)); box-shadow: 0 0 8px rgba(231, 194, 106, .7); }
  .app.desk .ws-win .ws-rack { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); align-content: start; justify-items: center; gap: 8px; }
  .app.desk .ws-win .ws-rack .ws-rk { width: 46px; height: 46px; }
  .app.desk .ws-win .ws-rack .ws-empty { grid-column: 1 / -1; justify-self: start; font-size: 11.5px; }
  .app.desk .ws-win .ws-more { align-self: center; }
}

/* üretim ekranı (sıradaki ilk siparişe tıklayınca): ortada, ölçülü */
.app.desk .ws-win.ws-bench-on > .sh-body { padding: 18px 24px 20px; gap: 12px; overflow: hidden; }
.app.desk .ws-win.ws-bench-on .fg-stage { min-height: 200px; border-radius: 18px;
  background: radial-gradient(50% 55% at 50% 72%, rgba(231, 150, 70, .16), transparent 70%), linear-gradient(180deg, #161312, #0f0e0d); box-shadow: inset 0 0 0 1px #2a2521; }
.app.desk .ws-win.ws-bench-on .fg-foot { justify-content: center; margin-top: 14px; }
.app.desk .ws-win.ws-bench-on > .sh-body { justify-content: center; }
.app.desk .ws-win.ws-bench-on > .sh-body > .ws-btop { position: absolute; left: 24px; right: 24px; top: 18px; }
.app.desk .ws-win.ws-bench-on .fg-stage { flex: 0 1 auto; width: min(100%, 760px); height: min(56vh, 460px); align-self: center; }
.app.desk .ws-win.ws-bench-on .fg-tool { width: min(320px, 70%); }
.app.desk .ws-win.ws-bench-on .fg-item .fg-ic { width: min(140px, 16vh); height: min(140px, 16vh); }
.app.desk .ws-win.ws-bench-on .ws-title { font-family: var(--fs); }
.app.desk .ws-win.ws-bench-on .ws-x:hover { color: var(--gold); }
