/* streamix — açık tema. Sade yüzeyler, ince çizgiler, yumuşak hareket. */
:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #f3f2ee;
  --surface-3: #e8e6e0;
  --border: #e6e3dc;
  --border-strong: #d6d2c9;
  --text: #1c1c1a;
  --muted: #6e6c66;
  --ink: #1c1c1a;            /* ana düğmeler */
  --ink-hover: #33332f;
  --on-ink: #ffffff;           /* ana düğme yazısı */
  --accent: #15803d;         /* canlı / iyi */
  --accent-ink: #ffffff;
  --accent-soft: #e8f5ec;
  --live: #dc3d43;
  --live-soft: #fdeceb;
  --warn: #c2700a;
  --warn-soft: #fdf3e2;
  --in: #16a34a;
  --out: #3b5bdb;
  --radius: 16px;
  --r-sm: 10px;
  --shadow-1: 0 1px 2px rgb(28 28 26 / .04), 0 0 0 1px rgb(28 28 26 / .02);
  --shadow-2: 0 2px 4px rgb(28 28 26 / .04), 0 12px 32px -12px rgb(28 28 26 / .14);
  --shadow-3: 0 24px 64px -16px rgb(28 28 26 / .28);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.2, 1.3, .4, 1);
  color-scheme: light;
}
/* gece modu */
:root[data-theme="dark"] {
  --bg: #121211; --surface: #1b1b19; --surface-2: #232320; --surface-3: #2e2e2a;
  --border: #2a2a27; --border-strong: #3a3a35; --text: #ecebe6; --muted: #9b998f;
  --ink: #ecebe6; --ink-hover: #ffffff; --on-ink: #141413;
  --accent: #3ccf6e; --accent-soft: rgb(60 207 110 / .14); --live: #ff5a5f; --live-soft: rgb(255 90 95 / .14);
  --warn: #f0a531; --warn-soft: rgb(240 165 49 / .14); --in: #3ccf6e; --out: #7c95ff;
  --shadow-1: 0 1px 2px rgb(0 0 0 / .3); --shadow-2: 0 2px 4px rgb(0 0 0 / .3), 0 12px 32px -12px rgb(0 0 0 / .6);
  --shadow-3: 0 24px 64px -16px rgb(0 0 0 / .7);
  color-scheme: dark;
}
/* tema değişirken renkler yumuşak geçsin */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease) !important;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 14px/1.5 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
a { color: inherit; }
::selection { background: color-mix(in srgb, var(--out) 22%, transparent); }
h3 { font-size: 11.5px; margin: 6px 0 0; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--border); margin: 8px 0; width: 100%; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt { margin-top: 12px; }
.err { color: var(--live); margin: 0; min-height: 1.2em; }
.danger-text { color: var(--live) !important; }
p.warn { color: var(--warn); font-weight: 600; margin: .4em 0; }

/* ---------- hareket */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes ping { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }

/* sekme değişince kartlar sırayla belirir */
.view > *, .view .col > *, .view .grid2 > .col > * { animation: rise .5s var(--ease) both; }
.view > *:nth-child(2), .view .col > *:nth-child(2) { animation-delay: .04s; }
.view > *:nth-child(3), .view .col > *:nth-child(3) { animation-delay: .08s; }
.view > *:nth-child(4), .view .col > *:nth-child(4) { animation-delay: .12s; }
.view > *:nth-child(5), .view .col > *:nth-child(5) { animation-delay: .16s; }
.view > *:nth-child(n+6), .view .col > *:nth-child(n+6) { animation-delay: .2s; }
.view .grid2 > .col:nth-child(2) > * { animation-delay: .1s; }

/* ---------- iskelet: sol menü + içerik */
#shell:not([hidden]) { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100dvh; transition: grid-template-columns .3s var(--ease); }
.side-collapsed #shell:not([hidden]) { grid-template-columns: 68px minmax(0, 1fr); }
.side {
  position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 4px; overflow: hidden auto;
  padding: max(16px, env(safe-area-inset-top)) 12px 16px; background: var(--surface); border-right: 1px solid var(--border);
}
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 2px 4px 14px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 750; letter-spacing: -.03em; font-size: 17px; white-space: nowrap; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 7px; background: var(--ink); position: relative; flex: none;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08);
}
.brand-mark::after {
  content: ''; position: absolute; left: 7px; top: 6px; border: 5px solid transparent; border-left: 8px solid var(--on-ink); border-right: 0;
}
.collapse-btn { width: 30px; height: 30px; flex: none; color: var(--muted); }
.collapse-btn svg { width: 18px; height: 18px; }
.collapse-btn .chev { transition: transform .3s var(--ease); transform-origin: 14px 12px; }
.side-collapsed .collapse-btn .chev { transform: scaleX(-1); }
.side-label { font-size: 10.5px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); padding: 8px 12px 4px; white-space: nowrap; }
.side-nav { display: grid; gap: 2px; }
.tab {
  position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px;
  text-decoration: none; color: var(--muted); font-weight: 560; white-space: nowrap;
  transition: color .2s, background .2s, box-shadow .2s, transform .15s var(--ease);
}
.tab:hover { color: var(--text); background: var(--surface-2); }
.tab:active { transform: scale(.98); }
.tab.active { background: var(--surface-2); color: var(--text); font-weight: 650; }
.side-nav .tab.active::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ink); }
.tab-icon { display: inline-grid; place-items: center; width: 18px; height: 18px; font-size: 14px; flex: none; }
.tab-icon svg { width: 18px; height: 18px; }
.side-foot { margin-top: auto; display: grid; gap: 2px; padding-top: 12px; border-top: 1px solid var(--border); }
.side-status { display: grid; gap: 1px; padding: 2px 0 8px; }
.ss-row { display: grid; grid-template-columns: 8px auto 1fr; align-items: center; gap: 9px; padding: 4px 12px; font-size: 12.5px; white-space: nowrap; }
.ss-name { color: var(--text); font-weight: 560; }
.ss-val { color: var(--muted); text-align: right; overflow: hidden; text-overflow: ellipsis; }
.ss-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.ss-dot.ok { background: var(--accent); }
.ss-dot.live { background: var(--live); animation: dotping 1.6s ease-out infinite; }
.ss-dot.warn { background: var(--warn); }
.ss-dot.bad { background: var(--live); }
/* daraltılmış menü: yalnızca ikonlar */
.side-collapsed .side { padding-left: 10px; padding-right: 10px; }
.side-collapsed .brand-text, .side-collapsed .tab-label, .side-collapsed .side-label, .side-collapsed .ss-name, .side-collapsed .ss-val { display: none; }
.side-collapsed .side-head { flex-direction: column; gap: 10px; padding-bottom: 10px; }
.side-collapsed .tab { justify-content: center; padding: 10px 0; }
.side-collapsed .side-nav .tab.active::before { left: -10px; }
.side-collapsed .ss-row { grid-template-columns: 8px; justify-content: center; padding: 6px 0; }
.side-collapsed .side-status { gap: 4px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px;
  padding: max(12px, env(safe-area-inset-top)) 24px 12px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.page-title { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.mobile-brand { display: none; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 650; letter-spacing: .06em;
  padding: 5px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); white-space: nowrap;
  transition: background .3s, color .3s, border-color .3s;
}
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); position: relative; }
.badge.live { background: var(--live-soft); color: var(--live); border-color: color-mix(in srgb, var(--live) 30%, transparent); }
.badge.live::before { background: var(--live); box-shadow: 0 0 0 0 var(--live); animation: dotping 1.6s ease-out infinite; }
@keyframes dotping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 55%, transparent); } 100% { box-shadow: 0 0 0 7px transparent; } }
.badge.recon { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.badge.recon::before { background: var(--warn); }
.duration { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 550; }
.top .menu-btn, .drawer, .drawer-backdrop { display: none; }

.banner {
  margin: 12px 24px 0; background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 25%, transparent);
  color: color-mix(in srgb, var(--warn) 80%, var(--text)); padding: 10px 14px; border-radius: 12px; animation: rise .4s var(--ease);
}
.view { max-width: 1440px; margin: 0 auto; padding: 20px 24px 48px; display: grid; gap: 16px; }

@media (max-width: 860px) {
  #shell:not([hidden]), .side-collapsed #shell:not([hidden]) { grid-template-columns: minmax(0, 1fr); }
  .side, .page-title { display: none; }
  .mobile-brand { display: flex; }
  .top { padding-left: 14px; padding-right: 14px; gap: 10px; }
  .duration { display: none; }
  .view { padding: 14px 12px calc(28px + env(safe-area-inset-bottom)); gap: 12px; }
  .banner { margin: 10px 12px 0; }
  .card { padding: 14px; }

  /* hamburger */
  .top .menu-btn { display: inline-grid; width: 38px; height: 38px; }
  .menu-btn svg { width: 20px; height: 20px; }
  .menu-btn path { transition: transform .3s var(--ease), opacity .2s; transform-origin: 12px 12px; }
  .menu-open .menu-btn .l1 { transform: translateY(5px) rotate(45deg); }
  .menu-open .menu-btn .l2 { opacity: 0; }
  .menu-open .menu-btn .l3 { transform: translateY(-5px) rotate(-45deg); }

  /* yandan kayan menü */
  .drawer-backdrop {
    display: block; position: fixed; inset: 0; z-index: 30; background: rgb(28 28 26 / .28);
    backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
  }
  .drawer {
    display: flex; flex-direction: column; position: fixed; z-index: 31; top: 0; right: 0; bottom: 0; width: min(80vw, 300px);
    background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow-3);
    padding: calc(68px + env(safe-area-inset-top)) 12px calc(16px + env(safe-area-inset-bottom));
    transform: translateX(105%); transition: transform .38s var(--ease); overflow-y: auto;
  }
  .menu-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
  .menu-open .drawer { transform: none; }
  .menu-open { overflow: hidden; }
  .top { z-index: 40; }
  .drawer-tabs { display: grid; gap: 4px; }
  .drawer-tabs .tab { padding: 13px 14px; border-radius: 12px; font-size: 15.5px; gap: 12px; color: var(--text); opacity: 0; transform: translateX(16px); }
  .drawer-tabs .tab-icon, .drawer-tabs .tab-icon svg { width: 20px; height: 20px; }
  .drawer-tabs .tab.active { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--ink); }
  .menu-open .drawer-tabs .tab { opacity: 1; transform: none; transition: opacity .3s var(--ease), transform .35s var(--ease), background .2s; }
  .menu-open .drawer-tabs .tab:nth-child(2) { transition-delay: .03s; }
  .menu-open .drawer-tabs .tab:nth-child(3) { transition-delay: .06s; }
  .menu-open .drawer-tabs .tab:nth-child(4) { transition-delay: .09s; }
  .menu-open .drawer-tabs .tab:nth-child(5) { transition-delay: .12s; }
  .menu-open .drawer-tabs .tab:nth-child(6) { transition-delay: .15s; }
  .menu-open .drawer-tabs .tab:nth-child(n+7) { transition-delay: .18s; }
}
@media (max-width: 480px) {
  .badge { padding: 4px 9px; font-size: 10.5px; }
  .brand { font-size: 16px; }
  .stat { padding: 12px; }
  .stat-value { font-size: 23px; }
  .btn.big { min-height: 54px; font-size: 16px; }
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scenes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row.wrap > .btn { flex: 1 1 auto; }
  .modal-wrap { align-items: end; padding: 0; }
  .modal { max-width: none; border-radius: 18px 18px 0 0; max-height: 92dvh; animation: sheetIn .35s var(--ease); }
  @keyframes sheetIn { from { transform: translateY(40px); opacity: 0; } }
}

/* ---------- yerleşim */
.grid2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.grid-studio { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.col { display: grid; gap: 16px; min-width: 0; }
.row { display: flex; gap: 8px; align-items: center; }
.row > .field { flex: 1; min-width: 0; }
.row.wrap { flex-wrap: wrap; }
@media (max-width: 1000px) { .grid2, .grid-studio { grid-template-columns: 1fr; } .col { gap: 12px; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; min-width: 0;
  box-shadow: var(--shadow-1); transition: box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { box-shadow: var(--shadow-2); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2 { font-size: 14.5px; margin: 0; font-weight: 650; letter-spacing: -.01em; }
.hint { font-size: 12px; }

/* ---------- istatistik kutuları */
.stats4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 640px) { .stats4 { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.stat {
  position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; min-width: 0; box-shadow: var(--shadow-1); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .3s;
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.stat::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: transparent; transition: background .3s; }
.stat-label { font-size: 12px; color: var(--muted); font-weight: 550; }
.stat-value { font-size: 28px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.25; margin-top: 2px; transition: color .3s; }
.stat-value small { font-size: 12px; font-weight: 550; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.stat-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat.ok::before { background: var(--accent); }
.stat.warn::before { background: var(--warn); }
.stat.warn .stat-value { color: var(--warn); }
.stat.bad::before { background: var(--live); }
.stat.bad .stat-value { color: var(--live); }

.chart { width: 100%; height: 160px; display: block; }
.legend { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--muted); flex: none; }
.dot.in, .dot.ok { background: var(--in); }
.dot.out { background: var(--out); margin-left: 8px; }
.dot.thr { background: var(--warn); margin-left: 8px; }
.dot.bad { background: var(--live); }

/* ---------- butonlar */
.btn {
  position: relative; min-height: 40px; padding: 8px 15px; border-radius: 11px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); font: inherit; font-weight: 580; white-space: nowrap;
  box-shadow: 0 1px 2px rgb(28 28 26 / .05);
  transition: background .18s, border-color .18s, box-shadow .2s, transform .15s var(--ease), color .18s;
}
.btn:hover:not(:disabled) { background: var(--surface-2); border-color: color-mix(in srgb, var(--border-strong) 70%, var(--text)); }
.btn:active:not(:disabled) { transform: scale(.975); box-shadow: none; }
.btn:focus-visible { outline: 2px solid var(--out); outline-offset: 2px; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.sm { min-height: 32px; padding: 5px 11px; font-size: 13px; border-radius: 9px; }
.btn.primary { background: var(--ink); color: var(--on-ink); border-color: var(--ink); box-shadow: 0 1px 2px rgb(28 28 26 / .2), inset 0 1px 0 rgb(255 255 255 / .1); }
.btn.primary:hover:not(:disabled) { background: var(--ink-hover); border-color: var(--ink-hover); }
.btn.primary-soft { border-color: color-mix(in srgb, var(--accent) 45%, var(--border-strong)); color: var(--accent); background: var(--accent-soft); }
.btn.danger { background: var(--live); color: #fff; border-color: var(--live); }
.btn.danger:hover:not(:disabled) { background: color-mix(in srgb, var(--live) 88%, #000); border-color: transparent; }
.btn.warn { border-color: color-mix(in srgb, var(--warn) 40%, var(--border-strong)); color: var(--warn); background: var(--warn-soft); }
.btn.on { background: var(--live-soft); border-color: color-mix(in srgb, var(--live) 45%, transparent); color: var(--live); }
.btn.confirm { animation: shake .35s; outline: 2px solid var(--warn); outline-offset: 2px; }
@keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.btn.big { width: 100%; min-height: 60px; font-size: 17px; font-weight: 650; letter-spacing: -.01em; border-radius: 14px; }
.btn.big.primary { box-shadow: 0 1px 2px rgb(28 28 26 / .2), 0 10px 24px -10px rgb(28 28 26 / .5); }
.btn.big.primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 1px 2px rgb(28 28 26 / .2), 0 16px 30px -12px rgb(28 28 26 / .55); }
.btn.big.danger { box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--live) 70%, transparent); }
.actions { display: grid; }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.toggles { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 14px; }
.icon-btn {
  background: var(--surface); border: 1px solid var(--border); color: var(--muted); width: 34px; height: 34px; border-radius: 10px;
  cursor: pointer; flex: none; font-size: 14px; display: inline-grid; place-items: center;
  transition: background .18s, color .18s, transform .15s var(--ease), border-color .18s;
}
.icon-btn.sm { width: 28px; height: 28px; font-size: 13px; border-radius: 8px; }
.icon-btn:hover:not(:disabled) { color: var(--text); background: var(--surface-2); border-color: var(--border-strong); }
.icon-btn:active:not(:disabled) { transform: scale(.92); }
.icon-btn.on { color: var(--live); border-color: color-mix(in srgb, var(--live) 45%, transparent); background: var(--live-soft); }
.icon-btn:disabled { opacity: .4; }

.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 2px; }
.seg-btn { border: 0; background: none; color: var(--muted); padding: 5px 11px; border-radius: 8px; cursor: pointer; font: inherit; font-weight: 580; transition: background .2s, color .2s, box-shadow .2s; }
.seg-btn.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgb(28 28 26 / .1); }

.pill { font-size: 11px; font-weight: 650; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.pill.live { background: var(--live-soft); border-color: transparent; color: var(--live); }
.pill.ok { background: var(--accent-soft); border-color: transparent; color: var(--accent); }

/* ---------- form */
.form { display: grid; gap: 12px; }
.field { display: grid; gap: 5px; }
.field > span { font-size: 12px; color: var(--muted); font-weight: 580; }
.field small { font-size: 11.5px; }
.input {
  width: 100%; min-height: 38px; padding: 7px 11px; border-radius: 10px; font: inherit;
  background: var(--surface); color: var(--text); border: 1px solid var(--border-strong);
  box-shadow: inset 0 1px 2px rgb(28 28 26 / .03); transition: border-color .18s, box-shadow .18s;
}
.input:hover { border-color: color-mix(in srgb, var(--border-strong) 60%, var(--muted)); }
.input:focus { outline: none; border-color: var(--out); box-shadow: 0 0 0 3px color-mix(in srgb, var(--out) 18%, transparent); }
textarea.input { resize: vertical; }
input[type=color].input { padding: 3px; height: 38px; cursor: pointer; }
.input.num { width: 84px; }
.grow { flex: 1; }
.switch { display: inline-flex; gap: 9px; align-items: center; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.slider { width: 38px; height: 22px; border-radius: 999px; background: var(--surface-3); position: relative; flex: none; transition: background .25s var(--ease); box-shadow: inset 0 1px 2px rgb(28 28 26 / .08); }
.slider::after { content: ''; position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(28 28 26 / .25); transition: transform .3s var(--spring); }
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::after { transform: translateX(16px); }
.switch:active .slider::after { width: 22px; }
.switch input:checked:active + .slider::after { transform: translateX(12px); }
.switch input:focus-visible + .slider { outline: 2px solid var(--out); outline-offset: 2px; }
.switch input:disabled + .slider { opacity: .5; }
details summary { cursor: pointer; color: var(--muted); font-weight: 580; transition: color .18s; }
details summary:hover { color: var(--text); }
details[open] > :not(summary) { animation: rise .3s var(--ease); }
.range { width: 100%; accent-color: var(--ink); }
select.input { appearance: none; padding-right: 30px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%236e6c66' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 4.5 3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; }

/* ---------- sahneler */
.scenes { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.scene {
  position: relative; min-height: 54px; padding: 8px; border-radius: 12px; cursor: pointer; background: var(--surface-2);
  border: 1px solid var(--border); color: var(--text); font: inherit; font-weight: 620; word-break: break-word;
  transition: background .2s, border-color .2s, box-shadow .25s, transform .15s var(--ease);
}
.scene:hover { background: var(--surface); border-color: var(--border-strong); box-shadow: var(--shadow-2); }
.scene:active { transform: scale(.97); }
.scene.active { background: var(--surface); border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--shadow-2); }
.scene.active::after { content: ''; position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.scene-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.scene-tab {
  display: flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 10px; background: var(--surface-2);
  border: 1px solid var(--border); color: var(--text); font: inherit; font-weight: 580; cursor: pointer; white-space: nowrap; transition: all .2s;
}
.scene-tab:hover { background: var(--surface); border-color: var(--border-strong); }
.scene-tab.active { background: var(--surface); border-color: var(--out); box-shadow: 0 0 0 1px var(--out); }
.scene-more { color: var(--muted); padding: 0 2px; }
.studio-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.studio-bar select.input { width: auto; }
.scene-hint { flex-basis: 100%; order: 10; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 12px; border-radius: 10px; background: var(--warn-soft); color: color-mix(in srgb, var(--warn) 80%, var(--text)); font-size: 13px; animation: rise .3s var(--ease); }

/* ---------- önizleme / düzenleyici (görüntü alanı koyu kalır) */
.preview-wrap { position: relative; background: #111110; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06); }
.preview { width: 100%; height: 100%; object-fit: contain; display: block; animation: fade .4s; }
.preview-off { position: absolute; inset: 0; display: none; place-items: center; color: #8a8984; }
.preview-wrap.off .preview-off { display: grid; }
.stage { position: relative; aspect-ratio: 16 / 9; user-select: none; touch-action: none; }
.stage .preview-wrap { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; border-radius: 0; }  /* düzenleyici = OBS tuvali: köşe yok */
.boxes { position: absolute; inset: 0; }
.box { position: absolute; border: 1px dashed rgb(255 255 255 / .35); cursor: move; transition: border-color .15s; }
.box:hover { border-color: rgb(255 255 255 / .85); }
.box-live { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; pointer-events: none; background: transparent; }
.box.sel { border: 2px solid var(--out); background: rgb(59 91 219 / .08); z-index: 2; }
.box.locked { cursor: default; }
.box-label { position: absolute; left: 0; top: 0; transform: translateY(-100%); font-size: 11px; font-weight: 600; background: var(--out); color: #fff; padding: 1px 6px; border-radius: 5px 5px 0 0; white-space: nowrap; display: none; }
.box.sel .box-label, .box:hover .box-label { display: block; }
.handle { position: absolute; right: -7px; bottom: -7px; width: 14px; height: 14px; background: #fff; border: 2px solid var(--out); border-radius: 4px; cursor: nwse-resize; display: none; }
.box.sel .handle, .ov-w.sel .handle { display: block; }
.stage-tools { margin-top: 12px; flex-wrap: wrap; }

.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.item {
  display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 10px; background: var(--surface);
  border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s;
}
.item:hover { background: var(--surface-2); }
.item.sel { border-color: var(--out); background: color-mix(in srgb, var(--out) 6%, var(--surface)); }
.item.hidden-item .item-name { opacity: .45; }
.item-name { flex: 1; min-width: 0; display: grid; }
.item-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 580; }
.item-name small { font-size: 11px; }
.item-btns { display: flex; gap: 3px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- ses mikseri */
.mixer { display: grid; gap: 12px; }
.channel { display: grid; gap: 6px; }
.channel.muted { opacity: .5; }
.ch-head { display: flex; justify-content: space-between; font-size: 13px; }
.ch-head b { font-weight: 580; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.meter { display: grid; gap: 2px; }
.meter-bar { height: 5px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.meter-fill { height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width .08s linear; }
.meter-fill.warm { background: var(--warn); }
.meter-fill.hot { background: var(--live); }
.ch-ctrl { display: flex; gap: 8px; align-items: center; }

/* ---------- overlay düzenleyici */
.ov-head { display: grid; gap: 6px; }
.ov-head select.input { width: auto; min-width: 180px; }
.url { background: var(--surface-2); border: 1px solid var(--border); padding: 6px 9px; border-radius: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; color: var(--muted); }
.ov-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .ov-grid { grid-template-columns: 1fr; } }
.ov-side { display: grid; gap: 16px; }
.ov-stage-wrap { position: relative; width: 100%; overflow: hidden; border-radius: 0;
  background: repeating-conic-gradient(#2a2a28 0 25%, #222220 0 50%) 0 0 / 24px 24px; }
.ov-stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; touch-action: none; user-select: none; }
.ov-w { cursor: move; outline: 2px dashed rgb(255 255 255 / .25); }
.ov-w.sel { outline: 4px solid var(--out); z-index: 5; }
.ov-w.ov-hidden { opacity: .25; }
.ov-w .handle { width: 26px; height: 26px; right: -13px; bottom: -13px; }
.ov-tag { position: absolute; left: 0; top: 0; font: 600 18px system-ui; background: var(--out); color: #fff; padding: 2px 8px; border-radius: 0 0 8px 0; display: none; text-shadow: none; }
.ov-w.sel .ov-tag, .ov-w:hover .ov-tag { display: block; }
.palette { display: flex; flex-wrap: wrap; gap: 6px; }
.files { display: grid; gap: 6px; }
.live-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); }
.live-row:first-of-type { border-top: 0; }
.live-row .row { grid-column: 1 / -1; flex-wrap: wrap; }

/* ---------- chat / aktivite */
.chat-mini, .chat-full, .feed, .log { list-style: none; margin: 0; padding: 0; }
.chat-mini li { padding: 4px 0; font-size: 13px; overflow-wrap: anywhere; animation: rise .3s var(--ease); }
.chat-full { height: 420px; overflow-y: auto; font-size: 13.5px; }
.chat-full li { padding: 4px 3px; overflow-wrap: anywhere; border-radius: 6px; animation: rise .3s var(--ease); }
.chat-full li:hover { background: var(--surface-2); }
.chat-full time { color: var(--muted); font-size: 11px; margin-right: 6px; font-variant-numeric: tabular-nums; }
.feed { max-height: 520px; overflow-y: auto; }
.feed li { display: flex; gap: 12px; align-items: center; padding: 10px 2px; border-top: 1px solid var(--border); animation: rise .35s var(--ease); }
.feed li:first-child { border-top: 0; }
.feed li > div { flex: 1; }
.feed li.test { opacity: .55; }
.feed-icon { font-size: 18px; width: 34px; height: 34px; display: grid; place-items: center; background: var(--surface-2); border-radius: 10px; flex: none; }
.log { max-height: 260px; overflow: auto; font-size: 13px; }
.log li { display: flex; gap: 12px; padding: 6px 0; border-top: 1px solid var(--border); }
.log li:first-child { border-top: 0; }
.log li.warn span { color: var(--warn); }
.log time { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.media-q .now { display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 10px; }
.queue { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.queue li > * { vertical-align: middle; }
.queue li { padding: 4px 0; }
.queue li .row { display: inline-flex; margin-left: 8px; }

/* ---------- misafir / araçlar */
.guests { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); }
.guest-body { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 20px; align-items: start; }
.guest-body > * { min-width: 0; }
.guest-body .col { gap: 10px; }
@media (max-width: 520px) { .guest-body { grid-template-columns: 1fr; } .qr { max-width: 220px; } }
.qr { background: #fff; border-radius: 12px; padding: 8px; border: 1px solid var(--border); box-shadow: var(--shadow-1); }
.qr svg { display: block; width: 100%; height: auto; }
.qr.big { max-width: 200px; width: 100%; }
.url-row { display: grid; gap: 4px; min-width: 0; }
.url-row .row { min-width: 0; }
.url-row .btn { flex: none; }
.guest-body small.muted, .guest-body p { overflow-wrap: anywhere; }
.tips { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 5px; color: var(--muted); }
.tips li::marker { color: var(--border-strong); }
.calc-out, .kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 12px 0; }
.calc-out div, .kv div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; display: grid; }
.calc-out b, .kv b { font-size: 17px; font-weight: 680; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.calc-out span, .kv span { font-size: 12px; }
.files-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 360px; overflow: auto; }
.files-list li { display: flex; align-items: center; gap: 10px; padding: 4px; border-radius: 10px; transition: background .15s; }
.files-list li:hover { background: var(--surface-2); }
.thumb { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; flex: none; font-size: 20px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table th { color: var(--muted); font-weight: 580; font-size: 12px; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--surface-2); }
.relays { display: grid; gap: 6px; }
.relay { display: flex; align-items: center; gap: 8px; }
.targets { display: grid; gap: 6px; }
.target { display: flex; gap: 6px; align-items: center; animation: rise .3s var(--ease); }
.target .input:not(.grow) { width: 140px; }
@media (max-width: 640px) { .target { flex-wrap: wrap; } .target .input { width: 100% !important; } }

/* ---------- giriş, modal, toast */
.login {
  min-height: 100dvh; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(1200px 600px at 50% -10%, var(--surface) 0%, var(--bg) 60%);
}
.login-card {
  width: 100%; max-width: 360px; display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px; box-shadow: var(--shadow-2); animation: pop .5s var(--ease);
}
.login-card h1 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 22px; letter-spacing: -.03em; }
.modal-wrap {
  position: fixed; inset: 0; z-index: 50; background: rgb(28 28 26 / .28); display: grid; place-items: center; padding: 16px;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .2s ease-out;
}
.modal {
  width: 100%; max-width: 560px; max-height: calc(100dvh - 32px); display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-3); animation: pop .3s var(--ease);
}
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 6px; }
.modal-head h3 { font-size: 16px; color: var(--text); text-transform: none; letter-spacing: -.01em; margin: 0; font-weight: 650; }
.modal-body { padding: 8px 20px; overflow-y: auto; }
.modal-foot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding: 14px 20px 18px; }
.toast {
  position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60;
  background: var(--ink); color: var(--on-ink); padding: 10px 18px; border-radius: 12px; font-weight: 560; max-width: calc(100% - 32px);
  box-shadow: var(--shadow-3); animation: toastIn .35s var(--spring);
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px) scale(.96); } }

.toast.err { background: var(--live); }
.session-box .kv { margin: 0; }

/* ---------- yazı kartı, fontlar, Streamlabs, sürükle-bırak */
.quick-add { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.stage.drop { outline: 2px dashed var(--out); outline-offset: 4px; }
.tc-preview { position: relative; width: 100%; overflow: hidden; border-radius: 12px; background: repeating-conic-gradient(#2a2a28 0 25%, #222220 0 50%) 0 0 / 20px 20px; }
.tc-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.tc-stage .w { left: 0; top: 0; }
.font-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; max-height: 420px; overflow: auto; }
.font-item { display: grid; gap: 2px; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); transition: border-color .2s, background .2s; }
.font-item:hover { background: var(--surface); border-color: var(--border-strong); }
.font-item.off { opacity: .7; }
.font-sample { font-size: 22px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.botrix summary { list-style: none; }
.botrix summary::-webkit-details-marker { display: none; }
.botrix-body { margin-top: 10px; }
.tips ul { margin: 4px 0; padding-left: 18px; }

/* kaydırma çubukları */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* gece/gündüz düğmesi */
.theme-btn svg { width: 17px; height: 17px; transition: transform .5s var(--spring); }
.theme-btn:hover svg { transform: rotate(-20deg); }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }

/* ---------- telefon (Moblin) kartı */
.phone-status { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.pstat { background: var(--surface-2); border-radius: var(--r-sm); padding: 8px 10px; display: grid; gap: 2px; min-width: 0; }
.pstat small { color: var(--muted); font-size: 11px; }
.pstat b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pstat.ok b { color: var(--accent); }
.pstat.warn { background: var(--warn-soft); } .pstat.warn b { color: var(--warn); }
.pstat.bad { background: var(--live-soft); } .pstat.bad b { color: var(--live); }
.phone-links { display: grid; gap: 6px; margin-bottom: 10px; }
.plink { display: grid; grid-template-columns: 90px 1fr auto; gap: 8px; align-items: center; font-size: 13px; }
.plink > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pbar { height: 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--in); border-radius: 99px; transition: width .6s var(--ease); }
.phone-controls { gap: 6px; align-items: center; }
.phone-controls select.input.sm { width: auto; min-height: 32px; padding: 4px 8px; }
.health-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.health-list:empty { display: none; }
.health-list li { font-size: 13px; background: var(--warn-soft); color: var(--warn); border-radius: 8px; padding: 6px 10px; }
.health-list time { opacity: .75; font-variant-numeric: tabular-nums; }
.cat-results { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-results:empty { display: none; }
@media (max-width: 640px) { .phone-status { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- yayın raporu grafiği */
.report-chart { width: 100%; height: 180px; display: block; }
.report-chart .grid { stroke: var(--border); stroke-width: 1; }
.report-chart text { fill: var(--muted); font-size: 10px; }
.report-chart .l-in { stroke: var(--in); fill: none; stroke-width: 2; }
.report-chart .l-out { stroke: var(--out); fill: none; stroke-width: 1.5; opacity: .8; }
.report-chart .l-v { stroke: var(--warn); fill: none; stroke-width: 1.5; stroke-dasharray: 4 3; }
.report-chart .brb { fill: var(--live); opacity: .12; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: var(--surface-2); }

/* ---------- logo */
.logo { height: 34px; width: auto; display: block; }
.logo-dark, .logo-mark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }
.side-collapsed .side .logo { display: none !important; }
.side-collapsed .side .logo-mark.mark-light { display: block; height: 38px; width: 38px; }
[data-theme="dark"] .side-collapsed .side .logo-mark.mark-light { display: none; }
[data-theme="dark"] .side-collapsed .side .logo-mark.mark-dark { display: block; height: 38px; width: 38px; }
.mobile-brand .logo { height: 30px; }
.login-logo { display: flex; justify-content: center; margin: 0 0 6px; }
.login-logo .logo { height: 56px; }

/* ---------- taşma koruması (mobil): ızgara/flex çocukları içeriğe göre genişlemesin */
.view, .view .card, .form, .field, .col, .ov-head, .url-row, .guest-body > * { min-width: 0; }
.form > *, .field > *, .ov-head > *, .card > * { min-width: 0; max-width: 100%; }
.view p, .view small, .view li, .view .muted { overflow-wrap: anywhere; }
.row > .url, .row > code.url { flex: 1 1 140px; }
.table-wrap { -webkit-overflow-scrolling: touch; max-width: 100%; }
@media (max-width: 640px) {
  .ov-head select.input { min-width: 0; width: 100%; }
  .row.wrap > small.muted { flex-basis: 100%; }
  .table { font-size: 13px; }
  .table th, .table td { padding-left: 8px; padding-right: 8px; white-space: nowrap; }
}

/* ---------- klipler */
.clip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; align-items: stretch; }
.clip-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; box-shadow: var(--shadow-1); }
.clip-card .clip-actions { margin-top: auto; }
.clip-card .clip-info > b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; background: #111; cursor: pointer; overflow: hidden; flex: none; }
.clip-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.clip-thumb.tall .clip-thumb-img { object-fit: contain; }
.clip-thumb .clip-thumb-bg { filter: blur(18px) brightness(.55); transform: scale(1.15); }
.clip-dur { position: absolute; right: 8px; bottom: 8px; background: rgb(0 0 0 / .7); color: #fff; font-size: 11.5px; font-weight: 650; padding: 2px 7px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.clip-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 34px; opacity: 0; background: rgb(0 0 0 / .25); transition: opacity .2s; }
.clip-thumb:hover .clip-play { opacity: 1; }
.clip-info { padding: 10px 12px 4px; display: grid; gap: 6px; min-width: 0; }
.clip-info > b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clip-actions { padding: 6px 12px 12px; gap: 6px; }
.clip-jobs { display: grid; gap: 8px; }
.clip-jobs:empty { display: none; }
.clip-job { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; }
.clip-job .row { justify-content: space-between; }
.clip-job.err { background: var(--live-soft); }
.clip-player { width: 100%; max-height: 75dvh; border-radius: 10px; background: #000; display: block; }
.kick-list { display: grid; gap: 8px; max-height: 60dvh; overflow-y: auto; }
.ed-stage { position: relative; background: #0d0d0c; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; touch-action: none; user-select: none; }
.ed-video { width: 100%; height: 100%; object-fit: contain; display: block; }
.ed-box { position: absolute; border: 2px solid #3b82f6; background: rgb(59 130 246 / .12); border-radius: 4px; cursor: move; box-shadow: 0 0 0 9999px rgb(0 0 0 / .35); touch-action: none; }
.ed-box.cam { border-color: #a855f7; background: rgb(168 85 247 / .14); box-shadow: none; }
.ed-box span { position: absolute; left: 4px; top: 4px; font-size: 11px; font-weight: 750; color: #fff; background: #3b82f6; padding: 1px 6px; border-radius: 5px; pointer-events: none; }
.ed-box.cam span { background: #a855f7; }
.ed-handle { position: absolute; right: -8px; bottom: -8px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid #3b82f6; cursor: nwse-resize; }
.ed-box.cam .ed-handle { border-color: #a855f7; }
.ed-preview { display: grid; place-items: center; background: #0d0d0c; border-radius: 12px; padding: 12px; }
.ed-canvas { max-width: 100%; max-height: 62dvh; border-radius: 10px; box-shadow: 0 10px 30px -10px rgb(0 0 0 / .6); }
.ed input[type=range] { width: 100%; accent-color: var(--out); }
.ed textarea.input { resize: vertical; min-height: 56px; font: inherit; }
@media (max-width: 640px) { .clip-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .clip-actions .btn { flex: 1 1 auto; } }
@media (max-width: 420px) { .clip-grid { grid-template-columns: 1fr; } }
.ed .seg { display: flex; flex-wrap: wrap; } .ed .seg-btn { flex: 1 1 auto; }

/* ---------- klip önizlemesi: telefon çerçevesi + Reels arayüzü */
.ed-phone { margin: 0 auto; width: min(100%, 330px); padding: 10px; border-radius: 44px; background: linear-gradient(145deg, #2a2a2e, #0e0e10); box-shadow: 0 0 0 2px #3a3a40, 0 20px 50px -18px rgb(0 0 0 / .6), inset 0 0 0 1px rgb(255 255 255 / .06); }
.ed-screen { position: relative; aspect-ratio: 9 / 16; border-radius: 34px; overflow: hidden; background: #000; container-type: inline-size; }
.ed-screen .ed-canvas { width: 100%; height: 100%; display: block; border-radius: 0; box-shadow: none; max-height: none; }
.ed-island { position: absolute; top: 2.6%; left: 50%; transform: translateX(-50%); width: 30%; height: 3.4%; border-radius: 99px; background: #000; z-index: 3; }
.ed-phone.land { width: 100%; padding: 8px; border-radius: 22px; }
.ed-phone.land .ed-screen { aspect-ratio: 16 / 9; border-radius: 14px; }
.ed-phone.land .ed-island { display: none; }
.reels-ui { position: absolute; inset: 0; z-index: 2; color: #fff; pointer-events: none; font-size: 3.6cqw; text-shadow: 0 1px 2px rgb(0 0 0 / .6); }
.reels-ui svg { width: 7.5cqw; height: 7.5cqw; display: block; filter: drop-shadow(0 1px 2px rgb(0 0 0 / .5)); }
.ru-top { position: absolute; top: 8%; left: 5%; right: 5%; display: flex; justify-content: space-between; align-items: center; }
.ru-top b { font-size: 6cqw; font-weight: 800; }
.ru-side { position: absolute; right: 3.5%; bottom: 10%; display: grid; gap: 5.5cqw; justify-items: center; }
.ru-act { display: grid; justify-items: center; gap: 1cqw; }
.ru-act small { font-size: 3.2cqw; font-weight: 650; }
.ru-music { width: 8cqw; height: 8cqw; border-radius: 2cqw; border: 2px solid #fff; background: linear-gradient(135deg, #1f6bff, #8b2cf5); }
.ru-bottom { position: absolute; left: 4%; right: 20%; bottom: 4%; display: grid; gap: 2.4cqw; }
.ru-user { display: flex; align-items: center; gap: 2.4cqw; font-size: 3.8cqw; }
.ru-av { width: 8cqw; height: 8cqw; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #1f6bff, #8b2cf5); font-weight: 800; font-size: 4cqw; border: 1px solid rgb(255 255 255 / .7); }
.ru-follow { border: 1px solid rgb(255 255 255 / .8); border-radius: 2cqw; padding: .4cqw 2.4cqw; font-weight: 700; font-size: 3.4cqw; }
.ru-cap { font-size: 3.6cqw; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.ru-song { font-size: 3.2cqw; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- klip zaman çizelgesi (profesyonel kurgu programı gibi) */
.tl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.tl-time { margin-left: auto; font: 600 12.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); background: var(--surface-2); padding: 7px 10px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.tl { margin-top: 10px; background: #141416; border-radius: 12px; padding: 0 20px 10px; user-select: none; }
.tl-ruler { position: relative; height: 24px; margin: 0 2px; }
.tl-ruler i { position: absolute; bottom: 0; width: 1px; height: 5px; background: rgb(255 255 255 / .25); }
.tl-ruler i.mj { height: 9px; background: rgb(255 255 255 / .55); }
.tl-ruler i span { position: absolute; bottom: 11px; left: 0; transform: translateX(-50%); font: 600 10px/1 ui-monospace, Menlo, monospace; color: rgb(255 255 255 / .6); white-space: nowrap; }
.tl-ruler i:first-child span { transform: none; }
.tl-lane { position: relative; height: 92px; cursor: text; touch-action: none; }
.tl-track { position: absolute; inset: 0; border-radius: 8px; overflow: hidden; background: #1d1d21; display: grid; grid-template-rows: 1fr 30px; }
.tl-strip { background-size: 100% 100%; background-repeat: no-repeat; filter: saturate(.9); }
.tl-wave { width: 100%; height: 30px; display: block; object-fit: fill; background: #191b2a; opacity: .95; }
.tl-shade { position: absolute; top: 0; bottom: 0; background: rgb(0 0 0 / .62); pointer-events: none; border-radius: 8px; }
.tl-sel { position: absolute; top: 0; bottom: 0; border-top: 3px solid #fbbf24; border-bottom: 3px solid #fbbf24; cursor: grab; box-sizing: border-box; }
.tl-sel:active { cursor: grabbing; }
.tl-h { position: absolute; top: -3px; bottom: -3px; width: 14px; background: #fbbf24; cursor: ew-resize; display: grid; place-items: center; z-index: 2; }
.tl-h.l { left: -14px; border-radius: 7px 0 0 7px; }
.tl-h.r { right: -14px; border-radius: 0 7px 7px 0; }
.tl-h i { width: 3px; height: 26px; border-radius: 2px; background: rgb(0 0 0 / .45); }
.tl-len { position: absolute; left: 50%; top: -24px; transform: translateX(-50%); background: #fbbf24; color: #1d1300; font: 700 10.5px/1 ui-monospace, Menlo, monospace; padding: 3px 6px; border-radius: 5px; white-space: nowrap; pointer-events: none; }
.tl-head { position: absolute; top: -8px; bottom: -4px; width: 2px; margin-left: -1px; background: #ff3b4e; pointer-events: none; z-index: 3; box-shadow: 0 0 6px rgb(255 59 78 / .6); }
.tl-head i { position: absolute; top: -4px; left: 50%; transform: translateX(-50%); width: 12px; height: 12px; background: #ff3b4e; clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); }
.tl-help { display: block; margin-top: 8px; }
@media (max-width: 640px) { .tl-time { margin-left: 0; width: 100%; text-align: center; } .tl-lane { height: 84px; } .tl-h { width: 18px; } .tl-h.l { left: -18px; } .tl-h.r { right: -18px; } }
.tl-track.plain { grid-template-rows: 1fr; background: repeating-linear-gradient(90deg, #22232b 0 2px, #1b1c22 2px 14px); }
.tl-track.plain .tl-strip { display: none; }
.tl-track.has-wave { grid-template-rows: 1fr 30px; }
.tl-track:not(.plain) { background: #1d1d21; }
.tl-peek { position: absolute; bottom: calc(100% + 30px); left: 0; transform: translateX(-50%); display: none; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; z-index: 5; }
.tl-peek.on { display: flex; }
.tl-peek-img { width: 160px; height: 90px; border-radius: 8px; border: 2px solid #fff; background-color: #000; background-repeat: no-repeat; box-shadow: 0 8px 24px rgb(0 0 0 / .5); }
.tl-peek span { background: #fff; color: #111; font: 700 11px/1 ui-monospace, Menlo, monospace; padding: 4px 7px; border-radius: 6px; }
.tl { position: relative; overflow: visible; }
.ed-spin { position: absolute; inset: 0; margin: auto; width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgb(255 255 255 / .25); border-top-color: #fff; animation: edspin .8s linear infinite; display: none; pointer-events: none; }
.ed-stage.loading .ed-spin { display: block; }
@keyframes edspin { to { transform: rotate(360deg); } }

/* ---------- kurgu (çok parçalı) */
.tl-others { position: absolute; inset: 0; pointer-events: none; }
.tl-other { position: absolute; top: 0; bottom: 0; border: 2px solid rgb(251 191 36 / .55); background: rgb(251 191 36 / .1); border-radius: 6px; pointer-events: auto; cursor: pointer; }
.tl-other:hover { background: rgb(251 191 36 / .22); }
.tl-other span, .tl-sel .tl-len { font-variant-numeric: tabular-nums; }
.tl-other span { position: absolute; left: 4px; top: 3px; font: 700 10px/1 ui-monospace, Menlo, monospace; color: #1d1300; background: rgb(251 191 36 / .8); padding: 2px 4px; border-radius: 4px; }
.seq { margin-top: 12px; display: grid; gap: 8px; }
.seq-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.seq-head b { font-size: 13.5px; }
.seq-list { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.seq-item { position: relative; flex: 1 1 0; min-width: 92px; height: 64px; border-radius: 10px; overflow: hidden; background: #111; border: 2px solid transparent; cursor: pointer; }
.seq-item.on { border-color: #fbbf24; box-shadow: 0 0 0 2px rgb(251 191 36 / .3); }
.seq-item img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.seq-n { position: absolute; left: 5px; top: 5px; background: #fbbf24; color: #1d1300; font: 800 11px/1 system-ui; padding: 3px 6px; border-radius: 5px; }
.seq-d { position: absolute; right: 5px; top: 5px; background: rgb(0 0 0 / .7); color: #fff; font: 600 10.5px/1 ui-monospace, Menlo, monospace; padding: 3px 5px; border-radius: 5px; }
.seq-src { position: absolute; left: 5px; bottom: 5px; right: 5px; color: #fff; font-size: 10.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px #000; }
.seq-ctl { position: absolute; right: 4px; bottom: 4px; display: none; gap: 3px; }
.seq-item:hover .seq-ctl, .seq-item.on .seq-ctl { display: flex; }
.seq-ctl button { width: 22px; height: 22px; border: 0; border-radius: 5px; background: rgb(0 0 0 / .75); color: #fff; font-size: 10px; cursor: pointer; padding: 0; }
.seq-ctl button:hover { background: #fbbf24; color: #1d1300; }

/* =========================================================== profesyonel kurgu editörü (koyu) */
.pe { --pe-bg: #0e0f12; --pe-panel: #16171c; --pe-panel2: #1d1f26; --pe-line: #2a2c35; --pe-text: #e8e9ee; --pe-muted: #8a8d9b; --pe-acc: #5b6cff; --pe-sel: #fbbf24;
  background: var(--pe-bg); color: var(--pe-text); border-radius: 16px; overflow: hidden; display: grid; grid-template-rows: auto auto auto auto; box-shadow: var(--shadow-3); }
.pe svg { width: 18px; height: 18px; display: block; }
.pe-top { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--pe-panel); border-bottom: 1px solid var(--pe-line); }
.pe-back { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--pe-line); background: var(--pe-panel2); color: var(--pe-text); font-size: 18px; cursor: pointer; }
.pe-title { display: grid; min-width: 0; } .pe-title b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pe-title small { color: var(--pe-muted); font-size: 11.5px; }
.pe-sp { flex: 1; }
.pe-keys { color: var(--pe-muted); font-size: 12.5px; cursor: help; border: 1px dashed var(--pe-line); padding: 6px 10px; border-radius: 8px; }
.pe-export { border: 0; border-radius: 10px; padding: 10px 18px; font: 700 14px/1 inherit; color: #fff; cursor: pointer; background: linear-gradient(120deg, #1f6bff, #5b3df5 55%, #8b2cf5); box-shadow: 0 6px 20px -8px rgb(91 61 245 / .8); }
.pe-main { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, .8fr) 300px; gap: 1px; background: var(--pe-line); min-height: 0; }
.pe-mon { background: var(--pe-bg); padding: 10px; display: grid; grid-template-rows: auto 1fr; gap: 8px; min-width: 0; }
.pe-mon-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; letter-spacing: .1em; color: var(--pe-muted); font-weight: 700; }
.pe-mon-h small { letter-spacing: 0; font-weight: 500; }
.pe .ed-stage { border-radius: 8px; align-self: center; }
.pe-phone-wrap { display: grid; place-items: center; }
.pe .ed-phone { width: min(100%, 250px); }
.pe-chip { border: 1px solid var(--pe-line); background: var(--pe-panel2); color: var(--pe-muted); border-radius: 99px; padding: 4px 10px; font: 600 11px/1 inherit; cursor: pointer; letter-spacing: 0; }
.pe-chip.on { color: #fff; border-color: var(--pe-acc); background: rgb(91 108 255 / .18); }
.pe-insp { background: var(--pe-panel); overflow-y: auto; max-height: 640px; }
.pe-sec { padding: 12px 14px; border-bottom: 1px solid var(--pe-line); display: grid; gap: 8px; }
.pe-sec-h { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--pe-muted); font-weight: 700; }
.pe-info { display: grid; gap: 3px; font-size: 12.5px; } .pe-info span { color: var(--pe-muted); font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; overflow-wrap: anywhere; }
.pe-group { display: grid; gap: 8px; }
.pe-lbl { font-size: 11.5px; color: var(--pe-muted); font-weight: 600; }
.pe-hint { color: var(--pe-muted); font-size: 11.5px; line-height: 1.4; }
.pe-seg { display: flex; background: var(--pe-bg); border: 1px solid var(--pe-line); border-radius: 9px; padding: 2px; gap: 2px; }
.pe-seg button { flex: 1; border: 0; background: none; color: var(--pe-muted); font: 600 12px/1 inherit; padding: 8px 6px; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.pe-seg button.on { background: var(--pe-panel2); color: #fff; box-shadow: inset 0 0 0 1px var(--pe-acc); }
.pe-input { width: 100%; background: var(--pe-bg); color: var(--pe-text); border: 1px solid var(--pe-line); border-radius: 9px; padding: 8px 10px; font: 13px/1.35 inherit; resize: vertical; }
.pe-input:focus { outline: none; border-color: var(--pe-acc); }
.pe-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pe-range { width: 100%; accent-color: var(--pe-acc); }
.pe-transport { display: flex; align-items: center; gap: 14px; padding: 8px 14px; background: var(--pe-panel); border-top: 1px solid var(--pe-line); border-bottom: 1px solid var(--pe-line); flex-wrap: wrap; }
.pe-tc { font: 700 20px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; min-width: 210px; }
.pe-tc-cur { color: #fff; } .pe-tc-sep { color: var(--pe-muted); margin: 0 6px; } .pe-tc-tot { color: var(--pe-muted); font-size: 15px; }
.pe-tbtns { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.pe-edit { display: flex; align-items: center; gap: 4px; }
.pe-tool { width: 34px; height: 34px; border-radius: 9px; border: 0; background: none; color: #c9ccd8; display: grid; place-items: center; cursor: pointer; }
.pe-tool:hover:not(:disabled) { background: var(--pe-panel2); color: #fff; }
.pe-tool:disabled { opacity: .3; cursor: default; }
.pe-play { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #111; display: grid; place-items: center; cursor: pointer; margin: 0 6px; }
.pe-play svg { width: 20px; height: 20px; }
.pe-div { width: 1px; height: 22px; background: var(--pe-line); margin: 0 4px; }
.pe-zoomwrap { display: flex; align-items: center; gap: 6px; color: #c9ccd8; }
.pe-zoom { width: 110px; accent-color: var(--pe-acc); }
.pe-timeline { display: grid; grid-template-columns: 44px 1fr; background: var(--pe-bg); user-select: none; }
.pe-labels { display: grid; grid-template-rows: 26px 64px 24px 38px; border-right: 1px solid var(--pe-line); padding-bottom: 10px; }
.pe-lab { display: grid; place-items: center; font: 700 11px/1 ui-monospace, Menlo, monospace; color: var(--pe-muted); border-top: 1px solid var(--pe-line); background: var(--pe-panel); }
.pe-scroll { overflow-x: auto; overflow-y: hidden; padding-bottom: 10px; }
.pe-content { position: relative; padding: 0 12px; min-width: 100%; touch-action: none; cursor: text; }
.pe-ruler { position: relative; height: 26px; }
.pe-ruler i { position: absolute; bottom: 0; width: 1px; height: 5px; background: #3a3d48; }
.pe-ruler i.mj { height: 10px; background: #6b6f80; }
.pe-ruler i span { position: absolute; bottom: 12px; left: 3px; font: 600 10px/1 ui-monospace, Menlo, monospace; color: #8a8d9b; white-space: nowrap; }
.pe-lanes { display: grid; grid-template-rows: 64px 24px 38px; }
/* sansür şeridi (A1'in üstü) + ses izinde susturulan alan */
.pe-lab.c { font-size: 12px; }
.pe-track.c { background: repeating-linear-gradient(90deg, transparent 0 18px, rgb(127 127 127 / .06) 18px 19px); }
.pe-cen { position: absolute; top: 3px; bottom: 3px; border-radius: 5px; background: #e5484d; color: #fff; display: flex; align-items: center; gap: 3px; padding: 0 6px; font: 700 11px/1 system-ui; overflow: hidden; white-space: nowrap; cursor: grab; box-shadow: 0 1px 3px rgb(0 0 0 / .25); }
.pe-cen.sel { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #e5484d; z-index: 2; }
.pe-ctrim { position: absolute; top: 0; bottom: 0; width: 7px; background: rgb(255 255 255 / .55); cursor: ew-resize; }
.pe-ctrim.l { left: 0; } .pe-ctrim.r { right: 0; }
.pe-cen-shade { position: absolute; top: 4px; bottom: 4px; pointer-events: none; z-index: 4; background: repeating-linear-gradient(135deg, rgb(229 72 77 / .38) 0 5px, rgb(229 72 77 / .14) 5px 10px); border-left: 1px solid #e5484d; border-right: 1px solid #e5484d; }
.pe-tool.cen { color: #e5484d; }
.pe-cen-sounds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pe-cen-snd { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border-radius: 10px; border: 1px solid var(--pe-line); background: transparent; color: inherit; font: 600 11.5px/1.1 system-ui; cursor: pointer; }
.pe-cen-snd span { font-size: 18px; }
.pe-cen-snd.on { border-color: #e5484d; background: rgb(229 72 77 / .1); color: #e5484d; }
.pe-cen-row { flex: 1; min-width: 0; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pe-sub.on { outline: 2px solid #e5484d; border-radius: 8px; }
.pe-track { position: relative; border-top: 1px solid var(--pe-line); }
.pe-clip { position: absolute; top: 4px; bottom: 4px; border-radius: 7px; overflow: hidden; background-color: #26293a; background-repeat: no-repeat; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); cursor: grab; }
.pe-clip.a { background-color: #1b1e33; }
.pe-clip.sel { box-shadow: inset 0 0 0 2px var(--pe-sel), 0 0 0 1px var(--pe-sel); z-index: 2; }
.pe-clip-name { position: absolute; left: 6px; top: 4px; right: 40px; font: 700 10.5px/1.2 system-ui; color: #fff; text-shadow: 0 1px 3px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pe-clip-len { position: absolute; right: 5px; bottom: 4px; font: 700 10px/1 ui-monospace, Menlo, monospace; color: #fff; background: rgb(0 0 0 / .6); padding: 2px 4px; border-radius: 4px; }
.pe-trim { position: absolute; top: 0; bottom: 0; width: 10px; background: var(--pe-sel); cursor: ew-resize; z-index: 3; }
.pe-trim.l { left: 0; border-radius: 6px 0 0 6px; } .pe-trim.r { right: 0; border-radius: 0 6px 6px 0; }
.pe-trim::after { content: ''; position: absolute; left: 4px; top: 35%; bottom: 35%; width: 2px; background: rgb(0 0 0 / .45); border-radius: 2px; }
.pe-head { position: absolute; top: 0; bottom: 10px; width: 2px; margin-left: 11px; background: #ff3b4e; pointer-events: none; z-index: 5; box-shadow: 0 0 8px rgb(255 59 78 / .7); }
.pe-head i { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 13px; height: 14px; background: #ff3b4e; clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%); }
@media (max-width: 1200px) { .pe-main { grid-template-columns: minmax(0, 1fr) minmax(200px, .7fr); } .pe-insp { grid-column: 1 / -1; max-height: none; } }
@media (max-width: 760px) {
  .pe-main { grid-template-columns: 1fr; }
  .pe-keys { display: none; }
  .pe-tc { min-width: 0; font-size: 16px; }
  .pe-tbtns { margin: 0; }
  .pe-edit { width: 100%; justify-content: space-between; overflow-x: auto; }
  .pe-zoom { width: 70px; }
}
.pe-main { height: clamp(380px, 56vh, 600px); }
.pe-mon, .pe-insp { min-height: 0; overflow: hidden; }
.pe-insp { overflow-y: auto; max-height: none; }
.pe .ed-stage { max-height: 100%; width: 100%; }
.pe-phone-wrap { min-height: 0; overflow: hidden; }
.pe .ed-phone { width: auto; height: 100%; max-height: 100%; aspect-ratio: 9 / 17.2; max-width: 100%; }
.pe .ed-phone .ed-screen { height: 100%; width: auto; aspect-ratio: 9 / 16; margin: 0 auto; }
.pe .ed-phone.land { height: auto; aspect-ratio: auto; width: 100%; }
.pe .ed-phone.land .ed-screen { width: 100%; height: auto; }
@media (max-width: 1200px) { .pe-main { height: auto; } .pe-mon { height: 46vh; } .pe-insp { max-height: none; } }
@media (max-width: 760px) { .pe-mon { height: auto; } .pe-mon.prog { height: 62vh; } }

/* ---------- kurgu editörü: panel temasına uyar (varsayılan açık, gece modunda koyu) */
.pe { --pe-bg: var(--bg); --pe-panel: var(--surface); --pe-panel2: var(--surface-2); --pe-line: var(--border); --pe-text: var(--text); --pe-muted: var(--muted);
  --pe-icon: #4a4a46; --pe-mon: #ecebe6; --pe-track: #f1f0ec; --pe-tick: #c9c6be; --pe-tick-mj: #8f8c84; --pe-acc: #4f5bd5;
  border: 1px solid var(--border); box-shadow: var(--shadow-2); }
[data-theme="dark"] .pe { --pe-bg: #0e0f12; --pe-panel: #16171c; --pe-panel2: #1d1f26; --pe-line: #2a2c35; --pe-text: #e8e9ee; --pe-muted: #8a8d9b;
  --pe-icon: #c9ccd8; --pe-mon: #0e0f12; --pe-track: #0e0f12; --pe-tick: #3a3d48; --pe-tick-mj: #6b6f80; --pe-acc: #5b6cff; border-color: #2a2c35; }
.pe-mon { background: var(--pe-mon); }
.pe .ed-stage { background: #111110; }
.pe-tool { color: var(--pe-icon); }
.pe-tool:hover:not(:disabled) { color: var(--pe-text); }
.pe-play { background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow-1); }
.pe-seg button.on { color: var(--pe-text); background: var(--pe-panel); }
.pe-chip.on { color: var(--pe-acc); background: color-mix(in srgb, var(--pe-acc) 12%, transparent); }
.pe-tc-cur { color: var(--pe-text); }
.pe-timeline, .pe-scroll { background: var(--pe-track); }
.pe-ruler i { background: var(--pe-tick); }
.pe-ruler i.mj { background: var(--pe-tick-mj); }
.pe-ruler i span { color: var(--pe-muted); }
.pe-clip { background-color: #d9d7d0; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); }
.pe-clip.a { background-color: #e3e1f2; }
[data-theme="dark"] .pe-clip { background-color: #26293a; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); }
[data-theme="dark"] .pe-clip.a { background-color: #1b1e33; }
.pe-clip.sel { box-shadow: inset 0 0 0 2px var(--pe-sel), 0 0 0 1px var(--pe-sel); }
.pe-back { color: var(--pe-text); }
.pe-input { background: var(--pe-panel); }
.pe-seg { background: var(--pe-panel2); }
.pe-keys { background: var(--pe-panel2); }
/* telefon boyutu JS ile (sizePhone): oran sabit */
.pe .ed-phone, .pe .ed-phone.land { aspect-ratio: auto; max-width: none; max-height: none; box-sizing: border-box; }
.pe .ed-phone .ed-screen, .pe .ed-phone.land .ed-screen { width: 100%; height: 100%; aspect-ratio: auto; }
.pe .ed-phone.land { border-radius: 22px; }
.pe-phone-wrap { display: grid; place-items: center; height: 100%; }
/* gerçekçi telefon: durum çubuğu + 9:16 video + Instagram alt menüsü */
.ed-screen { display: flex; flex-direction: column; background: #000; }
.ph-status { flex: 1 1 0; min-height: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 7% 0 9%; color: #fff; font-size: max(9px, 3.6cqw); }
.ph-status b { font-weight: 700; }
.ph-st-r { display: flex; align-items: center; gap: 1.6cqw; }
.ph-sig { width: 4.6cqw; height: 3cqw; background: linear-gradient(90deg, #fff 18%, transparent 18% 27%, #fff 27% 45%, transparent 45% 54%, #fff 54% 72%, transparent 72% 81%, #fff 81%); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.ph-bat { width: 6.4cqw; height: 3cqw; border: 1px solid rgb(255 255 255 / .8); border-radius: 1cqw; position: relative; }
.ph-bat::after { content: ''; position: absolute; inset: 1px; right: 30%; background: #fff; border-radius: .6cqw; }
.ph-video { position: relative; flex: none; width: 100%; aspect-ratio: 9 / 16; overflow: hidden; }
.ph-video .ed-canvas { width: 100%; height: 100%; display: block; }
.ph-nav { flex: 1.4 1 0; min-height: 0; display: flex; align-items: flex-start; justify-content: space-around; padding-top: 2.4cqw; color: #fff; border-top: 1px solid rgb(255 255 255 / .1); }
.ph-nav svg { width: 6.6cqw; height: 6.6cqw; }
.ph-me { width: 6.6cqw; height: 6.6cqw; border-radius: 50%; background: linear-gradient(135deg, #1f6bff, #8b2cf5); display: grid; place-items: center; font: 800 3.2cqw/1 system-ui; }
.ed-screen .ed-island { top: 1.2%; height: 2.8%; }
/* yatay biçim: telefon yan, durum/menü gizli */
.ed-phone.land .ph-status, .ed-phone.land .ph-nav { display: none; }
.ed-phone.land .ph-video { aspect-ratio: 16 / 9; }
.ed-phone.land .ed-screen { justify-content: center; }
.ph-video .ru-top { top: 3.5%; }
.plink { grid-template-columns: 90px 1fr auto; }
.plink-data { grid-column: 1 / -1; color: var(--muted); font-size: 11.5px; margin-top: -2px; }
.plink-data.warn { color: var(--warn); font-weight: 650; }
/* anket & çekiliş kartı */
.eng-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .eng-grid { grid-template-columns: 1fr; } }
.eng-bar { position: relative; display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 9px; background: var(--surface-2); overflow: hidden; }
.eng-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--accent) 22%, transparent); transition: width .5s var(--ease); }
.eng-bar > *:not(i) { position: relative; }
.eng-bar.win { box-shadow: inset 0 0 0 2px var(--accent); }
.eng-win { font-size: 18px; font-weight: 800; color: var(--accent); }
.eng-names { display: flex; flex-wrap: wrap; gap: 4px; max-height: 120px; overflow: auto; }
.st-chart { width: 100%; height: 180px; display: block; }
.st-chart .st-grid { stroke: var(--border); stroke-width: 1; }
.st-chart .st-ax { fill: var(--muted); font-size: 10px; }
.plat { display: inline-block; font-size: 10px; font-weight: 900; padding: 1px 5px; border-radius: 4px; margin-right: 5px; color: #fff; vertical-align: 1px; }
.plat-twitch { background: #9146ff; } .plat-youtube { background: #ff0033; }
/* editör: altyazı */
.pe-chk { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--pe-text); cursor: pointer; }
.pe-col { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--pe-muted); }
.pe-col input { width: 32px; height: 24px; border: 1px solid var(--pe-line); border-radius: 6px; padding: 0; background: none; }
.pe-warn { color: var(--warn); font-size: 11.5px; font-weight: 600; }
.pe-subs { display: grid; gap: 4px; max-height: 260px; overflow-y: auto; }
.pe-sub { display: grid; grid-template-columns: 52px 1fr 24px; gap: 4px; align-items: center; }
.pe-sub-t { border: 0; background: var(--pe-panel2); color: var(--pe-muted); font: 600 10.5px/1 ui-monospace, Menlo, monospace; padding: 7px 4px; border-radius: 6px; cursor: pointer; }
.pe-sub .pe-input { padding: 5px 7px; font-size: 12.5px; }
.pe-sub-x { border: 0; background: none; color: var(--pe-muted); cursor: pointer; }
.pe-sub-x:hover { color: var(--live); }
/* kontrol: telefon sesi tuşu */
.mic-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--border); background: var(--accent-soft); color: var(--accent); font: 650 12.5px/1 inherit; cursor: pointer; }
.mic-btn.off { background: var(--live-soft); color: var(--live); border-color: color-mix(in srgb, var(--live) 40%, transparent); }
.mic-btn:disabled { opacity: .45; cursor: default; }
.prog-wrap { position: relative; }
.mic-tag { position: absolute; left: 10px; top: 10px; background: var(--live); color: #fff; font: 800 11px/1 inherit; letter-spacing: .06em; padding: 6px 9px; border-radius: 7px; box-shadow: 0 4px 12px rgb(0 0 0 / .3); }
.mic-btn { background: var(--surface-2); color: var(--muted); }
.mic-btn.on { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.prog-live { width: 100%; aspect-ratio: 16 / 9; display: block; background: #000; border-radius: 12px; }
.mic-tag { background: var(--live); }

/* Yayına hazır mı? */
.pf .pf-sum { font-size: 13px; font-weight: 650; padding: 3px 10px; border-radius: 999px; background: var(--soft, rgba(127,127,127,.12)); }
.pf .pf-sum.ok { color: #1f8a4c; background: rgba(31,138,76,.12); }
.pf .pf-sum.warn { color: #b7791f; background: rgba(183,121,31,.14); }
.pf .pf-sum.bad { color: #d64545; background: rgba(214,69,69,.12); }
.pf-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; }
.pf-list li { display: grid; grid-template-columns: 20px auto; column-gap: 8px; align-items: baseline; min-width: 0; }
.pf-list li small { grid-column: 2; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.pf-list li b { font-size: 13.5px; font-weight: 600; }
.pf-ic { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 800; color: #fff; grid-row: span 2; align-self: start; margin-top: 1px; }
.pf-list li.ok .pf-ic { background: #1f8a4c; }
.pf-list li.warn .pf-ic { background: #d69e2e; }
.pf-list li.bad .pf-ic { background: #d64545; }

/* gizlilik bölgeleri */
.zones { display: grid; gap: 6px; }
.zone-row { display: grid; grid-template-columns: minmax(80px, 1fr) minmax(150px, 2fr) 130px auto; gap: 6px; align-items: center; }
.zone-r { display: flex; gap: 4px; align-items: center; }
.zone-r small { color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) { .zone-row { grid-template-columns: 1fr 1fr; } }
h3.sub { margin: 10px 0 0; font-size: 14px; }

.sa-big { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

.tm-list { display: grid; gap: 10px; }
.tm-row { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line, rgba(127,127,127,.2)); border-radius: 12px; }
.tm-every { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.tm-every .input { width: 70px; }
.cg-list { margin: 0; padding-left: 18px; font-size: 13px; display: grid; gap: 3px; }
.warn-box { background: rgba(214,158,46,.12); border: 1px solid rgba(214,158,46,.35); border-radius: 10px; padding: 8px 10px; font-size: 13px; margin: 0; }
.hl-list { display: grid; gap: 6px; }
.hl-row { justify-content: space-between; font-size: 13.5px; }

.jr-panel { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.jr-panel b { font-size: 16px; }
.jr-bar { height: 8px; border-radius: 99px; background: rgba(127,127,127,.18); overflow: hidden; }
.jr-bar i { display: block; height: 100%; background: var(--ok, #1f8a4c); border-radius: 99px; }
.jr-results { display: flex; flex-wrap: wrap; gap: 6px; }
.jr-res small { font-weight: 400; }
.sfx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.btn.sfx { justify-content: flex-start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sfx-list, .sp-list { display: grid; gap: 8px; }
.sfx-row { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(140px, 2fr) 100px 110px auto; gap: 6px; align-items: center; }
@media (max-width: 640px) { .sfx-row { grid-template-columns: 1fr 1fr; } }
.wk-pre { white-space: pre-wrap; font: 13px/1.5 inherit; background: rgba(127,127,127,.08); padding: 10px; border-radius: 10px; margin: 0; }

.pt-ol { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.pt-ol li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: baseline; }

/* ================= Overlay düzenleyici (oe-) ================= */
.oe { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-1); overflow: hidden; height: calc(100vh - 150px); min-height: 620px; margin-bottom: 16px; }
.oe-tb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 10px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.oe-tg { display: flex; align-items: center; gap: 4px; padding-right: 10px; border-right: 1px solid var(--border); }
.oe-tg:last-of-type { border-right: 0; }
.oe-tg select.input { height: 32px; padding: 0 28px 0 10px; font-size: 13px; width: auto; max-width: 220px; }
.oe-sp { flex: 1; }
.oe-tool { height: 32px; min-width: 32px; padding: 0 8px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--text); font: 600 14px/1 inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.oe-tool:hover:not(:disabled) { background: var(--surface-3); }
.oe-tool.on { background: var(--ink); color: var(--on-ink); }
.oe-tool:disabled { opacity: .35; cursor: default; }
.oe-tool.sm { height: 28px; min-width: 28px; }
.oe-zoomlbl { min-width: 54px; font-variant-numeric: tabular-nums; font-size: 12.5px; }
.oe-save { font-size: 12px; color: var(--muted); white-space: nowrap; }
.oe-save.ok { color: var(--accent); } .oe-save.err { color: var(--live); }
.oe-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 240px minmax(0, 1fr) 310px; }
.oe-left, .oe-insp { overflow-y: auto; min-height: 0; background: var(--surface); }
.oe-left { border-right: 1px solid var(--border); padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.oe-left .oe-lib { flex: 1 1 55%; overflow-y: auto; min-height: 120px; }
.oe-left .oe-layers { flex: 1 1 45%; overflow-y: auto; min-height: 100px; align-content: start; }
.oe-insp { border-left: 1px solid var(--border); }
.oe-ph { flex: none; background: var(--surface-2); padding: 9px 12px 8px; font: 700 11.5px/1 inherit; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); }
.oe-ph + .oe-layers, .oe-lib + .oe-ph { border-top: 0; }
.oe-lib + .oe-ph { border-top: 1px solid var(--border); }
.oe-ph small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.oe-lib { padding: 8px 10px 10px; }
.oe-search { height: 32px; font-size: 13px; margin-bottom: 6px; }
.oe-catt { font: 650 11px/1 inherit; color: var(--muted); margin: 10px 2px 5px; }
.oe-items { display: grid; grid-template-columns: 1fr; gap: 2px; }
.oe-item { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--text); font: 550 12px/1.2 inherit; text-align: left; cursor: grab; min-width: 0; }
.oe-item span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oe-item:hover { border-color: var(--out); background: var(--surface-2); }
.oe-ic { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--surface-3); font-size: 12px; font-weight: 800; flex: none; }
.oe-ic.big { width: 38px; height: 38px; border-radius: 10px; font-size: 18px; }
.oe-layers { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; }
.oe-layer { display: flex; align-items: center; gap: 7px; padding: 5px 6px; border-radius: 8px; cursor: pointer; font-size: 13px; border: 1px solid transparent; }
.oe-layer:hover { background: var(--surface-2); }
.oe-layer.sel { background: color-mix(in srgb, var(--out) 14%, transparent); border-color: color-mix(in srgb, var(--out) 45%, transparent); }
.oe-layer.off .oe-lname { opacity: .45; text-decoration: line-through; }
.oe-layer.drop-above { box-shadow: inset 0 2px 0 var(--out); } .oe-layer.drop-below { box-shadow: inset 0 -2px 0 var(--out); }
.oe-lname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oe-lb { border: 0; background: transparent; cursor: pointer; font-size: 12px; opacity: .35; padding: 2px 3px; border-radius: 5px; }
.oe-lb.on, .oe-layer:hover .oe-lb { opacity: 1; }
.oe-empty { padding: 10px; font-size: 12.5px; }

.oe-center { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--surface-3); }
.oe-view { flex: 1; min-height: 0; overflow: auto; display: grid; place-items: center; padding: 16px; }
.oe-canvas { position: relative; box-shadow: 0 8px 30px rgb(0 0 0 / .25); flex: none; }
.oe-canvas[data-bg="checker"] { background: #23232a repeating-conic-gradient(#2b2b33 0 25%, #1f1f25 0 50%) 0 0 / 24px 24px; }
.oe-canvas[data-bg="dark"] { background: #0f0f12; }
.oe-canvas[data-bg="light"] { background: #e9e9ee; }
.oe-canvas[data-bg="phone"], .oe-canvas[data-bg="scene"] { background: #111; }
.oe-bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; opacity: .9; }
.oe-canvas .ov-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; touch-action: none; user-select: none; }
.oe-canvas .ov-w { cursor: move; outline: 1px dashed rgb(255 255 255 / .22); outline-offset: 0; }
.oe-canvas .ov-w:hover { outline: 2px solid rgb(124 149 255 / .6); }
.oe-canvas .ov-w.sel { outline: none; z-index: auto; }
.oe-canvas .ov-w.locked { cursor: default; }
.oe-canvas .ov-w.ov-hidden { opacity: .22; }
.oe-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgb(255 255 255 / .09) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .09) 1px, transparent 1px); z-index: 900; }
.oe-safe { position: absolute; inset: 5%; pointer-events: none; border: 2px dashed rgb(255 196 0 / .55); z-index: 900; }
.oe-safe i { position: absolute; inset: 5.5%; border: 2px dotted rgb(255 196 0 / .3); }
.oe-guides { position: absolute; inset: 0; pointer-events: none; z-index: 1000; }
.oe-guides i { position: absolute; border: 0 solid #ff3ea5; }
.oe-guides i.v { top: -100000px; bottom: -100000px; width: 0; border-left-style: solid; }
.oe-guides i.hz { left: -100000px; right: -100000px; height: 0; border-top-style: solid; }
.oe-sel { --hs: 24px; position: absolute; z-index: 1001; pointer-events: none; outline: calc(var(--hs) / 6) solid #5b7cff; transform-origin: 50% 50%; }
.oe-hd { position: absolute; width: var(--hs); height: var(--hs); background: #fff; border: calc(var(--hs) / 6) solid #5b7cff; border-radius: calc(var(--hs) / 4); pointer-events: auto; transform: translate(-50%, -50%); }
.oe-hd[data-d="nw"] { left: 0; top: 0; cursor: nwse-resize; } .oe-hd[data-d="n"] { left: 50%; top: 0; cursor: ns-resize; }
.oe-hd[data-d="ne"] { left: 100%; top: 0; cursor: nesw-resize; } .oe-hd[data-d="e"] { left: 100%; top: 50%; cursor: ew-resize; }
.oe-hd[data-d="se"] { left: 100%; top: 100%; cursor: nwse-resize; } .oe-hd[data-d="s"] { left: 50%; top: 100%; cursor: ns-resize; }
.oe-hd[data-d="sw"] { left: 0; top: 100%; cursor: nesw-resize; } .oe-hd[data-d="w"] { left: 0; top: 50%; cursor: ew-resize; }
.oe-sel.locked .oe-hd { display: none; }
.oe-sel.locked { outline-color: #f0a531; }
.oe-dim { position: absolute; left: 50%; top: 100%; transform: translate(-50%, calc(var(--hs) * .9)); background: #5b7cff; color: #fff; font: 700 calc(var(--hs) * .75)/1.4 system-ui; padding: 0 calc(var(--hs) / 3); border-radius: calc(var(--hs) / 4); white-space: nowrap; }
.oe-status { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 6px 12px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--border); background: var(--surface); font-variant-numeric: tabular-nums; }
.oe-status b { color: var(--text); }
.oe-keys { margin-left: auto; opacity: .8; }

.oe-ih { display: flex; align-items: center; gap: 10px; padding: 12px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.oe-ih > div { min-width: 0; display: grid; gap: 2px; }
.oe-ihn { flex: 1; }
.oe-name { height: 30px; font-weight: 650; font-size: 14px; padding: 0 8px; }
.oe-ih > .oe-iha { display: flex; gap: 2px; }
.oe-sec { border-bottom: 1px solid var(--border); padding: 4px 12px 12px; display: grid; gap: 9px; }
.oe-st { font: 700 11.5px/1 inherit; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 10px 0 2px; cursor: pointer; list-style: none; }
.oe-st::-webkit-details-marker { display: none; }
.oe-st::before { content: '▾ '; } details:not([open]) > .oe-st::before { content: '▸ '; }
.oe-st2 { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.oe-g4 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.oe-g4 label { display: grid; gap: 3px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.oe-num { height: 32px; font-size: 13px; padding: 0 8px; font-variant-numeric: tabular-nums; }
.oe-mini { gap: 6px; font-size: 13px; }
.oe-mini .oe-ab { flex: 1; }
.oe-align { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.oe-ab { height: 30px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; font-size: 13px; font-weight: 600; padding: 0 6px; }
.oe-ab:hover:not(:disabled) { border-color: var(--out); }
.oe-ab:disabled { opacity: .4; cursor: default; }
.oe-row { display: grid; gap: 4px; }
.oe-lab { font-size: 12px; font-weight: 600; color: var(--muted); }
.oe-tg2 { padding: 2px 0; }
.oe-rangebox { display: grid; grid-template-columns: 1fr 64px; gap: 8px; align-items: center; }
.oe-rangebox .oe-num { width: 64px; }
.oe-val { font-size: 12.5px; font-variant-numeric: tabular-nums; text-align: right; }
.oe-range { width: 100%; accent-color: #5b7cff; }
.oe-seg { display: inline-flex; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.oe-seg button { flex: 1; height: 30px; border: 0; background: var(--surface); color: var(--text); font: 600 12.5px inherit; cursor: pointer; padding: 0 12px; }
.oe-seg button + button { border-left: 1px solid var(--border); }
.oe-seg button.on { background: var(--ink); color: var(--on-ink); }
.oe-color { display: grid; grid-template-columns: 34px 1fr auto; gap: 6px; align-items: center; }
.oe-color:has(.oe-alpha) { grid-template-columns: 34px 1fr 1fr auto; }
.oe-swbox { position: relative; width: 34px; height: 32px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-strong); background: repeating-conic-gradient(#ccc 0 25%, #fff 0 50%) 0 0 / 10px 10px; }
.oe-chip { position: absolute; inset: 0; }
.oe-sw { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.oe-ctext { height: 32px; font: 12px ui-monospace, Menlo, monospace; padding: 0 6px; min-width: 0; }
.oe-alpha { height: 18px; }
.oe-media { display: grid; gap: 6px; }
.oe-thumb { max-width: 100%; max-height: 110px; object-fit: contain; border-radius: 8px; background: repeating-conic-gradient(#ccc 0 25%, #fff 0 50%) 0 0 / 12px 12px; justify-self: start; }
.oe-files { display: grid; gap: 4px; }
.oe-hint { margin: 0; padding: 12px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.oe-help { margin: 0; padding-left: 18px; font-size: 13px; color: var(--muted); display: grid; gap: 6px; line-height: 1.4; }
.oe-live { margin-bottom: 16px; }

@media (max-width: 1280px) { .oe-body { grid-template-columns: 210px minmax(0, 1fr) 280px; } .oe-keys { display: none; } }
@media (max-width: 1000px) {
  .oe { height: auto; }
  .oe-body { grid-template-columns: 1fr; }
  .oe-center { order: -1; } .oe-view { height: 56vw; min-height: 240px; }
  .oe-left, .oe-insp { border: 0; border-top: 1px solid var(--border); max-height: none; }
  .oe-items { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

.oe-jr .card { box-shadow: none; border: 0; padding: 0; margin: 0; background: transparent; }
.oe-jr .card-head h2 { font-size: 14px; }
.oe-jr .card-head small { display: none; }

.oe-warn, .oe-ok { margin: 10px 12px 0; padding: 9px 11px; border-radius: 10px; font-size: 12.5px; line-height: 1.45; }
.oe-warn { background: var(--warn-soft); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.oe-ok { background: var(--accent-soft); color: var(--accent); }
.oe-warn a { color: inherit; font-weight: 700; }

.oe-delov { font-size: 12px; font-weight: 600; opacity: .7; }
.oe-delov:hover { opacity: 1; }

.jr-route { display: grid; gap: 0; }
.jr-stop { display: grid; grid-template-columns: 26px 1fr auto; column-gap: 10px; align-items: center; padding: 6px 0; position: relative; }
.jr-stop small { grid-column: 2 / 4; }
.jr-stop:not(:last-child)::after { content: ''; position: absolute; left: 12px; top: 28px; bottom: -6px; width: 2px; background: var(--border-strong); }
.jr-stop.done:not(:last-child)::after { background: var(--accent); }
.jr-pin { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; border: 2px solid var(--border-strong); background: var(--surface); position: relative; z-index: 1; }
.jr-stop.done .jr-pin { background: var(--accent); border-color: var(--accent); color: #fff; }
.jr-stop.cur .jr-pin { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.jr-stop.cur b { color: var(--accent); }
.jr-acts { display: flex; gap: 2px; }

.oe-wp { gap: 8px; }
.oe-wplist { display: grid; gap: 8px; }
.oe-wpitem { display: grid; gap: 6px; padding: 9px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.oe-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.oe-g2 label { display: grid; gap: 3px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.oe-g4b { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.oe-big { font-size: 22px; font-variant-numeric: tabular-nums; }
.oe-hint0 { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.4; }
a.oe-ab { display: inline-grid; place-items: center; text-decoration: none; }
.oe-embed .card-head { flex-wrap: wrap; }
.oe-eng .eng-grid { grid-template-columns: 1fr !important; }
.oe-jr .row { flex-wrap: wrap; }

.jr-pinbtn { cursor: pointer; color: var(--text); font: inherit; font-size: 12px; font-weight: 800; padding: 0; }
.jr-pinbtn:hover { border-color: var(--out); color: var(--out); }
.jr-name { cursor: pointer; }
.jr-name:hover { text-decoration: underline; }
.jr-edit { opacity: 0; font-size: 12px; }
.jr-stop:hover .jr-edit { opacity: .8; }
.modal.modal-wide { width: min(860px, calc(100vw - 32px)); max-width: none; }
.mp { display: grid; gap: 8px; }
.mp-map { height: min(56vh, 480px); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #ddd; }
.mp-foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.mp-coord { font-variant-numeric: tabular-nums; }

/* rota planlayıcı (Google Maps gibi) */
.modal.modal-full { width: min(1280px, calc(100vw - 24px)); max-width: none; height: calc(100dvh - 24px); max-height: none; }
.modal.modal-full .modal-body { flex: 1; min-height: 0; display: flex; padding-bottom: 0; }
.rp { flex: 1; min-height: 0; display: grid; grid-template-columns: 360px 1fr; gap: 12px; }
.rp-side { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 0; padding-right: 2px; }
.rp-mapwrap { position: relative; min-height: 0; }
.rp-map { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #ddd; }
.rp-hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 500; background: rgb(20 22 26 / .82); color: #fff; font-size: 12px; padding: 6px 12px; border-radius: 999px; pointer-events: none; white-space: nowrap; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; }
.rp-list { display: flex; flex-direction: column; gap: 4px; }
.rp-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.rp-row.drag { opacity: .4; } .rp-row.over { border-color: #1a73e8; box-shadow: 0 0 0 2px rgb(26 115 232 / .25); }
.rp-grip { cursor: grab; color: var(--muted, #888); font-size: 12px; letter-spacing: -2px; user-select: none; }
.rp-start .rp-grip { display: none; }
.rp-num { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 0; background: #1a73e8; color: #fff; font-weight: 700; font-size: 12px; display: grid; place-items: center; cursor: pointer; }
.rp-num.start { background: #188038; cursor: default; } .rp-num.end { background: #d93025; }
.rp-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rp-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-in { border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--text); padding: 2px 0; width: 100%; outline: none; border-bottom: 1px dashed transparent; }
.rp-in:focus { border-bottom-color: var(--border); }
.rp-acts { display: flex; gap: 2px; flex: none; }
.rp-empty { font-size: 13px; margin: 4px 2px; }
.rp-legs { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.rp-leg { display: flex; flex-direction: column; gap: 4px; }
.rp-leghead { font-size: 12px; color: var(--muted, #777); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-alt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; text-align: left; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.rp-alt span { flex: 1; } .rp-alt.sel { border-color: #1a73e8; background: rgb(26 115 232 / .08); cursor: default; }
.rp-total { margin-top: auto; padding: 10px 2px; border-top: 1px solid var(--border); position: sticky; bottom: 0; background: var(--surface); }
.rp-pin { background: none; border: 0; }
.rp-pin span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #1a73e8; color: #fff; font: 700 12px/1 system-ui, sans-serif; border: 2px solid #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .4); }
.rp-pin.start span { background: #188038; font-size: 10px; } .rp-pin.end span { background: #d93025; font-size: 13px; }
.rp-via { background: #fff; border: 3px solid #1a73e8; border-radius: 50%; box-shadow: 0 1px 3px rgb(0 0 0 / .4); cursor: pointer; }
.rp-pop { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 820px) {
  .rp { grid-template-columns: 1fr; grid-template-rows: auto minmax(320px, 1fr); }
  .rp-mapwrap { order: -1; min-height: 320px; }
  .rp-side { overflow: visible; }
}
/* sponsor slaytı: logo listesi */
.oe-logowrap { display: grid; gap: 8px; width: 100%; }
.oe-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.oe-logo { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; border: 1px solid var(--border); background: repeating-conic-gradient(#e7e7e7 0 25%, #fff 0 50%) 0 0 / 14px 14px; overflow: hidden; }
.oe-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.oe-logo-acts { position: absolute; right: 4px; top: 4px; display: flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.oe-logo:hover .oe-logo-acts, .oe-logo:focus-within .oe-logo-acts { opacity: 1; }
.oe-logo-acts .oe-tool { background: rgb(255 255 255 / .92); }
@media (hover: none) { .oe-logo-acts { opacity: 1; } }
.oe-logowrap .row select { flex: 1; min-width: 0; }
.oe-logocell { display: grid; gap: 4px; min-width: 0; }
.oe-logo img { transition: scale .1s; }
.oe-logozoom { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.oe-logozoom input { flex: 1; min-width: 0; accent-color: var(--accent, #5b5bf0); }
.oe-logozoom small { min-width: 38px; text-align: right; color: var(--muted, #888); font-variant-numeric: tabular-nums; }
.oe-row.oe-col { display: grid; gap: 6px; min-width: 0; width: 100%; }
.oe-logowrap, .oe-logos, .oe-logocell { min-width: 0; max-width: 100%; }
.oe-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.oe-logozoom small { flex: none; min-width: 34px; }
.oe-logocell { grid-template-columns: minmax(0, 1fr); }
.oe-logocell > * { min-width: 0; }

/* Kick yayın bilgisi: mevcut ayarlar */
.kc-now { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2, rgb(0 0 0 / .02)); }
.kc-cat { display: flex; align-items: center; gap: 10px; }
.kc-cat img { width: 40px; height: 53px; object-fit: cover; border-radius: 6px; flex: none; }
.kc-cat b { display: block; font-size: 15px; }
.kc-kv { display: grid; grid-template-columns: 96px 1fr; gap: 4px 10px; margin: 0; font-size: 13.5px; }
.kc-kv dt { color: var(--muted, #888); }
.kc-kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.kc-desc { white-space: pre-wrap; max-height: 5.5em; overflow: auto; }
.kc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.kc-tag { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 4px 0 10px; border-radius: 99px; background: var(--surface-2, #f1f1ef); border: 1px solid var(--border); font-size: 12.5px; font-weight: 600; }
.kc-tag button { border: 0; background: none; cursor: pointer; color: var(--muted, #888); width: 20px; height: 20px; border-radius: 50%; }
.kc-tag button:hover { background: rgb(0 0 0 / .06); }

.kc-warn { color: #b45309; font-weight: 600; }

/* ---------- menü grupları + alt menüler */
.side-nav .nav-group { padding-top: 14px; }
.side-nav .nav-group:first-child { padding-top: 2px; }
.drawer-tabs .nav-group { padding: 14px 14px 4px; font-size: 11px; }
.tab-chev { margin-left: auto; opacity: .45; font-size: 15px; transition: transform .2s var(--ease); }
.tab.active .tab-chev { transform: rotate(90deg); opacity: .8; }
.subnav { display: none; gap: 1px; margin: 2px 0 6px 21px; padding-left: 12px; border-left: 1.5px solid var(--border); }
.tab.active + .subnav { display: grid; }
.subtab { display: block; padding: 6px 10px; border-radius: 8px; font-size: 13px; color: var(--muted); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.subtab:hover { color: var(--text); background: var(--surface-2); }
.subtab.active { color: var(--text); font-weight: 650; background: var(--surface-2); }
.drawer-tabs .subtab { padding: 10px 12px; font-size: 14.5px; }
.side-collapsed .subnav, .side-collapsed .tab-chev { display: none !important; }
/* sayfa içi alt sekmeler + arama */
.subbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.subtabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
.subtabs::-webkit-scrollbar { display: none; }
.subtabs.dim { opacity: .45; }
.subtabs .subtab { border: 1px solid var(--border); border-radius: 999px; padding: 7px 13px; background: var(--surface); flex: none; }
.subtabs .subtab.on { background: var(--ink); color: var(--on-ink, #fff); border-color: var(--ink); font-weight: 650; }
.set-search { flex: 0 1 300px; min-width: 200px; }
.set-cols { columns: 2 440px; column-gap: 16px; }
.set-cols > .card { break-inside: avoid; margin: 0 0 16px; display: block; width: 100%; }
@media (max-width: 860px) { .set-search { flex: 1 1 100%; } }

/* chat komutları */
.cc-list { display: grid; gap: 6px; }
.cc-head { font-weight: 650; font-size: 13px; margin-top: 10px; }
.cc-row { display: flex; align-items: flex-start; gap: 10px; padding: 6px 2px; border-bottom: 1px solid var(--border); }
.cc-row .cc-main { min-width: 0; }
.cc-desc { font-size: 12.5px; }
.cc-det summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.cc-card { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; }
.cc-cmd { max-width: 160px; font-weight: 650; }

.pin-box { display:flex; gap:10px; align-items:center; padding:10px 12px; border-radius:12px; border:1px solid var(--border); background:var(--surface-2); }
.pin-box > div { flex:1; min-width:0; display:grid; gap:2px; }
.pin-box b { overflow-wrap:anywhere; }

.live-auto { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.live-auto select { min-width:220px; }

/* Ayarlar → IRL özellikleri */
.irl-master { padding:.55rem .7rem; border-radius:10px; background:var(--accent-soft); font-weight:600; }
.irl-steps { margin:.2rem 0; padding-left:1.2rem; display:grid; gap:.2rem; }
.irl-list { display:flex; flex-direction:column; gap:.45rem; }
.irl-row { display:flex; align-items:center; gap:.45rem; flex-wrap:wrap; padding:.4rem 0; border-bottom:1px solid var(--border, rgba(127,127,127,.2)); }
.irl-grow { flex:1; min-width:140px; }
.irl-chips { display:flex; flex-wrap:wrap; gap:.3rem; margin-top:.35rem; }
.irl-chip { font-size:.8rem; padding:.15rem .5rem; border-radius:99px; background:var(--accent-soft); }
.irl-sp { display:flex; flex-direction:column; gap:.35rem; padding:.6rem; border-radius:10px; background:var(--accent-soft); }
.irl-sos-on { display:flex; align-items:center; gap:.7rem; flex-wrap:wrap; padding:.6rem .8rem; border-radius:10px; background:#c62828; color:#fff; font-weight:800; }
/* grid içindeki geniş içerik sayfayı yana taşırmasın */
.view > * { min-width: 0; }
.set-cols .card { min-width: 0; overflow-wrap: anywhere; }
.set-cols .card .input, .set-cols .card textarea { max-width: 100%; box-sizing: border-box; }

/* ---------- İstatistik (2026-11-20) ---------- */
.st-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.st-head h2 { margin: 0 0 2px; }
.st-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1500px) { .st-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .st-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.st-kpis .stat-label { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.st-delta { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--surface-2, rgb(0 0 0 / .05)); color: var(--muted); font-variant-numeric: tabular-nums; }
.st-delta.up { color: var(--accent); background: var(--accent-soft, rgb(21 128 61 / .1)); }
.st-delta.down { color: var(--live, #d33); background: var(--live-soft, rgb(220 50 50 / .1)); }
.st-bar:hover rect { filter: brightness(1.15); }
.st-cal-wrap { display: grid; grid-template-columns: auto 1fr; gap: 6px 8px; }
.st-cal-days { display: grid; grid-template-rows: repeat(7, 1fr); gap: 3px; }
.st-cal-days small { font-size: 9.5px; color: var(--muted); line-height: 14px; }
.st-cal { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 14px); grid-auto-columns: 14px; justify-content: start; gap: 3px; overflow-x: auto; padding-bottom: 2px; }
.st-cal-c, .st-cal-pad { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.st-cal-c { background: var(--border); }
.st-cal-c.l1 { background: color-mix(in srgb, var(--accent) 30%, transparent); }
.st-cal-c.l2 { background: color-mix(in srgb, var(--accent) 55%, transparent); }
.st-cal-c.l3 { background: color-mix(in srgb, var(--accent) 78%, transparent); }
.st-cal-c.l4 { background: var(--accent); }
.st-cal-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.st-cal-legend { display: inline-flex; align-items: center; gap: 3px; }
.st-cal-legend .st-cal-c { width: 11px; height: 11px; }
.st-heat { display: grid; grid-template-columns: 34px repeat(8, 1fr); gap: 3px; margin-bottom: 8px; }
.st-heat > small { font-size: 10px; color: var(--muted); text-align: center; align-self: center; }
.st-heat-c { height: 24px; border-radius: 4px; background: var(--border); font-size: 10.5px; font-style: normal; font-weight: 650; display: grid; place-items: center; color: var(--text); }
.st-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.st-top li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: var(--surface-2, rgb(0 0 0 / .03)); }
.st-top li b { font-variant-numeric: tabular-nums; color: var(--muted); }
.st-top li:nth-child(1) b { color: #c99a06; } .st-top li:nth-child(2) b { color: #8a8f98; } .st-top li:nth-child(3) b { color: #b0702c; }
.st-table td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.st-table td.st-title { white-space: normal; min-width: 180px; max-width: 320px; }
.st-table td.st-title small { display: block; }
.st-bad { color: var(--live, #d33); font-weight: 650; }
.st-days summary { cursor: pointer; padding: 2px 0; }
.st-days[open] summary { margin-bottom: 10px; }

.st-wrap { position: relative; }
.st-tip { position: absolute; display: none; pointer-events: none; z-index: 5; background: var(--text); color: var(--surface, #fff); padding: 6px 10px; border-radius: 9px; font-size: 12px; line-height: 1.35; white-space: nowrap; box-shadow: 0 6px 20px rgb(0 0 0 / .18); }
.st-tip small { display: block; opacity: .7; font-size: 11px; }
.st-tip b { font-size: 14px; font-variant-numeric: tabular-nums; }
.st-tip .up { color: #4ade80; font-weight: 700; } .st-tip .down { color: #f87171; font-weight: 700; }
.st-chart .st-guide { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.st-bar.on rect:not([fill="transparent"]) { filter: brightness(1.2) saturate(1.2); }

/* ---------- Alert'ler sekmesi */
.al-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
.al-main, .al-side { display: grid; gap: 16px; min-width: 0; }
.al-side { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; scrollbar-width: none; }
.al-top { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.al-ov-btn { display: inline-flex; align-items: center; gap: 8px; }
.al-ov-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: rgba(255,255,255,.25); font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.al-ov-count[hidden] { display: none; }
.al-ov-modal .modal { width: min(560px, calc(100vw - 32px)); }
.al-ov-modal-body .al-p { margin-top: 0; }
@media (max-width: 1100px) { .al-layout { grid-template-columns: 1fr; } .al-side { position: static; order: -1; max-height: none; overflow: visible; } }
.al-banner { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 16px; border-radius: var(--radius);
  background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); }
.al-banner-ic { font-size: 22px; }
.al-banner .muted { font-size: 13px; }
.al-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .al-types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.al-type { --c: var(--accent); position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  text-align: left; padding: 12px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; font: inherit; color: var(--text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--spring); }
.al-type:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--border)); transform: translateY(-1px); }
.al-type.active { border-color: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 16%, transparent); }
.al-type.off { opacity: .55; }
.al-type-ic { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px;
  background: color-mix(in srgb, var(--c) 15%, transparent); }
.al-type-name { font-weight: 650; font-size: 14px; }
.al-type-meta { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-editor { --c: var(--accent); border-top: 3px solid var(--c); }
.al-ed-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.al-ed-head h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.al-ed-head .muted { font-size: 12.5px; }
.al-ed-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: color-mix(in srgb, var(--c) 15%, transparent); }
.al-sec { display: grid; gap: 8px; padding: 16px 0 0; margin-top: 16px; border-top: 1px solid var(--border); }
.card > .al-sec:first-of-type { }
.al-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.al-label > span:first-child { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.al-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.al-chip { font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 5px 8px; border-radius: 8px; border: 1px dashed var(--border-strong);
  background: var(--surface-2); color: var(--text); cursor: pointer; }
.al-chip:hover { border-style: solid; border-color: var(--c, var(--accent)); }
.al-msg { font-size: 15px; font-weight: 550; }
.al-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .al-tiles { grid-template-columns: 1fr; } }
.al-tile { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.al-tile-body { display: grid; gap: 6px; min-width: 0; align-content: start; }
.al-tile-body b { font-size: 13px; }
.al-tile-body .row { flex-wrap: wrap; gap: 6px; }
.al-thumb { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; font-size: 24px;
  background: #0e0f12 repeating-conic-gradient(#1b1d22 0 25%, #0e0f12 0 50%) 0 0/14px 14px; }
.al-thumb.empty { background: var(--surface); border: 1.5px dashed var(--border-strong); opacity: .8; }
.al-thumb img, .al-thumb video { width: 100%; height: 100%; object-fit: contain; }
.al-play { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--c, var(--accent)); color: #fff; font-size: 15px; cursor: pointer; }
.al-inline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.al-inline > .muted:first-child { min-width: 104px; font-size: 13px; }
.al-slider { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 160px; }
.al-slider input[type=range] { flex: 1; accent-color: var(--c, var(--accent)); }
.al-val { min-width: 52px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px; }
.al-num { width: 110px; }
.al-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.al-saved { font-size: 12px; color: var(--accent); font-weight: 600; }
.al-saved.busy { color: var(--muted); }
.al-saved::before { content: '● '; }
.al-connect { display: grid; gap: 10px; margin-top: 14px; padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); }
.al-connect.ok { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.al-connect-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.al-connect-head .muted { font-size: 12.5px; margin-left: auto; }
.al-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.al-dot.ok { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.al-dot.warn { background: var(--warn); }
.al-steps { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.al-choices { display: flex; gap: 8px; flex-wrap: wrap; }
.al-choice { display: grid; justify-items: center; gap: 6px; padding: 10px 12px 8px; min-width: 96px; border-radius: 12px; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text); font: 600 12.5px/1.2 inherit; font-family: inherit; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.al-choice:hover { border-color: var(--border-strong); }
.al-choice.active { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 10%, transparent); }
.al-choice-art { position: relative; width: 64px; height: 40px; border-radius: 7px; background: var(--surface-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; overflow: hidden; }
.al-choice-art .m { width: 18px; height: 14px; border-radius: 3px; background: var(--muted); opacity: .55; }
.al-choice-art .t { width: 38px; height: 5px; border-radius: 3px; background: var(--accent); }
.al-choice-art .t.box { height: 9px; background: none; border: 2px solid var(--accent); }
.al-choice-art .m.s { position: absolute; left: 8px; top: 13px; }
.al-choice-art .t.s { position: absolute; left: 30px; top: 18px; width: 26px; }
.al-choice-art .m.o { position: absolute; inset: 4px; width: auto; height: auto; }
.al-choice-art .t.o { position: absolute; bottom: 7px; }
.al-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.al-grid2 > div { display: grid; gap: 4px; }
@media (max-width: 520px) { .al-grid2 { grid-template-columns: 1fr; } }
.al-swatches { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.al-swatch { --sw: #fff; position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; font-size: 13px; font-weight: 600; }
.al-swatch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.al-sw-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .15); }
.al-preview .card-head .row { gap: 6px; }
.al-mini .seg-btn { padding: 3px 9px; font-size: 12px; }
.al-frame-wrap { position: relative; margin-bottom: 8px; }
.al-frame { position: relative; width: 100%; aspect-ratio: 1000 / 600; overflow: hidden; border-radius: 14px; }
.al-frame.bg-checker { background: #0e0f12 repeating-conic-gradient(#16181d 0 25%, #0e0f12 0 50%) 0 0/28px 28px; }
.al-frame.bg-dark { background: #050506; }
.al-frame.bg-road { background: #8fbbe8 url(/img/alert-road.svg) center / cover no-repeat; } /* çizim: araç içinden ön cam */
.al-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.al-badge { --c: var(--accent); position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 650;
  color: #fff; background: color-mix(in srgb, var(--c) 75%, #000); box-shadow: 0 2px 8px rgb(0 0 0 / .3); }
.al-p { margin-top: 0; }
.al-ovs { display: grid; gap: 8px; }
.al-ov { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); }
.al-ov .grow { display: grid; min-width: 0; }
.al-ov small { font-size: 12px; }
.al-ov-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; background: var(--surface); border: 1px dashed var(--border-strong); color: var(--muted); }
.al-ov.has .al-ov-ic { background: var(--accent-soft); border: 0; color: var(--accent); }
.al-details summary { padding: 2px 0; }
.al-choice-art .m.mx { position: absolute; left: 10px; top: 6px; }
.al-choice-art .t.mx { position: absolute; right: 6px; bottom: 7px; width: 26px; }
.al-choice-art .m.mx::after { content: ''; position: absolute; left: 22px; top: 14px; width: 14px; height: 2px; background: var(--muted); transform: rotate(30deg); opacity: .6; }
.al-manual { display: grid; gap: 10px; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.al-manual .al-grid2 > div { gap: 2px; }
.al-variants { display: grid; gap: 8px; margin-top: 14px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--c, var(--accent)) 7%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--c, var(--accent)) 22%, var(--border)); }
.al-var-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.al-var-title { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.al-var { font: 600 12.5px/1 inherit; font-family: inherit; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; }
.al-var.active { background: var(--c, var(--ink)); border-color: var(--c, var(--ink)); color: #fff; }
.al-var.add { border-style: dashed; color: var(--muted); }
.al-var-edit { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.al-live { display: flex; gap: 8px; flex-wrap: wrap; }
.al-games { margin-top: 22px; }
.al-games-head { display: flex; align-items: baseline; gap: 10px; margin: 0 4px 12px; flex-wrap: wrap; }
.al-games-head h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.al-games-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 900px) { .al-games-grid { grid-template-columns: 1fr; } }
.al-ct-list { display: grid; gap: 8px; }
.al-ct { display: grid; grid-template-columns: 1fr 1fr 110px auto auto auto; gap: 6px; align-items: center; }
@media (max-width: 640px) { .al-ct { grid-template-columns: 1fr 1fr; } }
.al-ct-val { display: flex; align-items: center; gap: 4px; }
.al-ct-val b { min-width: 34px; text-align: center; font-variant-numeric: tabular-nums; }
.al-bet { display: grid; gap: 8px; }
.al-bet-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.al-boss-now { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--live-soft); margin-bottom: 10px; }
.al-boss-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.al-boss-f { display: grid; gap: 3px; }
.al-frame.cb-frame { aspect-ratio: 520 / 620; }
