/* Pist Tasarlayıcı (views/track/editor.php, assets/js/pist/*). Sitenin tokenlarını kullanır; açık ve koyu temada çalışır.
 * Yerleşim: üstte HUD araç çubuğu · solda karo palet · ortada tuval · sağda özellik paneli · altta ölçü/uyarı çubuğu.
 * 860 px altında palet + panel tek bir alt çekmecede (bottom sheet). Kırmızı yalnız zemin/kenarlıkta (küçük yazı kırmızı değil). */
.pt-page .site-main > .container { max-width: none; padding-left: 12px; padding-right: 12px; }
.pt-app {
  --pt-left: 252px; --pt-right: 330px;
  --pt-on: #4272b4; --pt-line: #0e9fd8; --pt-go: #13794a;
  --pt-glow: 0 0 0 1px rgba(255, 255, 255, .18) inset, 0 6px 18px -4px rgba(66, 114, 180, .75);
  display: flex; flex-direction: column; margin: 4px 0 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden;
}
.pt-app button { font-family: var(--font-body); }
.pt-app code { font-size: 12px; padding: 0 4px; border-radius: 4px; background: var(--soft); }
.pt-app svg { flex: 0 0 auto; }
.pt-crumbs { display: flex; gap: 6px; align-items: center; margin: 10px 2px 4px; font: 600 12.5px var(--font-body); color: var(--muted); }
.pt-crumbs a { color: var(--accent); }

/* ---------------------------------------------------------------- HUD */
.pt-hud { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--soft), var(--surface)); }
.pt-hud-id { display: flex; align-items: center; gap: 4px; min-width: 0; }
.pt-back { display: inline-grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; color: var(--muted); }
.pt-back:hover { background: var(--soft); color: var(--heading); }
.pt-back .icon { width: 16px; height: 16px; }
.pt-title { display: flex; flex-direction: column; min-width: 0; }
.pt-name { width: 100%; min-width: 100px; max-width: 320px; height: 30px; padding: 0 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; font: 800 16px var(--font-head); color: var(--heading); }
.pt-name:hover, .pt-name:focus { border-color: var(--line-strong); background: var(--surface); outline: none; }
.pt-badge { padding: 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 11.5px var(--font-body); color: var(--muted); }
.pt-hud-tools { display: flex; align-items: center; gap: 6px; }
.pt-hgroup { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.pt-hb { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; width: 54px; height: 50px; padding: 0; border: 0; border-radius: 11px; background: none; color: var(--muted); font: 700 10.5px/1 var(--font-body); cursor: pointer; transition: background .15s, color .15s, box-shadow .2s, transform .12s; }
.pt-hb svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pt-hb span { white-space: nowrap; }
.pt-hb b { font-weight: 800; }
.pt-hb .pt-hb-ic { display: contents; }
.pt-hb:hover { background: var(--soft); color: var(--heading); }
.pt-hb:active { transform: scale(.94); }
.pt-hb:disabled { opacity: .35; cursor: default; background: none; color: var(--muted); transform: none; }
.pt-hb.is-small { width: 50px; }
/* araçlar (mod) parlıyor; aç/kapa düğmeleri yumuşak işaretli */
.pt-hb[data-pt-mod][aria-pressed="true"] { background: var(--pt-on); color: #fff; box-shadow: var(--pt-glow); }
.pt-hb.is-line[aria-pressed="true"] { background: var(--pt-line); box-shadow: 0 0 0 1px rgba(255, 255, 255, .18) inset, 0 6px 18px -4px rgba(14, 159, 216, .8); }
.pt-hb.is-go[aria-pressed="true"] { background: var(--pt-go); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18) inset, 0 6px 18px -4px rgba(19, 121, 74, .85); }
.pt-hb[data-pt-cmd][aria-pressed="true"]:not(.is-go) { background: var(--accent-soft); color: var(--accent-dark); }
.pt-hb[data-pt-cmd][aria-pressed="true"]:not(.is-go)::after { content: ""; position: absolute; top: 5px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.pt-hb[data-pt-cmd="ses"][aria-pressed="true"]::after { display: none; }
.pt-hud-file { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }

.pt-b, .pt-ib { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--heading); font: 700 13px var(--font-body); cursor: pointer; white-space: nowrap; list-style: none; transition: border-color .15s, color .15s, background .15s, transform .12s; }
.pt-b svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pt-ib { width: 36px; padding: 0; font-size: 18px; }
.pt-b:hover, .pt-ib:hover { border-color: var(--accent); color: var(--accent); }
.pt-b:active, .pt-ib:active { transform: scale(.96); }
.pt-b:disabled, .pt-ib:disabled { opacity: .4; cursor: default; border-color: var(--line); color: var(--muted); }
.pt-b.is-primary { background: var(--btn); border-color: var(--btn); color: #fff; }
.pt-b.is-primary:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: #fff; }
.pt-b.is-go { background: var(--pt-go); border-color: var(--pt-go); color: #fff; }
.pt-b.is-go:hover { filter: brightness(1.08); color: #fff; }
.pt-b::-webkit-details-marker { display: none; }
.pt-menu { position: relative; }
.pt-menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; display: grid; min-width: 230px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-hover); }
.pt-menu-list button { padding: 9px 10px; border: 0; border-radius: 8px; background: none; text-align: left; font: 600 13.5px var(--font-body); color: var(--heading); cursor: pointer; }
.pt-menu-list button:hover { background: var(--soft); }

.pt-seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); gap: 2px; }
.pt-seg button { height: 28px; padding: 0 11px; border: 0; border-radius: 7px; background: none; color: var(--muted); font: 700 12.5px var(--font-body); cursor: pointer; }
.pt-seg button[aria-pressed="true"] { background: var(--pt-on); color: #fff; }

/* ---------------------------------------------------------------- gövde (masaüstü: üç sütun) */
.pt-body { display: grid; grid-template-columns: var(--pt-left) minmax(0, 1fr) var(--pt-right); grid-template-areas: "left stage right"; height: clamp(500px, calc(100vh - var(--header-h, 64px) - 150px), 1100px); }
.pt-sheet { display: contents; }
.pt-sheet-grip, .pt-sheet-tabs { display: none; }
.pt-left { grid-area: left; }
.pt-right { grid-area: right; }
.pt-stage { grid-area: stage; }
.pt-left, .pt-right { display: flex; flex-direction: column; min-height: 0; background: var(--surface); }
.pt-left { border-right: 1px solid var(--line); }
.pt-right { border-left: 1px solid var(--line); }
.pt-tabs { display: flex; gap: 2px; padding: 6px 6px 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; flex: 0 0 auto; }
.pt-tabs button, .pt-sheet-tabs button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; padding: 8px 9px 9px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font: 700 12.5px var(--font-body); cursor: pointer; }
.pt-tabs button[aria-selected="true"], .pt-sheet-tabs button[aria-selected="true"] { color: var(--heading); border-bottom-color: var(--brand); }
.pt-palette, .pt-panel { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 10px; overscroll-behavior: contain; }
.pt-count:empty { display: none; }
.pt-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--soft); color: var(--muted); font: 800 11px/18px var(--font-body); text-align: center; }
.pt-count.is-err { background: var(--err); color: #fff; }
.pt-count.is-warn { background: #f5b400; color: #1d1d1d; }

/* ---------------------------------------------------------------- palet: arama + gruplu karolar */
.pt-pal-head { display: grid; gap: 8px; padding: 10px 10px 8px; border-bottom: 1px solid var(--line); }
.pt-search { position: relative; display: block; }
.pt-search .icon { position: absolute; left: 10px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.pt-search input { width: 100%; height: 36px; padding: 0 10px 0 31px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--soft); color: var(--heading); font: 600 13px var(--font-body); }
.pt-search input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); background: var(--surface); }
.pt-yon { display: flex; align-items: center; gap: 4px; font: 700 12px var(--font-body); color: var(--muted); }
.pt-yon span { margin-right: auto; }
.pt-yon button { height: 28px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--text); font: 700 12px var(--font-body); cursor: pointer; }
.pt-yon button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.pt-grp + .pt-grp { margin-top: 14px; }
.pt-grp-h { display: flex; align-items: center; gap: 6px; margin: 0 2px 7px; font: 800 11.5px var(--font-body); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.pt-grp-h::before { content: ""; width: 3px; height: 12px; border-radius: 2px; background: var(--grp, var(--brand)); }
.pt-grp-h small { margin-left: auto; font-weight: 700; letter-spacing: 0; text-transform: none; }
.pt-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.pt-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; padding: 7px 5px 8px; border: 1px solid var(--line); border-radius: 13px; background: var(--soft); color: var(--accent); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; transition: transform .16s var(--ease), box-shadow .16s, border-color .15s, background .15s; }
.pt-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); background: var(--surface); }
.pt-card:active { cursor: grabbing; }
.pt-card b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 12px var(--font-body); color: var(--heading); text-align: center; }
.pt-card small { font: 600 10.5px var(--font-body); color: var(--muted); }
.pt-card svg { --pt-card: var(--soft); pointer-events: none; }
.pt-card:hover svg { --pt-card: var(--surface); }
.pt-card.is-oge .pt-oge-ic { display: grid; place-items: center; width: 100%; height: 50px; }
.pt-card.is-oge .pt-oge-ic svg { width: 44px; height: 44px; }
.pt-card.is-on { border-color: var(--pt-on); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--pt-on) inset, 0 6px 16px -6px rgba(66, 114, 180, .7); }
.pt-card.is-on::after { content: "Yerleştir"; position: absolute; top: 5px; right: 5px; padding: 2px 6px; border-radius: 6px; background: var(--pt-on); color: #fff; font: 800 9.5px var(--font-body); }
.pt-card.is-lift { opacity: .45; transform: scale(.96); }
.pt-card.is-tik { animation: pt-tik .38s var(--ease); }
@keyframes pt-tik { 0% { transform: scale(1); } 35% { transform: scale(.9); } 70% { transform: scale(1.06); } 100% { transform: scale(1); } }
.pt-ghost { position: fixed; left: 0; top: 0; z-index: 1200; width: 110px; pointer-events: none; padding: 7px 5px 8px; border: 1px solid var(--accent); border-radius: 13px; background: var(--surface); color: var(--accent); box-shadow: var(--shadow-hover), 0 18px 40px -12px rgba(16, 24, 40, .45); display: flex; flex-direction: column; align-items: center; transform: translate(-50%, -50%) scale(1.08) rotate(-3deg); transition: opacity .12s, border-color .12s; }
.pt-ghost b { font: 700 12px var(--font-body); color: var(--heading); }
.pt-ghost svg { --pt-card: var(--surface); }
.pt-ghost.is-canvas { opacity: .25; }
.pt-ghost.is-snap { border-color: #46d989; box-shadow: 0 0 0 3px rgba(70, 217, 137, .35), var(--shadow-hover); }
.pt-empty-search { padding: 18px 6px; text-align: center; font: 600 13px var(--font-body); color: var(--muted); }
.pt-help { margin: 10px 2px 0; font: 500 12px/1.5 var(--font-body); color: var(--muted); }

/* ---------------------------------------------------------------- tuval ve tuval üstü */
.pt-stage { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: var(--soft); touch-action: none; }
.pt-stage canvas { display: block; cursor: default; touch-action: none; }
.pt-stage.is-hover canvas { cursor: pointer; }
.pt-stage.is-grab canvas { cursor: grabbing; }
.is-line-mode .pt-stage canvas, .is-placing .pt-stage canvas { cursor: crosshair; }
.pt-float { position: absolute; display: flex; gap: 6px; align-items: center; pointer-events: none; transition: bottom .25s var(--ease); }
.pt-float > * { pointer-events: auto; }
.pt-float-tl { left: 10px; top: 10px; flex-wrap: wrap; }
.pt-float-br { right: 10px; bottom: 10px; flex-direction: column; }
.pt-float .pt-ib { box-shadow: var(--shadow); border-radius: 12px; }
.pt-chip { height: 28px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--heading); font: 700 12px var(--font-body); cursor: pointer; box-shadow: var(--shadow); display: inline-flex; align-items: center; gap: 6px; }
.pt-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pt-on); }
.pt-chip[data-pt-quick="cizgi"]::before { background: var(--pt-line); }
.pt-chip[aria-pressed="false"] { opacity: .6; }
.pt-chip[aria-pressed="false"]::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.pt-toast { position: absolute; left: 50%; bottom: 14px; z-index: 6; transform: translate(-50%, 12px); max-width: min(92%, 520px); padding: 9px 14px; border-radius: 10px; background: #1d2330; color: #fff; font: 600 13px/1.4 var(--font-body); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s, bottom .25s var(--ease); box-shadow: var(--shadow-hover); }
.pt-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.pt-toast.is-warn { background: #8a5a00; }
.pt-toast.is-err { background: #9b1f17; }

/* test sürüşü göstergesi */
.pt-drive { position: absolute; left: 50%; top: 10px; z-index: 5; display: flex; flex-direction: column; gap: 6px; padding: 5px 6px; transform: translateX(-50%); border-radius: 18px; background: rgba(16, 22, 32, .9); color: #fff; font: 700 12.5px var(--font-body); box-shadow: var(--shadow-hover); max-width: calc(100% - 20px); width: max-content; }
.pt-drive[hidden] { display: none; }
.pt-drive-bar { display: flex; align-items: center; gap: 6px; padding-left: 6px; white-space: nowrap; min-width: 0; }
.pt-drive [data-pt-drive-info] { overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; min-width: 0; flex: 1 1 auto; }
.pt-drive button { flex: none; height: 26px; padding: 0 10px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font: 800 12px var(--font-body); cursor: pointer; }
.pt-drive button:hover, .pt-drive button[aria-expanded="true"] { background: rgba(255, 255, 255, .28); }
.pt-drive-panel { padding: 4px 6px 6px; border-top: 1px solid rgba(255, 255, 255, .12); max-height: 46vh; overflow: auto; }
.pt-drive-row { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 6px; font-weight: 700; }
.pt-drive select { height: 26px; max-width: 100%; border: 1px solid rgba(255, 255, 255, .22); border-radius: 8px; background: #1b2330; color: #fff; font: 600 12px var(--font-body); padding: 0 4px; }
.pt-drive-cars { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pt-drive-cars li { display: grid; grid-template-columns: 22px minmax(0, 1fr) minmax(0, 1.4fr); gap: 6px; align-items: center; }
.pt-drive-cars i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font: 800 10px var(--font-body); font-style: normal; color: #10151f; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25); }
.pt-drive-note { margin: 6px 0 0; color: rgba(255, 255, 255, .7); font-weight: 500; font-size: 11px; white-space: normal; }
.pt-drive-laps { border-collapse: collapse; font: 600 11.5px var(--font-body); font-variant-numeric: tabular-nums; margin: 0 4px 4px; }
.pt-drive-laps[hidden] { display: none; }
.pt-drive-laps th { color: rgba(255, 255, 255, .65); font-weight: 700; text-align: left; padding: 2px 6px; }
.pt-drive-laps td { padding: 2px 6px; border-top: 1px solid rgba(255, 255, 255, .08); white-space: nowrap; }
.pt-drive-laps td i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.pt-drive-laps td small { color: rgba(255, 255, 255, .6); font-weight: 500; }
.pt-drive-laps .is-best { color: #46d989; font-weight: 800; }
@media (max-width: 560px) {
  .pt-drive { left: 8px; right: 8px; transform: none; width: auto; max-width: none; max-height: 48vh; overflow: auto; }
  .pt-drive-panel { max-height: none; }
  .pt-drive-bar button { padding: 0 8px; }
  .pt-drive-laps td small { display: none; }
}
/* Bu çizgiden sür: sürüş çubuğunda ve Çizgiler listesinde hat düğmeleri */
.pt-drive-hatlar { display: flex; gap: 4px; padding: 4px 4px 2px; border-top: 1px solid rgba(255, 255, 255, .12); overflow-x: auto; scrollbar-width: thin; }
.pt-drive-hatlar[hidden] { display: none; }
.pt-drive .pt-dh { display: inline-flex; align-items: center; gap: 5px; max-width: 220px; padding: 0 10px 0 8px; }
.pt-dh i { flex: none; width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }
.pt-dh span { overflow: hidden; text-overflow: ellipsis; }
.pt-dh svg, .pt-hatsur svg { flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pt-drive .pt-dh[aria-pressed="true"] { background: #fff; color: #10151f; box-shadow: 0 0 0 2px var(--pt-line); }
.pt-hatsur { display: grid; place-items: center; min-width: 44px; padding: 0 8px; border: 0; border-left: 1px solid var(--line); background: var(--surface); color: var(--heading); cursor: pointer; }
.pt-hatsur:hover { background: var(--surface-2, var(--surface)); color: var(--pt-line); }
.pt-hatsur[aria-pressed="true"] { background: var(--pt-line); color: #fff; }
.pt-hatsur:disabled { opacity: .35; cursor: not-allowed; }
.pt-lines li.is-sur { border-color: var(--pt-line); }
.pt-line-ad { flex: 1; display: grid; grid-template-columns: 12px 1fr; column-gap: 8px; padding: 8px 10px; background: var(--surface); min-width: 0; }
.pt-line-ad i { grid-row: span 2; width: 12px; height: 12px; margin-top: 3px; border-radius: 50%; }
.pt-line-ad span { font: 700 13px var(--font-body); color: var(--heading); }
.pt-line-ad small { font: 600 11.5px var(--font-body); color: var(--muted); }
@media (pointer: coarse), (max-width: 860px) {
  .pt-drive .pt-dh { height: 44px; min-width: 44px; }
  .pt-hatsur { min-height: 44px; }
}
.pt-drive-dot { width: 9px; height: 9px; border-radius: 50%; background: #46d989; box-shadow: 0 0 0 0 rgba(70, 217, 137, .6); animation: pt-nabiz 1.4s infinite; }
@keyframes pt-nabiz { 0% { box-shadow: 0 0 0 0 rgba(70, 217, 137, .6); } 70% { box-shadow: 0 0 0 8px rgba(70, 217, 137, 0); } 100% { box-shadow: 0 0 0 0 rgba(70, 217, 137, 0); } }

/* tur tamamlandı kutlaması */
.pt-party { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; padding: 16px; pointer-events: none; }
.pt-party-card { pointer-events: auto; width: min(340px, 100%); padding: 18px 20px 16px; border: 1px solid var(--line-strong); border-top: 4px solid var(--brand); border-radius: var(--radius); background: var(--surface); text-align: center; box-shadow: var(--shadow-hover); animation: pt-pop .45s var(--ease); }
@keyframes pt-pop { 0% { opacity: 0; transform: scale(.7) translateY(20px); } 60% { opacity: 1; transform: scale(1.04); } 100% { transform: scale(1); } }
.pt-party-kicker { margin: 0; font: 800 22px/1.2 var(--font-head); color: var(--heading); }
.pt-party-len { display: inline-block; margin: 10px 0 4px; padding: 6px 16px; border-radius: 999px; background: var(--btn); color: #fff; font: 800 24px/1.2 var(--font-head); font-variant-numeric: tabular-nums; box-shadow: 0 8px 20px -8px rgba(227, 10, 20, .7); }
.pt-party-sub { margin: 4px 0 12px; font: 600 12.5px/1.45 var(--font-body); color: var(--muted); }
.pt-party-btns { display: flex; justify-content: center; gap: 8px; }

/* rozet bildirimi */
.pt-award { position: absolute; right: 10px; top: 10px; z-index: 8; display: flex; align-items: center; gap: 10px; max-width: min(300px, calc(100% - 20px)); padding: 9px 14px 9px 10px; border: 1px solid var(--line-strong); border-left: 4px solid #f5b400; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-hover); opacity: 0; transform: translateX(24px); pointer-events: none; transition: opacity .25s, transform .3s var(--ease); }
.pt-award.is-on { opacity: 1; transform: none; }
.pt-award i { font-style: normal; font-size: 26px; line-height: 1; }
.pt-award b { display: block; font: 800 13.5px var(--font-head); color: var(--heading); }
.pt-award small { display: block; font: 600 11.5px/1.35 var(--font-body); color: var(--muted); }

/* ---------------------------------------------------------------- alt çubuk: ölçü / tur / uyarı */
.pt-status { display: flex; gap: 6px; align-items: center; padding: 6px 10px; border-top: 1px solid var(--line); background: var(--soft); font: 600 12px var(--font-body); color: var(--muted); min-height: 40px; }
.pt-stat { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--heading); font: 700 12px var(--font-body); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pt-stat:empty { display: none; }
button.pt-stat { cursor: pointer; }
button.pt-stat:hover { border-color: var(--accent); }
.pt-stat.is-lap { background: var(--btn); border-color: var(--btn); color: #fff; font-weight: 800; }
.pt-stat.is-lap.is-open { background: var(--surface); border-color: var(--line-strong); color: var(--heading); }
.pt-stat.is-issues::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.pt-stat.is-issues.is-warn::before { background: #f5b400; }
.pt-stat.is-issues.is-err::before { background: var(--err); }
.pt-stat.is-dim { border-color: transparent; background: none; color: var(--muted); font-weight: 600; }
.pt-hint { flex: 1; min-width: 0; padding: 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- sağ panel içerikleri */
.pt-h { margin: 0 0 2px; font: var(--t-sub); color: var(--heading); }
.pt-h small { font: 600 12px var(--font-body); color: var(--muted); }
.pt-h4 { margin: 16px 0 6px; padding-top: 12px; border-top: 1px solid var(--line); font: 800 13px var(--font-head); color: var(--heading); }
.pt-sub { margin: 0 0 10px; font: 600 12px var(--font-body); color: var(--muted); }
.pt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pt-span { grid-column: 1 / -1; }
.pt-f { display: grid; gap: 3px; min-width: 0; }
.pt-f > span { font: 700 11.5px var(--font-body); color: var(--muted); }
.pt-f > span small { font-weight: 600; }
.pt-f input:not([type="checkbox"]), .pt-f select { width: 100%; height: 34px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--heading); font: 600 13.5px var(--font-body); }
.pt-f input[type="color"] { padding: 2px; }
.pt-f input:focus, .pt-f select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.pt-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pt-btns button, .pt-fix { height: 32px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--heading); font: 700 12.5px var(--font-body); cursor: pointer; }
.pt-btns button:hover, .pt-fix:hover { border-color: var(--accent); color: var(--accent); }
.pt-btns .is-danger:hover { border-color: var(--err); color: var(--err); }
.pt-btns .is-primary { background: var(--btn); border-color: var(--btn); color: #fff; }
.pt-btns .is-primary:hover { background: var(--btn-hover); color: #fff; }
.pt-panel .pt-seg { margin-top: 10px; }
.pt-chk { display: flex; align-items: center; gap: 8px; font: 600 13px var(--font-body); color: var(--heading); cursor: pointer; }
.pt-chk + .pt-chk { margin-top: 8px; }
.pt-chk.pt-f { align-self: end; height: 34px; margin: 0; }
.pt-layers { display: grid; gap: 10px; }
.pt-layers .pt-chk + .pt-chk { margin-top: 0; }

.pt-ok { padding: 10px 12px; border-radius: 10px; background: var(--flash-ok-bg); border: 1px solid var(--flash-ok-line); color: var(--flash-ok-text); font: 800 14px var(--font-body); margin-bottom: 10px; }
.pt-ok small { display: block; font-weight: 600; font-size: 12px; }
.pt-ok.is-warn { background: rgba(245, 180, 0, .12); border-color: rgba(245, 180, 0, .45); color: var(--heading); }
.pt-issues { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pt-issues li { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pt-issues li > button:first-child { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: start; width: 100%; padding: 9px 10px; border: 0; background: var(--surface); text-align: left; font: 600 12.5px/1.45 var(--font-body); color: var(--text); cursor: pointer; }
.pt-issues li > button:first-child:hover { background: var(--soft); }
.pt-issues i { width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; background: #f5b400; }
.pt-issues .is-hata { border-left: 3px solid var(--err); }
.pt-issues .is-uyari { border-left: 3px solid #f5b400; }
.pt-issues .is-hata i { background: var(--err); }
.pt-issues em { font: 800 10.5px var(--font-body); font-style: normal; padding: 2px 6px; border-radius: 6px; background: var(--soft); color: var(--muted); }
.pt-fix { margin: 0 10px 9px; }
.pt-table { width: 100%; border-collapse: collapse; font: 600 12.5px var(--font-body); }
.pt-table th, .pt-table td { padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pt-table th { color: var(--muted); font-weight: 600; }
.pt-table td { color: var(--heading); text-align: right; font-variant-numeric: tabular-nums; }
.pt-table td small { color: var(--muted); }
.pt-table-sm th, .pt-table-sm td { text-align: center; padding: 4px 2px; }

.pt-lines { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.pt-lines li { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pt-lines li.is-on { border-color: var(--pt-line); box-shadow: inset 0 0 0 1px var(--pt-line); }
.pt-line-pick { flex: 1; display: grid; grid-template-columns: 12px 1fr; column-gap: 8px; padding: 8px 10px; border: 0; background: var(--surface); text-align: left; cursor: pointer; min-width: 0; }
.pt-line-pick i { grid-row: span 2; width: 12px; height: 12px; margin-top: 3px; border-radius: 50%; }
.pt-line-pick span { font: 700 13px var(--font-body); color: var(--heading); }
.pt-line-pick small { font: 600 11.5px var(--font-body); color: var(--muted); }
.pt-eye { display: grid; place-items: center; padding: 0 10px; border-left: 1px solid var(--line); cursor: pointer; }
.pt-eye input { position: absolute; opacity: 0; pointer-events: none; }
.pt-eye span { font-size: 15px; opacity: .3; }
.pt-eye input:checked + span { opacity: 1; }

/* ---------------------------------------------------------------- diyaloglar */
.pt-dlg { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: var(--shadow-hover); }
.pt-dlg-wide { width: min(900px, calc(100vw - 24px)); }
.pt-dlg::backdrop { background: rgba(8, 12, 20, .55); }
.pt-dlg[open] { animation: pt-dlg .22s var(--ease); }
@keyframes pt-dlg { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.pt-dlg-in { padding: 18px 20px 20px; }
.pt-dlg header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.pt-dlg h2 { margin: 0; font: var(--t-section); color: var(--heading); }
.pt-x { width: 34px; height: 34px; border: 0; border-radius: 9px; background: var(--soft); color: var(--muted); font-size: 20px; cursor: pointer; }
.pt-step { margin: 14px 0 8px; font: 800 12px var(--font-body); letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.pt-step small { margin-left: 6px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.pt-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pt-types button { --pt-tint: var(--pt-on); display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto 1fr; column-gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .2s, transform .15s; }
.pt-types button:hover { transform: translateY(-2px); border-color: var(--pt-tint); }
.pt-type-art { grid-row: span 2; display: grid; place-items: center; height: 46px; border-radius: 10px; background: var(--soft); color: var(--pt-tint); }
.pt-type-art svg { width: 56px; height: 36px; }
.pt-types button b { font: 800 14.5px var(--font-head); color: var(--heading); }
.pt-types button small { font: 500 12px/1.4 var(--font-body); color: var(--muted); }
.pt-types button[aria-pressed="true"] { border-color: var(--pt-tint); box-shadow: inset 0 0 0 1px var(--pt-tint), 0 8px 22px -12px var(--pt-tint); }
.pt-types button[aria-pressed="true"] .pt-type-art { background: var(--pt-tint); color: #fff; }
/* seviye kartları */
.pt-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.pt-tpl { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 3px; padding: 0 0 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: left; cursor: pointer; color: var(--accent); overflow: hidden; transition: transform .16s var(--ease), box-shadow .16s, border-color .15s; }
.pt-tpl:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-hover); }
.pt-tpl-art { display: grid; place-items: center; height: 104px; background: var(--soft); border-bottom: 1px solid var(--line); }
.pt-tpl-art svg { --pt-card: var(--soft); width: 170px; height: 96px; }
.pt-tpl-no { position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 7px; background: rgba(16, 22, 32, .82); color: #fff; font: 800 11px var(--font-body); letter-spacing: .03em; }
.pt-tpl-len { position: absolute; right: 8px; top: 8px; padding: 3px 8px; border-radius: 7px; background: var(--btn); color: #fff; font: 800 11.5px var(--font-body); font-variant-numeric: tabular-nums; }
.pt-tpl b { padding: 6px 12px 0; font: 800 14px var(--font-head); color: var(--heading); }
.pt-tpl small { padding: 0 12px; font: 500 11.5px/1.45 var(--font-body); color: var(--muted); }
.pt-tpl-meta { display: flex; align-items: center; gap: 8px; padding: 4px 12px 0; font: 700 11.5px var(--font-body); color: var(--muted); }
.pt-stars { display: inline-flex; gap: 2px; }
.pt-stars i { width: 10px; height: 10px; background: var(--line-strong); clip-path: polygon(50% 0, 62% 35%, 100% 38%, 70% 60%, 80% 100%, 50% 77%, 20% 100%, 30% 60%, 0 38%, 38% 35%); }
.pt-stars i.is-on { background: #f5b400; }
.pt-blank { margin-top: 14px; border: 1px dashed var(--line-strong); border-radius: 12px; padding: 0 12px; }
.pt-blank summary { padding: 11px 0; font: 700 13px var(--font-body); color: var(--heading); cursor: pointer; }
.pt-blank[open] { padding-bottom: 12px; }
.pt-wiz-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr auto; gap: 8px; align-items: end; }
.pt-saves { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 46vh; overflow-y: auto; }
.pt-saves li { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pt-saves li > button:first-child { flex: 1; display: grid; gap: 2px; padding: 9px 11px; border: 0; background: var(--surface); text-align: left; cursor: pointer; }
.pt-saves li > button:first-child:hover { background: var(--soft); }
.pt-saves b { font: 700 13.5px var(--font-body); color: var(--heading); }
.pt-saves small { font: 600 11.5px var(--font-body); color: var(--muted); }
.pt-del { width: 40px; border: 0; border-left: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 18px; cursor: pointer; }
.pt-del:hover { color: var(--err); }
.pt-empty { padding: 12px; color: var(--muted); font: 600 13px var(--font-body); }
.pt-file { cursor: pointer; }
.pt-share { display: flex; gap: 6px; margin-top: 8px; }
.pt-share input { flex: 1; min-width: 0; height: 38px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--soft); color: var(--heading); font: 600 13px var(--font-body); }
/* yardım */
.pt-help-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; }
.pt-keys { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font: 600 12.5px var(--font-body); }
.pt-keys dt { white-space: nowrap; color: var(--heading); }
.pt-keys dd { margin: 0; color: var(--text); }
.pt-app kbd { display: inline-block; min-width: 22px; padding: 1px 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; background: var(--soft); color: var(--heading); font: 800 11px/1.6 var(--font-body); text-align: center; }
.pt-badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pt-badges li { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.pt-badges li i { font-style: normal; font-size: 20px; line-height: 1; }
.pt-badges li b { display: block; font: 800 12.5px var(--font-body); color: var(--heading); }
.pt-badges li small { display: block; font: 600 11px/1.35 var(--font-body); color: var(--muted); }
.pt-badges li.is-locked { opacity: .5; }
.pt-badges li.is-locked i { filter: grayscale(1); }
.pt-badges li:not(.is-locked) { border-color: rgba(245, 180, 0, .5); }

/* ---------------------------------------------------------------- ilk açılış rehberi */
.pt-tour { position: fixed; inset: 0; z-index: 1100; }
.pt-tour-spot { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(8, 12, 20, .62), 0 0 0 3px var(--pt-on); transition: left .3s var(--ease), top .3s var(--ease), width .3s var(--ease), height .3s var(--ease); pointer-events: none; }
.pt-tour-card { position: fixed; width: min(330px, calc(100vw - 24px)); padding: 16px 16px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-hover); transition: left .3s var(--ease), top .3s var(--ease); }
.pt-tour-step { margin: 0 0 4px; font: 800 11px var(--font-body); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.pt-tour-card h3 { margin: 0 0 6px; font: var(--t-box); color: var(--heading); }
.pt-tour-card p { margin: 0; font: 500 13px/1.5 var(--font-body); color: var(--text); }
.pt-tour-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

/* ---------------------------------------------------------------- tam ekran */
.pt-app.is-full { position: fixed; inset: 0; z-index: 900; margin: 0; border: 0; border-radius: 0; }
.pt-app.is-full .pt-body { flex: 1 1 auto; height: auto; min-height: 0; }
body.pt-no-scroll { overflow: hidden; }

/* ---------------------------------------------------------------- hareketi azalt */
.pt-app.is-calm *, .pt-app.is-calm *::before, .pt-app.is-calm *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .pt-app *, .pt-app *::before, .pt-app *::after { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------- tablet */
@media (max-width: 1080px) {
  .pt-hud { grid-template-columns: minmax(0, 1fr) auto; }
  .pt-hud-tools { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
}
@media (max-width: 1180px) {
  .pt-app { --pt-left: 214px; --pt-right: 296px; }
  .pt-hb { width: 48px; }
  .pt-hb.is-small { width: 44px; }
}

/* ---------------------------------------------------------------- telefon: tuval tam ekran, alt çekmece */
@media (max-width: 860px) {
  .pt-page .site-main > .container { padding-left: 0; padding-right: 0; }
  .pt-crumbs { display: none; }
  .pt-app { height: calc(100dvh - var(--header-h, 56px) - 64px - env(safe-area-inset-bottom, 0px)); min-height: 520px; margin: 0; border-radius: 0; border-left: 0; border-right: 0; }
  .pt-hud { grid-template-columns: minmax(0, 1fr) auto; gap: 6px; padding: 6px 8px; }
  .pt-hud-tools { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 -8px; padding: 2px 8px 4px; }
  .pt-hud-tools::-webkit-scrollbar { display: none; }
  .pt-hgroup { flex: 0 0 auto; }
  .pt-hb, .pt-hb.is-small { width: 46px; height: 46px; font-size: 10px; }
  .pt-hb svg { width: 21px; height: 21px; }
  .pt-badge { display: none; }
  .pt-name { font-size: 15px; }
  .pt-hud-file { gap: 4px; }
  .pt-hud-file .pt-b span { display: none; }
  .pt-hud-file .pt-b, .pt-hud-file .pt-b:not(.is-primary), .pt-hud-file .pt-menu .pt-b { width: 36px; padding: 0; }
  .pt-hud-file [data-pt-cmd="kaydet"] { display: none; }
  .pt-menu-list { position: fixed; right: 8px; top: auto; }
  .pt-body { position: relative; display: block; flex: 1 1 auto; height: auto; min-height: 0; }
  .pt-stage { position: absolute; inset: 0; }
  .pt-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 9; display: flex; flex-direction: column; height: 46%; border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 18px 18px 0 0; background: var(--surface); box-shadow: 0 -10px 30px -12px rgba(16, 24, 40, .35); transition: height .28s var(--ease); }
  .pt-sheet[data-durum="kapali"] { height: 88px; }
  .pt-sheet[data-durum="tam"] { height: calc(100% - 10px); }
  .pt-sheet.is-drag { transition: none; }
  .pt-sheet-grip { display: grid; place-items: center; flex: 0 0 auto; height: 20px; border: 0; background: none; cursor: grab; touch-action: none; }
  .pt-sheet-grip i { width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); }
  .pt-sheet-tabs { display: flex; flex: 0 0 auto; gap: 0; padding: 0 6px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
  .pt-sheet-tabs::-webkit-scrollbar { display: none; }
  .pt-sheet-tabs button { padding: 6px 9px 10px; font-size: 13px; }
  .pt-left, .pt-right { flex: 1 1 auto; border: 0; background: none; }
  .pt-sheet[data-sekme="palet"] .pt-right, .pt-sheet:not([data-sekme="palet"]) .pt-left { display: none; }
  .pt-right .pt-tabs { display: none; }
  .pt-pal-head { grid-template-columns: 1fr auto; align-items: center; padding: 8px 10px; }
  .pt-cards { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
  .pt-sheet[data-durum="kapali"] .pt-left, .pt-sheet[data-durum="kapali"] .pt-right { display: none; }
  .pt-app[data-sheet="yarim"] .pt-float-br, .pt-app[data-sheet="yarim"] .pt-toast { bottom: calc(46% + 10px); }
  .pt-app[data-sheet="kapali"] .pt-float-br, .pt-app[data-sheet="kapali"] .pt-toast { bottom: 98px; }
  .pt-app[data-sheet="tam"] .pt-float-br { display: none; }
  .pt-float-br .pt-ib { width: 40px; height: 40px; }
  .pt-party { align-items: start; padding-top: 50px; }
  .pt-status { gap: 4px; padding: 5px 8px; min-height: 36px; overflow-x: auto; scrollbar-width: none; }
  .pt-status::-webkit-scrollbar { display: none; }
  .pt-hint, .pt-stat.is-dim { display: none; }
  .pt-types { grid-template-columns: 1fr; }
  .pt-types button { grid-template-columns: 52px 1fr; padding: 8px 10px; }
  .pt-wiz-row { grid-template-columns: 1fr 1fr; }
  .pt-wiz-row .pt-f:first-child, .pt-wiz-row .pt-b { grid-column: 1 / -1; }
  .pt-tpls { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pt-tpl-art { height: 78px; }
  .pt-tpl-art svg { width: 120px; height: 70px; }
  .pt-tpl small { display: none; }
  .pt-help-grid { grid-template-columns: 1fr; gap: 6px; }
  .pt-dlg-in { padding: 14px 14px 16px; }
  .pt-app.is-full { height: 100dvh; }
}
@media (max-width: 400px) {
  .pt-tpls { grid-template-columns: 1fr; }
  .pt-tpl-art { height: 70px; }
}

/* ---------------------------------------------------------------- Sürüm 2: pist sayfası çubuğu, profil, kurulum, kayıt */
.pt-crumbs .beta-badge { margin-left: 2px; }
.pt-beta-note { margin-left: 8px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pt-hud-beta { display: none; }
@media (max-width: 860px) { .pt-hud-beta { display: inline-flex; margin-left: 0; } }
.pt-crumbs-end { margin-left: auto; font-weight: 700; }
.pt-crumbs-end a { color: var(--heading); }
.pt-crumbs-end a:hover { color: var(--pt-on); }
.pt-info { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.pt-info-main { flex: 1 1 320px; min-width: 0; }
.pt-info-h { margin: 0; font: 800 19px/1.25 var(--font-head); color: var(--heading); }
.pt-info-by { margin: 2px 0 0; font: 600 12.5px/1.45 var(--font-body); color: var(--muted); }
.pt-info-by a { color: var(--heading); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 2px; }
.pt-info-desc { margin: 6px 0 0; font: 500 13px/1.5 var(--font-body); color: var(--text); }
.pt-info-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-info-acts small { font-weight: 800; color: var(--muted); }
.pt-like svg { fill: none; }
.pt-like[aria-pressed="true"] { border-color: var(--brand); background: var(--brand); color: #fff; }
.pt-like[aria-pressed="true"] svg { fill: currentColor; }
.pt-like[aria-pressed="true"]:hover { color: #fff; filter: brightness(1.08); }
.pt-b-quiet { border-color: transparent; color: var(--muted); }

/* yan profil şeridi: tuvalin altında, 120 px */
.pt-prof { position: absolute; left: 10px; right: 58px; bottom: 10px; z-index: 4; height: 120px; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.pt-prof canvas { display: block; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.pt-app:has(.pt-prof:not([hidden])) .pt-toast { bottom: 140px; }

/* diyalog parçaları */
.pt-f textarea { width: 100%; min-height: 64px; padding: 7px 9px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--heading); font: 600 13.5px/1.45 var(--font-body); resize: vertical; }
.pt-f textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.pt-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pt-span2 { grid-column: span 2; }
.pt-ktabs { margin: 0 -20px 12px; padding: 0 14px; }
.pt-kurulum { min-height: 220px; }
.pt-table-mat td { white-space: nowrap; }
.pt-table-mat .pt-tnot { white-space: normal; text-align: left; color: var(--muted); font-weight: 500; font-size: 11.5px; }
.pt-table-mat .pt-tgrp th { padding-top: 12px; color: var(--heading); font-weight: 800; text-transform: uppercase; letter-spacing: .03em; font-size: 11px; }
.pt-tscroll { max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; }
.pt-tscroll .pt-table { font-size: 11.5px; }
.pt-tscroll th { position: sticky; top: 0; background: var(--surface); }
.pt-baski-sec { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0; }
.pt-baski-sec .pt-chk + .pt-chk { margin-top: 0; }
.pt-vis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pt-vis label { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 9px 10px; border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer; font: 600 12px/1.35 var(--font-body); color: var(--muted); }
.pt-vis label b { color: var(--heading); font-size: 13px; }
.pt-vis label small { grid-column: 2; }
.pt-vis label:has(input:checked) { border-color: var(--pt-on); box-shadow: 0 0 0 1px var(--pt-on) inset; }
.pt-code { width: 100%; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--soft); color: var(--heading); font: 600 12px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; resize: none; }
.pt-print-frame { position: fixed; right: 0; bottom: 0; width: 1px; height: 1px; border: 0; opacity: 0; pointer-events: none; }
input[type="range"][data-pt-apk] { width: 100%; accent-color: var(--pt-on); }

/* ---------------------------------------------------------------- galeri (/pistler) ve Pistlerim */
.ptg-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; }
.ptg-filter select, .ptg-filter input { height: 38px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--heading); font: 600 13.5px var(--font-body); }
.ptg-num { display: inline-flex; align-items: center; gap: 4px; font: 700 12.5px var(--font-body); color: var(--muted); }
.ptg-num input { width: 72px; }
.ptg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-bottom: 20px; }
.ptg-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .2s, transform .15s; }
.ptg-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.ptg-thumb { position: relative; display: block; aspect-ratio: 1200 / 630; background: var(--soft); color: var(--ptg-tint, #4272b4); border-bottom: 3px solid var(--ptg-tint, #4272b4); }
.ptg-thumb img, .ptg-thumb svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.ptg-thumb svg { padding: 14% 18%; opacity: .7; }
.ptg-len { position: absolute; right: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(16, 22, 32, .82); color: #fff; font: 800 12px var(--font-body); font-variant-numeric: tabular-nums; }
.ptg-body { padding: 10px 12px 12px; }
.ptg-body h3 { margin: 0; font: 800 15px/1.3 var(--font-head); }
.ptg-body h3 a { color: var(--heading); }
.ptg-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 4px 0 0; font: 600 12px var(--font-body); color: var(--muted); }
.ptg-by { margin: 4px 0 0; font: 600 12px var(--font-body); color: var(--muted); }
.ptg-by a { color: var(--heading); }
.ptg-counts { display: flex; gap: 12px; margin: 6px 0 0; font: 700 12px var(--font-body); color: var(--muted); font-variant-numeric: tabular-nums; }
.ptg-pages { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 24px; font: 700 13px var(--font-body); color: var(--muted); }
.ptg-mine { display: flex; flex-direction: column; gap: 6px; }
.ptg-mine-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px; font: 600 12px var(--font-body); color: var(--muted); }
.ptg-vis { padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--heading); font-weight: 800; }
.ptg-vis.is-herkes { border-color: var(--pt-go); color: var(--pt-go); }
.ptg-vis.is-ozel { border-style: dashed; }
.ptg-mine-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ptg-mine-acts form { margin: 0; }
.ptg-mine-acts select { height: 32px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--heading); font: 600 12.5px var(--font-body); }
.ptg-del:hover { border-color: var(--err); }
:root[data-theme="dark"] .ptg-vis.is-herkes { border-color: #46d989; color: #46d989; }

/* Paylaşılan Pistler: arama, tür rozeti; Pistlerim sekmeleri ve gizlilik ayarları */
.ptg-q { display: inline-flex; align-items: center; gap: 6px; flex: 1 1 240px; min-width: 200px; height: 38px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--muted); }
.ptg-q input { flex: 1; min-width: 0; height: 36px; border: 0 !important; padding: 0 !important; background: transparent !important; outline: none; }
.ptg-q .icon { width: 15px; height: 15px; }
.ptg-type { position: absolute; left: 8px; top: 8px; padding: 3px 9px; border-radius: 999px; background: var(--ptg-tint, #4272b4); color: #fff; font: 800 11.5px var(--font-body); }
.ptg-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.ptg-tabs a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--heading); font: 700 13px var(--font-body); }
.ptg-tabs a span { font-variant-numeric: tabular-nums; color: var(--muted); }
.ptg-tabs a[aria-current="page"] { background: #4272b4; border-color: #4272b4; color: #fff; }
.ptg-tabs a[aria-current="page"] span { color: #fff; }
.ptg-note { margin: -4px 0 12px; font-size: 13px; }
.ptg-set { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.ptg-set summary { cursor: pointer; padding: 8px 10px; font: 700 12.5px var(--font-body); color: var(--heading); }
.ptg-set form { display: flex; flex-direction: column; gap: 6px; padding: 0 10px 10px; font: 600 12.5px/1.35 var(--font-body); color: var(--heading); }
.ptg-set fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 4px; }
.ptg-set legend { padding: 0 0 2px; font-weight: 800; }
.ptg-set label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.ptg-set small { color: var(--muted); font-weight: 600; }
.ptg-set .btn { align-self: flex-start; }

/* Pist sayfası (/pistler/{kod}) */
.pts { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 16px; align-items: start; margin: 0 0 16px; }
.pts-prev { position: relative; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-bottom: 3px solid var(--ptg-tint, #4272b4); border-radius: var(--radius); background: #f7f8f4; overflow: hidden; box-shadow: var(--shadow); }
:root[data-theme="dark"] .pts-prev { background: #141a24; }
.pts-prev canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pts-prev-note { position: absolute; left: 10px; bottom: 8px; right: 10px; padding: 3px 9px; width: fit-content; max-width: calc(100% - 20px); border-radius: 999px; background: rgba(16, 22, 32, .78); color: #fff; font: 700 12px var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pts-prev-note:empty { display: none; }
.pts-side { padding: 16px; }
.pts-side .kicker { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pts-h { margin: 2px 0 4px; font: 800 24px/1.2 var(--font-head); color: var(--heading); overflow-wrap: anywhere; }
.pts-by { margin: 2px 0; font: 600 13px var(--font-body); color: var(--muted); }
.pts-by a { color: var(--heading); }
.pts-warn { margin: 8px 0; padding: 8px 10px; border-left: 3px solid #e30a14; border-radius: 6px; background: var(--soft); color: var(--heading); font: 600 13px var(--font-body); }
.pts-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 0; }
.pts-acts.is-quiet { margin-top: 8px; }
.pts-help { margin: 6px 0 0; font: 600 12.5px/1.45 var(--font-body); color: var(--muted); }
.pts-like, .pts-link { min-height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--heading); font: 700 13px var(--font-body); cursor: pointer; }
.pts-like[aria-pressed="true"] { border-color: #e30a14; background: #e30a14; color: #fff; }
a.pts-link { display: inline-flex; align-items: center; }
.pts-stats { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); font: 600 13px var(--font-body); }
.pts-stats dt { color: var(--muted); }
.pts-stats dd { margin: 0; color: var(--heading); font-variant-numeric: tabular-nums; }
.pts-desc { margin: 12px 0 0; font: 500 14px/1.55 var(--font-body); color: var(--heading); overflow-wrap: anywhere; }
.pts-side .ptg-set { margin-top: 14px; }
.pts-lower { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 16px; align-items: start; margin: 0 0 24px; }
.pts-box { padding: 16px; }
.pts-box h2 { margin: 0 0 8px; font: 800 18px var(--font-head); color: var(--heading); }
.pts-sub { margin: 12px 0 4px; font: 800 14px var(--font-head); color: var(--heading); }
.pts-laps { width: 100%; border-collapse: collapse; font: 600 13px var(--font-body); }
.pts-laps th, .pts-laps td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.pts-laps th { color: var(--muted); font-weight: 700; font-size: 12px; }
.pts-laps .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pts-laps td a { color: var(--heading); }
.pts-laps tr.is-me td { background: var(--soft); }
.pts-laps tr.is-me td:first-child { box-shadow: inset 3px 0 0 #4272b4; }
.pts-scn { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pts-scn li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.pts-scn b { display: block; color: var(--heading); font: 800 13.5px var(--font-body); }
.pts-scn small { color: var(--muted); font: 600 12px var(--font-body); }
.pts-dlg { width: min(440px, calc(100vw - 24px)); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--heading); }
.pts-dlg::backdrop { background: rgba(10, 14, 22, .55); }
.pts-dlg-in { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.pts-dlg header { display: flex; align-items: center; justify-content: space-between; }
.pts-dlg h2 { margin: 0; font: 800 18px var(--font-head); }
.pts-dlg fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 6px; font: 600 13.5px var(--font-body); }
.pts-dlg legend { font-weight: 800; padding-bottom: 4px; }
.pts-f { display: flex; flex-direction: column; gap: 4px; font: 700 13px var(--font-body); }
.pts-f textarea { width: 100%; }
.pts-x { border: 0; background: none; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; }
@media (max-width: 900px) {
  .pts, .pts-lower { grid-template-columns: 1fr; }
  .pts-h { font-size: 21px; }
}

@media (max-width: 860px) {
  .pt-hud-file [data-pt-cmd="kaydet"] { display: inline-flex; }
  .pt-hud-file [data-pt-cmd="kurulum"] { display: none; }
  .pt-info { padding: 8px 10px; gap: 6px; }
  .pt-info-h { font-size: 16px; }
  .pt-info-desc { display: none; }
  .pt-info-acts .pt-b { height: 32px; padding: 0 9px; font-size: 12px; }
  .pt-prof { top: 46px; bottom: auto; right: 10px; height: 104px; }
  .pt-grid-4 { grid-template-columns: 1fr 1fr; }
  .pt-vis { grid-template-columns: 1fr; }
  .pt-ktabs { margin: 0 -14px 10px; padding: 0 8px; }
}

/* ================================================================ Kullanım kolaylığı (2026-11): odak modu, tek araç çubuğu,
 * Gelişmiş menüsü, bağlam çubuğu, boş tuval, çizerek pist, ipuçları, viraj kartında yön yarıları */
.pt-app { --pt-draw: #b4692e; }
/* odak modu: site başlığı/altı görünmez, editör pencereyi kaplar */
.pt-app.is-odak { position: fixed; inset: 0; z-index: 900; margin: 0; border: 0; border-radius: 0; height: auto; }
.pt-app.is-odak .pt-body { flex: 1 1 auto; height: auto; min-height: 0; }
body.pt-odak { overflow: hidden; }
body.pt-odak .pt-crumbs { display: none; }

/* ana araç çubuğu: mod düğmeleri */
.pt-hb.is-draw[aria-pressed="true"] { background: var(--pt-draw); box-shadow: 0 0 0 1px rgba(255, 255, 255, .18) inset, 0 6px 18px -4px rgba(180, 105, 46, .8); }
.pt-hud-tools .pt-hb { width: auto; min-width: 54px; padding: 0 8px; }
/* Gelişmiş menüsü */
.pt-adv > summary { list-style: none; }
.pt-adv > summary::-webkit-details-marker { display: none; }
.pt-adv[open] > summary { background: var(--soft); color: var(--heading); }
.pt-adv-list { width: 300px; max-height: calc(100dvh - 120px); overflow-y: auto; }
.pt-menu-list .pt-mi { display: flex; align-items: center; gap: 9px; min-height: 36px; }
.pt-mi svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.pt-mi .pt-hb-ic { display: contents; }
.pt-mi kbd { margin-left: auto; }
.pt-mi[aria-pressed]::after { content: ""; flex: 0 0 auto; width: 28px; height: 16px; margin-left: 6px; border-radius: 999px; background: var(--line-strong); box-shadow: inset -12px 0 0 2px var(--surface); transition: background .15s, box-shadow .15s; }
.pt-mi[aria-pressed="true"]::after { background: var(--pt-on); box-shadow: inset 12px 0 0 2px var(--surface); }
.pt-mi:not(:has(kbd))[aria-pressed]::after { margin-left: auto; }
.pt-mh { margin: 8px 10px 2px; font: 800 10.5px var(--font-body); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.pt-mh:first-child { margin-top: 2px; }
.pt-hud-file .pt-b span { display: inline; }
.pt-hb .pt-lbl-kisa { display: none; }
@media (max-width: 860px) { .pt-hb .pt-lbl-uzun { display: none; } .pt-hb .pt-lbl-kisa { display: inline; } }

/* palet: viraj kartında sol / sağ yarı */
.pt-card.has-yon { overflow: hidden; }
.pt-half { position: absolute; top: 0; bottom: 0; z-index: 1; display: flex; align-items: flex-end; width: 50%; padding: 4px; pointer-events: auto; transition: background .12s; }
.pt-half.is-l { left: 0; justify-content: flex-start; }
.pt-half.is-r { right: 0; justify-content: flex-end; }
.pt-half i { padding: 1px 5px; border-radius: 6px; font: 800 9.5px var(--font-body); font-style: normal; color: var(--muted); background: var(--surface); opacity: 0; transition: opacity .12s; }
.pt-card.has-yon:hover .pt-half i { opacity: .9; }
.pt-half:hover { background: rgba(66, 114, 180, .12); }
.pt-half:hover i { opacity: 1; color: var(--accent-dark); }
.pt-half.is-r:hover ~ svg { transform: scaleX(-1); }
.pt-card.has-yon svg { transition: transform .15s; }
@media (hover: none) { .pt-half i { opacity: .85; } .pt-card.has-yon { padding-bottom: 22px; } }
.pt-swap { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid var(--pt-on); border-radius: 10px; background: var(--accent-soft); font: 700 12px/1.35 var(--font-body); color: var(--heading); }
.pt-swap span { flex: 1; }
.pt-swap button { height: 26px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); color: var(--heading); font: 700 12px var(--font-body); cursor: pointer; }
.pt-left.is-pulse { animation: pt-pulse 1.2s var(--ease) 2; }
@keyframes pt-pulse { 0%, 100% { box-shadow: none; } 40% { box-shadow: inset 0 0 0 3px var(--pt-on); } }
/* yarış çizgisi ve çizim modunda parça paleti gizli (masaüstü) */
@media (min-width: 861px) {
  .pt-app.is-line-mode .pt-body, .pt-app.is-draw-mode .pt-body { grid-template-columns: 0 minmax(0, 1fr) var(--pt-right); }
  .pt-app.is-line-mode .pt-left, .pt-app.is-draw-mode .pt-left { display: none; }
}

/* bağlam çubuğu (seçili öğenin üstünde) */
.pt-ctx { position: absolute; z-index: 6; display: flex; gap: 2px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-hover); }
.pt-ctx[hidden] { display: none; }
.pt-ctx button { display: grid; justify-items: center; gap: 1px; min-width: 46px; height: 44px; padding: 3px 5px 0; border: 0; border-radius: 10px; background: none; color: var(--heading); font: 700 10.5px/1 var(--font-body); cursor: pointer; }
.pt-ctx button[hidden] { display: none; }
.pt-ctx button:hover { background: var(--soft); color: var(--accent); }
.pt-ctx button.is-danger:hover { color: var(--err); }
.pt-ctx button[aria-pressed="true"] { background: #4272b4; color: #fff; }
.pt-ctx button[aria-pressed="true"]:hover { background: #355d94; color: #fff; }
.pt-ctx svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* boş tuval */
.pt-bos { position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; gap: 14px; padding: 20px; background: color-mix(in srgb, var(--soft) 78%, transparent); }
.pt-bos[hidden] { display: none; }
.pt-bos-h { margin: 0; text-align: center; font: 800 20px/1.3 var(--font-head); color: var(--heading); }
.pt-bos-cards, .pt-starts { display: grid; grid-template-columns: repeat(3, minmax(0, 200px)); gap: 12px; justify-content: center; }
.pt-starts { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; }
.pt-bos-cards button, .pt-starts button { display: grid; justify-items: center; gap: 6px; padding: 18px 14px 16px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); color: var(--heading); text-align: center; cursor: pointer; box-shadow: var(--shadow); transition: transform .15s var(--ease), border-color .15s, box-shadow .15s; }
.pt-starts button { grid-template-columns: 44px 1fr; justify-items: start; text-align: left; column-gap: 12px; padding: 12px 14px; }
.pt-starts button .pt-bos-ic { grid-row: span 2; }
.pt-bos-cards button:hover, .pt-starts button:hover { transform: translateY(-2px); border-color: var(--pt-on); box-shadow: var(--shadow-hover); }
.pt-bos-cards b, .pt-starts b { font: 800 15px var(--font-head); }
.pt-bos-cards small, .pt-starts small { font: 500 12px/1.45 var(--font-body); color: var(--muted); }
.pt-bos-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--pt-on); color: #fff; }
.pt-bos-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[data-pt-bos-act="ciz"] .pt-bos-ic, [data-pt-wbasla="ciz"] .pt-bos-ic { background: var(--pt-draw); }
[data-pt-bos-act="sablon"] .pt-bos-ic { background: var(--pt-go); }

/* çizim çubuğu */
.pt-drawbar { position: absolute; left: 50%; top: 10px; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; max-width: calc(100% - 20px); padding: 8px 10px 8px 14px; transform: translateX(-50%); border: 1px solid var(--line-strong); border-left: 4px solid var(--pt-draw); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-hover); font: 600 13px/1.4 var(--font-body); color: var(--heading); width: max-content; }
.pt-drawbar[hidden] { display: none; }
.pt-drawbar-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-drawbar .pt-b { height: 34px; }
.pt-drawbar .pt-b[hidden] { display: none; }
.is-draw-mode .pt-stage canvas { cursor: crosshair; }

/* ipucu balonu (tuvalin altında) */
.pt-tip { position: absolute; left: 50%; bottom: 14px; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; width: max-content; max-width: min(560px, calc(100% - 90px)); padding: 9px 38px 9px 14px; transform: translateX(-50%); border: 1px solid var(--line-strong); border-left: 4px solid var(--pt-on); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-hover); font: 600 13px/1.45 var(--font-body); color: var(--heading); transition: bottom .25s var(--ease); }
.pt-tip[hidden] { display: none; }
.pt-tip.is-warn { border-left-color: #f5b400; }
.pt-tip.is-err { border-left-color: var(--err); }
.pt-tip-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-tip-btns .pt-b { height: 30px; padding: 0 10px; font-size: 12.5px; }
.pt-tip-x { position: absolute; right: 6px; top: 6px; width: 26px; height: 26px; border: 0; border-radius: 7px; background: none; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.pt-tip-x:hover { background: var(--soft); color: var(--heading); }
.pt-app:has(.pt-tip:not([hidden])) .pt-toast { bottom: 76px; }
.pt-app:has(.pt-prof:not([hidden])) .pt-tip { bottom: 140px; }

/* sihirbaz: şablon kartında "▶ Sür" */
.pt-tplw { position: relative; display: grid; }
.pt-tpl-go { position: absolute; right: 8px; bottom: 8px; height: 30px; padding: 0 12px; border: 0; border-radius: 9px; background: var(--pt-go); color: #fff; font: 800 12.5px var(--font-body); cursor: pointer; box-shadow: var(--shadow); }
.pt-tpl-go:hover { filter: brightness(1.1); }
.pt-tplw .pt-tpl { padding-bottom: 44px; }
/* paylaş penceresi */
.pt-exports { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pt-exports .pt-b { white-space: normal; height: auto; min-height: 38px; padding: 6px 8px; text-align: center; }
.pt-link { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }
/* özellik paneli: gelişmiş bölümler */
.pt-adv-d { margin-top: 12px; border-top: 1px solid var(--line); }
.pt-adv-d > summary { padding: 10px 2px 4px; font: 800 12.5px var(--font-body); color: var(--heading); cursor: pointer; }
.pt-adv-d > summary::marker { color: var(--muted); }
.pt-adv-d[open] > summary { margin-bottom: 6px; }
.pt-btns .pt-help { margin: 0; align-self: center; }
.pt-kural { display: flex; margin: 0 0 4px; }
.pt-kural button { flex: 1; }
.pt-kural-not { margin: 0 0 10px; }
.pt-stat.is-rule { border-style: dashed; color: var(--muted); }

/* ---------------------------------------------------------------- telefon */
@media (max-width: 860px) {
  .pt-app.is-odak { height: auto; }
  .pt-hud-tools { justify-content: center; overflow: visible; }
  .pt-hud-tools .pt-hgroup { gap: 0; padding: 2px; border-radius: 12px; }
  .pt-hud-tools .pt-hb { width: 44px; min-width: 0; height: 46px; padding: 0; font-size: 9.5px; }
  .pt-hud-tools .pt-hb span { max-width: 44px; overflow: hidden; text-overflow: ellipsis; }
  .pt-hud-file .pt-b span { display: none; }
  .pt-hud-file .pt-b, .pt-hud-file .pt-b:not(.is-primary) { width: 44px; height: 44px; padding: 0; }
  .pt-float-br .pt-ib { width: 44px; height: 44px; }
  .pt-adv { position: static; }
  .pt-adv-list { position: fixed; left: 8px; right: 8px; top: 108px; width: auto; max-height: calc(100dvh - 180px); z-index: 40; }
  .pt-menu-list .pt-mi { min-height: 44px; }
  /* alt sekme çubuğu: 5 eşit sütun, simge üstte, ad altta; sayaç simgenin köşesinde */
  .pt-sheet-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0 4px; overflow: visible; }
  .pt-sheet-tabs [data-pt-stab="katman"] { display: none; }
  .pt-sheet-tabs button { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; min-width: 0; min-height: 48px; padding: 4px 2px 6px; border-bottom-width: 3px; font-size: 11.5px; line-height: 1.1; }
  .pt-sheet-tabs button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .pt-sheet-tabs button > span:not(.pt-count) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pt-sheet-tabs button[aria-selected="true"] { color: var(--heading); }
  .pt-sheet-tabs button[aria-selected="true"] svg { color: var(--brand); }
  .pt-sheet-tabs .pt-count { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; font-size: 10.5px; line-height: 17px; }
  .pt-sheet-tabs .pt-count:empty { display: none; }
  .pt-fix, .pt-tip-btns .pt-b { min-height: 40px; }
  .pt-ctx { gap: 0; padding: 3px; }
  .pt-ctx button { min-width: 44px; padding: 3px 3px 0; }
  .pt-ctx button span { display: none; }
  .pt-ctx button { height: 44px; align-content: center; }
  .pt-bos { place-content: start center; padding-top: 18px; }
  .pt-bos-h { font-size: 17px; }
  .pt-bos-cards { grid-template-columns: 1fr; gap: 8px; }
  .pt-bos-cards button { grid-template-columns: 44px 1fr; justify-items: start; text-align: left; column-gap: 12px; padding: 10px 12px; }
  .pt-bos-cards button .pt-bos-ic { grid-row: span 2; }
  .pt-starts { grid-template-columns: 1fr; }
  .pt-drawbar { left: 8px; right: 8px; transform: none; width: auto; font-size: 12.5px; padding: 6px 8px 6px 10px; }
  .pt-tip { max-width: calc(100% - 20px); font-size: 12.5px; }
  .pt-app[data-sheet="yarim"] .pt-tip { bottom: calc(46% + 10px); }
  .pt-app[data-sheet="kapali"] .pt-tip { bottom: 98px; }
  .pt-app[data-sheet="tam"] .pt-tip { display: none; }
  .pt-exports { grid-template-columns: 1fr 1fr; }
  .pt-half i { font-size: 9px; padding: 1px 3px; }
}

/* ---- görünüm anahtarı 2D / 2.5D / Teknik: dikey grup, zoom düğmeleriyle aynı sütun ve genişlik ---- */
.pt-float-br { --pt-ibw: 36px; }
.pt-float-br .pt-ib { width: var(--pt-ibw); height: var(--pt-ibw); }
.pt-viewsw { display: flex; flex-direction: column; width: var(--pt-ibw, 36px); box-sizing: border-box; padding: 2px; gap: 2px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.pt-viewsw button { display: grid; place-items: center; width: 100%; height: calc(var(--pt-ibw, 36px) - 6px); padding: 0; border: 0; border-radius: 9px; background: none; color: var(--muted); font: 800 11px var(--font-body); letter-spacing: -.02em; cursor: pointer; }
.pt-viewsw button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pt-viewsw button[aria-pressed="true"] { background: var(--pt-on); color: #fff; }
.pt-viewsw button:not([aria-pressed="true"]):hover { color: var(--heading); background: var(--soft); }
.pt-viewsw button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pt-float-br .pt-tolcu svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pt-float-br .pt-tolcu[aria-pressed="true"] { background: var(--pt-on); border-color: var(--pt-on); color: #fff; }
/* telefonda her görünüm düğmesi tam 44 × 44 dokunma alanı: grup kenarlığı gölgeyle çizilir, iç boşluk yok */
@media (max-width: 860px) {
  .pt-float-br { --pt-ibw: 44px; gap: 5px; }
  .pt-viewsw { padding: 0; gap: 0; border: 0; box-shadow: 0 0 0 1px var(--line-strong), var(--shadow); }
  .pt-viewsw button { height: var(--pt-ibw); border-radius: 0; font-size: 12px; }
  .pt-viewsw button:first-child { border-radius: 12px 12px 0 0; }
  .pt-viewsw button:last-child { border-radius: 0 0 12px 12px; }
}
/* kısa ekranda (yatay telefon, alt çekmece yarım) sütun iki sütuna bölünür: görünüm solda, zoom sağda */
@media (max-height: 560px), (max-width: 860px) and (max-height: 760px) {
  .pt-app .pt-float-br { display: grid; grid-template-columns: var(--pt-ibw) var(--pt-ibw); align-items: end; }
  .pt-app .pt-float-br .pt-tolcu { grid-column: 1; grid-row: 1; }
  .pt-app .pt-float-br .pt-viewsw { grid-column: 1; grid-row: 2 / span 3; align-self: end; }
  .pt-app .pt-float-br [data-pt-cmd="zoomEksi"] { grid-column: 2; grid-row: 2; }
  .pt-app .pt-float-br [data-pt-cmd="sigdir"] { grid-column: 2; grid-row: 3; }
  .pt-app .pt-float-br [data-pt-cmd="zoomArti"] { grid-column: 2; grid-row: 4; }
}
/* teknik çizim: etiket düzenleme penceresi (tuvalde, etiketin altında) */
.pt-stage.is-edit-label { cursor: text; }
.pt-tedit { position: absolute; z-index: 30; display: grid; gap: 6px; min-width: 196px; padding: 10px; border: 1px solid #7fe0ff; border-radius: 12px; background: #0a2646; color: #eaf3ff; box-shadow: 0 10px 30px rgba(0,0,0,.35); font: 600 13px var(--font-body); }
.pt-tedit-h { margin: 0 0 2px; font-weight: 800; font-size: 12.5px; color: #bfe6ff; }
.pt-tedit label { display: grid; grid-template-columns: 1fr 84px 18px; align-items: center; gap: 6px; }
.pt-tedit input { height: 34px; padding: 0 8px; border: 1px solid #8ec5ff; border-radius: 8px; background: #0e335d; color: #fff; font: 700 14px var(--font-body); text-align: right; }
.pt-tedit input:focus { outline: 2px solid #ffd166; outline-offset: 0; }
.pt-tedit em { font-style: normal; color: #bfe6ff; }
.pt-tedit-btns { display: flex; gap: 6px; justify-content: flex-end; margin-top: 2px; }
.pt-tedit-btns .pt-b { height: 34px; }
@media (max-width: 860px) { .pt-tedit input, .pt-tedit-btns .pt-b { height: 44px; } }

/* ---- oyun: sürüş çubuğu, gösterge, geri sayım, sonuç, pedaller ---- */
/* Sür: ana düğme (her zaman Otomatik) + yanında mod menüsü oku */
.pt-sursplit { display: flex; align-items: stretch; }
.pt-sursplit > .pt-hb { border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
.pt-surmenu > summary { list-style: none; }
.pt-surmenu > summary::-webkit-details-marker { display: none; }
.pt-surok { display: grid; place-items: center; width: 18px; height: 100%; border-radius: 4px 11px 11px 4px; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.pt-surok svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.pt-surok:hover, .pt-surmenu[open] > .pt-surok { background: var(--soft); color: var(--heading); }
.pt-surmenu[open] > .pt-surok svg { transform: rotate(180deg); }
.pt-surmenu-list { left: auto; right: auto; width: 300px; transform: translateX(-60%); }
.pt-surmenu-list .pt-surmi { align-items: flex-start; min-height: 52px; }
.pt-surmi-t { display: grid; gap: 2px; min-width: 0; }
.pt-surmi-t small { font-weight: 500; font-size: 12px; color: var(--muted); white-space: normal; }
.pt-surmi::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-strong); }
.pt-surmi.is-on::before { background: var(--pt-go); box-shadow: none; }
/* sürüş çubuğu: o anki mod + tek tıkla geçiş */
.pt-drive-mod { display: inline-flex; flex: none; padding: 2px; gap: 2px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.pt-drive .pt-drive-mod button { height: 24px; background: none; color: rgba(255, 255, 255, .75); }
.pt-drive .pt-drive-mod button:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.pt-drive .pt-drive-mod button[aria-pressed="true"] { background: var(--pt-go); color: #fff; cursor: default; }
@media (max-width: 860px) {
  .pt-surok { width: 16px; }
  .pt-surmenu { position: static; }
  .pt-surmenu-list { position: fixed; left: 8px; right: 8px; top: 108px; width: auto; transform: none; z-index: 40; }
  .pt-surmenu-list .pt-surmi { min-height: 56px; }
}
@media (max-width: 560px) {
  .pt-drive-bar { flex-wrap: wrap; row-gap: 5px; }
  .pt-drive-mod { flex: 1 0 100%; order: -1; }
  .pt-drive-dot { display: none; }
  .pt-drive .pt-drive-mod button { flex: 1; height: 38px; font-size: 13px; }
  .pt-drive [data-pt-drive-info] { flex: 1 0 100%; }
  .pt-drive-bar > button { height: 34px; }
}
.pt-drive button[hidden] { display: none; }
.pt-oy-mod { margin: 2px 0 8px; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); flex-wrap: wrap; }
.pt-oy-mod button { color: rgba(255, 255, 255, .75); }
.pt-oy-sliders { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 12px; margin: 2px 0 8px; }
.pt-oy-r { display: grid; gap: 2px; font-weight: 600; }
.pt-oy-r span { display: flex; justify-content: space-between; gap: 8px; }
.pt-oy-r input { width: 100%; accent-color: #46d989; }
.pt-drive .pt-btns { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.pt-drive .pt-btns button.is-primary { background: var(--pt-go); }
.pt-oy-h { margin: 8px 0 4px; color: rgba(255, 255, 255, .7); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.pt-oy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pt-oy-list li { display: flex; gap: 4px; }
.pt-oy-list li button:first-child { flex: 1; text-align: left; white-space: normal; height: auto; min-height: 26px; padding: 3px 10px; border-radius: 8px; }
.pt-ohud { position: absolute; right: 10px; top: 54px; z-index: 4; min-width: 190px; padding: 8px 12px 9px; border-radius: 14px; background: rgba(16, 22, 32, .88); color: #fff; font: 600 12px var(--font-body); font-variant-numeric: tabular-nums; box-shadow: var(--shadow-hover); pointer-events: none; }
.pt-ohud[hidden] { display: none; }
.pt-ohud-ust, .pt-ohud-alt { display: flex; flex-wrap: wrap; gap: 4px 12px; color: rgba(255, 255, 255, .75); }
.pt-ohud b { color: #fff; }
.pt-ohud-t { font: 800 30px/1.1 var(--font-body); letter-spacing: -.01em; margin: 2px 0; }
.pt-ohud-hedef { margin-top: 4px; color: #ffd27a; font-weight: 700; }
.pt-ohud-hedef.is-ghost { color: #c3cad6; font-weight: 600; }
.pt-ohud-fark { display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: 999px; color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }
.pt-ohud-fark.is-onde { background: #1f8a4c; }
.pt-ohud-fark.is-geride { background: #e30a14; }
.pt-ohud-durum { margin-top: 4px; display: inline-block; padding: 1px 8px; border-radius: 999px; background: #4272b4; font-weight: 800; }
.pt-ocount { position: absolute; left: 50%; top: 42%; z-index: 6; transform: translate(-50%, -50%); padding: 10px 26px; border-radius: 22px; background: rgba(16, 22, 32, .85); color: #fff; font: 900 64px/1 var(--font-body); box-shadow: var(--shadow-hover); pointer-events: none; animation: pt-say .9s var(--ease) infinite; }
.pt-ocount[hidden] { display: none; }
@keyframes pt-say { from { transform: translate(-50%, -50%) scale(1.15); } to { transform: translate(-50%, -50%) scale(1); } }
.pt-app.is-calm .pt-ocount { animation: none; }
.pt-oson { position: absolute; left: 50%; top: 50%; z-index: 7; transform: translate(-50%, -50%); width: min(460px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow: auto; padding: 16px 18px; border-radius: 18px; background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow-hover); }
.pt-oson[hidden] { display: none; }
.pt-oson-k { margin: 0; font: 900 26px/1.1 var(--font-body); color: var(--heading); }
.pt-oson-b { margin: 4px 0 10px; color: var(--muted); font-weight: 600; }
.pt-oson table { width: 100%; border-collapse: collapse; font: 600 12.5px var(--font-body); font-variant-numeric: tabular-nums; }
.pt-oson th { text-align: left; color: var(--muted); font-weight: 700; padding: 3px 6px; }
.pt-oson td { padding: 4px 6px; border-top: 1px solid var(--line); }
.pt-oson td i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.pt-oson tr.is-me td { background: var(--accent-soft); font-weight: 800; }
.pt-oson-n { margin: 10px 0 6px; color: var(--muted); font-size: 12px; }
.pt-pad { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 5; display: flex; justify-content: space-between; padding: 0 12px; pointer-events: none; }
.pt-pad[hidden] { display: none; }
.pt-pad > div { display: flex; gap: 10px; pointer-events: auto; }
.pt-pad button { width: 74px; height: 74px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 22px; background: rgba(16, 22, 32, .62); color: #fff; font: 900 15px var(--font-body); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.pt-pad button.is-gaz { background: rgba(19, 121, 74, .8); }
.pt-pad button.is-fren { background: rgba(66, 114, 180, .8); }
.pt-pad button.is-on { transform: scale(.94); border-color: #fff; filter: brightness(1.25); }
@media (hover: hover) and (pointer: fine) { .pt-pad { display: none; } }
.pt-app.is-playing .pt-float-br, .pt-app.is-playing .pt-ctx { visibility: hidden; }
@media (max-width: 860px) {
  .pt-ohud { top: auto; bottom: 100px; right: 8px; min-width: 0; padding: 6px 10px; }
  .pt-ohud-t { font-size: 22px; }
  .pt-pad button { width: 66px; height: 66px; }
  /* Ben süreyim: alt çekmece pedallerin üstünü kapatmasın (Durdur / Otomatik ile geri gelir) */
  .pt-app.is-playing .pt-sheet { display: none; }
}

/* ---- adım adım yap ---- */
.pt-guide { position: absolute; left: 10px; top: 10px; z-index: 4; width: min(340px, calc(100% - 20px)); padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--pt-go); box-shadow: var(--shadow-hover); }
.pt-guide[hidden] { display: none; }
.pt-guide-h { display: flex; align-items: center; gap: 8px; padding-right: 28px; font-size: 13px; color: var(--heading); }
.pt-guide .pt-tip-x { top: 6px; }
.pt-guide-bar { height: 6px; margin: 8px 0 6px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.pt-guide-bar i { display: block; height: 100%; background: var(--pt-go); transition: width .2s; }
.pt-guide-no { margin: 0; color: var(--muted); font: 700 11.5px var(--font-body); }
.pt-guide-m { margin: 2px 0 4px; color: var(--heading); font: 700 14px var(--font-body); }
.pt-guide .pt-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pt-card.is-guide { border-color: var(--pt-go); box-shadow: 0 0 0 2px var(--pt-go) inset, 0 6px 18px -6px rgba(19, 121, 74, .8); animation: pt-rehber 1.2s ease-in-out infinite; }
.pt-card.is-guide::before { content: "Sıradaki"; position: absolute; top: 4px; left: 50%; transform: translateX(-50%); z-index: 2; padding: 1px 6px; border-radius: 6px; background: var(--pt-go); color: #fff; font: 800 9.5px var(--font-body); }
.pt-card.is-guide[data-guide="sol"] .pt-half.is-l, .pt-card.is-guide[data-guide="sag"] .pt-half.is-r { background: rgba(19, 121, 74, .22); }
.pt-card.is-guide[data-guide="sol"] .pt-half.is-l i, .pt-card.is-guide[data-guide="sag"] .pt-half.is-r i { opacity: 1; color: #fff; background: var(--pt-go); }
@keyframes pt-rehber { 50% { box-shadow: 0 0 0 4px rgba(19, 121, 74, .35) inset, 0 6px 22px -4px rgba(19, 121, 74, .9); } }
.pt-app.is-calm .pt-card.is-guide { animation: none; }
@media (max-width: 860px) {
  .pt-guide { top: 8px; left: 8px; padding: 8px 10px; }
  .pt-guide .pt-help { display: none; }
}

/* ---- şablon kartı: Sür + nasıl yapıldı ---- */
.pt-tpls { align-items: start; }
.pt-tplw .pt-tpl { padding-bottom: 10px; }
.pt-tpl-foot { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; padding: 6px 0 0; }
.pt-tpl-foot .pt-tpl-go { position: static; }
.pt-tpl-how { flex: 1 1 160px; min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.pt-tpl-how summary { padding: 6px 10px; cursor: pointer; font: 700 12.5px var(--font-body); color: var(--heading); }
.pt-tpl-how summary small { color: var(--muted); font-weight: 600; }
.pt-tpl-how ol { max-height: 220px; overflow: auto; margin: 0; padding: 4px 10px 6px 30px; font: 500 12px/1.45 var(--font-body); color: var(--text); }
.pt-tpl-how li.is-ayar { list-style: none; margin-left: -18px; color: var(--muted); }
.pt-tpl-how .pt-b { margin: 4px 10px 10px; }

/* ---------------------------------------------------------------- Sürüm 4: Tesis kur (alt katalog, özet kartı, alan çubuğu) */
.pt-hb.is-kur[aria-pressed="true"] { background: #2e9e5b; border-color: #2e9e5b; color: #fff; box-shadow: 0 6px 18px -6px rgba(46, 158, 91, .7); }
.pt-kur { position: absolute; left: 10px; right: 64px; bottom: 10px; z-index: 5; display: grid; grid-template-rows: auto auto; padding: 6px 8px 8px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-hover), 0 18px 40px -22px rgba(16, 24, 40, .5); }
.pt-kur[hidden] { display: none; }
.pt-kur-tabs { display: flex; gap: 2px; padding: 0 30px 4px 2px; overflow-x: auto; scrollbar-width: none; }
.pt-kur-tabs::-webkit-scrollbar { display: none; }
.pt-kur-tabs button { --kat: var(--pt-on); flex: 0 0 auto; padding: 5px 11px 6px; border: 0; border-bottom: 3px solid transparent; border-radius: 8px 8px 0 0; background: none; color: var(--muted); font: 700 13px var(--font-body); cursor: pointer; }
.pt-kur-tabs button[aria-selected="true"] { color: var(--heading); border-bottom-color: var(--kat); background: var(--soft); }
.pt-kur-tabs small { display: inline-block; min-width: 18px; margin-left: 3px; padding: 0 5px; border-radius: 999px; background: var(--soft); color: var(--muted); font: 800 10.5px/17px var(--font-body); }
.pt-kur-list { display: flex; gap: 6px; padding: 4px 2px 2px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.pt-kcard { flex: 0 0 86px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px 7px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--heading); cursor: grab; touch-action: pan-x; transition: transform .14s ease, border-color .14s, box-shadow .14s; }
.pt-kcard:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.pt-kcard.is-on { border-color: #2e9e5b; box-shadow: 0 0 0 2px rgba(46, 158, 91, .45); background: var(--soft); }
.pt-kcard.is-lift { opacity: .45; }
.pt-kcard .pt-oge-ic, .pt-kcard .pt-oge-ic svg { width: 44px; height: 44px; }
.pt-kcard b { font: 700 11.5px/1.2 var(--font-body); text-align: center; }
.pt-kcard small { font: 600 10px/1.1 var(--font-body); color: var(--muted); }
.pt-kur-x { position: absolute; right: 6px; top: 4px; width: 28px; height: 28px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.pt-kur-x:hover { background: var(--soft); color: var(--heading); }
.pt-kghost { width: auto; padding: 4px; border-radius: 14px; transform: none; }
.pt-kghost .pt-oge-ic svg { width: 56px; height: 56px; }
.pt-app.is-kur .pt-float-br { bottom: 150px; }
.pt-app.is-kur .pt-toast { bottom: 166px; }
.pt-app.is-kur .pt-tip { bottom: auto; top: 10px; left: 10px; transform: none; max-width: min(420px, calc(100% - 360px)); }

.pt-alanbar { position: absolute; left: 50%; top: 10px; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; max-width: calc(100% - 20px); width: max-content; padding: 8px 10px 8px 14px; transform: translateX(-50%); border: 1px solid var(--line-strong); border-left: 4px solid #2e9e5b; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-hover); font: 600 13px/1.4 var(--font-body); color: var(--heading); }
.pt-alanbar[hidden] { display: none; }
.pt-alanbar .pt-b { height: 34px; }

.pt-tozet { position: absolute; right: 64px; top: 10px; z-index: 5; width: 262px; max-height: calc(100% - 180px); overflow: auto; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-hover); font: 500 12.5px/1.4 var(--font-body); color: var(--text); }
.pt-tozet[hidden] { display: none; }
.pt-tz-h { position: relative; display: flex; align-items: center; gap: 10px; padding-right: 22px; }
.pt-tz-h .pt-tip-x { top: -2px; right: -4px; }
.pt-tz-ring { --p: 0; flex: 0 0 auto; display: grid; place-items: center; align-content: center; width: 58px; height: 58px; border-radius: 50%; background: radial-gradient(closest-side, var(--surface) 78%, transparent 80%), conic-gradient(#2e9e5b calc(var(--p) * 1%), var(--soft) 0); }
.pt-tz-ring b { font: 800 19px/1 var(--font-body); color: var(--heading); }
.pt-tz-ring small { font: 700 9.5px/1 var(--font-body); color: var(--muted); }
.pt-tz-t { margin: 0; font: 800 14px var(--font-body); color: var(--heading); }
.pt-tz-y { margin: 2px 0 0; color: #f5b400; font-size: 16px; letter-spacing: 1px; }
.pt-tz-bar { display: grid; grid-template-columns: 84px 1fr 26px; align-items: center; gap: 6px; margin: 6px 0 0; font-weight: 700; color: var(--heading); }
.pt-tz-bar i { height: 7px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.pt-tz-bar b { display: block; height: 100%; border-radius: inherit; transition: width .35s ease; }
.pt-tz-bar em { font-style: normal; text-align: right; color: var(--muted); }
.pt-tz-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; margin: 10px 0 0; padding: 8px 0 0; border-top: 1px solid var(--line); list-style: none; }
.pt-tz-list li { display: flex; justify-content: space-between; gap: 4px; }
.pt-tz-list span { color: var(--muted); }
.pt-tz-list b { color: var(--heading); }
.pt-tz-oh { margin: 10px 0 4px; font: 800 12.5px var(--font-body); color: var(--heading); }
.pt-tz-oh small { color: var(--muted); }
.pt-tz-oneri { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.pt-tz-oneri li { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 4px 4px 8px; border-left: 3px solid #f5b400; border-radius: 6px; background: var(--soft); color: var(--heading); }
.pt-tz-oneri button { flex: 0 0 auto; height: 26px; padding: 0 10px; border: 1px solid #2e9e5b; border-radius: 8px; background: #2e9e5b; color: #fff; font: 700 12px var(--font-body); cursor: pointer; }
.pt-tz-ok { margin: 10px 0 0; font-weight: 700; color: var(--heading); }
.pt-tz-not { margin: 8px 0 0; font-size: 11px; color: var(--muted); }
.pt-tozet.is-min { width: auto; padding: 6px 8px; }
.pt-tozet.is-min .pt-tz-body, .pt-tozet.is-min .pt-tz-y { display: none; }
.pt-tozet.is-min .pt-tz-ring { width: 44px; height: 44px; }
.pt-tozet.is-min .pt-tz-ring b { font-size: 15px; }
@media (max-width: 860px) {
  .pt-kur { left: 6px; right: 6px; bottom: 96px; padding: 4px 6px 6px; border-radius: 14px; }
  .pt-kcard { flex-basis: 74px; padding: 5px 3px 6px; }
  .pt-kcard .pt-oge-ic, .pt-kcard .pt-oge-ic svg { width: 38px; height: 38px; }
  .pt-kcard b { font-size: 10.5px; }
  .pt-app.is-kur .pt-float-br { bottom: 236px; }
  .pt-app.is-kur .pt-toast { bottom: 240px; }
  .pt-app.is-kur .pt-tip { display: none; }
  .pt-tozet { right: 8px; top: 8px; width: min(250px, calc(100% - 16px)); max-height: calc(100% - 260px); }
  .pt-alanbar { left: 8px; right: 8px; transform: none; width: auto; font-size: 12.5px; padding: 6px 8px 6px 10px; }
}

/* ---------------------------------------------------------------- açılış penceresi: kaldığın yerden devam et */
.pt-walt { margin: 2px 0 0; font: 600 13px var(--font-body); color: var(--muted); }
.pt-devam { margin: 6px 0 4px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.pt-devam .pt-step { margin-top: 8px; }
.pt-dv-grup + .pt-dv-grup { margin-top: 8px; }
.pt-dv-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 6px; font: 700 12.5px var(--font-body); color: var(--heading); }
.pt-dv-h a, .pt-dv-h button { padding: 0; border: 0; background: none; font: 700 12.5px var(--font-body); color: #4272b4; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
:root[data-theme="dark"] .pt-dv-h a, :root[data-theme="dark"] .pt-dv-h button { color: #8fb3e8; }
.pt-dv-list { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 2px 2px 10px; scrollbar-width: thin; }
.pt-dv { position: relative; flex: 0 0 186px; display: flex; flex-direction: column; gap: 2px; padding: 0 0 9px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: left; text-decoration: none; cursor: pointer; color: #4272b4; overflow: hidden; scroll-snap-align: start; transition: transform .16s var(--ease), box-shadow .16s, border-color .15s; }
.pt-dv:hover, .pt-dv:focus-visible { transform: translateY(-2px); border-color: #4272b4; box-shadow: var(--shadow-hover); }
.pt-dv.is-oto { border-color: #4272b4; box-shadow: inset 0 0 0 1px #4272b4; }
.pt-dv-art { display: grid; place-items: center; height: 92px; margin-bottom: 4px; background: var(--soft); border-bottom: 1px solid var(--line); overflow: hidden; }
.pt-dv-art svg { --pt-card: var(--soft); width: 168px; height: 88px; }
.pt-dv-art img { width: 100%; height: 100%; object-fit: cover; }
.pt-dv-yok { width: 46px; height: 28px; border: 3px dashed var(--line-strong); border-radius: 14px; }
.pt-dv-rozet { position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 7px; background: #4272b4; color: #fff; font: 800 11px var(--font-body); letter-spacing: .02em; }
.pt-dv b { padding: 0 10px; font: 800 13.5px/1.25 var(--font-head); color: var(--heading); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pt-dv small { padding: 0 10px; font: 600 11.5px/1.35 var(--font-body); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root[data-theme="dark"] .pt-dv { color: #8fb3e8; }
@media (max-width: 860px) {
  .pt-dv { flex-basis: 152px; }
  .pt-dv-art { height: 76px; }
  .pt-dv-art svg { width: 140px; height: 72px; }
}
