/* =========================================================================
   AURORA HOME OS — AjentTuro görünüm katmanı
   Sidebar + topbar + Genel Bakış kart ızgarası. Veri kancaları (#id) korunur;
   yalnızca görsel dil ve yerleşim Aurora'ya taşınır.
   ========================================================================= */

:root {
  --au-bg: #08090c;
  --au-bg-glow-1: rgba(245, 169, 74, .09);
  --au-bg-glow-2: rgba(65, 216, 163, .06);
  --au-panel: #0b0d12;
  --au-card: #11141b;
  --au-card-2: #151923;
  --au-line: rgba(255, 255, 255, .07);
  --au-line-strong: rgba(255, 255, 255, .13);
  --au-text: #f2f4f8;
  --au-muted: #8d94a7;
  --au-dim: #636b7e;
  --au-amber: #f5a94a;
  --au-amber-2: #ef8b3c;
  --au-amber-soft: rgba(245, 169, 74, .12);
  --au-mint: #41d8a3;
  --au-mint-soft: rgba(65, 216, 163, .12);
  --au-blue: #5aa9ff;
  --au-blue-soft: rgba(90, 169, 255, .12);
  --au-violet: #9b8cff;
  --au-violet-soft: rgba(155, 140, 255, .12);
  --au-r-lg: 22px;
  --au-r-md: 16px;
  --au-r-sm: 12px;
  --au-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 20px 40px -30px rgba(0, 0, 0, .9);
  --au-sidebar: 268px;
  --au-rail: 86px;
  --au-ease: cubic-bezier(.2, .7, .3, 1);
}

html[data-theme="light"] {
  --au-bg: #f2f4f8;
  --au-bg-glow-1: rgba(245, 169, 74, .18);
  --au-bg-glow-2: rgba(65, 216, 163, .12);
  --au-panel: #ffffff;
  --au-card: #ffffff;
  --au-card-2: #f7f8fb;
  --au-line: rgba(16, 22, 38, .08);
  --au-line-strong: rgba(16, 22, 38, .16);
  --au-text: #141822;
  --au-muted: #6a7285;
  --au-dim: #8b93a5;
  --au-amber: #dd8a2b;
  --au-amber-2: #cb7526;
  --au-amber-soft: rgba(221, 138, 43, .12);
  --au-mint: #0f9f75;
  --au-mint-soft: rgba(15, 159, 117, .11);
  --au-blue: #2f7fd4;
  --au-blue-soft: rgba(47, 127, 212, .1);
  --au-violet: #6b58e0;
  --au-violet-soft: rgba(107, 88, 224, .1);
  --au-shadow: 0 1px 2px rgba(16, 22, 38, .04), 0 18px 40px -32px rgba(16, 22, 38, .5);
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--au-text);
  background:
    radial-gradient(1100px 520px at 82% -12%, var(--au-bg-glow-1), transparent 62%),
    radial-gradient(820px 480px at -8% 108%, var(--au-bg-glow-2), transparent 60%),
    var(--au-bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

body .app-main {
  min-width: 0;
  padding: 26px clamp(18px, 3vw, 38px) 40px;
}

/* Aura'da icerik siniri yoktur: sutun sidebar'in sagini tam doldurur ve
   sol/sag paylar esittir. Footer ayni olugu izler. */
body .site-footer {
  min-width: 0;
  margin: 0;
  padding: 17px clamp(18px, 3vw, 38px) 22px;
}

/* ============================ SIDEBAR ================================== */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 75;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: var(--au-sidebar);
  height: 100svh;
  padding: 20px 14px 16px;
  overflow: hidden;
  border-right: 1px solid var(--au-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0) 30%), var(--au-panel);
  transition: width .28s var(--au-ease), padding .28s var(--au-ease);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  /* theme.css'teki .brand{margin-right:auto} cogu eksen gerilmesini iptal edip
     kutuyu icerige (164px) kucultuyordu; dugme bu yuzden sag kenara degil
     metnin yanina yapisyordu. */
  margin: 0;
  padding: 2px 6px 6px;
  text-decoration: none;
}

.brand .brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  overflow: hidden;
  background: none;
  box-shadow: none;
}
.brand .brand-mark svg { width: 40px; height: 40px; display: block; }

.brand .brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand .brand-name { font-size: 16px; font-weight: 600; letter-spacing: -.01em; color: var(--au-text); }
.brand .brand-name span { color: var(--au-amber); }
.brand .brand-tag { font-size: 11px; color: var(--au-dim); letter-spacing: .04em; }

.collapse-btn {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border: 1px solid var(--au-line);
  border-radius: 9px;
  background: transparent;
  color: var(--au-muted);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.collapse-btn:hover { background: var(--au-card-2); color: var(--au-text); border-color: var(--au-line-strong); }
.collapse-btn .icon { width: 15px; height: 15px; transform: rotate(180deg); transition: transform .3s var(--au-ease); }

.nav { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; scrollbar-width: none; flex: 1; }
.nav::-webkit-scrollbar { display: none; }

.nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--au-dim);
  padding: 14px 12px 7px;
  margin: 0;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--au-muted);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s, color .18s;
}
.nav-item .icon { width: 19px; height: 19px; color: var(--au-dim); transition: color .18s; }
.nav-item:hover { background: rgba(255, 255, 255, .04); color: var(--au-text); }
.nav-item:hover .icon { color: var(--au-muted); }

.nav-item.is-active {
  background: linear-gradient(100deg, var(--au-amber-soft), rgba(245, 169, 74, .02));
  color: var(--au-text);
}
.nav-item.is-active .icon { color: var(--au-amber); }
.nav-item.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  translate: 0 -50%;
  width: 3px;
  height: 18px;
  border-radius: 0 3px 3px 0;
  background: var(--au-amber);
  box-shadow: 0 0 14px rgba(245, 169, 74, .8);
}

.sidebar .count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--au-muted);
  background: rgba(255, 255, 255, .06);
  border-radius: 999px;
  padding: 2px 7px;
  line-height: 1.5;
}

.sidebar-foot { display: flex; flex-direction: column; gap: 10px; }

.home-card {
  border: 1px solid var(--au-line);
  border-radius: var(--au-r-md);
  padding: 12px;
  background: linear-gradient(160deg, rgba(245, 169, 74, .07), rgba(255, 255, 255, .015));
}
.home-card-top {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--au-muted);
}
.home-card p { margin: 7px 0 0; font-size: 11.5px; color: var(--au-dim); }
.home-card p strong { color: var(--au-text); font-weight: 600; }

.sidebar .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--au-mint);
  box-shadow: 0 0 0 4px var(--au-mint-soft);
}
.sidebar .status-dot.is-warn { background: var(--au-amber); box-shadow: 0 0 0 4px var(--au-amber-soft); }
.sidebar .status-dot.is-neg { background: #ff6b6b; box-shadow: 0 0 0 4px rgba(255, 107, 107, .12); }

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background .2s, border-color .2s;
}
.profile:hover { background: var(--au-card-2); border-color: var(--au-line); }
.profile .avatar {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--au-text);
  background: linear-gradient(140deg, #3a4358, #232a38);
  border: 1px solid var(--au-line-strong);
}
html[data-theme="light"] .profile .avatar { background: linear-gradient(140deg, #e9edf5, #d6dce8); }
.profile-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.profile-text strong { font-size: 12.5px; font-weight: 600; }
.profile-text span { font-size: 11px; color: var(--au-dim); }
.profile .chev { width: 15px; height: 15px; margin-left: auto; color: var(--au-dim); }

/* daraltılmış ray */
@media (min-width: 1024px) {
  body { padding-left: var(--au-sidebar); }
  body.is-rail-collapsed { padding-left: var(--au-rail); }
  body.is-rail-collapsed .sidebar { width: var(--au-rail); padding-inline: 12px; align-items: center; }
  body.is-rail-collapsed .sidebar .brand { flex-direction: column; gap: 10px; padding-inline: 0; }
  body.is-rail-collapsed .sidebar .brand-text,
  body.is-rail-collapsed .sidebar .nav-label,
  body.is-rail-collapsed .sidebar .nav-item span,
  body.is-rail-collapsed .sidebar .home-card,
  body.is-rail-collapsed .sidebar .mp-card,
  body.is-rail-collapsed .sidebar .profile-text,
  body.is-rail-collapsed .sidebar .profile .chev { display: none; }
  body.is-rail-collapsed .nav { width: 100%; gap: 6px; }
  body.is-rail-collapsed .nav-item { justify-content: center; padding: 0; }
  body.is-rail-collapsed .nav-item.is-active::before { display: none; }
  body.is-rail-collapsed .sidebar-foot { width: 100%; }
  body.is-rail-collapsed .profile { justify-content: center; padding: 9px 0; }
  body.is-rail-collapsed .collapse-btn { margin: 0; }
  body.is-rail-collapsed .collapse-btn .icon { transform: rotate(0deg); }
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(2, 4, 8, .6);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .25s var(--au-ease);
}
.scrim[hidden] { display: none; }
.scrim.is-visible { opacity: 1; }

/* ============================= TOPBAR ================================= */
.topbar {
  position: relative;
  top: auto;
  /* 40: .nb-pop burada hapsolmuş bir yığma bağlamı — 1 kalırsa sayfadaki
     z-index:3'lük hedef dairesi / kesikli çizge kutunun ÜSTÜNDE boyuyor.
     Sayfa içeriğinin en yükseği 3; scrim 70, sidebar 75, modal 140 altında. */
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  background: none;
  backdrop-filter: none;
  box-shadow: none;
}

.topbar .heading { min-width: 0; }
.topbar .eyebrow {
  margin: 0 0 5px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--au-dim);
}
.topbar h1 {
  margin: 0;
  font-size: clamp(21px, 2.2vw, 27px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; }

.topbar .weather {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 13px 0 8px;
  border: 1px solid var(--au-line);
  border-radius: 999px;
  background: var(--au-card);
  box-shadow: var(--au-shadow);
}
.topbar .weather-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--au-amber);
  background: var(--au-amber-soft);
}
.topbar .weather-icon .icon { width: 15px; height: 15px; }
.topbar .weather-temp { font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.topbar .weather-meta { font-size: 11.5px; color: var(--au-dim); }
.topbar .clock {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--au-muted);
  font-variant-numeric: tabular-nums;
  padding: 0 2px;
}

.topbar .icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--au-line);
  border-radius: 12px;
  background: var(--au-card);
  color: var(--au-muted);
  cursor: pointer;
  position: relative;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.topbar .icon-btn .icon { width: 18px; height: 18px; }
.topbar .icon-btn:hover { color: var(--au-text); background: var(--au-card-2); border-color: var(--au-line-strong); }
.topbar .icon-btn:active { transform: scale(.96); }

.topbar .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(245, 169, 74, .35);
  border-radius: 12px;
  background: linear-gradient(160deg, #ffca86, #ee963f);
  color: #221603;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 24px -14px rgba(245, 169, 74, .9);
  transition: filter .18s, transform .18s;
}
.topbar .btn-primary .icon { width: 16px; height: 16px; stroke-width: 2; }
.topbar .btn-primary:hover { filter: brightness(1.06); }
.topbar .btn-primary:active { transform: translateY(1px); }

.menu-btn { display: none; }

/* ========================= GENEL BAKIŞ =============================== */
#view-overview .ov-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

#view-overview .ov-grid > .card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 17px 18px;
  border: 1px solid var(--au-line);
  border-radius: var(--au-r-lg);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .035), transparent 60%),
    var(--au-card);
  box-shadow: var(--au-shadow);
  animation: ov-rise .55s var(--au-ease) both;
  transition: border-color .25s, transform .25s var(--au-ease);
}
#view-overview .ov-grid > .card:hover { border-color: var(--au-line-strong); }
#view-overview .ov-grid > .card:nth-child(2) { animation-delay: .05s; }
#view-overview .ov-grid > .card:nth-child(3) { animation-delay: .1s; }
#view-overview .ov-grid > .card:nth-child(4) { animation-delay: .15s; }
#view-overview .ov-grid > .card:nth-child(5) { animation-delay: .2s; }
#view-overview .ov-grid > .card:nth-child(6) { animation-delay: .25s; }
#view-overview .ov-grid > .card:nth-child(7) { animation-delay: .3s; }
#view-overview .ov-grid > .card:nth-child(8) { animation-delay: .35s; }
#view-overview .ov-grid > .card:nth-child(9) { animation-delay: .4s; }

@keyframes ov-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

#view-overview .card--wide { grid-column: span 2; }
#view-overview .card--full { grid-column: 1 / -1; }

/* ---------- FAZ 34 + FAZ 35: kullanıcının seçtiği kart genişliği ----------
   Attribute, sınıfı specificity ile yener (1 id + 3 sınıf/attribute >
   1 id + 1 sınıf), o yüzden sıra bağımsız. Sınıflar ilk boyamanın
   varsayılanı olarak kalır: JS sunucudaki düzeni uygulayana kadar kartlar
   doğru genişlikte durur, kayıt gelince attribute devralır.
   Izgara 4 kolon; Faz 35'ten beri 1/2/3/4 var. 3 (çarpanı %75) köşeden
   sürükleyince ara durak olarak gerekiyor: 2'den 4'e atlarken kart bir
   adımda iki katına çıkıyordu. Tek başına 3'lü kartlar 1 kolon boşluk
   bırakır, ama boşluk ızgaranın kendi yerleşimi tarafından doldurulur
   (sonraki kart sığdığı yere girer) — düzen okunmaz hale gelmez. */
#view-overview .ov-grid > .card[data-ov-span="1"] { grid-column: span 1; }
#view-overview .ov-grid > .card[data-ov-span="2"] { grid-column: span 2; }
#view-overview .ov-grid > .card[data-ov-span="3"] { grid-column: span 3; }
#view-overview .ov-grid > .card[data-ov-span="4"] { grid-column: 1 / -1; }

/* Satır yüksekliği modu: "dogal" kartları komşusunun boyuna uzatmaz
   (varsayılan "esitle" = yukarıdaki align-items: stretch). Kart başına
   yükseklik tavanı Faz 35'te geldi: sürükleme tutamacı px değerini karta
   inline `height` olarak yazar, açıkça verilmiş block-size stretch'i yener
   (stretch yalnız block-size:auto iken uygulanır). Tavan verilince kartın
   KENDİ gövdesi (.ov-body) kayar — başlık ve tutamaçlar yerinde kalır. */
#view-overview .ov-grid[data-ov-h="dogal"] { align-items: start; }

:is(#view-overview, #view-strategy) .card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
:is(#view-overview, #view-strategy) .card-head > div:first-child { min-width: 0; }
:is(#view-overview, #view-strategy) .card-head-right { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

:is(#view-overview, #view-strategy) .label {
  margin: 0;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--au-muted);
}
:is(#view-overview, #view-strategy) .sub { margin: 4px 0 0; font-size: 11.5px; color: var(--au-dim); }

:is(#view-overview, #view-strategy) .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--au-muted);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--au-line);
  white-space: nowrap;
}
:is(#view-overview, #view-strategy) .chip .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
:is(#view-overview, #view-strategy) .chip-live { color: var(--au-mint); background: var(--au-mint-soft); border-color: rgba(65, 216, 163, .22); }
:is(#view-overview, #view-strategy) .chip-live .dot { animation: au-pulse 2s infinite; }
:is(#view-overview, #view-strategy) .chip-mint { color: var(--au-mint); background: var(--au-mint-soft); border-color: rgba(65, 216, 163, .2); }
:is(#view-overview, #view-strategy) .chip-warn { color: var(--au-amber); background: var(--au-amber-soft); border-color: rgba(245, 169, 74, .28); }
:is(#view-overview, #view-strategy) .chip-soft { color: var(--au-muted); }

:is(#view-overview, #view-strategy, #view-settings, #view-ideas) .badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  border: 1px solid var(--au-line);
  color: var(--au-muted);
  background: rgba(255, 255, 255, .05);
}
:is(#view-overview, #view-strategy, #view-settings, #view-ideas) .badge-pos { color: var(--au-mint); background: var(--au-mint-soft); border-color: rgba(65, 216, 163, .22); }
:is(#view-overview, #view-strategy, #view-settings, #view-ideas) .badge-warn { color: var(--au-amber); background: var(--au-amber-soft); border-color: rgba(245, 169, 74, .28); }
:is(#view-overview, #view-strategy, #view-settings, #view-ideas) .badge-neg { color: #ff8a8a; background: rgba(255, 107, 107, .12); border-color: rgba(255, 107, 107, .28); }
:is(#view-overview, #view-strategy, #view-settings, #view-ideas) .badge-gold { color: var(--au-amber); background: var(--au-amber-soft); border-color: rgba(245, 169, 74, .28); }
:is(#view-overview, #view-strategy, #view-settings, #view-ideas) .badge-neutral { color: var(--au-muted); background: rgba(255, 255, 255, .05); border-color: var(--au-line); }

@keyframes au-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(65, 216, 163, .5); }
  60% { box-shadow: 0 0 0 5px rgba(65, 216, 163, 0); }
}

/* ---------- hero ---------- */
#view-overview .ov-hero {
  overflow: hidden;
  background:
    radial-gradient(110% 130% at 100% 0%, rgba(245, 169, 74, .09), transparent 55%),
    radial-gradient(80% 100% at 0% 100%, rgba(65, 216, 163, .05), transparent 60%),
    var(--au-card);
}
#view-overview .ov-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--au-amber);
}
#view-overview .ov-kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--au-amber);
  opacity: .6;
}
#view-overview .ov-title {
  margin: 2px 0 18px;
  font-size: clamp(24px, 2.3vw, 32px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.1;
}
#view-overview .ov-title span { color: var(--au-amber); }

#view-overview .energy-body {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

#view-overview .gauge { position: relative; width: 168px; height: 168px; flex: none; margin-inline: auto; }
#view-overview .gauge svg { width: 100%; height: 100%; display: block; }
#view-overview .gauge-ticks { fill: none; stroke: var(--au-line-strong); stroke-width: 1; stroke-dasharray: 1 11; opacity: .6; }
#view-overview .gauge-track { fill: none; stroke: rgba(255, 255, 255, .06); stroke-width: 12; }
html[data-theme="light"] #view-overview .gauge-track { stroke: rgba(16, 22, 38, .07); }
#view-overview .gauge-value {
  fill: none;
  stroke: url(#auGaugeGrad);
  stroke-width: 12;
  stroke-linecap: round;
  transform-origin: 100px 100px;
  transform: rotate(-90deg);
  transition: stroke-dashoffset 1.1s var(--au-ease);
  filter: drop-shadow(0 0 7px rgba(245, 169, 74, .45));
}
#view-overview .gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
#view-overview .gauge-value-text {
  display: flex;
  align-items: baseline;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
#view-overview .gauge-value-text .unit { font-size: 15px; margin-left: 4px; color: var(--au-muted); font-weight: 500; }
#view-overview .gauge-caption { font-size: 10.5px; color: var(--au-dim); letter-spacing: .04em; }

#view-overview .energy-stats { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 210px; }
:is(#view-overview, #view-strategy) .stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid transparent;
  transition: background .2s, border-color .2s;
}
:is(#view-overview, #view-strategy) .stat:hover { background: rgba(255, 255, 255, .045); border-color: var(--au-line); }
:is(#view-overview, #view-strategy) .stat-icon {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
}
:is(#view-overview, #view-strategy) .stat-icon .icon { width: 15px; height: 15px; }
:is(#view-overview, #view-strategy) .mint { color: var(--au-mint); background: var(--au-mint-soft); }
:is(#view-overview, #view-strategy) .blue { color: var(--au-blue); background: var(--au-blue-soft); }
:is(#view-overview, #view-strategy) .violet { color: var(--au-violet); background: var(--au-violet-soft); }
:is(#view-overview, #view-strategy) .amber { color: var(--au-amber); background: var(--au-amber-soft); }
:is(#view-overview, #view-strategy) .stat-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
:is(#view-overview, #view-strategy) .stat-label { font-size: 12px; font-weight: 500; color: var(--au-text); }
:is(#view-overview, #view-strategy) .stat-note { font-size: 10.5px; color: var(--au-dim); }
:is(#view-overview, #view-strategy) .stat-value { margin-left: auto; display: flex; align-items: baseline; gap: 3px; font-variant-numeric: tabular-nums; }
:is(#view-overview, #view-strategy) .stat-value strong { font-size: 15px; font-weight: 600; }
:is(#view-overview, #view-strategy) .stat-value > span { font-size: 10.5px; color: var(--au-dim); }
:is(#view-overview, #view-strategy) .stat .delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  color: var(--au-mint);
  background: var(--au-mint-soft);
  border-radius: 999px;
  padding: 2px 6px;
}
:is(#view-overview, #view-strategy) .stat .delta[hidden] { display: none; }
:is(#view-overview, #view-strategy) .stat .delta .icon { width: 10px; height: 10px; }
:is(#view-overview, #view-strategy) .stat .delta.is-negative { color: #ff8a8a; background: rgba(255, 107, 107, .12); }

#view-overview .spark { margin-top: 16px; }
#view-overview .spark-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  font-size: 10.5px;
  color: var(--au-dim);
}
#view-overview .spark-meta strong { color: var(--au-muted); font-weight: 600; }

#view-overview .ov-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--au-line);
  font-size: 11px;
  color: var(--au-dim);
}
#view-overview .ov-foot strong { color: var(--au-text); font-weight: 600; font-variant-numeric: tabular-nums; }
#view-overview .ov-foot .panel-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  padding: 0;
  color: var(--au-amber);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
#view-overview .ov-foot .panel-link .icon { width: 14px; height: 14px; transition: transform .2s; }
#view-overview .ov-foot .panel-link:hover .icon { transform: translateX(3px); }

/* ---------- haftalik hedef: parkur (Faz 10-d) ---------- */
#view-overview .ov-weekly { overflow: hidden; --wk-neg: #ff7a72; --wk-ray: rgba(255, 255, 255, .07); }
#view-overview .ov-weekly .car-track {
  position: relative;
  height: 40px;
  margin: 16px 13px 0;
}
#view-overview .ov-weekly .progress {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 12px;
  margin: 0;
  border-radius: 999px;
  background: var(--wk-ray);
  box-shadow: inset 0 1px 3px rgba(6, 9, 18, .55), 0 1px 0 rgba(255, 255, 255, .04);
  overflow: visible;
}
#view-overview .ov-weekly .car-lane {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .22) 0 7px, transparent 7px 16px);
  opacity: .5;
  z-index: 1;
  pointer-events: none;
}
#view-overview .ov-weekly .car-tick {
  position: absolute;
  top: 50%;
  width: 1px;
  height: 20px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .10);
  z-index: 1;
}
#view-overview .ov-weekly .car-tick.is-25 { left: 25%; }
#view-overview .ov-weekly .car-tick.is-50 { left: 50%; }
#view-overview .ov-weekly .car-tick.is-75 { left: 75%; }
#view-overview .ov-weekly .progress > span {
  position: relative;
  z-index: 2;
  height: 100%;
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(245, 169, 74, .38), var(--au-amber) 72%, #ffd8a1);
  box-shadow: 0 0 16px rgba(245, 169, 74, .45);
  transition: width .7s var(--au-ease);
}
#view-overview .ov-weekly .progress > span::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: min(46px, 100%);
  height: 6px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(270deg, rgba(245, 169, 74, .55), transparent);
}
#view-overview .ov-weekly .car-pod {
  position: absolute;
  right: -12px;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff3dd, var(--au-amber) 56%, var(--au-amber-2));
  box-shadow: 0 0 0 5px rgba(245, 169, 74, .13), 0 0 20px rgba(245, 169, 74, .8);
  transition: background .35s var(--au-ease), box-shadow .35s var(--au-ease);
}
#view-overview .ov-weekly .car-pod::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 169, 74, .38), transparent 70%);
  animation: wk-halo 2.4s ease-in-out infinite;
}
@keyframes wk-halo {
  0%, 100% { transform: scale(.82); opacity: .5; }
  50% { transform: scale(1.18); opacity: 1; }
}
#view-overview .ov-weekly .car-goal {
  position: absolute;
  right: -14px;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--au-line);
  background: rgba(255, 255, 255, .05);
  color: var(--au-dim);
  z-index: 3;
}
#view-overview .ov-weekly .car-goal .icon { width: 15px; height: 15px; }
#view-overview .ov-weekly .car-scale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 9px 2px 0;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--au-dim);
  font-variant-numeric: tabular-nums;
}
#view-overview .ov-weekly .car-scale-goal { display: inline-flex; align-items: center; gap: 5px; color: var(--au-muted); }
#view-overview .ov-weekly .car-scale-goal .icon { width: 12px; height: 12px; color: var(--au-amber); }

/* hedevarmasi: dolus yesile, kapsul hedefe oturur, hedef isigi nefes alir */
#view-overview .ov-weekly.is-done .progress > span {
  background: linear-gradient(90deg, rgba(65, 216, 163, .38), var(--au-mint) 72%, #b9ffe6);
  box-shadow: 0 0 18px rgba(65, 216, 163, .5);
}
#view-overview .ov-weekly.is-done .car-pod {
  background: radial-gradient(circle at 34% 30%, #eafff6, var(--au-mint) 56%, #12946b);
  box-shadow: 0 0 0 5px var(--au-mint-soft), 0 0 22px rgba(65, 216, 163, .85);
}
#view-overview .ov-weekly.is-done .progress > span::before { background: linear-gradient(270deg, rgba(65, 216, 163, .5), transparent); }
#view-overview .ov-weekly.is-done .car-pod::after { background: radial-gradient(circle, rgba(65, 216, 163, .38), transparent 70%); }
#view-overview .ov-weekly.is-done .car-goal {
  color: var(--au-mint);
  border-color: rgba(65, 216, 163, .38);
  background: var(--au-mint-soft);
  animation: au-breathe 3.4s ease-in-out infinite;
}
#view-overview .ov-weekly.is-done .car-value strong { color: var(--au-mint); }
#view-overview .ov-weekly.is-done .car-scale-goal .icon { color: var(--au-mint); }
@keyframes au-breathe {
  0%, 100% { opacity: .72; transform: translateY(-50%) scale(.94); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.06); }
}

/* hedefin gerisinde: kapsul kirmizi, dolus yok */
#view-overview .ov-weekly.is-behind .car-pod {
  background: radial-gradient(circle at 34% 30%, #ffe4e1, var(--wk-neg) 58%, #c9443c);
  box-shadow: 0 0 0 5px rgba(255, 122, 114, .12), 0 0 20px rgba(255, 122, 114, .75);
}
#view-overview .ov-weekly.is-behind .progress > span::before { opacity: 0; }
#view-overview .ov-weekly.is-behind .car-pod::after { background: radial-gradient(circle, rgba(255, 122, 114, .34), transparent 70%); }
#view-overview .ov-weekly.is-behind .car-value strong { color: var(--wk-neg); }

/* hedef tanimsiz: parkur soluk, kapsul baslangicta bekliyor */
#view-overview .ov-weekly.is-empty .car-pod {
  background: radial-gradient(circle at 34% 30%, #dfe3ec, var(--au-muted) 60%, #5b6377);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .05), 0 0 12px rgba(141, 148, 167, .35);
}
#view-overview .ov-weekly.is-empty .progress > span::before { opacity: 0; }
#view-overview .ov-weekly.is-empty .car-pod::after { animation: none; opacity: 0; }
#view-overview .ov-weekly.is-empty .car-lane { opacity: .25; }
#view-overview .ov-weekly.is-empty .car-value strong { color: var(--au-muted); }

/* ---------- Faz 25: haftalik hedef yolculugu (vektor sahne, resim YOK) ----------
   Tek kaynak: --wk-accent. Kart halini (bos/geride/ulasildi) CSS'te secilir,
   sahnenin izi/araci/taslari/sehri hep ondan boyanir. Aracin ve izin GEOMETRISI
   index.html'deki WkYol'dan gelir (parkur user-space'te olculur); burada yalniz
   renk/kalinlik durur. Sahne .wk-scene kutusuna `xMidYMax meet` ile alttan
   yaslanir: ustte bosluk kalirsa kart gradyani gorunur, kenarlarda ise
   daglar viewBox disina tasir, kirpik olmaz. Dag araligi (-1400..1740) kart
   tam satira genisletilince (Faz 35 span 4) sahne kutusunun tamamini doldurur;
   dar aralikta alt koselerde duz gradyan dikisi gorunuyordu. */
#view-overview .ov-weekly {
  --wk-accent: var(--au-amber);
  --wk-sky-1: #090b10;
  --wk-sky-2: #10131b;
  --wk-sky-3: #1a1b23;
  --wk-ridge-far: #2b3244;
  --wk-ridge-mid: #171b26;
  --wk-road: #2b3140;
  --wk-road-line: rgba(255, 255, 255, .34);
  --wk-pill-bg: rgba(9, 11, 16, .8);
  --wk-pill-line: rgba(255, 255, 255, .16);
  --wk-pill-text: #c7cede;
  --wk-city: #232a3a;
  --wk-city-lit: var(--au-amber);
  --wk-haze: rgba(245, 169, 74, .16);
  --wk-sky-glow: rgba(122, 152, 255, .09);
  --wk-shell: #e7ebf3;
  --wk-cabin: #232936;
}
#view-overview .ov-weekly .wk-scene {
  position: relative;
  flex: 1 1 auto;
  /* 132px taban: yükseklikle ölçeklenirken etiket 10.6px'te kalır (116px→9.3, 104px→8.4 okunmuyordu). */
  min-height: 132px;
  max-height: 212px;
  margin: 12px 0 0;
  border-radius: 14px;
  overflow: hidden;
  /* Kutu, cizimden genis/yuksek kalirsa (span 4 / esitle satiri) ciplak gradyan
     yerine isikli gece gokuzu gorunur; hale sehrin ustune dusurulur. */
  background:
    radial-gradient(112% 78% at 82% 6%, var(--wk-haze), transparent 64%),
    radial-gradient(88% 62% at 8% -6%, var(--wk-sky-glow), transparent 72%),
    linear-gradient(180deg, var(--wk-sky-1), var(--wk-sky-2) 62%, var(--wk-sky-3));
  box-shadow: inset 0 0 0 1px var(--au-line), inset 0 -26px 30px -28px rgba(0, 0, 0, .9);
}
#view-overview .ov-weekly .wk-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#view-overview .ov-weekly .wk-svg text {
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .01em;
  text-anchor: middle;
  fill: var(--wk-pill-text);
}
#view-overview .ov-weekly .wk-ridge.is-far { fill: var(--wk-ridge-far); opacity: .5; }
#view-overview .ov-weekly .wk-ridge.is-mid { fill: var(--wk-ridge-mid); }
#view-overview .ov-weekly .wk-stars circle { fill: #dfe6f5; opacity: .28; }
#view-overview .ov-weekly .wk-haze-a { stop-color: var(--wk-haze); stop-opacity: 1; }
#view-overview .ov-weekly .wk-haze-b { stop-color: var(--wk-haze); stop-opacity: 0; }

/* parkur: asfalt + kesikli orta cizgi + kat edilmis isikli iz */
#view-overview .ov-weekly .wk-bed {
  fill: none;
  stroke: var(--wk-road);
  stroke-width: 13;
  stroke-linecap: round;
}
#view-overview .ov-weekly .wk-line {
  fill: none;
  stroke: var(--wk-road-line);
  stroke-width: 1.2;
  stroke-dasharray: 5 9;
  opacity: .4;
}
#view-overview .ov-weekly .wk-trail {
  fill: none;
  stroke: var(--wk-accent);
  stroke-width: 4.4;
  stroke-linecap: round;
  transition: stroke-dashoffset .85s var(--au-ease), stroke .35s var(--au-ease);
}
#view-overview .ov-weekly .wk-trail-soft { stroke-width: 11; opacity: .17; }

/* kilometre taslari: JS parkur uzerine oturtur, is-on = gerceklesen dilim.
   Konumlandiktan sonra HIC hareket etmezler; `transition: none` hem bu yüzden
   hem de global reduced-motion kilkinin (`transition-duration: .01ms !important`,
   styles.css) gecici degerinde takilmamalan icin. */
#view-overview .ov-weekly .wk-ms {
  transform-box: view-box;
  transform-origin: 0 0;
  transition: none;
}
#view-overview .ov-weekly .wk-stem { stroke: var(--wk-pill-line); stroke-width: 1; opacity: .8; }
#view-overview .ov-weekly .wk-ring { fill: none; stroke: var(--wk-pill-line); stroke-width: 1.1; opacity: .55; }
#view-overview .ov-weekly .wk-dot,
#view-overview .ov-weekly .wk-tag rect {
  fill: var(--wk-pill-bg);
  stroke: var(--wk-pill-line);
  stroke-width: 1.1;
  transition: fill .3s var(--au-ease), stroke .3s var(--au-ease);
}
#view-overview .ov-weekly .wk-tag rect { stroke-opacity: .8; }
#view-overview .ov-weekly .wk-ms.is-on .wk-dot { fill: var(--wk-accent); stroke: var(--wk-accent); }
#view-overview .ov-weekly .wk-ms.is-on .wk-ring { stroke: var(--wk-accent); opacity: .3; }
#view-overview .ov-weekly .wk-ms.is-on .wk-tag rect { stroke: var(--wk-accent); stroke-opacity: .5; }
#view-overview .ov-weekly .wk-ms.is-on text { fill: var(--wk-accent); }

/* varis: sehir + halka + hedef kapsulu */
#view-overview .ov-weekly .wk-aura {
  fill: none;
  stroke: var(--wk-accent);
  stroke-width: 1.1;
  opacity: .22;
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transition: stroke .35s var(--au-ease), opacity .35s var(--au-ease);
}
#view-overview .ov-weekly .wk-towers rect { fill: var(--wk-city); }
#view-overview .ov-weekly .wk-lights rect { fill: var(--wk-city-lit); opacity: .55; transition: opacity .35s var(--au-ease); }
#view-overview .ov-weekly .wk-goal rect { fill: var(--wk-pill-bg); stroke: var(--wk-accent); stroke-opacity: .45; stroke-width: 1; }
#view-overview .ov-weekly .wk-goal text { fill: var(--au-muted); }
#view-overview .ov-weekly .wk-burst {
  fill: none;
  stroke: var(--au-mint);
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

/* arac: parkurun tepe noktasi + donusu tegete gore */
#view-overview .ov-weekly .wk-car {
  transform-box: view-box;
  transform-origin: 0 0;
  transition: transform .85s var(--au-ease);
  will-change: transform;
}
#view-overview .ov-weekly .wk-shell { fill: var(--wk-shell); }
#view-overview .ov-weekly .wk-cabin { fill: var(--wk-cabin); }
#view-overview .ov-weekly .wk-tyre { fill: rgba(4, 6, 10, .5); }
#view-overview .ov-weekly .wk-lamp { fill: #fff6e2; }
#view-overview .ov-weekly .wk-beam-a { stop-color: var(--wk-accent); stop-opacity: .3; }
#view-overview .ov-weekly .wk-beam-b { stop-color: var(--wk-accent); stop-opacity: 0; }
#view-overview .ov-weekly .wk-halo-a { stop-color: var(--wk-accent); stop-opacity: .4; }
#view-overview .ov-weekly .wk-halo-b { stop-color: var(--wk-accent); stop-opacity: 0; }
#view-overview .ov-weekly .wk-car-halo { animation: wk-pulse 2.6s ease-in-out infinite; }
@keyframes wk-pulse {
  0%, 100% { transform: scale(.78); opacity: .5; }
  50% { transform: scale(1.14); opacity: 1; }
}

/* hali: vurgu rengi tek degiskenden akar */
#view-overview .ov-weekly.is-done { --wk-accent: var(--au-mint); --wk-city-lit: var(--au-mint); --wk-haze: rgba(65, 216, 163, .18); }
#view-overview .ov-weekly.is-behind { --wk-accent: var(--wk-neg); --wk-haze: rgba(255, 122, 114, .12); }
#view-overview .ov-weekly.is-empty { --wk-accent: var(--au-dim); --wk-city-lit: var(--au-dim); --wk-haze: rgba(255, 255, 255, .05); }

#view-overview .ov-weekly.is-done .wk-aura { opacity: .42; animation: wk-aura 3.4s ease-in-out infinite; }
#view-overview .ov-weekly.is-done .wk-lights rect { opacity: 1; }
#view-overview .ov-weekly.is-done .wk-goal text { fill: var(--au-mint); }
#view-overview .ov-weekly.is-done .wk-burst { animation: wk-burst 1.5s var(--au-ease) .3s both; }
@keyframes wk-aura {
  0%, 100% { transform: scale(.94); opacity: .3; }
  50% { transform: scale(1.08); opacity: .55; }
}
@keyframes wk-burst {
  0% { transform: scale(.35); opacity: 0; stroke-width: 3; }
  22% { opacity: .85; }
  100% { transform: scale(2.9); opacity: 0; stroke-width: .8; }
}
#view-overview .ov-weekly.is-empty .wk-bed { opacity: .55; }
#view-overview .ov-weekly.is-empty .wk-line { opacity: .18; }
#view-overview .ov-weekly.is-empty .wk-car-halo { animation: none; opacity: .2; }
#view-overview .ov-weekly.is-empty .wk-beam-a { stop-opacity: .1; }
#view-overview .ov-weekly.is-empty .wk-shell { fill: #b9c0cd; }
#view-overview .ov-weekly.is-empty .wk-aura { opacity: .12; }

@media (max-width: 480px) {
  #view-overview .ov-weekly .wk-scene { max-height: 190px; margin: 10px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  #view-overview .ov-weekly .wk-car,
  #view-overview .ov-weekly .wk-trail { transition: none !important; }
  #view-overview .ov-weekly .wk-car-halo,
  #view-overview .ov-weekly.is-done .wk-aura,
  #view-overview .ov-weekly.is-done .wk-burst { animation: none !important; }
  #view-overview .ov-weekly.is-done .wk-burst { opacity: .5; }
}

html[data-theme="light"] #view-overview .ov-weekly {
  --wk-sky-1: #eef2fa;
  --wk-sky-2: #e2e8f4;
  --wk-sky-3: #ccd6e8;
  --wk-ridge-far: #aebbd4;
  --wk-ridge-mid: #8f9fbd;
  --wk-road: #c6d0e0;
  --wk-road-line: rgba(16, 22, 38, .4);
  --wk-pill-bg: rgba(255, 255, 255, .88);
  --wk-pill-line: rgba(16, 22, 38, .16);
  --wk-pill-text: #39415a;
  --wk-city: #7f8fab;
  --wk-haze: rgba(221, 138, 43, .22);
  --wk-sky-glow: rgba(96, 132, 214, .16);
  --wk-shell: #ffffff;
  --wk-cabin: #2b3140;
}
html[data-theme="light"] #view-overview .ov-weekly .wk-scene {
  box-shadow: inset 0 0 0 1px var(--au-line), inset 0 -22px 26px -26px rgba(16, 22, 38, .5);
}
html[data-theme="light"] #view-overview .ov-weekly .wk-tyre { fill: rgba(16, 22, 38, .28); }
html[data-theme="light"] #view-overview .ov-weekly .wk-lamp { fill: #ffd9a1; }
html[data-theme="light"] #view-overview .ov-weekly.is-empty { --wk-shell: #c9cfdb; }

#view-overview .car-value { display: flex; align-items: baseline; gap: 8px; margin-top: auto; font-variant-numeric: tabular-nums; }
#view-overview .car-value strong { font-size: 34px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
#view-overview .car-value .tag {
  margin-left: auto;
  align-self: center;
  max-width: 60%;
  font-size: 10px;
  font-weight: 600;
  color: var(--au-mint);
  background: var(--au-mint-soft);
  border-radius: 999px;
  padding: 3px 8px;
  text-align: right;
  line-height: 1.3;
}
#view-overview .progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
  margin-top: 12px;
}
#view-overview .progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(65, 216, 163, .55), var(--au-mint));
  box-shadow: 0 0 12px rgba(65, 216, 163, .5);
  transition: width .6s var(--au-ease);
}
#view-overview .card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--au-line);
}
:is(#view-overview, #view-strategy) .foot-label { font-size: 11px; color: var(--au-dim); }
#view-overview .btn-ghost {
  border: 1px solid var(--au-line);
  background: transparent;
  color: var(--au-muted);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 9px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .18s, background .18s, border-color .18s;
}
#view-overview .btn-ghost:hover { color: var(--au-text); background: var(--au-card-2); border-color: var(--au-line-strong); }

/* ---------- kanallar (oda ızgarası) ---------- */
#view-overview .room-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  flex: 1;
}
#view-overview .room {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border-radius: 13px;
  border: 1px solid var(--au-line);
  background: rgba(255, 255, 255, .02);
  transition: background .2s, border-color .2s, transform .15s;
}
#view-overview .room:hover { background: rgba(255, 255, 255, .05); border-color: var(--au-line-strong); }
#view-overview .room .health-icon {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--au-dim);
  background: rgba(255, 255, 255, .04);
}
#view-overview .room .health-icon .icon { width: 16px; height: 16px; }
#view-overview .room .health-icon.is-ok { color: #1d1305; background: linear-gradient(150deg, #ffcf8a, var(--au-amber-2)); box-shadow: 0 6px 16px -8px rgba(245, 169, 74, .95); }
#view-overview .room .health-icon.is-warn { color: var(--au-amber); background: var(--au-amber-soft); }
#view-overview .room .health-icon.is-muted { color: var(--au-dim); background: rgba(255, 255, 255, .04); }
#view-overview .room-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
#view-overview .room-name { font-size: 12px; font-weight: 500; color: var(--au-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#view-overview .room-meta { font-size: 10px; color: var(--au-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#view-overview .health-state {
  margin-left: auto;
  flex: none;
  font-size: 10px;
  font-weight: 600;
  color: var(--au-dim);
  border: 1px solid var(--au-line);
  border-radius: 999px;
  padding: 2px 7px;
}
#view-overview .health-state.is-ok { color: var(--au-mint); background: var(--au-mint-soft); border-color: rgba(65, 216, 163, .22); }
#view-overview .health-state.is-warn { color: var(--au-amber); background: var(--au-amber-soft); border-color: rgba(245, 169, 74, .28); }

/* ---------- panel ortak sıfırlama (Genel Bakış içinde) ---------- */
#view-overview .ov-grid > .panel {
  background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .035), transparent 60%), var(--au-card);
  border: 1px solid var(--au-line);
  border-radius: var(--au-r-lg);
  box-shadow: var(--au-shadow);
  padding: 17px 18px;
  min-width: 0;
}
#view-overview .panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding: 0;
  border: 0;
}
#view-overview .panel-kicker {
  margin: 0 0 4px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--au-muted);
}
#view-overview .panel-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
}
#view-overview .text-button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--au-amber);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
#view-overview .text-button .icon { width: 13px; height: 13px; }

/* ---------- hedefler ---------- */
#view-overview .goal-ring-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
#view-overview .goal-ring { position: relative; width: 132px; height: 132px; flex: none; margin-inline: auto; }
#view-overview .goal-ring svg { width: 100%; height: 100%; display: block; }
#view-overview .goal-ring-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
#view-overview .goal-ring-copy strong { font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
#view-overview .goal-ring-copy span { font-size: 10px; color: var(--au-dim); letter-spacing: .05em; }
#view-overview .goal-ring-meta { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 150px; }
#view-overview .goal-ring-meta > div { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--au-dim); }
#view-overview .goal-ring-meta strong { color: var(--au-text); font-weight: 600; font-variant-numeric: tabular-nums; }
#view-overview .goal-ring-meta .is-gold { color: var(--au-amber); }
#view-overview .goal-bars { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
#view-overview .goal-bar-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 11px; color: var(--au-dim); margin-bottom: 5px; }
#view-overview .goal-bar-head strong { color: var(--au-muted); font-weight: 600; font-variant-numeric: tabular-nums; }
#view-overview .goal-bar-row .progress { margin: 0; height: 5px; }
#view-overview .goal-bar-row .progress > span { background: linear-gradient(90deg, rgba(245, 169, 74, .5), var(--au-amber)); box-shadow: 0 0 12px rgba(245, 169, 74, .45); }
#view-overview .week-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--au-line); }
#view-overview .week-stats > div { display: flex; flex-direction: column; gap: 2px; }
#view-overview .week-stats span { font-size: 10px; color: var(--au-dim); }
#view-overview .week-stats strong { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
#view-overview .week-stats small { font-size: 9.5px; color: var(--au-dim); }
#view-overview .week-stats .is-positive { color: var(--au-mint); }
#view-overview .week-stats .is-negative { color: #ff8a8a; }
#view-overview .goals-card .panel-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  border: 0;
  background: none;
  padding: 0;
  color: var(--au-amber);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
#view-overview .goals-card .panel-link .icon { width: 13px; height: 13px; }

/* ---------- grafik ---------- */
#view-overview .chart-summary { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
#view-overview .chart-total { display: flex; flex-direction: column; gap: 3px; }
#view-overview .chart-delta { font-size: 26px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
#view-overview .chart-period { font-size: 10.5px; color: var(--au-dim); }
#view-overview .chart-insights { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--au-dim); }
#view-overview .chart-insights strong { color: var(--au-muted); font-weight: 600; }
#view-overview .insight-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--au-dim); }
#view-overview .chart-stage { position: relative; }
#view-overview .equity-chart { width: 100%; height: 200px; display: block; }
#view-overview .chart-grid line { stroke: var(--au-line); stroke-dasharray: 3 4; }
#view-overview .chart-line { stroke: var(--au-amber); stroke-width: 2; filter: drop-shadow(0 0 6px rgba(245, 169, 74, .35)); }
#view-overview .chart-point { fill: var(--au-amber); }
#view-overview .chart-axis { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--au-dim); margin-top: 4px; font-variant-numeric: tabular-nums; }
#view-overview .chart-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--au-line); }
#view-overview .chart-stat { display: flex; flex-direction: column; gap: 2px; }
#view-overview .chart-stat span { font-size: 9.5px; color: var(--au-dim); }
#view-overview .chart-stat strong { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
#view-overview .chart-foot .text-button { margin-left: auto; }
#view-overview .segmented {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--au-line);
}
#view-overview .segmented .segment {
  border: 0;
  background: transparent;
  color: var(--au-dim);
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .18s, color .18s;
}
#view-overview .segmented .segment:hover { color: var(--au-text); }
#view-overview .segmented .segment.is-active { background: var(--au-card-2); color: var(--au-text); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
#view-overview .segmented-sm .segment { padding: 4px 8px; }

/* ---------- sinyaller ---------- */
#view-overview .signal-list { display: flex; flex-direction: column; }
#view-overview .signal-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-top: 1px solid var(--au-line);
}
#view-overview .signal-row:first-child { border-top: 0; }
#view-overview .signal-icon {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, .04);
  color: var(--au-muted);
}
#view-overview .signal-icon .icon { width: 15px; height: 15px; }
#view-overview .signal-main { display: flex; flex-direction: column; line-height: 1.3; min-width: 120px; flex: 1; }
#view-overview .signal-main strong { font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
#view-overview .signal-main > span { font-size: 10px; color: var(--au-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#view-overview .signal-meta { display: flex; flex-direction: column; line-height: 1.2; }
#view-overview .signal-meta strong { font-size: 10.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
#view-overview .signal-meta small { font-size: 8.5px; color: var(--au-dim); letter-spacing: .04em; }
#view-overview .signal-status { display: flex; align-items: center; gap: 5px; font-size: 9.5px; color: var(--au-dim); }
#view-overview .signal-row time { margin-left: auto; font-size: 9.5px; color: var(--au-dim); font-variant-numeric: tabular-nums; }
#view-overview .signal-source-link { margin-left: 8px; color: var(--au-muted); opacity: 0.6; transition: opacity .15s, color .15s; flex: none; display: inline-flex; align-items: center; }
#view-overview .signal-source-link:hover { opacity: 1; color: var(--au-gold); }
#view-overview .signal-source-link .od-icon { width: 12px; height: 12px; }

/* ---------- onay kuyruğu / boş durum ---------- */
#view-overview .pending-panel { min-height: 0; }
#view-overview .empty-visual { display: flex; align-items: center; gap: 12px; }
#view-overview .empty-icon {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--au-mint);
  background: var(--au-mint-soft);
  border: 1px solid rgba(65, 216, 163, .2);
}
#view-overview .empty-visual h2 { margin: 0; font-size: 15px; font-weight: 600; }
#view-overview .empty-visual .panel-kicker { margin-bottom: 2px; }

/* ---------- pozisyon tablosu ---------- */
#view-overview .table-scroll { overflow-x: auto; }
#view-overview .data-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
#view-overview .data-table th {
  text-align: left;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--au-dim);
  padding: 8px 10px;
  border-bottom: 1px solid var(--au-line);
  white-space: nowrap;
}
#view-overview .data-table td {
  padding: 10px;
  border-bottom: 1px solid var(--au-line);
  color: var(--au-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#view-overview .data-table tbody tr:hover td { background: rgba(255, 255, 255, .02); }
#view-overview .data-table .align-right { text-align: right; }
#view-overview .data-table .is-positive { color: var(--au-mint); }
#view-overview .data-table .is-negative { color: #ff8a8a; }
#view-overview .data-table .muted { color: var(--au-dim); }
#view-overview .panel-foot { padding: 10px 0 0; border-top: 0; }

/* ---------- yapay zekâ notu ---------- */
#view-overview .ai-note { min-width: 0; }
#view-overview .ai-note-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
#view-overview .ai-avatar {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--au-amber);
  background: var(--au-amber-soft);
  border: 1px solid rgba(245, 169, 74, .22);
}
#view-overview .ai-note-head h2 { margin: 0; font-size: 14px; font-weight: 600; }
#view-overview .ai-note-head .badge { margin-left: auto; }
#view-overview .ai-note-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; font-size: 10.5px; color: var(--au-dim); }

/* ================= FAZ 32: Genel Bakış → YZ notu AKIŞI =================
   Kartta tek <blockquote> vardı (en yeni kayıt). Artık son 40 mesajın
   yorumu kaydırılabilir listede akıyor; satır GERÇEK <button> olduğu için
   UA'nın ortalama/hacim stilleri satır diline çevrilir (Faz 29 dersi).
   Miras stil burada AÇIK yazılır: styles.css'te `.ai-note p { margin-top:
   9px; color: var(--muted) }` var — boş durum <p>'si ve satır gövdesi o
   kurala düşerse kartın ritmi bozulur. */
/* PENCERE SABİT TAVAN DEĞİL, ESNEK TABANDIR (sahibinin şikâyeti: "kart
   yarısına kadar dolu — yarım çok çirkin"). Ölçülen (4 kolonluk masaüstü dalı,
   rig): hero kartı 649px ve `.ov-grid { align-items: stretch }` YZ kartını da
   649px'e geriyor; `flex: 1 1 auto` + `max-height` ikilisi akışı 222/298px'te
   kilitlediği için kalan ~312px boş bant kartın İÇİNDE, liste ile ayak arasında
   birikiyordu — tavanı 298px'e çekmek bandı 236px'e indirdi, kapatmadı.
   flex-basis iki işi birden yapar: kart kendi içeriğiyle boyandığında (tek
   kolon/mobil) katkısı tam 3 kayıt kalır — 40 kayıt kartı 3045px'e şişiremez,
   min-height:0 + overflow-y:auto burayı keser — kart komşusu için gerildiğinde
   ise akış kalan bandı doldurur ve bant yok olur (ölçülen: 534px kutu, ~7 kayıt,
   boş bant 0).
   NOT (sahibin kararı, Faz 32b): 3. kaydın alt kenarı ölçülen 222.81px, taban
   222px — yani 0.81px'lik kırpık BİLİNÇLİ bırakıldı, "daha var, kaydırılabilir"
   göstergesi. Tabanı 4 kayda (302px) çıkarma denemesi geri alındı. */
#view-overview .ai-note-feed {
  flex: 1 1 222px; min-height: 0; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(148, 163, 184, .42) transparent;
  scrollbar-gutter: stable;
}
#view-overview .ai-note-feed::-webkit-scrollbar { width: 8px; }
#view-overview .ai-note-feed::-webkit-scrollbar-track { background: transparent; }
#view-overview .ai-note-feed::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, .42); border-radius: 99px; }
#view-overview .ai-note-feed::-webkit-scrollbar-thumb:hover { background: rgba(245, 169, 74, .38); }
#view-overview .ain-row {
  -webkit-appearance: none; appearance: none; margin: 0; font-family: inherit;
  flex: none; display: flex; align-items: flex-start; gap: 9px; text-align: left;
  padding: 8px 10px; border-radius: var(--au-r-sm); border: 1px solid var(--au-line);
  background: rgba(255, 255, 255, .025); color: var(--au-text);
  font-size: 12px; line-height: 1.45; cursor: pointer;
  transition: border-color .18s var(--au-ease), background .18s var(--au-ease);
}
#view-overview .ain-row:hover { border-color: rgba(245, 169, 74, .42); background: rgba(245, 169, 74, .07); }
#view-overview .ain-row:focus-visible { outline: 2px solid var(--au-amber); outline-offset: 2px; }
#view-overview .ain-row[disabled] { cursor: default; }
#view-overview .ain-row[disabled]:hover { border-color: var(--au-line); background: rgba(255, 255, 255, .025); }
#view-overview .ain-icon {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: 8px; border: 1px solid rgba(245, 169, 74, .22);
  background: var(--au-amber-soft); color: var(--au-amber);
}
#view-overview .ain-icon svg { width: 15px; height: 15px; }
#view-overview .ain-row.is-bare .ain-icon { border-color: var(--au-line); background: rgba(255, 255, 255, .04); color: var(--au-dim); }
#view-overview .ain-main { flex: 1 1 140px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
#view-overview .ain-top { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
#view-overview .ain-top strong {
  flex: 0 1 auto; min-width: 0; font-size: 12px; font-weight: 700; color: var(--au-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#view-overview .ain-sym { flex: none; font-size: 10.5px; font-weight: 600; color: var(--au-mint); }
#view-overview .ain-main small {
  display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere;
  margin: 0; font-size: 11px; line-height: 1.45; color: var(--au-muted);
}
#view-overview .ain-row.is-bare small { color: var(--au-dim); }
#view-overview .ain-meta { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
#view-overview .ain-when { font-size: 10.5px; color: var(--au-dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
#view-overview .ain-kind {
  font-size: 9.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 99px; border: 1px solid var(--au-line-strong); color: var(--au-dim);
}
#view-overview .ain-kind.is-signal { color: var(--au-mint); border-color: rgba(65, 216, 163, .3); background: var(--au-mint-soft); }
#view-overview .ain-kind.is-comment { color: var(--au-amber); border-color: rgba(245, 169, 74, .3); background: var(--au-amber-soft); }
/* margin: auto 0 — iki iş: (1) styles.css'in miras `.ai-note p { margin-top:
   9px }` + UA'nın <p> boşluğunu keser (Faz 29 dersi: boşluk mirasa düşerse
   kartın ritmi bozulur), (2) kayıt yokken / istek başarısızken akış kutusu
   kartı doldurduğu için üst-alt auto boşluk "neden boş" cümlesini dikey
   ortalar (ölçülen: 534px kutuda 245px üst + 245px alt); yoksa kutu tepede
   takılır ve şikâyet edilen yarım kart bu durumda geri gelir. */
#view-overview .ain-none {
  margin: auto 0; padding: 12px 13px; border-radius: var(--au-r-sm);
  border: 1px dashed var(--au-line-strong); background: transparent;
  font-size: 11.5px; line-height: 1.5; color: var(--au-dim);
}
/* Akış gerçekten akıyor: 20 sn'lik yoklama yeni satırı getirdiğinde satır
   yukarıdan gelir ve solda 3px ışık şeridi taşır (kaydırma yapmadan seçilir). */
@keyframes ain-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
#view-overview .ain-row.is-new { animation: ain-rise .5s var(--au-ease) both; box-shadow: inset 3px 0 0 var(--au-amber); }
html[data-theme="light"] #view-overview .ai-note-feed::-webkit-scrollbar-thumb { background: rgba(16, 22, 38, .16); }
html[data-theme="light"] #view-overview .ai-note-feed { scrollbar-color: rgba(16, 22, 38, .2) transparent; }
html[data-theme="light"] #view-overview .ain-row { background: rgba(16, 22, 38, .02); }
html[data-theme="light"] #view-overview .ain-row:hover { border-color: rgba(221, 138, 43, .45); background: rgba(221, 138, 43, .08); }
@media (prefers-reduced-motion: reduce) {
  #view-overview .ain-row { transition: none; }
  #view-overview .ain-row.is-new { animation: none; }
}

/* ============================ RESPONSIVE ============================== */
@media (max-width: 1280px) {
  #view-overview .ov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #view-overview .card--wide, #view-overview .card--full { grid-column: span 2; }
  /* Faz 34 kıskası: ızgara 2 kolona indi, "tam satır" da 2 kolondur.
     Kullanıcının 4'ü burada 2'ye düşer, kaydı bozulmaz — geniş ekrana
     dönünce kendi değeriyle geri gelir. Faz 35: 3 de aynı şekilde 2'ye
     iner (2 kolonlu ızgarada span 3 taşardı). */
  #view-overview .ov-grid > .card[data-ov-span="4"],
  #view-overview .ov-grid > .card[data-ov-span="3"] { grid-column: span 2; }
}

@media (max-width: 1023px) {
  body { padding-left: 0; }
  .sidebar {
    width: min(var(--au-sidebar), 84vw);
    translate: -100% 0;
    transition: translate .3s var(--au-ease);
    box-shadow: 30px 0 60px -30px rgba(0, 0, 0, .8);
  }
  .sidebar.is-open { translate: 0 0; }
  body.is-rail-collapsed .sidebar { width: min(var(--au-sidebar), 84vw); padding-inline: 14px; align-items: stretch; }
  body.is-rail-collapsed .sidebar .brand { flex-direction: row; }
  body.is-rail-collapsed .sidebar .brand-text,
  body.is-rail-collapsed .sidebar .nav-label,
  body.is-rail-collapsed .sidebar .nav-item span,
  body.is-rail-collapsed .sidebar .home-card,
  body.is-rail-collapsed .sidebar .mp-card,
  body.is-rail-collapsed .sidebar .profile-text { display: revert; }
  body.is-rail-collapsed .nav-item { justify-content: flex-start; padding: 0 12px; }
  .menu-btn { display: grid; }
  .collapse-btn { display: none; }
  .topbar { gap: 12px; }
  .topbar .heading { order: 1; flex: 1; min-width: 0; }
  .menu-btn { order: 0; }
  .top-actions { order: 2; margin-left: 0; width: 100%; }
  .mobile-nav { display: none !important; }
}

@media (max-width: 760px) {
  #view-overview .ov-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #view-overview .card--wide, #view-overview .card--full { grid-column: span 1; }
  /* tek kolon: hangi span kayıtlı olursa olsun telefonda hepsi tam genişlik */
  #view-overview .ov-grid > .card[data-ov-span] { grid-column: span 1; }
  #view-overview .ov-grid > .card { padding: 15px; }
  #view-overview .gauge { width: 150px; height: 150px; }
  #view-overview .gauge-value-text { font-size: 34px; }
  #view-overview .room-grid { grid-template-columns: minmax(0, 1fr); }
  #view-overview .week-stats { grid-template-columns: repeat(2, 1fr); }
  #view-overview .equity-chart { height: 170px; }
  .topbar .weather-meta { display: none; }
  .topbar .weather { padding-right: 9px; }
  .topbar .btn-primary span { display: none; }
  .topbar .btn-primary { width: 40px; padding: 0; justify-content: center; }
}

@media (max-width: 480px) {
  body .app-main { padding: 18px 13px 40px; }
  body .site-footer { padding: 15px 13px 22px; }
  #view-overview .chart-foot { gap: 12px; }
  #view-overview .signal-meta.signal-level.is-tp { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  #view-overview .ov-grid > .card,
  #view-overview .ov-weekly .car-pod,
  #view-overview .ov-weekly .car-pod::after,
  #view-overview .ov-weekly.is-done .car-goal,
  #view-overview .ov-weekly .progress > span { animation: none !important; transition: none !important; }
  :is(#view-overview, #view-strategy) .chip-live .dot { animation: none !important; }
}

/* ============================== LIGHT ================================= */
html[data-theme="light"] body { background: radial-gradient(1100px 520px at 82% -12%, var(--au-bg-glow-1), transparent 62%), radial-gradient(820px 480px at -8% 108%, var(--au-bg-glow-2), transparent 60%), var(--au-bg); }
html[data-theme="light"] .sidebar { background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .9)), var(--au-panel); }
html[data-theme="light"] .sidebar .nav-item:hover { background: rgba(16, 22, 38, .045); }
html[data-theme="light"] .sidebar .count { background: rgba(16, 22, 38, .06); }
html[data-theme="light"] #view-overview .stat,
html[data-theme="light"] #view-overview .room { background: rgba(16, 22, 38, .025); }
html[data-theme="light"] #view-overview .stat:hover,
html[data-theme="light"] #view-overview .room:hover { background: rgba(16, 22, 38, .05); }
html[data-theme="light"] #view-overview .room .health-icon { background: rgba(16, 22, 38, .055); color: var(--au-dim); }
html[data-theme="light"] #view-overview .room .health-icon.is-ok { background: linear-gradient(150deg, #ffcf8a, var(--au-amber-2)); color: #2a1a05; }
html[data-theme="light"] #view-overview .progress { background: rgba(16, 22, 38, .09); }
html[data-theme="light"] #view-overview .signal-icon { background: rgba(16, 22, 38, .05); }
html[data-theme="light"] #view-overview .segmented { background: rgba(16, 22, 38, .035); }
html[data-theme="light"] #view-overview .segmented .segment.is-active { background: #fff; box-shadow: 0 1px 4px rgba(16, 22, 38, .1); }
html[data-theme="light"] #view-overview .data-table tbody tr:hover td { background: rgba(16, 22, 38, .025); }
html[data-theme="light"] #view-overview .ov-grid > .card { background: radial-gradient(120% 90% at 100% 0%, rgba(245, 169, 74, .05), transparent 60%), var(--au-card); }

/* ====================== ikon temeli ve düzeltmeler ====================== */
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#view-overview .ov-channels .room-grid { align-content: start; }
#view-overview .ov-channels .room { min-height: 64px; }
#view-overview .ov-weekly .car-track { height: 36px; margin: 14px 11px 0; }

.nav { border: 0; border-radius: 0; background: none; padding: 0; }

#view-overview .ov-channels .room-grid {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(4, minmax(64px, 1fr));
  align-content: stretch;
}
#view-overview .ov-channels .room { min-height: 0; }

/* kpi yardımcıları */
#view-overview .stat-text .badge { margin-top: 3px; width: fit-content; }
#view-overview .stat .mini-progress {
  display: block;
  width: 100%;
  height: 3px;
  margin-top: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  overflow: hidden;
}
#view-overview .stat .mini-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(245, 169, 74, .5), var(--au-amber));
  transition: width .6s var(--au-ease);
}
html[data-theme="light"] #view-overview .stat .mini-progress { background: rgba(16, 22, 38, .1); }

/* marka bağlantısı ayrık */
.brand { align-items: center; }
.brand-home { display: flex; align-items: center; gap: 11px; min-width: 0; text-decoration: none; }
body.is-rail-collapsed .sidebar .brand-home { flex-direction: column; gap: 10px; }

/* istatistik satırları */
:is(#view-overview, #view-strategy) .stat { flex-wrap: nowrap; align-items: center; }
:is(#view-overview, #view-strategy) .stat-text { flex: 1 1 auto; min-width: 0; }
:is(#view-overview, #view-strategy) .stat-note { overflow-wrap: anywhere; }
:is(#view-overview, #view-strategy) .stat-value { flex: 0 0 auto; white-space: nowrap; }

/* sinyal listesi ızgarası */
#view-overview .signal-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  padding: 11px 0;
}
#view-overview .signal-icon { grid-row: 1 / span 2; }
#view-overview .signal-main { grid-column: 2; grid-row: 1; min-width: 0; }
#view-overview .signal-levels { grid-column: 2; grid-row: 2; display: flex; flex-wrap: wrap; gap: 4px 12px; }
#view-overview .signal-status { grid-column: 3; grid-row: 1; justify-self: end; }
#view-overview .signal-row time { grid-column: 3; grid-row: 2; justify-self: end; margin: 0; }

@media (max-width: 760px) {
  #view-overview .energy-body { flex-direction: column; align-items: stretch; }
  #view-overview .gauge { margin: 0 auto 4px; }
  #view-overview .energy-stats { min-width: 0; }
}

/* grafik kartı yüksekliği sinyal listesiyle hizalanır */
#view-overview .chart-panel { display: flex; flex-direction: column; }
#view-overview .chart-panel .chart-stage { flex: 1; display: flex; flex-direction: column; min-height: 220px; }
#view-overview .chart-panel .equity-chart { flex: 1; height: 100%; min-height: 220px; }

/* uzun alt metinler tek satırda kırpılır */
:is(#view-overview, #view-strategy) .stat-note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Aurora tek tip tipografi: Inter (proje mono/display kalıtımı sıfırlanır) */
body,
.sidebar,
.topbar,
#view-overview {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.sidebar *,
.topbar *,
#view-overview * {
  font-family: inherit !important;
}

#view-overview .ov-title {
  font-size: clamp(21px, 2.2vw, 27px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.topbar .clock { font-family: inherit; }

/* =========================================================================
   STRATEJI — Aurora diline tasinmis gorunum (HTML/JS korunur, yalniz stil)
   ========================================================================= */

#view-strategy { --st-red: #ff7a72; }
html[data-theme="light"] #view-strategy { --st-red: #d64541; }

/* tipografi tekillestirme: tum proje Inter (IBM Plex Mono / System kalintilarini ezer) */
html, body, body *:not(svg):not(svg *):not(use):not(.message-code):not(.au-acct-code):not(.au-recovery-item) { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important; }
#view-strategy,
#view-strategy * { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

@keyframes st-rise {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
#view-strategy .enter-item { animation: st-rise .5s var(--au-ease) both; }
#view-strategy > .enter-item:nth-child(2) { animation-delay: .07s; }
#view-strategy .strategy-top-grid > *:nth-child(1) { animation-delay: .13s; }
#view-strategy .strategy-top-grid > *:nth-child(2) { animation-delay: .19s; }
#view-strategy .strategy-metrics > .enter-item:nth-child(1) { animation-delay: .25s; }
#view-strategy .strategy-metrics > .enter-item:nth-child(2) { animation-delay: .3s; }
#view-strategy .strategy-metrics > .enter-item:nth-child(3) { animation-delay: .35s; }
#view-strategy .strategy-metrics > .enter-item:nth-child(4) { animation-delay: .4s; }
#view-strategy .strategy-chart-grid > *:nth-child(1) { animation-delay: .45s; }
#view-strategy .strategy-chart-grid > *:nth-child(2) { animation-delay: .5s; }
#view-strategy .history-panel { animation-delay: .55s; }

@media (prefers-reduced-motion: reduce) {
  #view-strategy .enter-item,
  #view-strategy .panel,
  #view-strategy .metric-card,
  #view-strategy .signal-card { animation: none; transition: none; }
}

/* ---------- sayfa basligi ---------- */
#view-strategy .view-heading {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin: 2px 0 16px;
}
#view-strategy .view-heading-copy > p:last-child {
  margin: 8px 0 0; font-size: 13px; color: var(--au-muted); max-width: 560px;
}
#view-strategy h1 { font-size: clamp(21px, 2.2vw, 27px); font-weight: 600; letter-spacing: -.025em; margin: 0; }
#view-strategy h1 span { color: var(--au-amber); }
#view-strategy .eyebrow {
  display: flex; align-items: center; gap: 8px; margin: 0 0 8px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--au-muted);
}
#view-strategy .eyebrow-line { width: 26px; height: 1px; background: linear-gradient(90deg, var(--au-amber), transparent); }
#view-strategy .heading-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#view-strategy .st-state-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--au-line);
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
#view-strategy .status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--au-mint); box-shadow: 0 0 0 3px rgba(65, 216, 163, .14);
  transition: background .2s var(--au-ease), box-shadow .2s var(--au-ease);
}
#view-strategy .status-dot.is-warn { background: var(--au-amber); box-shadow: 0 0 0 3px var(--au-amber-soft); }
#view-strategy .status-dot.is-neg  { background: var(--st-red); box-shadow: 0 0 0 3px rgba(255, 122, 114, .14); }
#view-strategy .st-heading-meta { margin: 7px 0 0; font-size: 12px; color: var(--au-muted); }

/* ---------- dugmeler ---------- */
#view-strategy .btn-primary, #view-strategy .btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 12px; padding: 9px 15px; font-size: 13px; font-weight: 600;
  letter-spacing: -.01em; cursor: pointer; border: 1px solid transparent;
  transition: transform .22s var(--au-ease), box-shadow .22s var(--au-ease),
              border-color .22s var(--au-ease), background .22s var(--au-ease), opacity .2s;
}
#view-strategy .btn-primary {
  background: linear-gradient(135deg, var(--au-amber), var(--au-amber-2));
  color: #191106; box-shadow: 0 10px 26px -12px rgba(245, 169, 74, .5);
}
#view-strategy .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(245, 169, 74, .65); }
#view-strategy .btn-primary:active { transform: none; }
#view-strategy .btn-ghost { color: var(--au-text); border-color: var(--au-line-strong); background: rgba(255, 255, 255, .02); }
#view-strategy .btn-ghost:hover { border-color: rgba(245, 169, 74, .4); background: var(--au-amber-soft); }
#view-strategy .btn-primary:disabled, #view-strategy .btn-ghost:disabled { opacity: .55; cursor: not-allowed; transform: none; }
#view-strategy .is-loading { opacity: .7; pointer-events: none; }
#view-strategy .st-bridge-btn[aria-pressed="true"] { color: var(--au-mint); border-color: rgba(65, 216, 163, .3); }
#view-strategy .text-button {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid var(--au-line);
  color: var(--au-muted); padding: 7px 12px; border-radius: 10px;
  font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: border-color .2s var(--au-ease), color .2s var(--au-ease), opacity .2s;
}
#view-strategy .text-button:hover:not(:disabled) { border-color: rgba(245, 169, 74, .4); color: var(--au-amber); }
#view-strategy .text-button:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- arac cubugu ---------- */
#view-strategy .strategy-toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; margin: 0 0 16px;
  border: 1px solid var(--au-line); border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0) 55%), var(--au-card-2);
  box-shadow: var(--au-shadow);
}
#view-strategy .toolbar-group { display: inline-flex; align-items: center; gap: 9px; }
#view-strategy .toolbar-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--au-dim);
}
#view-strategy .toolbar-select {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border: 1px solid var(--au-line); border-radius: 11px;
  background: rgba(255, 255, 255, .02);
  transition: border-color .2s var(--au-ease), background .2s var(--au-ease), box-shadow .2s var(--au-ease);
}
#view-strategy .toolbar-select:hover { border-color: var(--au-line-strong); background: rgba(255, 255, 255, .04); }
#view-strategy .toolbar-select:focus-within { border-color: rgba(245, 169, 74, .45); box-shadow: 0 0 0 3px var(--au-amber-soft); }
#view-strategy select {
  appearance: none; background: transparent; border: 0; outline: none;
  color: var(--au-text); font: inherit; padding: 0 2px; cursor: pointer; max-width: 180px;
}
#view-strategy .toolbar-divider { width: 1px; height: 22px; background: var(--au-line); }
#view-strategy .toolbar-spacer { flex: 1; }
#view-strategy .toolbar-status { font-size: 12px; color: var(--au-dim); }
#view-strategy .st-msg { font-size: 12.5px; color: var(--au-muted); }

/* ---------- genel panel / kart dili ---------- */
#view-strategy .card {
  margin: 0; padding: 18px; min-width: 0;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .035), transparent 60%),
    var(--au-card);
  border: 1px solid var(--au-line); border-radius: var(--au-r-lg); box-shadow: var(--au-shadow);
  transition: border-color .25s var(--au-ease);
}
#view-strategy .card:hover {
  border-color: var(--au-line-strong); transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 46px -30px rgba(0, 0, 0, .95);
}
#view-strategy .card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
#view-strategy .card-head .label { margin: 0 0 2px; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--au-muted); }
#view-strategy .card-head .sub { margin: 4px 0 0; font-size: 11.5px; color: var(--au-dim); }
#view-strategy .badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .02em;
  border: 1px solid var(--au-line); background: rgba(255, 255, 255, .03); color: var(--au-muted);
  white-space: nowrap;
}
#view-strategy .badge-gold { color: var(--au-amber); background: var(--au-amber-soft); border-color: rgba(245, 169, 74, .3); }
#view-strategy .badge-warn { color: var(--au-amber); background: var(--au-amber-soft); border-color: rgba(245, 169, 74, .3); }
#view-strategy .card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--au-line);
}
#view-strategy .foot-label { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--au-dim); }
#view-strategy .st-empty { margin: 0; font-size: 13px; color: var(--au-dim); }

/* ---------- yerlesim izcalar ---------- */
#view-strategy .strategy-top-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#view-strategy .strategy-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
#view-strategy .summary-card + .strategy-chart-grid { margin-top: 14px; }
#view-strategy .strategy-chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
#view-strategy .history-panel { margin-top: 14px; }
#view-strategy .tf-panel .table-scroll { max-height: none; }

/* ---------- metrik kartlari ---------- */
#view-strategy .metric-card { display: flex; flex-direction: column; gap: 9px; }
#view-strategy .metric-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--au-muted);
}
#view-strategy .metric-value {
  font-size: 18px; font-weight: 650; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; color: var(--au-text);
}
#view-strategy .metric-value.is-positive { color: var(--au-mint); }
#view-strategy .metric-value.is-gold { color: var(--au-amber); }
#view-strategy .metric-value.is-negative { color: var(--st-red); }
#view-strategy .metric-foot {
  font-size: 11.5px; color: var(--au-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- tablolar ---------- */
#view-strategy .table-scroll {
  border: 1px solid var(--au-line); border-radius: 14px; overflow: auto;
  max-height: 440px; scrollbar-width: thin;
}
#view-strategy .table-scroll::-webkit-scrollbar { width: 9px; height: 9px; }
#view-strategy .table-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .09); border-radius: 99px; }
#view-strategy .data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
#view-strategy .data-table thead th {
  position: sticky; top: 0; z-index: 1; background: var(--au-card-2);
  text-align: left; padding: 10px 12px; white-space: nowrap;
  font-size: 10.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--au-muted);
  border-bottom: 1px solid var(--au-line-strong);
}
#view-strategy .data-table thead th.align-right { text-align: right; }
#view-strategy .data-table td {
  padding: 10px 12px; white-space: nowrap; color: var(--au-text);
  border-bottom: 1px solid var(--au-line); font-variant-numeric: tabular-nums;
}
#view-strategy .data-table tbody tr { transition: background .18s var(--au-ease); }
#view-strategy .data-table tbody tr:hover { background: rgba(255, 255, 255, .025); }
#view-strategy .data-table tbody tr:last-child td { border-bottom: 0; }
#view-strategy .data-table .muted { color: var(--au-dim); }
#view-strategy .data-table .is-positive { color: var(--au-mint); }
#view-strategy .data-table .is-negative { color: var(--st-red); }
#view-strategy .tf-tag {
  display: inline-block; padding: 3px 8px; border-radius: 7px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--au-line);
  font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--au-muted);
}

/* ---------- durum / yon rozetleri ---------- */
#view-strategy .bias {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; border: 1px solid transparent;
}
#view-strategy .bias.is-up { color: var(--au-mint); background: var(--au-mint-soft); border-color: rgba(65, 216, 163, .25); }
#view-strategy .bias.is-down { color: var(--st-red); background: rgba(255, 122, 114, .12); border-color: rgba(255, 122, 114, .25); }
#view-strategy .bias.is-neutral { color: var(--au-muted); background: rgba(255, 255, 255, .03); border-color: var(--au-line); }
#view-strategy .st-signal-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
#view-strategy .signal-card-copy { margin: 0 0 4px; font-size: 13px; color: var(--au-muted); }
#view-strategy .signal-card-head h2 { letter-spacing: -.02em; }

/* ---------- kontrol listesi ---------- */
#view-strategy .st-checks {
  display: flex; flex-direction: column; gap: 5px;
  margin: 12px 0 0; padding: 12px;
  border: 1px solid var(--au-line); border-radius: 14px;
  background: rgba(255, 255, 255, .02);
}
#view-strategy .st-checks-title {
  margin: 0 0 4px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--au-muted);
}
#view-strategy .check-line {
  display: grid; grid-template-columns: auto 1fr; gap: 9px; align-items: center;
  padding: 4px 6px; border-radius: 8px; font-size: 12.5px;
}
#view-strategy .check-ok {
  width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
}
#view-strategy .check-line.is-pass .check-ok { color: var(--au-mint); background: var(--au-mint-soft); }
#view-strategy .check-line.is-fail .check-ok { color: var(--st-red); background: rgba(255, 122, 114, .12); }
#view-strategy .check-line.is-fail { color: var(--au-muted); }
#view-strategy .check-detail { grid-column: 2; font-size: 11.5px; color: var(--au-dim); }

/* ---------- islem plani ---------- */
#view-strategy .st-plan { margin-top: 12px; }
#view-strategy .st-plan-title {
  margin: 0 0 10px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--au-amber);
}
#view-strategy .st-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin: 0; }
#view-strategy .st-plan-grid dt {
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--au-muted); margin-bottom: 3px; font-weight: 600;
}
#view-strategy .st-plan-grid dd { margin: 0; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
#view-strategy .st-plan-grid dd.is-positive { color: var(--au-mint); }
#view-strategy .st-plan-grid dd.is-negative { color: var(--st-red); }
#view-strategy .st-plan-note { margin: 10px 0 0; font-size: 11.5px; color: var(--au-amber); }

/* ---------- R egrisi karti ---------- */
#view-strategy .chart-legend { display: flex; gap: 14px; }
#view-strategy .legend-item { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--au-muted); }
#view-strategy .legend-dot { width: 14px; height: 3px; border-radius: 2px; background: var(--au-amber); }
#view-strategy .legend-dot.is-muted { background: rgba(255, 255, 255, .18); }
#view-strategy .r-chart-stage {
  position: relative; height: 235px; margin-top: 12px; padding: 10px;
  border: 1px solid var(--au-line); border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent 60%);
}
#view-strategy .r-chart { width: 100%; height: 100%; display: block; }
#view-strategy .chart-grid line { stroke: var(--au-line); }
#view-strategy .r-path-muted { stroke: rgba(255, 255, 255, .16); fill: none; }
#view-strategy .r-path-live { stroke: var(--au-amber); fill: none; stroke-linecap: round; }
#view-strategy .r-dot { fill: var(--au-amber); }
#view-strategy .st-chart-empty {
  position: absolute; inset: 0; display: grid; place-items: center;
  margin: 0; font-size: 12.5px; color: var(--au-dim); padding: 20px; text-align: center;
}
#view-strategy .chart-axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: var(--au-dim); }
#view-strategy .chart-foot {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 24px;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--au-line);
}
#view-strategy .chart-stat { display: flex; flex-direction: column; gap: 2px; }
#view-strategy .chart-stat span {
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--au-muted);
}
#view-strategy .chart-stat strong { font-size: 14px; font-variant-numeric: tabular-nums; }

/* ---------- skor bantlari + cikarimlar ---------- */
#view-strategy .score-bars { display: flex; flex-direction: column; gap: 4px; }
#view-strategy .score-row {
  display: grid; grid-template-columns: minmax(64px, 104px) 1fr auto;
  align-items: center; gap: 10px; padding: 7px 0; font-size: 12.5px;
}
#view-strategy .score-track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .05); overflow: hidden; }
#view-strategy .score-track i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--au-amber), var(--au-amber-2));
  box-shadow: 0 0 12px rgba(245, 169, 74, .35);
  transition: width .6s var(--au-ease);
}
#view-strategy .score-track i.is-good {
  background: linear-gradient(90deg, var(--au-mint), #2fb389);
  box-shadow: 0 0 12px rgba(65, 216, 163, .35);
}
#view-strategy .score-track i.is-bad {
  background: linear-gradient(90deg, #ff7a72, #ef5f57);
  box-shadow: 0 0 12px rgba(255, 122, 114, .3);
}
#view-strategy .score-row strong { font-variant-numeric: tabular-nums; font-weight: 650; }
#view-strategy .score-note { margin: 10px 0 0; font-size: 11.5px; color: var(--au-dim); }
#view-strategy .st-insights { display: flex; flex-direction: column; gap: 6px; }
#view-strategy .insight {
  display: flex; gap: 10px; align-items: center;
  padding: 9px 10px; border-radius: 10px;
  border: 1px solid var(--au-line); background: rgba(255, 255, 255, .02);
  font-size: 13px; color: var(--au-muted);
}
#view-strategy .insight-ok {
  flex: none; width: 20px; height: 20px; border-radius: 7px;
  display: grid; place-items: center; font-weight: 700; font-size: 12px;
  color: var(--au-muted); background: rgba(255, 255, 255, .04);
}
#view-strategy .insight.is-good .insight-ok { color: var(--au-mint); background: var(--au-mint-soft); }
#view-strategy .insight.is-warn .insight-ok { color: var(--au-amber); background: var(--au-amber-soft); }
#view-strategy .insight.is-bad .insight-ok  { color: var(--st-red); background: rgba(255, 122, 114, .12); }

/* ---------- kirilim / filtre / gecmis ---------- */
#view-strategy .st-group-bar { margin-bottom: 12px; }
#view-strategy .st-filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
#view-strategy .result-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px;
  border-radius: 999px; font-size: 11px; font-weight: 600;
  border: 1px solid var(--au-line); color: var(--au-muted);
  background: rgba(255, 255, 255, .03); white-space: nowrap;
}
#view-strategy .result-chip.is-win { color: var(--au-mint); background: var(--au-mint-soft); border-color: rgba(65, 216, 163, .3); }
#view-strategy .result-chip.is-loss { color: var(--st-red); background: rgba(255, 122, 114, .12); border-color: rgba(255, 122, 114, .3); }
#view-strategy .result-chip.is-open { color: var(--au-amber); background: var(--au-amber-soft); border-color: rgba(245, 169, 74, .3); }
#view-strategy .hist-pager { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
#view-strategy .hist-pager-info { font-size: 12px; color: var(--au-muted); font-variant-numeric: tabular-nums; }

/* ---------- duyarlilik ---------- */
@media (max-width: 1180px) {
  #view-strategy .strategy-top-grid { grid-template-columns: 1fr 1fr; }
  #view-strategy .strategy-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  #view-strategy .strategy-top-grid { grid-template-columns: 1fr; }
  #view-strategy .strategy-chart-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  #view-strategy .view-heading { align-items: flex-start; flex-direction: column; }
  #view-strategy .panel, #view-strategy .metric-card, #view-strategy .signal-card { padding: 14px; }
  
  #view-strategy .strategy-metrics { grid-template-columns: 1fr; }
  #view-strategy .toolbar-divider { display: none; }
}

/* ====================== KANALLAR + AYARLAR (ortak dil) ====================== */
/* odakla gecen baslikta gorunmez klavye disi cerceve */
:is(#view-channels, #view-settings, #view-ideas) h1:focus:not(:focus-visible) { outline: none; }

#view-channels, #view-settings, #view-ideas, #view-events { --st-red: #ff7a72; }
html[data-theme="light"] #view-channels,
html[data-theme="light"] #view-settings,
html[data-theme="light"] #view-ideas,
html[data-theme="light"] #view-events { --st-red: #d64541; }

#view-channels, #view-channels *,
#view-settings, #view-settings *,
#view-ideas, #view-ideas * { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

/* ---------- baslik ---------- */
:is(#view-channels, #view-ideas, #view-settings, #view-signals, #view-alarms, #view-events, #view-conditional) .view-heading {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin: 2px 0 18px;
}
:is(#view-channels, #view-ideas, #view-settings, #view-signals, #view-alarms, #view-events, #view-conditional) h1 { margin: 0; font-size: clamp(21px, 2.2vw, 27px); font-weight: 600; letter-spacing: -.025em; }
:is(#view-channels, #view-ideas, #view-settings, #view-signals, #view-alarms, #view-events, #view-conditional) .eyebrow { margin: 0 0 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--au-muted); display: flex; align-items: center; gap: 8px; }
:is(#view-channels, #view-ideas, #view-settings, #view-signals, #view-alarms, #view-events, #view-conditional) .view-heading-copy > p:last-child,
:is(#view-channels, #view-ideas, #view-settings, #view-signals, #view-alarms, #view-events, #view-conditional) .view-heading > div > p:last-child { margin: 8px 0 0; font-size: 13px; color: var(--au-muted); max-width: 560px; }
:is(#view-channels, #view-ideas, #view-settings, #view-signals, #view-alarms, #view-events, #view-conditional) .heading-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
:is(#view-channels, #view-ideas, #view-settings, #view-signals, #view-alarms, #view-events, #view-conditional) .status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--au-mint); box-shadow: 0 0 0 3px rgba(65, 216, 163, .14); transition: background .2s var(--au-ease), box-shadow .2s var(--au-ease); }
:is(#view-channels, #view-ideas, #view-settings, #view-signals, #view-alarms, #view-events, #view-conditional) .status-dot.is-warn { background: var(--au-amber); box-shadow: 0 0 0 3px var(--au-amber-soft); }
:is(#view-channels, #view-ideas, #view-settings, #view-signals, #view-alarms, #view-events, #view-conditional) .sync-note { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .03); border: 1px solid var(--au-line); font-size: 12px; font-weight: 600; color: var(--au-muted); }
:is(#view-channels, #view-ideas, #view-settings, #view-signals, #view-alarms, #view-events, #view-conditional) .save-status { font-size: 12px; color: var(--au-dim); letter-spacing: .01em; }

/* ---------- dugmeler ---------- */
:is(#view-channels, #view-settings, #view-signals, #view-alarms, #view-overview, #view-conditional) .button { display: inline-flex; align-items: center; gap: 8px; border-radius: 12px; padding: 9px 15px; font-size: 13px; font-weight: 600; letter-spacing: -.01em; cursor: pointer; border: 1px solid transparent; transition: transform .22s var(--au-ease), box-shadow .22s var(--au-ease), border-color .22s var(--au-ease), background .22s var(--au-ease), opacity .2s; }
:is(#view-channels, #view-settings, #view-signals, #view-alarms, #view-overview, #view-conditional) .button-primary { background: linear-gradient(135deg, var(--au-amber), var(--au-amber-2)); color: #191106; box-shadow: 0 10px 26px -12px rgba(245, 169, 74, .5); }
:is(#view-channels, #view-settings, #view-signals, #view-alarms, #view-overview, #view-conditional) .button-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(245, 169, 74, .65); }
:is(#view-channels, #view-settings, #view-signals, #view-alarms, #view-overview, #view-conditional) .button-ghost { color: var(--au-text); border-color: var(--au-line-strong); background: rgba(255, 255, 255, .02); }
:is(#view-channels, #view-settings, #view-signals, #view-alarms, #view-overview, #view-conditional) .button-ghost:hover { border-color: rgba(245, 169, 74, .4); background: var(--au-amber-soft); }
:is(#view-channels, #view-settings, #view-signals, #view-alarms, #view-overview, #view-conditional) .button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
:is(#view-channels, #view-settings, #view-signals, #view-alarms, #view-events, #view-conditional) .text-button { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--au-line); color: var(--au-muted); padding: 7px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: border-color .2s var(--au-ease), color .2s var(--au-ease), opacity .2s; }
:is(#view-channels, #view-settings, #view-signals, #view-alarms, #view-events, #view-conditional) .text-button:hover:not(:disabled) { border-color: rgba(245, 169, 74, .4); color: var(--au-amber); }
:is(#view-channels, #view-settings, #view-signals, #view-alarms, #view-events, #view-conditional) .panel-link { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--au-line); color: var(--au-muted); padding: 7px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 600; cursor: pointer; margin-top: 12px; transition: border-color .2s var(--au-ease), color .2s var(--au-ease); }
:is(#view-channels, #view-settings, #view-signals, #view-alarms, #view-events, #view-conditional) .panel-link:hover { border-color: rgba(245, 169, 74, .4); color: var(--au-amber); }

/* ---------- panel / metrik / rozet ---------- */
:is(#view-channels, #view-settings, #view-signals, #view-alarms, #view-events, #view-conditional) .panel { margin: 0; padding: 18px; min-width: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0) 42%), var(--au-card); border: 1px solid var(--au-line); border-radius: var(--au-r-lg); box-shadow: var(--au-shadow); transition: transform .25s var(--au-ease), border-color .25s var(--au-ease), box-shadow .25s var(--au-ease); }
:is(#view-channels, #view-settings, #view-signals, #view-alarms, #view-events, #view-conditional) .panel:hover { border-color: var(--au-line-strong); transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 46px -30px rgba(0, 0, 0, .95); }
:is(#view-channels, #view-settings, #view-signals, #view-alarms, #view-strategy, #view-events, #view-conditional) .panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
:is(#view-channels, #view-settings, #view-signals, #view-alarms, #view-strategy, #view-events, #view-conditional) .panel-kicker { margin: 0 0 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--au-muted); }
:is(#view-channels, #view-settings, #view-signals, #view-alarms, #view-strategy, #view-events, #view-conditional) .panel-head h2 { margin: 0; font-size: 15.5px; font-weight: 600; letter-spacing: -.02em; }
:is(#view-channels, #view-settings, #view-signals, #view-alarms, #view-events, #view-conditional) .badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .02em; border: 1px solid var(--au-line); background: rgba(255, 255, 255, .03); color: var(--au-muted); white-space: nowrap; }
.badge-gold { color: var(--au-amber); background: var(--au-amber-soft); border-color: rgba(245, 169, 74, .3); }
.badge-warn { color: var(--au-amber); background: var(--au-amber-soft); border-color: rgba(245, 169, 74, .3); }
.badge-pos { color: var(--au-mint); background: var(--au-mint-soft); border-color: rgba(65, 216, 163, .3); }
.badge-neutral { color: var(--au-muted); background: rgba(255, 255, 255, .04); border-color: var(--au-line); }

/* ---------- kanal metrikleri ---------- */
#view-channels .channel-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
:is(#view-channels, #view-signals, #view-alarms, #view-events, #view-conditional) .metric-card { display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 18px; min-width: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0) 42%), var(--au-card); border: 1px solid var(--au-line); border-radius: var(--au-r-lg); box-shadow: var(--au-shadow); transition: transform .25s var(--au-ease), border-color .25s var(--au-ease), box-shadow .25s var(--au-ease); }
:is(#view-channels, #view-events) .metric-card:hover { border-color: var(--au-line-strong); transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 46px -30px rgba(0, 0, 0, .95); }
:is(#view-channels, #view-signals, #view-alarms, #view-events, #view-conditional) .metric-label { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--au-muted); }
:is(#view-channels, #view-signals, #view-alarms, #view-events, #view-conditional) .metric-value { font-size: 27px; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--au-text); }
:is(#view-channels, #view-signals, #view-alarms, #view-events, #view-conditional) .metric-foot { font-size: 11.5px; color: var(--au-dim); }
#view-channels .channel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 14px; }
#view-channels .channel-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 14px; align-items: start; }
#view-channels .channel-main { display: grid; gap: 14px; }
#view-channels .channel-side { display: grid; gap: 14px; }
:is(#view-channels, #view-signals, #view-alarms, #view-events, #view-conditional) .muted { color: var(--au-dim); }

/* ---------- kanal kartlari ---------- */
#view-channels .channel-card { margin: 0; padding: 16px; border-radius: var(--au-r-lg); border: 1px solid var(--au-line); background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0) 42%), var(--au-card); box-shadow: var(--au-shadow); transition: transform .25s var(--au-ease), border-color .25s var(--au-ease), box-shadow .25s var(--au-ease); }
#view-channels .channel-card:hover { border-color: var(--au-line-strong); transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 46px -30px rgba(0, 0, 0, .95); }
#view-channels .channel-card-head { display: flex; align-items: center; gap: 11px; }
#view-channels .channel-avatar { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; font-size: 13px; font-weight: 700; color: var(--au-amber); background: var(--au-amber-soft); border: 1px solid rgba(245, 169, 74, .28); box-shadow: 0 0 14px rgba(245, 169, 74, .14); }
#view-channels .channel-card-head div { min-width: 0; }
#view-channels .channel-card-head strong { display: block; font-size: 13.5px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-channels .channel-card-head small { font-size: 11.5px; color: var(--au-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-channels .channel-card-head .badge { margin-left: auto; flex: none; }
#view-channels .channel-numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
#view-channels .channel-numbers > div { padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .02); border: 1px solid var(--au-line); }
#view-channels .channel-numbers span { display: block; font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--au-dim); }
#view-channels .channel-numbers strong { font-size: 14.5px; font-variant-numeric: tabular-nums; }
#view-channels .channel-policy { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--au-line); }
#view-channels .channel-policy label { display: grid; gap: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--au-dim); }
#view-channels .channel-policy select, #view-channels .channel-policy input { min-width: 108px; padding: 6px 9px; border-radius: 9px; border: 1px solid var(--au-line); background: rgba(255, 255, 255, .02); color: var(--au-text); font-size: 12.5px; }
#view-channels .select-arrow { margin-left: auto; }

/* ---------- filtre cipleri ---------- */
#view-channels .filter-row { display: inline-flex; gap: 6px; flex-wrap: wrap; }
#view-channels .filter-chip { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--au-line); background: rgba(255, 255, 255, .03); color: var(--au-muted); font-size: 11.5px; font-weight: 600; cursor: pointer; transition: border-color .2s var(--au-ease), color .2s var(--au-ease), background .2s var(--au-ease); }
#view-channels .filter-chip:hover { border-color: rgba(245, 169, 74, .4); color: var(--au-amber); }
#view-channels .filter-chip.is-active { color: var(--au-amber); background: var(--au-amber-soft); border-color: rgba(245, 169, 74, .35); }

/* ---------- mesaj listesi ---------- */
#view-channels .messages-wrapper { height: 100%; }
#view-channels .message-list { display: flex; flex-direction: column; gap: 9px; }
#view-channels .message-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 11px; padding: 11px 12px; border-radius: 13px; border: 1px solid var(--au-line); background: rgba(255, 255, 255, .02); transition: border-color .2s var(--au-ease), background .2s var(--au-ease); }
#view-channels .message-row:hover { border-color: var(--au-line-strong); background: rgba(255, 255, 255, .035); }
#view-channels .message-row[data-message-kind="comment"] { opacity: .82; }
#view-channels .message-source { align-self: flex-start; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--au-amber); background: rgba(245, 169, 74, .11); border: 1px solid rgba(245, 169, 74, .24); }
#view-channels .message-main { min-width: 0; }
#view-channels .message-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#view-channels .message-top strong { font-size: 12.5px; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
#view-channels .message-main p { margin: 5px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--au-muted); overflow-wrap: anywhere; }
#view-channels .message-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 7px; font-size: 11px; color: var(--au-dim); }

/* ---------- fiyat alarmlari ---------- */
#view-channels .alert-form { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin: 4px 0 12px; padding: 11px; border: 1px solid var(--au-line); border-radius: 13px; background: rgba(255, 255, 255, .02); }
#view-channels .alert-form label { display: grid; gap: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--au-dim); }
#view-channels .alert-form input, #view-channels .alert-form select { padding: 7px 10px; border-radius: 10px; border: 1px solid var(--au-line); background: var(--au-card); color: var(--au-text); font-size: 13px; min-width: 120px; transition: border-color .2s var(--au-ease), box-shadow .2s var(--au-ease); }
#view-channels .alert-form input:focus, #view-channels .alert-form select:focus { outline: none; border-color: rgba(245, 169, 74, .45); box-shadow: 0 0 0 3px var(--au-amber-soft); }
#view-channels .alert-list { display: flex; flex-direction: column; gap: 8px; }
#view-channels .alert-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--au-line); background: rgba(255, 255, 255, .02); transition: border-color .2s var(--au-ease), background .2s var(--au-ease); }
#view-channels .alert-row:hover { border-color: var(--au-line-strong); background: rgba(255, 255, 255, .035); }
#view-channels .alert-row.is-passive { opacity: .5; }
#view-channels .alert-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
#view-channels .alert-main strong { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; font-variant-numeric: tabular-nums; }
#view-channels .alert-level { font-size: 12.5px; font-weight: 700; color: var(--au-amber); font-variant-numeric: tabular-nums; }
#view-channels .alert-main small { font-size: 11px; color: var(--au-dim); }
#view-channels .alert-metrics { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; color: var(--au-muted); font-variant-numeric: tabular-nums; }
#view-channels .alert-metrics small { font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: var(--au-dim); margin-right: 3px; }
#view-channels .icon-button { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--au-line); background: rgba(255, 255, 255, .03); color: var(--au-muted); cursor: pointer; font-size: 13px; transition: border-color .2s var(--au-ease), color .2s var(--au-ease), background .2s var(--au-ease); }
#view-channels .icon-button:hover { border-color: rgba(255, 122, 114, .45); color: var(--st-red); background: rgba(255, 122, 114, .1); }
#view-channels .icon-button-sm { width: 26px; height: 26px; font-size: 11px; }

/* ---------- sag kolon: saglik + yz + onay ---------- */
#view-channels .health-list { display: flex; flex-direction: column; gap: 8px; }
#view-channels .health-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 10px 11px; border-radius: 12px; border: 1px solid var(--au-line); background: rgba(255, 255, 255, .02); }
#view-channels .health-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .045); color: var(--au-muted); }
#view-channels .health-icon.is-ok { background: var(--au-mint-soft); color: var(--au-mint); }
#view-channels .health-icon.is-warn { background: var(--au-amber-soft); color: var(--au-amber); }
#view-channels .health-copy { min-width: 0; }
#view-channels .health-copy strong { display: block; font-size: 12.5px; }
#view-channels .health-copy small { font-size: 11px; color: var(--au-dim); }
#view-channels .health-state { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--au-muted); padding: 4px 9px; border-radius: 999px; border: 1px solid var(--au-line); background: rgba(255, 255, 255, .03); }
#view-channels .health-state.is-ok { color: var(--au-mint); background: var(--au-mint-soft); border-color: rgba(65, 216, 163, .3); }
#view-channels .health-state.is-warn { color: var(--au-amber); background: var(--au-amber-soft); border-color: rgba(245, 169, 74, .3); }

/* ---------- yz notu + onay kuyrugu ---------- */
#view-channels .ai-note-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
#view-channels .ai-avatar { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--au-amber); background: var(--au-amber-soft); border: 1px solid rgba(245, 169, 74, .3); box-shadow: 0 0 14px rgba(245, 169, 74, .15); }
#view-channels .ai-note-head .badge { margin-left: auto; }
#view-channels .health-detail blockquote, #view-channels #chAiText { margin: 0; font-size: 13px; line-height: 1.6; color: var(--au-muted); padding: 12px 14px; border-left: 2px solid var(--au-amber); border-radius: 0 12px 12px 0; background: linear-gradient(90deg, rgba(245, 169, 74, .07), transparent 75%); }
#view-channels .review-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
#view-channels .review-tags .badge { font-size: 10.5px; }
#view-channels .ai-note-foot { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--au-line); font-size: 11.5px; color: var(--au-dim); }
#view-channels .approval-panel { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 13px; align-items: center; }
#view-channels .approval-panel .empty-icon { grid-row: 1 / span 2; align-self: start; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--au-mint); background: var(--au-mint-soft); border: 1px solid rgba(65, 216, 163, .3); }
#view-channels .approval-panel p { grid-column: 2; margin: 0; font-size: 12.5px; color: var(--au-muted); line-height: 1.55; }
#view-channels .approval-status { grid-column: 2; display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--au-dim); }
#view-channels .approval-panel h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.02em; }

/* ---------- kanallar duyarllik + giris animasyonu ---------- */
@media (max-width: 1180px) {
  #view-channels .channel-layout { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  #view-channels .channel-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #view-channels .channel-layout { grid-template-columns: 1fr; }
  #view-channels .panel, #view-channels .metric-card, #view-channels .channel-card { padding: 14px; }
  :is(#view-channels, #view-signals, #view-alarms, #view-events, #view-conditional) .metric-value { font-size: 23px; }
}
#view-channels .enter-item { animation: st-rise .5s var(--au-ease) both; }
#view-channels .channel-stats > .enter-item:nth-child(2) { animation-delay: .07s; }
#view-channels .channel-stats > .enter-item:nth-child(3) { animation-delay: .13s; }
#view-channels .channel-stats > .enter-item:nth-child(4) { animation-delay: .19s; }
#view-channels .channel-layout .panel:nth-child(1) { animation-delay: .25s; }
#view-channels .channel-layout .panel:nth-child(2) { animation-delay: .3s; }
#view-channels .channel-layout .panel:nth-child(3) { animation-delay: .35s; }
#view-channels .channel-side .panel:nth-child(1) { animation-delay: .3s; }
#view-channels .channel-side .panel:nth-child(2) { animation-delay: .38s; }
#view-channels .channel-side .panel:nth-child(3) { animation-delay: .46s; }

/* ====================== AYARLAR ====================== */
#view-settings .settings-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 14px; align-items: start; }
#view-settings .settings-nav { position: sticky; top: 0; display: grid; gap: 8px; padding: 12px; border: 1px solid var(--au-line); border-radius: var(--au-r-lg); background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0) 42%), var(--au-card); box-shadow: var(--au-shadow); }
#view-settings .settings-nav-label { margin: 6px 4px 2px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--au-dim); }
#view-settings .settings-nav-group { display: grid; gap: 4px; }
#view-settings .settings-nav-group + .settings-nav-group { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--au-line); }
#view-settings .settings-tab { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 11px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--au-muted); font: inherit; cursor: pointer; text-align: left; transition: border-color .2s var(--au-ease), background .2s var(--au-ease), color .2s var(--au-ease); }
#view-settings .settings-tab:hover { background: rgba(255, 255, 255, .045); color: var(--au-text); }
#view-settings .settings-tab[aria-selected="true"] { background: var(--au-amber-soft); border-color: rgba(245, 169, 74, .32); color: var(--au-text); box-shadow: 0 0 16px rgba(245, 169, 74, .12) inset; }
#view-settings .settings-tab-icon { flex: none; width: 17px; height: 17px; color: var(--au-amber); }
#view-settings .settings-tab > span { min-width: 0; flex: 1; }
#view-settings .settings-tab strong { display: block; font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
#view-settings .settings-tab small { display: block; font-size: 11px; color: var(--au-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-settings .settings-tab-arrow { width: 15px; height: 15px; color: var(--au-dim); transition: transform .2s var(--au-ease); }
#view-settings .settings-tab:hover .settings-tab-arrow { transform: translateX(2px); color: var(--au-amber); }
#view-settings .settings-panel { min-width: 0; padding: 18px; border: 1px solid var(--au-line); border-radius: var(--au-r-lg); background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0) 42%), var(--au-card); box-shadow: var(--au-shadow); }
#view-settings .settings-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--au-line); }
#view-settings .settings-panel-head h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }

/* ---------- ayar bloklari + form ---------- */
#view-settings .setting-block { margin: 0 0 16px; padding: 15px; border: 1px solid var(--au-line); border-radius: 15px; background: rgba(255, 255, 255, .018); }
#view-settings .setting-block:last-child { margin-bottom: 0; }
#view-settings .setting-block-head { margin-bottom: 13px; }
#view-settings .setting-block-head h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
#view-settings .setting-block-head p { margin: 0; font-size: 12px; color: var(--au-muted); }
#view-settings .setting-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
#view-settings .field { display: grid; gap: 6px; min-width: 0; }
#view-settings .field-wide { grid-column: 1 / -1; }
#view-settings .field > label { font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--au-muted); }
#view-settings .field input, #view-settings .field select, #view-settings .field textarea { padding: 9px 11px; border-radius: 11px; border: 1px solid var(--au-line); background: var(--au-card); color: var(--au-text); font: inherit; font-size: 13px; width: 100%; transition: border-color .2s var(--au-ease), box-shadow .2s var(--au-ease); }
#view-settings .field textarea { min-height: 84px; resize: vertical; line-height: 1.5; font-variant-numeric: tabular-nums; }
#view-settings .field input:focus, #view-settings .field select:focus, #view-settings .field textarea:focus { outline: none; border-color: rgba(245, 169, 74, .45); box-shadow: 0 0 0 3px var(--au-amber-soft); }
#view-settings .field input[readonly] { color: var(--au-muted); background: rgba(255, 255, 255, .02); cursor: default; }
#view-settings .field-help { font-size: 11px; color: var(--au-dim); }
#view-settings .mode-grid { display: inline-flex; gap: 7px; flex-wrap: wrap; }
#view-settings .mode-grid .button { background: rgba(255, 255, 255, .03); border-color: var(--au-line-strong); color: var(--au-muted); box-shadow: none; }
#view-settings .mode-grid .button[aria-pressed="true"] { background: var(--au-amber-soft); border-color: rgba(245, 169, 74, .35); color: var(--au-amber); box-shadow: 0 0 14px rgba(245, 169, 74, .12) inset; }
/* FAZ 24: anahtar ortak bilesen. FAZ 24-B olcugu 48x28'e cekti (24px beyaz topuz,
   tikince amber dolar) — 56x32 kartik bolumde kabugun 40px giris kotusunu iki
   katliyordu. Topuz/track matematigi bekci tarafinda denetleniyor. */
#view-settings .switch { position: relative; display: inline-block; width: 48px; height: 28px; cursor: pointer; flex: none; }
#view-settings .switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
/* track'in genislik/yuksekligi AÇIKÇA verilir: settings.css'teki eski kural
   (.switch-track {width:36px;height:20px}) id'li seçicide bu iki özellik
   bildirilmedigi için geçerli kalıyor, 46x26'lik kutunun içinde 36x20'lük
   track çiziliyor ve 18px'lik topuz 20px'lik track'ten taşıyordu. */
#view-settings .switch-track { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); transition: background .22s var(--au-ease), border-color .22s var(--au-ease), box-shadow .22s var(--au-ease); }
#view-settings .switch-track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #ffffff; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); transition: transform .22s var(--au-ease); }
#view-settings .switch input:checked + .switch-track { background: var(--st-accent); border-color: var(--st-accent); box-shadow: 0 0 16px -4px var(--st-accent-glow); }
#view-settings .switch input:checked + .switch-track::after { transform: translateX(20px); background: #ffffff; }
/* eski settings.css odağı altın rengi çiziyor (--gold); Aura amber halkası ile değiştir */
#view-settings .switch input:focus-visible + .switch-track { outline: 2px solid rgba(245, 169, 74, .55); outline-offset: 3px; }
#view-settings .switch:hover .switch-track { background: rgba(255, 255, 255, .13); border-color: rgba(245, 169, 74, .3); }
#view-settings .switch input:checked:hover + .switch-track { filter: brightness(1.14); }
#view-settings .danger-block { margin: 0; padding: 14px 16px; border: 1px solid rgba(255, 122, 114, .32); border-radius: 15px; background: linear-gradient(120deg, rgba(255, 122, 114, .09), rgba(255, 122, 114, .02) 60%); }
#view-settings .danger-head { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
#view-settings .danger-icon { flex: none; width: 21px; height: 21px; color: var(--st-red); }
#view-settings .danger-head h3 { margin: 0 0 3px; font-size: 13.5px; font-weight: 600; color: var(--st-red); letter-spacing: -.01em; }
#view-settings .danger-head p { margin: 0; font-size: 12px; color: var(--au-muted); }
#view-settings .danger-head .button-ghost:hover { border-color: rgba(255, 122, 114, .5); }

/* ---------- ayar yardimci bilesenler ---------- */
#view-settings .inline-form { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 10px; }
#view-settings .inline-form:last-child { margin-bottom: 0; }
#view-settings .inline-form input { padding: 9px 11px; border-radius: 11px; border: 1px solid var(--au-line); background: var(--au-card); color: var(--au-text); font: inherit; font-size: 13px; flex: 1; min-width: 150px; transition: border-color .2s var(--au-ease), box-shadow .2s var(--au-ease); }
#view-settings .inline-form input:focus { outline: none; border-color: rgba(245, 169, 74, .45); box-shadow: 0 0 0 3px var(--au-amber-soft); }
#view-settings .inline-form input::placeholder { color: var(--au-dim); }
#view-settings .test-box, #view-settings .connection-card { display: flex; align-items: center; gap: 14px; padding: 13px; border: 1px solid var(--au-line); border-radius: 14px; background: linear-gradient(120deg, rgba(245, 169, 74, .06), transparent 65%); }
#view-settings .test-box { justify-content: space-between; margin-top: 14px; flex-wrap: wrap; }
#view-settings .test-box strong { font-size: 13.5px; }
#view-settings .test-box p { margin: 3px 0 0; font-size: 12px; color: var(--au-muted); max-width: 480px; }
#view-settings .test-result { font-size: 12px; color: var(--au-amber); }
#view-settings .connection-item, #view-settings .info-list > div { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 11px; border: 1px solid var(--au-line); background: rgba(255, 255, 255, .02); font-size: 13px; }
#view-settings .info-list { display: flex; flex-direction: column; gap: 8px; }
#view-settings .info-list strong { font-size: 12.5px; }
#view-settings .info-list small { display: block; font-size: 11px; color: var(--au-dim); }
#view-settings .connection-card { margin-top: 12px; }
#view-settings .connection-icon { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 11px; color: var(--au-amber); background: var(--au-amber-soft); border: 1px solid rgba(245, 169, 74, .28); box-sizing: border-box; }
#view-settings .connection-copy strong { display: block; font-size: 13.5px; }
#view-settings .connection-copy small { font-size: 11.5px; color: var(--au-dim); }
#view-settings .ai-chain { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
#view-settings .ai-provider, #view-settings .ai-chain > div { padding: 11px 12px; border-radius: 12px; border: 1px solid var(--au-line); background: rgba(255, 255, 255, .02); font-size: 12.5px; color: var(--au-muted); }
#view-settings .settings-layout ~ .field, #view-settings .settings-panel .field label { font-weight: 600; }
@media (max-width: 1023px) {
  #view-settings .settings-layout { grid-template-columns: 1fr; }
  #view-settings .settings-nav { position: static; }
}
@media (max-width: 700px) {
  #view-settings .setting-grid { grid-template-columns: 1fr; }
  #view-settings .settings-panel { padding: 14px; }
}
#view-settings .enter-item { animation: st-rise .5s var(--au-ease) both; }
#view-settings .settings-layout .enter-item:nth-child(2) { animation-delay: .1s; }

/* ====================== FIKIR ATOLYESI ====================== */
#view-ideas .conn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .03); border: 1px solid var(--au-line); font-size: 12px; font-weight: 600; color: var(--au-muted); }
#view-ideas .conn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--au-mint); box-shadow: 0 0 0 3px rgba(65, 216, 163, .14); }
#view-ideas .conn .dot.off { background: var(--st-red); box-shadow: 0 0 0 3px rgba(255, 122, 114, .14); }
#view-ideas .btn { display: inline-flex; align-items: center; gap: 7px; border-radius: 12px; padding: 9px 15px; font-size: 13px; font-weight: 600; letter-spacing: -.01em; cursor: pointer; border: 1px solid var(--au-line-strong); background: rgba(255, 255, 255, .02); color: var(--au-text); transition: transform .22s var(--au-ease), border-color .22s var(--au-ease), background .22s var(--au-ease), opacity .2s; }
#view-ideas .btn:hover:not(:disabled) { border-color: rgba(245, 169, 74, .4); background: var(--au-amber-soft); }
#view-ideas .btn.primary { background: linear-gradient(135deg, var(--au-amber), var(--au-amber-2)); color: #191106; border-color: transparent; box-shadow: 0 10px 26px -12px rgba(245, 169, 74, .5); }
#view-ideas .btn.primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(245, 169, 74, .65); }
#view-ideas .btn:disabled { opacity: .55; cursor: not-allowed; }
#view-ideas .btn.small { padding: 6px 11px; font-size: 12px; border-radius: 10px; }
#view-ideas .btn.subtle { border-color: transparent; background: transparent; color: var(--au-muted); }
#view-ideas .btn.subtle:hover:not(:disabled) { color: var(--au-amber); background: var(--au-amber-soft); border-color: transparent; }
#view-ideas .tabs { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; padding: 7px; border: 1px solid var(--au-line); border-radius: 14px; background: var(--au-card); box-shadow: var(--au-shadow); }
#view-ideas .tab { padding: 7px 12px; border-radius: 9px; border: 0; background: transparent; color: var(--au-muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: color .2s var(--au-ease), background .2s var(--au-ease); }
#view-ideas .tab:hover { color: var(--au-amber); background: var(--au-amber-soft); }
#view-ideas .tab[aria-selected="true"] { color: #191106; background: var(--au-amber); box-shadow: 0 4px 14px -4px rgba(245, 169, 74, .5); }
#view-ideas .tab .count { margin-left: 7px; font-size: 11px; font-variant-numeric: tabular-nums; opacity: .75; }
#view-ideas .layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 14px; align-items: start; }
#view-ideas .board, #view-ideas .chat { min-width: 0; border: 1px solid var(--au-line); border-radius: var(--au-r-lg); background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0) 42%), var(--au-card); box-shadow: var(--au-shadow); }
#view-ideas .board { padding: 16px; }
#view-ideas .overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 12px; }
#view-ideas .overview-card { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--au-line); background: linear-gradient(120deg, rgba(245, 169, 74, .06), transparent 60%); }
#view-ideas .overview-label { font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--au-muted); margin-bottom: 8px; }
#view-ideas .flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--au-muted); }
#view-ideas .flow b { color: var(--au-amber); }
#view-ideas .flow span { padding: 3px 9px; border-radius: 999px; border: 1px solid var(--au-line); background: rgba(255, 255, 255, .02); }
#view-ideas .overview-copy { margin: 9px 0 0; font-size: 12px; color: var(--au-muted); }
#view-ideas .overview-copy strong { color: var(--au-text); }
#view-ideas .board-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
#view-ideas .board-title { font-size: 15.5px; font-weight: 600; letter-spacing: -.02em; }
#view-ideas .board-caption { margin-top: 3px; font-size: 12px; color: var(--au-muted); max-width: 560px; }
#view-ideas .board-actions { display: inline-flex; gap: 8px; }
#view-ideas .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
#view-ideas .grid .card { padding: 14px; border-radius: 15px; border: 1px solid var(--au-line); background: rgba(255, 255, 255, .02); display: flex; flex-direction: column; gap: 8px; transition: transform .25s var(--au-ease), border-color .25s var(--au-ease); }
#view-ideas .grid .card:hover { border-color: var(--au-line-strong); transform: translateY(-2px); }
#view-ideas .card-head { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
#view-ideas .card-head .kind { font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--au-muted); }
#view-ideas .card-head .status { font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--au-line); background: var(--au-amber-soft); color: var(--au-amber); }
#view-ideas .card h3 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
#view-ideas .card p { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--au-muted); }
#view-ideas .card-time { font-size: 11px; color: var(--au-dim); font-variant-numeric: tabular-nums; }
#view-ideas .empty { grid-column: 1 / -1; padding: 26px 18px; border-radius: 15px; border: 1px dashed var(--au-line-strong); background: rgba(255, 255, 255, .01); color: var(--au-dim); font-size: 12.5px; }
#view-ideas .empty strong { display: block; margin-bottom: 4px; font-size: 13.5px; color: var(--au-muted); }

/* ---------- fikir: harita / moduller / yol haritasi ---------- */
#view-ideas .map-wrap, #view-ideas .module-list, #view-ideas .roadmap-grid { display: grid; gap: 12px; margin-top: 4px; }
#view-ideas .roadmap-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
#view-ideas .map-lane { padding: 12px; border-radius: 14px; border: 1px solid var(--au-line); background: rgba(255, 255, 255, .02); }
#view-ideas .lane-title { margin: 0 0 10px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--au-amber); }
#view-ideas .map-node { padding: 12px; border-radius: 13px; border: 1px solid var(--au-line); background: var(--au-card); cursor: pointer; transition: transform .25s var(--au-ease), border-color .25s var(--au-ease); }
#view-ideas .map-node:hover { border-color: rgba(245, 169, 74, .4); transform: translateY(-2px); }
#view-ideas .map-node-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#view-ideas .map-node-title { font-size: 13px; font-weight: 600; }
#view-ideas .map-node-status { flex: none; font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--au-line); background: var(--au-amber-soft); color: var(--au-amber); }
#view-ideas .map-node p { margin: 6px 0 0; font-size: 12px; color: var(--au-muted); }
#view-ideas .map-node-foot { display: flex; gap: 12px; margin-top: 8px; font-size: 11px; color: var(--au-dim); font-variant-numeric: tabular-nums; }
#view-ideas .module-row { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 14px; align-items: start; padding: 13px; border-radius: 14px; border: 1px solid var(--au-line); background: rgba(255, 255, 255, .02); }
#view-ideas .module-row h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
#view-ideas .module-row p { margin: 0; font-size: 12.5px; color: var(--au-muted); }
#view-ideas .module-files { margin-top: 6px; font-size: 11px; color: var(--au-dim); overflow-wrap: anywhere; }
#view-ideas .module-status { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--au-line); background: var(--au-card); color: var(--au-text); font-size: 12.5px; }
#view-ideas .roadmap-column { padding: 12px; border-radius: 14px; border: 1px solid var(--au-line); background: rgba(255, 255, 255, .02); }
#view-ideas .roadmap-column-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--au-muted); }
#view-ideas .roadmap-column-head small { font-size: 11px; color: var(--au-dim); text-transform: none; letter-spacing: 0; }
#view-ideas .roadmap-module { padding: 11px; border-radius: 12px; border: 1px solid var(--au-line); background: var(--au-card); margin-bottom: 8px; }
#view-ideas .roadmap-module-title { font-size: 13px; font-weight: 600; }
#view-ideas .roadmap-module-sub { margin-top: 4px; font-size: 11.5px; color: var(--au-dim); }
#view-ideas .progress { height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .05); overflow: hidden; margin-top: 8px; }
#view-ideas .progress i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--au-amber), var(--au-amber-2)); box-shadow: 0 0 12px rgba(245, 169, 74, .35); transition: width .6s var(--au-ease); }
#view-ideas .map-count { font-variant-numeric: tabular-nums; }

/* ---------- fikir: sohbet ---------- */
#view-ideas .chat { display: flex; flex-direction: column; position: sticky; top: 14px; max-height: calc(100vh - 120px); overflow: hidden; }
#view-ideas .chat-head { display: flex; align-items: center; gap: 11px; padding: 13px 15px; border-bottom: 1px solid var(--au-line); }
#view-ideas .agent-icon { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; font-size: 16px; color: var(--au-amber); background: var(--au-amber-soft); border: 1px solid rgba(245, 169, 74, .3); box-shadow: 0 0 14px rgba(245, 169, 74, .15); }
#view-ideas .chat-heading { font-size: 13.5px; font-weight: 600; }
#view-ideas .chat-state { margin-top: 2px; font-size: 11px; color: var(--au-dim); }
#view-ideas .chat-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
#view-ideas .chat-tools select { max-width: 130px; padding: 6px 8px; border-radius: 9px; border: 1px solid var(--au-line); background: var(--au-card); color: var(--au-text); font-size: 12px; }
#view-ideas .messages { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 14px 15px; overflow-y: auto; min-height: 260px; scrollbar-width: thin; }
#view-ideas .messages::-webkit-scrollbar { width: 8px; }
#view-ideas .messages::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .09); border-radius: 99px; }
#view-ideas .message-user, #view-ideas .message-assistant { padding: 10px 12px; border-radius: 14px; border: 1px solid var(--au-line); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
#view-ideas .message-user { align-self: flex-end; max-width: 85%; background: var(--au-amber-soft); border-color: rgba(245, 169, 74, .3); color: var(--au-text); border-bottom-right-radius: 5px; }
#view-ideas .message-assistant { align-self: stretch; background: rgba(255, 255, 255, .025); color: var(--au-muted); border-bottom-left-radius: 5px; }
#view-ideas .message-meta { font-size: 9.5px; font-weight: 700; letter-spacing: .13em; color: var(--au-dim); margin-bottom: 5px; }
#view-ideas .welcome { align-self: stretch; margin: auto; max-width: 300px; text-align: center; color: var(--au-muted); font-size: 12.5px; }
#view-ideas .welcome .agent-icon { margin: 0 auto 12px; }
#view-ideas .welcome strong { display: block; margin-bottom: 6px; font-size: 14px; color: var(--au-text); }
#view-ideas .welcome ol { margin: 10px 0 0; padding-left: 18px; text-align: left; }
#view-ideas .welcome li { margin: 3px 0; }
#view-ideas .composer { padding: 11px 13px; border-top: 1px solid var(--au-line); }
#view-ideas .composer textarea { width: 100%; min-height: 64px; padding: 10px 11px; border-radius: 12px; border: 1px solid var(--au-line); background: var(--au-card); color: var(--au-text); font: inherit; font-size: 13px; resize: vertical; transition: border-color .2s var(--au-ease), box-shadow .2s var(--au-ease); }
#view-ideas .composer textarea:focus { outline: none; border-color: rgba(245, 169, 74, .45); box-shadow: 0 0 0 3px var(--au-amber-soft); }
#view-ideas .composer-foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
#view-ideas .composer-hint { font-size: 11px; color: var(--au-dim); }
#view-ideas .composer-foot .btn { margin-left: auto; }

/* ---------- fikir: modal + duyarllik ---------- */
#view-ideas .dialog { width: min(560px, 100%); max-height: 86vh; overflow-y: auto; padding: 20px; border-radius: var(--au-r-lg); border: 1px solid var(--au-line-strong); background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0) 42%), var(--au-card); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9); animation: st-rise .3s var(--au-ease) both; }
#view-ideas .dialog h2 { margin: 0 0 6px; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
#view-ideas .dialog p { margin: 0 0 14px; font-size: 12.5px; color: var(--au-muted); }
#view-ideas .dialog label { display: block; margin: 12px 0 6px; font-size: 11.5px; font-weight: 600; color: var(--au-muted); }
#view-ideas .dialog .field, #view-ideas .dialog input, #view-ideas .dialog textarea, #view-ideas .dialog select { width: 100%; padding: 10px 11px; border-radius: 11px; border: 1px solid var(--au-line); background: var(--au-card); color: var(--au-text); font: inherit; font-size: 13px; transition: border-color .2s var(--au-ease), box-shadow .2s var(--au-ease); }
#view-ideas .dialog textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
#view-ideas .dialog input:focus, #view-ideas .dialog textarea:focus, #view-ideas .dialog select:focus { outline: none; border-color: rgba(245, 169, 74, .45); box-shadow: 0 0 0 3px var(--au-amber-soft); }
#view-ideas .dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }
@media (max-width: 1180px) {
  #view-ideas .layout { grid-template-columns: 1fr; }
  #view-ideas .chat { position: static; max-height: none; }
  #view-ideas .messages { min-height: 200px; }
}
#view-ideas .enter-item { animation: st-rise .5s var(--au-ease) both; }
#view-ideas .enter-item:nth-child(2) { animation-delay: .08s; }

/* ---------- ortak: hareket azaltma ---------- */
@media (prefers-reduced-motion: reduce) {
  #view-channels .enter-item, #view-channels .panel, #view-channels .metric-card, #view-channels .channel-card,
  #view-settings .enter-item, #view-settings .panel,
  #view-settings .switch-track, #view-settings .switch-track::after,
  #view-ideas .enter-item, #view-ideas .tab, #view-ideas .dialog,
  #view-ideas .grid .card, #view-ideas .map-node, #view-ideas .progress i,
  :is(#view-signals, #view-alarms, #view-events, #view-conditional) .enter-item,
  #view-signals .data-table tbody tr,
  #view-alarms .alert-row, #view-alarms .alert-form input, #view-alarms .alert-form select { animation: none; transition: none; }
}
html[data-theme="light"] #view-channels .message-source,
html[data-theme="light"] #view-channels .channel-avatar,
html[data-theme="light"] #view-settings .connection-icon,
html[data-theme="light"] #view-ideas .agent-icon { color: #7a4c08; background: #ffefdb; }
/* switch light temada: kapali track (rgba(255,255,255,.07)) açik kartta hiç
   gorunmuyor, topuz da beyaz uzerine beyaz kaliyordu. Projedeki "bos yuzey"
   idiomu rgba(16,22,38,.x); sirasi: kapali < hover < secili < secili+hover
   (özgüllükler esitse kaynak sirasi konusur).
   FAZ 24: secili track'in light kurali `var(--st-accent)`e cevrildi — token light
   temada #dd8a2b; soluk amber dolgu yerine referanstaki gibi dolu amber + beyaz
   topuz gerekiyor. Satir sirasi korunuyor (kapali < hover < secili): light hover
   kurali [data-theme] yuzunden daha ozgulluklu, secili kural ondan SONRA ve
   daha ozgulluklu gelmezse acik amber anahtar hover'da griye donerdi. */
html[data-theme="light"] #view-settings .switch-track { background: rgba(16, 22, 38, .1); }
html[data-theme="light"] #view-settings .switch:hover .switch-track { background: rgba(16, 22, 38, .16); }
html[data-theme="light"] #view-settings .switch input:checked + .switch-track { background: var(--st-accent); }
html[data-theme="light"] #view-settings .switch-track::after { background: #ffffff; box-shadow: 0 1px 4px rgba(16, 22, 38, .3); }

#view-strategy .st-group-bar { margin: 0; }
#view-strategy .table-scroll { max-height: 320px; }
#view-strategy .history-panel .table-scroll { max-height: 420px; }
/* ====================== SINYALLER + ALARMLAR ====================== */
:is(#view-signals, #view-alarms, #view-events, #view-conditional) .heading-actions { justify-content: flex-end; }

/* --- metrik seridi --- */
:is(#view-signals, #view-alarms, #view-events, #view-conditional) .signal-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
:is(#view-signals, #view-alarms, #view-events, #view-conditional) .metric-value.sig-source { font-size: 14px; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; overflow-wrap: anywhere; }

/* --- filtre chip'leri (kanal mesaj filtresiyle ayni anatomi) --- */
:is(#view-channels, #view-signals, #view-alarms, #view-events, #view-conditional) .sig-filters { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 3px; border: 1px solid var(--au-line); border-radius: 12px; background: rgba(255, 255, 255, .028); }
:is(#view-channels, #view-signals, #view-alarms, #view-events, #view-conditional) .filter-chip { min-height: 28px; padding: 0 11px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--au-muted); font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: color .2s var(--au-ease), background .2s var(--au-ease), border-color .2s var(--au-ease), box-shadow .2s var(--au-ease); }
:is(#view-channels, #view-signals, #view-alarms, #view-events, #view-conditional) .filter-chip:hover { color: var(--au-text); background: rgba(255, 255, 255, .05); }
:is(#view-channels, #view-signals, #view-alarms, #view-events, #view-conditional) .filter-chip.is-active { color: var(--au-amber); background: var(--au-amber-soft); border-color: rgba(245, 169, 74, .3); box-shadow: 0 0 16px rgba(245, 169, 74, .12) inset; }

/* --- sinyal tablosu --- */
#view-signals .table-scroll { overflow-x: auto; border-radius: var(--au-r-md); }
#view-signals .table-scroll::-webkit-scrollbar { height: 9px; }
#view-signals .table-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .09); border-radius: 99px; }
#view-signals .data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
#view-signals .data-table thead th { padding: 9px 12px; text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--au-muted); border-bottom: 1px solid var(--au-line); white-space: nowrap; }
#view-signals .data-table td { padding: 11px 12px; border-bottom: 1px solid var(--au-line); vertical-align: middle; }
#view-signals .data-table tbody tr { transition: background .18s var(--au-ease); }
#view-signals .data-table tbody tr:hover { background: rgba(255, 255, 255, .025); }
#view-signals .data-table tbody tr:last-child td { border-bottom: 0; }
#view-signals .data-table .align-right { text-align: right; }
#view-signals .data-table .mono { font-variant-numeric: tabular-nums; }
#view-signals .data-table .muted { color: var(--au-dim); }
#view-signals .sig-src { display: block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--au-muted); font-size: 12px; }
#view-signals .sig-state { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; white-space: nowrap; }
#view-signals .sig-state.is-ok { color: var(--au-mint); }
#view-signals .sig-state.is-warn { color: var(--au-amber); }
/* FAZ 31: "Durum" hücresi artık matched'ten değil trades sonucundan okunuyor.
   Ölçülen gerçek: 123 kaydın hiçbirinde matched boş DEĞİLDİ — yani eski
   "İşlendi / Bekliyor" ikilisi bir sabitti ve 22 atlanmış/rededilen kayıt da
   "İşlendi" okunuyordu. #view-signals --st-red taşımıyordu (1952 listesinde
   yoktu), hatalı durum kırmızısı bu yüzden burada tanımlanıyor. */
#view-signals { --st-red: #ff7a72; }
html[data-theme="light"] #view-signals { --st-red: #d64541; }
#view-signals .sig-state.is-bad { color: var(--st-red); }
#view-signals .sig-state.is-half { color: var(--au-violet); }
#view-signals .sig-state.is-none { color: var(--au-dim); }
/* Ortak .status-dot (1972) her yerde mint: nokta ve halka durumun rengini
   takip eder. --au-*-soft çiftleri açık temada da tanımlı (37+), yalnız
   kırmızının soft halkası tema değerine göre ayrı yazılıyor. */
#view-signals .sig-state.is-ok .status-dot { background: var(--au-mint); box-shadow: 0 0 0 3px var(--au-mint-soft); }
#view-signals .sig-state.is-warn .status-dot { background: var(--au-amber); box-shadow: 0 0 0 3px var(--au-amber-soft); }
#view-signals .sig-state.is-half .status-dot { background: var(--au-violet); box-shadow: 0 0 0 3px var(--au-violet-soft); }
#view-signals .sig-state.is-none .status-dot { background: var(--au-dim); box-shadow: 0 0 0 3px rgba(99, 107, 126, .16); }
#view-signals .sig-state.is-bad .status-dot { background: var(--st-red); box-shadow: 0 0 0 3px rgba(255, 122, 114, .14); }
html[data-theme="light"] #view-signals .sig-state.is-bad .status-dot { box-shadow: 0 0 0 3px rgba(214, 69, 65, .12); }
/* Neden satiri tek satirda, uc nokta ile (.sig-src ayni diliyor): olculdu —
   bas (neden hücresi yok) tablo 927px / satir 43px; bu kural 1008px / 59px.
   Iki satira kirme denemesi DAHA KOTU: sutun ancak 93px genislikte oldugu
   icin metin 69px'lik oluge akiyor, 113 nedenden 91'i okunamiyordu ve satir
   73px'e cikiyordu. nowrap burada ACIK yaziliyor: miras alinan deger
   styles.css'teki .data-table td { white-space: nowrap } satiri; kirilmayi
   umut eden kural sessiz kalinca sadece yanlis gorunuyordu. Uzun broker
   metinlerinin tamami title'da. */
#view-signals .sig-reason {
  display: block; max-width: 152px; margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 11px; font-weight: 500; color: var(--au-dim);
}
html[data-theme="light"] #view-signals .sig-reason { color: var(--au-muted); }
/* Cip sayilari: events sayfasinin .ev-cat-n karsiligi. Sayi etiketten ayri
   hizalanir ki bes cip tek satirda savrulmasin. */
#view-signals .filter-chip .chip-n {
  margin-left: 6px; font-size: 11px; font-weight: 650;
  font-variant-numeric: tabular-nums; color: var(--au-dim);
}
#view-signals .filter-chip.is-active .chip-n { color: var(--au-amber); }
html[data-theme="light"] #view-signals .filter-chip .chip-n { color: var(--au-muted); }
#view-signals .st-empty { margin: 14px 0 0; font-size: 13px; color: var(--au-dim); }

/* --- alarm formu ve listesi --- */
#view-alarms .alert-panel { display: grid; gap: 2px; }
#view-alarms .alert-panel + .alert-panel { margin-top: 14px; }
#view-alarms .alert-form { padding: 2px 0 0; border-bottom: 0; }
#view-alarms .alert-form label { color: var(--au-muted); font-size: 11px; font-weight: 600; letter-spacing: .02em; }
#view-alarms .alert-form input,
#view-alarms .alert-form select { min-width: 132px; padding: 8px 11px; border-radius: 11px; border: 1px solid var(--au-line); background: rgba(255, 255, 255, .03); color: var(--au-text); font: inherit; font-size: 12.5px; transition: border-color .2s var(--au-ease), box-shadow .2s var(--au-ease), background .2s var(--au-ease); }
#view-alarms .alert-form input:hover,
#view-alarms .alert-form select:hover { border-color: var(--au-line-strong); background: rgba(255, 255, 255, .05); }
#view-alarms .alert-form input:focus-visible,
#view-alarms .alert-form select:focus-visible { outline: 0; border-color: rgba(245, 169, 74, .5); box-shadow: 0 0 0 3px var(--au-amber-soft); }
#view-alarms .alert-list { gap: 9px; padding-top: 2px; max-height: none; }
#view-alarms .alert-row { padding: 12px 14px; border-radius: var(--au-r-md); border: 1px solid var(--au-line); background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0) 46%), var(--au-card-2); transition: border-color .22s var(--au-ease), transform .22s var(--au-ease), box-shadow .22s var(--au-ease); }
#view-alarms .alert-row:hover { border-color: var(--au-line-strong); transform: translateX(2px); box-shadow: 0 10px 26px -20px rgba(0, 0, 0, .9); }
#view-alarms .alert-row.is-passive { opacity: .58; }
#view-alarms .alert-row.is-passive:hover { transform: none; }
#view-alarms .alert-main strong { font-size: 13.5px; letter-spacing: -.01em; }
#view-alarms .alert-level { color: var(--au-amber); font-variant-numeric: tabular-nums; }
#view-alarms .alert-note { font-size: 11.5px; color: var(--au-dim); }
#view-alarms .alert-metrics { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#view-alarms .alert-metrics > span { font-size: 12.5px; color: var(--au-muted); font-variant-numeric: tabular-nums; }
#view-alarms .alert-metrics small { display: block; margin-bottom: 2px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--au-dim); }
#view-alarms .alert-actions { display: inline-flex; gap: 6px; }
#view-alarms .icon-button-sm { width: 30px; height: 30px; border-radius: 9px; background: transparent; border-color: var(--au-line); color: var(--au-muted); }
#view-alarms .icon-button-sm:hover { border-color: rgba(245, 169, 74, .45); background: var(--au-amber-soft); color: var(--au-amber); }
#view-alarms .icon-button-sm:disabled { opacity: .5; cursor: progress; }
#view-alarms .muted { color: var(--au-dim); }

/* --- acik tema --- */
html[data-theme="light"] #view-signals .data-table tbody tr:hover { background: rgba(16, 22, 38, .025); }
html[data-theme="light"] #view-signals .table-scroll::-webkit-scrollbar-thumb { background: rgba(16, 22, 38, .16); }
html[data-theme="light"] #view-alarms .alert-form input,
html[data-theme="light"] #view-alarms .alert-form select { background: #ffffff; }
html[data-theme="light"] #view-alarms .alert-form input:hover,
html[data-theme="light"] #view-alarms .alert-form select:hover { background: var(--au-card-2); }
html[data-theme="light"] #view-alarms .alert-row { background: linear-gradient(180deg, rgba(16, 22, 38, .016), rgba(16, 22, 38, 0) 46%), var(--au-card); }
html[data-theme="light"] :is(#view-channels, #view-signals, #view-alarms, #view-events, #view-conditional) .sig-filters { background: rgba(16, 22, 38, .03); }
html[data-theme="light"] :is(#view-channels, #view-signals, #view-alarms, #view-events, #view-conditional) .filter-chip:hover { background: rgba(16, 22, 38, .05); color: var(--au-text); }

/* --- duyarllik + giris animasyonu --- */
@media (max-width: 700px) {
  :is(#view-signals, #view-alarms, #view-events, #view-conditional) .signal-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :is(#view-signals, #view-alarms, #view-events, #view-conditional) .panel,
  :is(#view-signals, #view-alarms, #view-events, #view-conditional) .metric-card { padding: 14px; }
  :is(#view-signals, #view-alarms, #view-events, #view-conditional) .metric-value { font-size: 23px; }
  #view-alarms .alert-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  :is(#view-signals, #view-alarms, #view-events, #view-conditional) .signal-stats { grid-template-columns: minmax(0, 1fr); }
  #view-alarms .alert-form input, #view-alarms .alert-form select { min-width: 0; inline-size: 100%; }
  #view-alarms .alert-form label { inline-size: 100%; }
}
:is(#view-signals, #view-alarms, #view-events, #view-conditional) .enter-item { animation: st-rise .5s var(--au-ease) both; }
:is(#view-signals, #view-alarms, #view-events, #view-conditional) .signal-stats > .enter-item:nth-child(2) { animation-delay: .07s; }
:is(#view-signals, #view-alarms, #view-events, #view-conditional) .signal-stats > .enter-item:nth-child(3) { animation-delay: .13s; }
:is(#view-signals, #view-alarms, #view-events, #view-conditional) .signal-stats > .enter-item:nth-child(4) { animation-delay: .19s; }
#view-signals .panel { animation-delay: .25s; }
#view-alarms .alert-panel:nth-of-type(1) { animation-delay: .25s; }
#view-alarms .alert-panel:nth-of-type(2) { animation-delay: .33s; }

/* ==========================================================================
   FAZ 2f — ORTAK MODAL (blur örtü) + ÜST BAR PARLAKLIK
   Bina dili: --au-card cam yüzey, --au-r-lg, --au-amber çevre ışığı,
   --au-ease. Referansta modal yok; en yakın atası .scrim (blur 3px).
   ========================================================================== */

/* ---------- örtü + pencere ---------- */
.au-modal {
  position: fixed;
  inset: 0;
  z-index: 92;
  display: grid;
  place-items: center;
  padding: 22px 16px;
  background: rgba(4, 6, 12, .62);
  backdrop-filter: blur(12px) saturate(1.06);
  -webkit-backdrop-filter: blur(12px) saturate(1.06);
  animation: au-fade .22s var(--au-ease) both;
}
html[data-theme="light"] .au-modal { background: rgba(16, 22, 38, .34); }
.au-modal[hidden] { display: none; }
.au-modal.is-closing { animation: au-fade-out .16s ease-in both; }
body.au-modal-open { overflow: hidden; }

.au-dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 22px 20px;
  border-radius: var(--au-r-lg);
  border: 1px solid var(--au-line-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 44%), var(--au-card);
  box-shadow:
    0 40px 90px -30px rgba(0, 0, 0, .92),
    0 0 34px -14px rgba(245, 169, 74, .28),
    inset 0 1px 0 rgba(255, 255, 255, .05);
  animation: au-pop .32s var(--au-ease) both;
}
.au-modal.is-closing .au-dialog { animation: au-pop-out .16s ease-in both; }
html[data-theme="light"] .au-dialog {
  background: linear-gradient(180deg, rgba(255, 255, 255, .9), var(--au-card) 44%);
  box-shadow: 0 30px 70px -30px rgba(16, 22, 38, .35), 0 0 26px -14px rgba(245, 169, 74, .3), inset 0 1px 0 #fff;
}
/* üst kenar parıltı çizgisi */
.au-dialog::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(245, 169, 74, .6), transparent);
  pointer-events: none;
}
.au-dialog h2 { margin: 0 0 6px; font-size: 17px; font-weight: 600; letter-spacing: -.02em; color: var(--au-text); }
.au-dialog-sub { margin: 0 0 16px; font-size: 12.5px; line-height: 1.5; color: var(--au-muted); }
.au-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--au-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  color: var(--au-muted);
  cursor: pointer;
  transition: color .18s, border-color .2s, background .2s, transform .2s var(--au-ease), box-shadow .25s;
}
.au-dialog-close .icon { width: 15px; height: 15px; }
.au-dialog-close:hover {
  color: var(--au-amber);
  border-color: rgba(245, 169, 74, .45);
  background: var(--au-amber-soft);
  transform: rotate(90deg) scale(1.05);
  box-shadow: 0 0 0 3px var(--au-amber-soft);
}
.au-dialog-close:focus-visible { outline: none; border-color: var(--au-amber); box-shadow: 0 0 0 3px var(--au-amber-soft); }

@keyframes au-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes au-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes au-pop { from { opacity: 0; transform: translateY(16px) scale(.965); } to { opacity: 1; transform: none; } }
@keyframes au-pop-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(8px) scale(.98); } }

/* ---------- şehir ızgarası ---------- */
.au-city-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 10px; }
.au-city {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid var(--au-line);
  background: var(--au-card-2);
  color: var(--au-text);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, box-shadow .25s, background .2s, transform .2s var(--au-ease);
}
.au-city .au-city-dot {
  width: 7px; height: 7px; flex: none;
  border-radius: 50%;
  background: var(--au-dim);
  transition: background .2s, box-shadow .25s;
}
.au-city .au-city-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-city:hover {
  border-color: rgba(245, 169, 74, .45);
  background: linear-gradient(160deg, rgba(245, 169, 74, .1), rgba(245, 169, 74, .02)), var(--au-card-2);
  box-shadow: 0 0 0 3px var(--au-amber-soft), 0 14px 28px -18px rgba(245, 169, 74, .6);
  transform: translateY(-1px);
}
.au-city:focus-visible { outline: none; border-color: var(--au-amber); box-shadow: 0 0 0 3px var(--au-amber-soft); }
.au-city.is-active {
  border-color: rgba(245, 169, 74, .62);
  background: linear-gradient(160deg, rgba(245, 169, 74, .18), rgba(245, 169, 74, .04)), var(--au-card-2);
}
.au-city.is-active .au-city-dot {
  background: var(--au-amber);
  box-shadow: 0 0 0 3px var(--au-amber-soft), 0 0 10px 1px rgba(245, 169, 74, .55);
  animation: au-dot 2.8s var(--au-ease) infinite;
}
@keyframes au-dot {
  0%, 100% { box-shadow: 0 0 0 3px var(--au-amber-soft), 0 0 8px 1px rgba(245, 169, 74, .4); }
  50% { box-shadow: 0 0 0 4px var(--au-amber-soft), 0 0 16px 3px rgba(245, 169, 74, .7); }
}

/* ---------- üst bar ikon butonları: katman + sheen + parlama ---------- */
.topbar .icon-btn {
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, 0) 58%), var(--au-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 10px 22px -18px rgba(0, 0, 0, .95);
  overflow: hidden;
  transition: color .18s, background .2s, border-color .2s, box-shadow .28s, transform .2s var(--au-ease);
}
.topbar .icon-btn::after {
  content: "";
  position: absolute;
  inset: -20% -60%;
  background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, .17) 50%, transparent 66%);
  transform: translateX(-130%);
  opacity: 0;
  pointer-events: none;
  transition: transform .55s var(--au-ease), opacity .3s;
}
.topbar .icon-btn .icon { position: relative; z-index: 1; }
.topbar .icon-btn:hover {
  color: var(--au-amber);
  border-color: rgba(245, 169, 74, .42);
  box-shadow: 0 0 0 3px var(--au-amber-soft), 0 14px 26px -16px rgba(245, 169, 74, .55), inset 0 1px 0 rgba(255, 255, 255, .07);
  transform: translateY(-1px);
}
.topbar .icon-btn:hover::after { transform: translateX(130%); opacity: 1; }
.topbar .icon-btn:active { transform: translateY(0) scale(.95); }
.topbar .icon-btn:focus-visible { outline: none; border-color: var(--au-amber); box-shadow: 0 0 0 3px var(--au-amber-soft); }
.topbar .icon-btn[disabled] { opacity: .55; transform: none; }
/* yenileme döner (styles.css'te .icon-btn için karşılık yoktu) */
.topbar .icon-btn.is-loading .icon { animation: au-spin .8s linear infinite; }
@keyframes au-spin { to { transform: rotate(360deg); } }
html[data-theme="light"] .topbar .icon-btn {
  background: linear-gradient(180deg, #ffffff, var(--au-card-2));
  box-shadow: inset 0 1px 0 #fff, 0 10px 20px -16px rgba(16, 22, 38, .4);
}
html[data-theme="light"] .topbar .icon-btn::after { background: linear-gradient(115deg, transparent 34%, rgba(245, 169, 74, .22) 50%, transparent 66%); }

/* tema butonu: sprite güneş/ay çapraz geçişi (data-mode theme.js tarafından konur) */
.topbar .theme-btn { --ibx: 18px; }
.topbar .theme-btn .turo-theme-ico { width: 18px; height: 18px; }
.topbar .theme-btn .turo-theme-ico .icon { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.topbar .theme-btn .icon-sun { opacity: 0; transform: rotate(-80deg) scale(.4); }
.topbar .theme-btn .icon-moon { opacity: 1; transform: none; }
.topbar .theme-btn[data-mode="dark"] .icon-sun { opacity: 1; transform: none; }
.topbar .theme-btn[data-mode="dark"] .icon-moon { opacity: 0; transform: rotate(80deg) scale(.4); }

/* ana buton (yeniden başlat): aynı parlak dil, sheen + ışık halkası */
.topbar .btn-primary {
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px -14px rgba(245, 169, 74, .9), inset 0 1px 0 rgba(255, 255, 255, .38);
  transition: filter .18s, box-shadow .28s, transform .2s var(--au-ease);
}
.topbar .btn-primary::after {
  content: "";
  position: absolute;
  inset: -30% -50%;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .5) 52%, transparent 64%);
  transform: translateX(-140%);
  opacity: 0;
  pointer-events: none;
  transition: transform .6s var(--au-ease), opacity .3s;
}
.topbar .btn-primary > * { position: relative; z-index: 1; }
.topbar .btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 14px 30px -14px rgba(245, 169, 74, .95), 0 0 0 3px var(--au-amber-soft), inset 0 1px 0 rgba(255, 255, 255, .42);
  transform: translateY(-1px);
}
.topbar .btn-primary:hover::after { transform: translateX(140%); opacity: .9; }
.topbar .btn-primary:active { transform: translateY(1px) scale(.99); }
.topbar .btn-primary:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--au-amber-soft), 0 10px 24px -14px rgba(245, 169, 74, .9); }

/* ---------- hava kapsulu artık buton ---------- */
.topbar .weather {
  font: inherit;
  text-align: left;
  color: var(--au-text);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, box-shadow .28s, transform .2s var(--au-ease), background .2s;
}
.topbar .weather:hover,
.topbar .weather:focus-visible {
  border-color: rgba(245, 169, 74, .42);
  box-shadow: 0 0 0 3px var(--au-amber-soft), 0 14px 28px -18px rgba(245, 169, 74, .6);
  transform: translateY(-1px);
  outline: none;
}
.topbar .weather:active { transform: translateY(0) scale(.99); }
.topbar .weather-icon { transition: box-shadow .3s, transform .3s var(--au-ease); }
.topbar .weather:hover .weather-icon { box-shadow: 0 0 14px -2px rgba(245, 169, 74, .55); transform: scale(1.06); }
.topbar .weather-city { font-size: 12px; font-weight: 600; color: var(--au-muted); letter-spacing: -.005em; }
.topbar .weather-meta { white-space: nowrap; }
.topbar .weather-meta::before { content: "·"; margin: 0 6px 0 2px; color: var(--au-dim); font-weight: 400; }
/* FAZ 10-b: ayar simgesi kaldirildi — kullanici "ustune gelince simge cikmasina
   gerek yok, isik yansa yeterli" dedi. Ileride geri gelirse .weather-edit
   markup'i ve bu bloğun karsiligi yeniden yazilmali. */
@media (max-width: 760px) {
  .topbar .weather-meta { margin: 0; }
  .topbar .weather-meta::before { display: none; }
}

/* ---------- hareket azaltma kalkanı ---------- */
@media (prefers-reduced-motion: reduce) {
  .au-modal, .au-dialog, .au-modal.is-closing, .au-modal.is-closing .au-dialog,
  .au-city, .au-city.is-active .au-city-dot, .au-dialog-close,
  .topbar .icon-btn, .topbar .icon-btn::after, .topbar .icon-btn.is-loading .icon,
  .topbar .btn-primary, .topbar .btn-primary::after,
  .topbar .weather, .topbar .weather .weather-icon,
  .topbar .theme-btn .turo-theme-ico .icon { animation: none !important; transition: none !important; transform: none !important; }
  .au-modal.is-closing { display: none; }
}

/* ==========================================================================
   FAZ 3-A — STRATEJI: SUNUCU YETENEK ROZETLERI
   Hareketsiz durum bilgisi: animation yok, bu yuzden reduced-motion kilkani
   gerekmez (I-7). Renkler Aura tokenlari.
   ========================================================================== */
#view-strategy .st-caps { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
#view-strategy .st-caps[hidden] { display: none; }
#view-strategy .cap-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 23px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--au-line);
  background: var(--au-card-2);
  color: var(--au-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
}
#view-strategy .cap-chip .od-icon { width: 13px; height: 13px; flex: none; }
#view-strategy .cap-chip.is-on {
  color: var(--au-mint);
  background: var(--au-mint-soft);
  border-color: rgba(65, 216, 163, .28);
}
#view-strategy .cap-chip.is-off { color: var(--au-dim); border-style: dashed; }
#view-strategy .cap-chip.cap-version {
  color: var(--au-amber);
  background: var(--au-amber-soft);
  border-color: rgba(245, 169, 74, .32);
}
#view-strategy .cap-chip[title]:hover { border-color: var(--au-line-strong); }
html[data-theme="light"] #view-strategy .cap-chip.is-on { border-color: rgba(15, 159, 117, .3); }
#view-strategy .st-bridge-btn[aria-pressed="true"]:hover .status-dot { box-shadow: 0 0 0 4px var(--au-mint-soft); }
/* ==========================================================================
   FAZ 3-B — KANALLAR: ISLEM SIRASI PANELI + KANAL KAYDI PENCERESI
   Panel #view-channels kapsamiinda; pencere ici .au-dialog kapsamiinda
   (modal markup'i gorunumlerin disinda, body sonunda duruyor).
   ========================================================================== */

/* ---------- islem sirasi ---------- */
#view-channels .au-prio-panel { display: flex; flex-direction: column; gap: 10px; }
#view-channels .au-prio-note { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--au-muted); }
#view-channels .au-prio-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
#view-channels .au-prio-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 11px;
  border: 1px solid var(--au-line);
  background: rgba(255, 255, 255, .02);
  transition: border-color .2s var(--au-ease), background .2s var(--au-ease), transform .2s var(--au-ease);
}
#view-channels .au-prio-row:hover { border-color: rgba(245, 169, 74, .38); background: var(--au-card-2); transform: translateX(2px); }
#view-channels .au-prio-row.is-paused { opacity: .58; }
#view-channels .au-prio-rank {
  display: grid; place-items: center; width: 18px; height: 18px;
  border-radius: 6px; font-size: 10.5px; font-weight: 700;
  color: var(--au-amber); background: var(--au-amber-soft);
}
#view-channels .au-prio-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
#view-channels .au-prio-num { font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--au-muted); }
#view-channels .au-prio-list .muted { font-size: 11.5px; }

/* ---------- kanal kartindaki kayit dugmesi ---------- */
#view-channels .ch-foot-right { display: inline-flex; align-items: center; gap: 8px; }
/* Kirmizi (silme) hover'u yerine amber: bu dugme bilgi tasir, yikim degil. */
#view-channels .channel-foot .icon-button:hover {
  border-color: rgba(245, 169, 74, .45);
  color: var(--au-amber);
  background: var(--au-amber-soft);
  box-shadow: 0 0 0 3px var(--au-amber-soft);
}

/* ---------- kanal kaydi penceresi ---------- */
.au-dialog.au-dialog-wide { width: min(680px, 100%); }
.au-dialog .au-ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 8px; }
.au-dialog .au-ch-cell { padding: 9px 11px; border-radius: 11px; border: 1px solid var(--au-line); background: var(--au-card-2); }
.au-dialog .au-ch-cell span { display: block; font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--au-muted); }
.au-dialog .au-ch-cell strong { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-dialog .au-ch-cell code { font-size: 11.5px; color: var(--au-amber); }
.au-dialog .au-ch-perf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.au-dialog .au-ch-perf > div { padding: 9px 11px; border-radius: 11px; border: 1px solid var(--au-line); background: rgba(255, 255, 255, .02); }
.au-dialog .au-ch-perf span { display: block; font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--au-muted); }
.au-dialog .au-ch-perf strong { display: block; margin-top: 3px; font-size: 14px; font-variant-numeric: tabular-nums; }
.au-dialog .au-ch-perf strong.is-positive { color: var(--au-mint); }
.au-dialog .au-ch-perf strong.is-negative { color: var(--st-red); }
.au-dialog .au-ch-notes,
.au-dialog .au-ch-sett { margin: 12px 0 0; font-size: 12px; line-height: 1.55; color: var(--au-muted); overflow-wrap: anywhere; }
.au-dialog .au-ch-tag {
  display: inline-flex; align-items: center; margin: 0 5px 5px 0; padding: 3px 9px;
  border-radius: 999px; border: 1px solid var(--au-line); background: var(--au-card-2);
  font-size: 11px; color: var(--au-muted); font-variant-numeric: tabular-nums;
}
.au-dialog .au-ch-sub { margin: 18px 0 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--au-muted); }
.au-dialog .au-ch-msgs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 232px; overflow-y: auto; overscroll-behavior: contain; }
.au-dialog .au-ch-msgs li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; align-items: baseline; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--au-line); background: rgba(255, 255, 255, .02); }
.au-dialog .au-ch-msg-when { font-size: 10.5px; color: var(--au-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.au-dialog .au-ch-msg-text { min-width: 0; font-size: 12px; line-height: 1.5; color: var(--au-muted); }
.au-dialog .au-ch-msg-sym { font-size: 11px; font-weight: 700; color: var(--au-amber); white-space: nowrap; }
.au-dialog .panel-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--au-line); background: transparent; color: var(--au-muted); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: border-color .2s var(--au-ease), color .2s var(--au-ease); }
.au-dialog .panel-link:hover { border-color: rgba(245, 169, 74, .4); color: var(--au-amber); }
.au-dialog .panel-link .od-icon { width: 14px; height: 14px; transition: transform .2s var(--au-ease); }
.au-dialog .panel-link:hover .od-icon { transform: translateX(3px); }
html[data-theme="light"] #view-channels .au-prio-rank { color: #8a5410; background: rgba(245, 169, 74, .2); }
html[data-theme="light"] #view-channels .au-prio-row,
html[data-theme="light"] .au-dialog .au-ch-perf > div,
html[data-theme="light"] .au-dialog .au-ch-msgs li { background: rgba(16, 22, 38, .025); }

@media (prefers-reduced-motion: reduce) {
  #view-channels .au-prio-row,
  #view-channels .channel-foot .icon-button,
  .au-dialog .panel-link, .au-dialog .panel-link .od-icon {
    animation: none !important; transition: none !important; transform: none !important;
  }
}
/* ==========================================================================
   FAZ 3-C — AYARLAR > SEMBOLLER: BORSA PARITE KATALOGU ARAMA ARACI
   GET /api/symbols. #view-settings kapsami; mikro-etiketler bilincli olarak
   --au-muted (AA 4.5+), --au-dim kullanimi yok.
   ========================================================================== */
#view-settings .sy-block { margin-top: 16px; }
#view-settings .sy-search { display: flex; align-items: center; gap: 8px; }
#view-settings .sy-search input { flex: 1; min-width: 0; padding: 9px 11px; border-radius: 11px; border: 1px solid var(--au-line); background: var(--au-card); color: var(--au-text); font: inherit; font-size: 13px; letter-spacing: .02em; transition: border-color .2s var(--au-ease), box-shadow .2s var(--au-ease); }
#view-settings .sy-search input:focus { outline: none; border-color: rgba(245, 169, 74, .45); box-shadow: 0 0 0 3px var(--au-amber-soft); }
#view-settings .sy-meta { margin: 11px 0 0; font-size: 11.5px; color: var(--au-muted); font-variant-numeric: tabular-nums; }
#view-settings .sy-groups { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
#view-settings .sy-group { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--au-line); background: var(--au-card-2); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--au-muted); }
#view-settings .sy-group b { color: var(--au-text); font-size: 11px; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }
#view-settings .sy-resolve { margin-top: 11px; padding: 8px 12px; border-radius: 11px; border: 1px solid rgba(65, 216, 163, .3); background: var(--au-mint-soft); font-size: 12px; color: var(--au-text); }
#view-settings .sy-resolve.is-miss { border-color: rgba(245, 169, 74, .38); background: var(--au-amber-soft); }
#view-settings .sy-resolve strong { font-variant-numeric: tabular-nums; }
#view-settings .sy-list { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; margin-top: 12px; max-height: 188px; overflow-y: auto; overscroll-behavior: contain; }
#view-settings .sy-chip { padding: 4px 9px; border-radius: 9px; border: 1px solid var(--au-line); background: rgba(255, 255, 255, .02); color: var(--au-muted); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11.5px; cursor: pointer; transition: border-color .2s var(--au-ease), color .2s var(--au-ease), background .2s var(--au-ease); }
#view-settings .sy-chip:hover { border-color: rgba(245, 169, 74, .45); color: var(--au-amber); background: var(--au-amber-soft); }
#view-settings .sy-chip:focus-visible { outline: none; border-color: var(--au-amber); box-shadow: 0 0 0 3px var(--au-amber-soft); }
#view-settings .sy-more { align-self: center; font-size: 11px; color: var(--au-muted); }
#view-settings .sy-list .muted { font-size: 12px; }
html[data-theme="light"] #view-settings .sy-chip { background: rgba(16, 22, 38, .03); }
html[data-theme="light"] #view-settings .sy-resolve { border-color: rgba(15, 159, 117, .34); }

@media (prefers-reduced-motion: reduce) {
  #view-settings .sy-chip, #view-settings .sy-search input { animation: none !important; transition: none !important; }
}


/* ============================= FAZ 3-D — yazma eylemleri ============================= */
/* Pencere gövdesi body altında durduğu için .button anatomisi burada da mirrored. */
.au-dialog .button { display: inline-flex; align-items: center; gap: 8px; border-radius: 12px; padding: 9px 15px; font-size: 13px; font-weight: 600; letter-spacing: -.01em; cursor: pointer; border: 1px solid transparent; transition: transform .22s var(--au-ease), box-shadow .22s var(--au-ease), border-color .22s var(--au-ease), background .22s var(--au-ease), opacity .2s; }
.au-dialog .button-primary { background: linear-gradient(135deg, var(--au-amber), var(--au-amber-2)); color: #191106; box-shadow: 0 10px 26px -12px rgba(245, 169, 74, .5); }
.au-dialog .button-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(245, 169, 74, .65); }
.au-dialog .button:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* Açık pozisyon satırındaki "Kapat" düğmesi: iki adımlı onay, silahlanmışken amber. */
#view-overview .pos-action { white-space: nowrap; }
#view-overview .pos-close { padding: 6px 11px; border-radius: 11px; font-size: 12px; gap: 6px; }
#view-overview .pos-close .od-icon { transition: transform .22s var(--au-ease); }
#view-overview .pos-close:hover .od-icon { transform: translateX(2px); }
#view-overview .pos-close.is-armed {
  color: var(--au-amber);
  border-color: rgba(245, 169, 74, .55);
  background: var(--au-amber-soft);
  box-shadow: 0 0 0 1px rgba(245, 169, 74, .12), 0 10px 24px -14px rgba(245, 169, 74, .55);
  animation: au-arm-breathe 1.6s var(--au-ease) infinite;
}
#view-overview .pos-close.is-loading { opacity: .7; }
@keyframes au-arm-breathe {
  0%, 100% { box-shadow: 0 0 0 1px rgba(245, 169, 74, .12), 0 10px 24px -14px rgba(245, 169, 74, .45); }
  50% { box-shadow: 0 0 0 3px rgba(245, 169, 74, .1), 0 12px 28px -12px rgba(245, 169, 74, .7); }
}

/* Ayarlar > Broker: salt okunur bağlantı özetinin yanında yeniden bağlan düğmesi. */
#view-settings .broker-line { display: flex; align-items: center; gap: 8px; }
#view-settings .broker-line #s_broker { flex: 1 1 auto; min-width: 0; }
#view-settings .broker-reconnect { flex: 0 0 auto; white-space: nowrap; }
#view-settings .broker-reconnect .od-icon { transition: transform .3s var(--au-ease); }
#view-settings .broker-reconnect:hover .od-icon { transform: rotate(-36deg); }

/* Kanal kaydı penceresi: geriye dolum eylem satırı. */
.au-dialog .au-ch-backfill {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--au-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.au-dialog .au-ch-bf-copy p { margin: 4px 0 0; font-size: 12px; line-height: 1.5; color: var(--au-muted); }
.au-dialog .au-ch-bf-copy strong { color: var(--au-text); font-weight: 600; }
.au-dialog .au-ch-bf-row { display: inline-flex; align-items: center; gap: 8px; }
.au-dialog .au-ch-bf-label { font-size: 11px; letter-spacing: .04em; color: var(--au-muted); }
.au-dialog .au-ch-bf-input {
  width: 74px;
  padding: 8px 10px;
  border-radius: 11px;
  border: 1px solid var(--au-line-strong);
  background: rgba(255, 255, 255, .03);
  color: var(--au-text);
  font: 600 12.5px var(--font-mono, ui-monospace, monospace);
  transition: border-color .2s var(--au-ease), box-shadow .2s var(--au-ease);
}
.au-dialog .au-ch-bf-input:focus-visible {
  outline: none;
  border-color: rgba(245, 169, 74, .55);
  box-shadow: 0 0 0 3px rgba(245, 169, 74, .16);
}
html[data-theme="light"] .au-dialog .au-ch-bf-input { background: #fff; }
html[data-theme="light"] #view-overview .pos-close.is-armed { color: #8f4b0e; border-color: rgba(221, 138, 43, .5); }
/* amber sembol metni beyaz uzerede 2.71:1 veriyor -> light'ta koyu amber karsiligi */
html[data-theme="light"] .au-dialog .au-ch-cell code,
html[data-theme="light"] .au-dialog .au-ch-msg-sym { color: #a35a12; }

@media (prefers-reduced-motion: reduce) {
  #view-overview .pos-close.is-armed { animation: none; }
  #view-overview .pos-close .od-icon,
  #view-settings .broker-reconnect .od-icon { transition: none; transform: none; }
}
/* ===================================================================================== */


/* ============================= FAZ 3-E — tehlikeli + temizleme ============================= */
/* Ortaki iki adımlı onay: silahlanmış düğme kırmızıya döner, 5 sn içinde ikinci tıklama gerek. */
#view-settings .danger-block .danger-head + .danger-head {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 122, 114, .22);
}
#view-settings #s_reset.is-armed,
#view-ideas #clearChatBtn.is-armed {
  color: var(--st-red);
  border-color: rgba(255, 122, 114, .55);
  background: rgba(255, 122, 114, .12);
  box-shadow: 0 10px 24px -14px rgba(255, 122, 114, .6);
  animation: au-danger-breathe 1.6s var(--au-ease) infinite;
}
#view-ideas #clearChatBtn.is-armed { animation-name: none; }
html[data-theme="light"] #view-settings #s_reset.is-armed,
html[data-theme="light"] #view-ideas #clearChatBtn.is-armed {
  color: #b3261e;
  border-color: rgba(179, 38, 30, .45);
  background: rgba(179, 38, 30, .1);
}
@keyframes au-danger-breathe {
  0%, 100% { box-shadow: 0 10px 24px -14px rgba(255, 122, 114, .5); }
  50% { box-shadow: 0 12px 30px -12px rgba(255, 122, 114, .85); }
}
@media (prefers-reduced-motion: reduce) {
  #view-settings #s_reset.is-armed { animation: none; }
}
/* ========================================================================================== */

/* ============ FAZ 4-a — Genel Bakış doğruluk geçişi ============ */
#view-overview .spark-week { margin-top: 16px; }
#view-overview .spark-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
#view-overview .spark-title { font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--au-muted); }
#view-overview .spark-range { font-size: 10px; color: var(--au-muted); font-variant-numeric: tabular-nums; }
#view-overview .week-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  align-items: stretch;
}
#view-overview .wb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
  animation: wb-in .42s var(--au-ease) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
#view-overview .wb-bar {
  position: relative;
  width: 100%;
  height: 48px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .035);
  transition: background .22s, box-shadow .22s;
}
#view-overview .wb-bar::before {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 50%;
  height: 1px;
  background: var(--au-line-strong);
}
#view-overview .wb-bar i {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 58%;
  max-width: 17px;
  min-height: 2px;
  border-radius: 5px;
  background: linear-gradient(180deg, var(--au-amber), var(--au-amber-2));
  box-shadow: 0 0 12px -3px rgba(245, 169, 74, .75);
}
#view-overview .wb.is-up .wb-bar i { bottom: 50%; }
#view-overview .wb.is-down .wb-bar i {
  top: 50%;
  background: linear-gradient(0deg, #e05650, #ff9a94);
  box-shadow: 0 0 12px -3px rgba(224, 86, 80, .6);
}
#view-overview .wb.is-flat .wb-bar i {
  top: 50%;
  transform: translate(-50%, -50%);
  min-height: 3px;
  height: 3px;
  background: var(--au-line-strong);
  box-shadow: none;
}
#view-overview .wb.is-future .wb-bar i { display: none; }
#view-overview .wb.is-future .wb-bar {
  background: repeating-linear-gradient(135deg, transparent 0 4px, rgba(255, 255, 255, .05) 4px 8px);
}
#view-overview .wb:hover .wb-bar { background: rgba(255, 255, 255, .07); }
#view-overview .wb-label {
  font-size: 9.5px;
  letter-spacing: .04em;
  color: var(--au-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
#view-overview .week-bars-note {
  margin: 8px 0 0;
  font-size: 10.5px;
  color: var(--au-muted);
}
@keyframes wb-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* bilgi düzeyi: ariza degil, secenek/mod */
#view-overview .health-state.is-info {
  color: var(--au-muted);
  background: rgba(255, 255, 255, .05);
  border-color: var(--au-line);
}
#view-overview .ov-weekly .is-unknown,
#view-overview .stat-value .is-unknown { color: var(--au-muted); }

html[data-theme="light"] #view-overview .wb-bar { background: rgba(16, 22, 38, .045); }
html[data-theme="light"] #view-overview .wb:hover .wb-bar { background: rgba(16, 22, 38, .08); }
html[data-theme="light"] #view-overview .wb.is-future .wb-bar {
  background: repeating-linear-gradient(135deg, transparent 0 4px, rgba(16, 22, 38, .05) 4px 8px);
}
html[data-theme="light"] #view-overview .wb-bar i {
  background: linear-gradient(180deg, var(--au-amber), var(--au-amber-2));
}
html[data-theme="light"] #view-overview .health-state.is-info {
  color: #4c5468;
  background: rgba(16, 22, 38, .05);
}

/* aydinlik tema: haftalik hedef parkuru (Faz 10-d) */
html[data-theme="light"] #view-overview .ov-weekly { --wk-neg: #d64541; }
html[data-theme="light"] #view-overview .ov-weekly .progress {
  background: rgba(16, 22, 38, .055);
  box-shadow: inset 0 1px 2px rgba(16, 22, 38, .10), 0 1px 0 rgba(255, 255, 255, .7);
}
html[data-theme="light"] #view-overview .ov-weekly .car-lane { background: repeating-linear-gradient(90deg, rgba(16, 22, 38, .22) 0 7px, transparent 7px 16px); }
html[data-theme="light"] #view-overview .ov-weekly .car-tick { background: rgba(16, 22, 38, .12); }
html[data-theme="light"] #view-overview .ov-weekly .car-goal { background: rgba(16, 22, 38, .04); }
html[data-theme="light"] #view-overview .ov-weekly.is-done .car-goal { background: var(--au-mint-soft); border-color: rgba(15, 159, 117, .35); }
html[data-theme="light"] #view-overview .ov-weekly.is-empty .car-pod { box-shadow: 0 0 0 5px rgba(16, 22, 38, .05), 0 0 10px rgba(106, 114, 133, .3); }
html[data-theme="light"] #view-overview .ov-weekly .car-pod::after { background: radial-gradient(circle, rgba(221, 138, 43, .3), transparent 70%); }

@media (max-width: 760px) {
  #view-overview .wb-bar { height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  #view-overview .wb { animation: none; }
  #view-overview .wb-bar { transition: none; }
}

/* ============================================================
   FAZ 4-b — Genel Bakış: kanal katkısı, strateji motoru, atölye kısayolları
   ============================================================ */
#view-overview { --st-red: #ff7a72; }
html[data-theme="light"] #view-overview { --st-red: #d64541; }

#view-overview .ov-src-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
#view-overview .ov-src-empty { font-size: 11.5px; color: var(--au-muted); }
#view-overview .ov-src-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid var(--au-line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .02);
  animation: ov-rise .45s var(--au-ease) both;
  animation-delay: calc(var(--i, 0) * .04s);
  transition: border-color .2s var(--au-ease), background .2s var(--au-ease), transform .2s var(--au-ease);
}
#view-overview .ov-src-row:hover { border-color: rgba(245, 169, 74, .38); background: var(--au-card-2); transform: translateX(2px); }
#view-overview .ov-src-rank {
  display: grid; place-items: center;
  width: 18px; height: 18px; border-radius: 6px;
  font-size: 10.5px; font-weight: 700;
  color: var(--au-amber); background: var(--au-amber-soft);
}
#view-overview .ov-src-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.3; }
#view-overview .ov-src-name { font-size: 12px; color: var(--au-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#view-overview .ov-src-meta { font-size: 10px; color: var(--au-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#view-overview .ov-src-pnl { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
#view-overview .ov-src-pnl.is-up { color: var(--au-mint); }
#view-overview .ov-src-pnl.is-down { color: var(--st-red); }
#view-overview .ov-src-pnl.is-flat { color: var(--au-muted); }
#view-overview .ov-src-note { margin: 10px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--au-muted); }

#view-overview .ov-eng-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
#view-overview .ov-eng-cell {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--au-line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .02);
  animation: ov-rise .45s var(--au-ease) both;
  animation-delay: calc(var(--i, 0) * .04s);
}
#view-overview .ov-eng-label { font-size: 10px; color: var(--au-muted); }
#view-overview .ov-eng-value { font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--au-text); font-variant-numeric: tabular-nums; }
#view-overview .ov-eng-foot { font-size: 9.5px; color: var(--au-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#view-overview .health-state.is-muted { color: var(--au-muted); background: rgba(255, 255, 255, .05); border-color: var(--au-line); }

#view-overview .ov-hub-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
#view-overview .ov-hub-tile {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 11px 12px; text-align: left; cursor: pointer;
  border: 1px solid var(--au-line); border-radius: 13px;
  background: rgba(255, 255, 255, .02);
  color: var(--au-text);
  font: inherit;
  animation: ov-rise .45s var(--au-ease) both;
  animation-delay: calc(var(--i, 0) * .04s);
  transition: border-color .2s var(--au-ease), background .2s var(--au-ease), transform .2s var(--au-ease), box-shadow .2s var(--au-ease);
}
#view-overview .ov-hub-tile:hover { border-color: rgba(245, 169, 74, .42); background: var(--au-card-2); transform: translateY(-2px); box-shadow: 0 12px 26px -18px rgba(245, 169, 74, .8); }
#view-overview .ov-hub-tile:focus-visible { outline: none; border-color: var(--au-amber); box-shadow: 0 0 0 3px var(--au-amber-soft); }
#view-overview .ov-hub-icon {
  flex: none; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 10px;
  color: var(--au-amber); background: var(--au-amber-soft);
  border: 1px solid rgba(245, 169, 74, .22);
  transition: box-shadow .2s var(--au-ease);
}
#view-overview .ov-hub-tile:hover .ov-hub-icon { box-shadow: 0 0 14px rgba(245, 169, 74, .35); }
#view-overview .ov-hub-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.3; }
#view-overview .ov-hub-label { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--au-muted); }
#view-overview .ov-hub-value { font-size: 13.5px; font-weight: 600; color: var(--au-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#view-overview .ov-hub-meta { font-size: 10.5px; color: var(--au-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#view-overview .ov-hub-arrow { flex: none; margin-left: auto; color: var(--au-muted); transition: transform .2s var(--au-ease), color .2s var(--au-ease); }
#view-overview .ov-hub-tile:hover .ov-hub-arrow { transform: translateX(3px); color: var(--au-amber); }

html[data-theme="light"] #view-overview .ov-src-row,
html[data-theme="light"] #view-overview .ov-eng-cell,
html[data-theme="light"] #view-overview .ov-hub-tile { background: rgba(16, 22, 38, .025); }
html[data-theme="light"] #view-overview .ov-src-row:hover,
html[data-theme="light"] #view-overview .ov-hub-tile:hover { background: rgba(16, 22, 38, .05); }
html[data-theme="light"] #view-overview .health-state.is-muted { color: #4c5468; background: rgba(16, 22, 38, .05); }
/* yeni mikro-etiketler acik temada AA: amber/mint metin karsiliklari */
html[data-theme="light"] #view-overview .ov-src-rank { color: #8a5410; background: rgba(245, 169, 74, .2); }
html[data-theme="light"] #view-overview .ov-engine .health-state.is-ok { color: #0a7a5a; }
html[data-theme="light"] #view-overview .ov-engine .health-state.is-warn { color: #a35a12; }

#view-overview .ov-grid > .card:nth-child(10) { animation-delay: .45s; }
#view-overview .ov-grid > .card:nth-child(11) { animation-delay: .5s; }
#view-overview .ov-grid > .card:nth-child(12) { animation-delay: .55s; }

@media (max-width: 1023px) {
  #view-overview .ov-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  #view-overview .ov-eng-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #view-overview .ov-hub-grid { grid-template-columns: minmax(0, 1fr); }
  #view-overview .ov-src-row { grid-template-columns: 18px minmax(0, 1fr) auto; }
  #view-overview .ov-src-pnl { grid-column: 2 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  #view-overview .ov-src-row,
  #view-overview .ov-eng-cell,
  #view-overview .ov-hub-tile { animation: none; }
  #view-overview .ov-src-row:hover,
  #view-overview .ov-hub-tile:hover { transform: none; }
  #view-overview .ov-hub-tile:hover .ov-hub-arrow { transform: none; }
}

/* ============ FAZ 5-a — gorunmez sekme sayaci + acik tema kirmizi sizintisi ============ */

/* (1) index.html <head> yamasinda kalan kural (#view-ideas .tab[aria-selected=true] .count {
   color: var(--gold)}) sayiciyi amber zeminin ustune amber yapiyordu -> sayi hic
   gorunmuyordu. Ayni spesifiklik, daha sonradan yuklenen bu kural kazanir. */
#view-ideas .tab[aria-selected="true"] .count { color: #191106; }

/* (2) #ff8a8a koyu temanin kirmizisi; 4 kuralda sabit kodlanmis. Acik temada kart
   uzerinde 2.0:1, soft-kirmizi rozet zemininde 2.0:1 -> okunmuyor. Aura'nin acik
   "armed danger" kirmizisi #b3261e ile eslesir (ayni ton Faz 3-E'de kullanildi). */
html[data-theme="light"] :is(#view-overview, #view-strategy, #view-settings, #view-ideas) .badge-neg {
  color: #b3261e;
}
html[data-theme="light"] :is(#view-overview, #view-strategy) .stat .delta.is-negative {
  color: #b3261e;
}
html[data-theme="light"] #view-overview :is(.week-stats .is-negative, .data-table .is-negative) {
  color: #b3261e;
}

/* ============ FAZ 5-b — Fikir Atolyesi sabit yukseklikli cerceve + kart metin kisakci ============
   index.html:118-125'teki eski Ajenturo kalibi .layout'u 74vh (max 800px) yukseklikte ve
   overflow:hidden bir uygulama cercevesi yapiyordu. Aura bu kurali hic bozmadi, sadece
   grid kolonlarini tanimladi; sonuc masaustu genisliginde ( >850px ) cerceve 579px kaldi,
   icerik 1667px oldu ve kartlarin ~1088px'lik alti ne icte ne de sayfada kaydirilarak
   gorunebildi. Aura akisi belgedir: cerceve cozulur, .board icerige gore buysur, sagdaki
   sohbet kolonu (aurora-os.css:1948) sticky olarak yerinde kalir.
   #view-ideas .card p'deki 4 satir kisakci (index.html:197) not govdesini 78px'te tutuyordu
   (olculen 833px); kullanicinin "kart alti gorunmuyor" ihbarinin ikinci kaynagi oldugu icin
   kisakci kaldirilir, metin beyaz alanda akir. */
#view-ideas .layout {
  height: auto;
  min-height: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

/* .board'un eski overflow:auto'su cerceve cozulunce gereksiz bir kaydirma kapsayicina
   donusuyor; .chat sticky'sini de etkileyebildigi icin akis normale aliniyor. */
#view-ideas .board { min-height: 0; overflow: visible; }

#view-ideas .card p { display: block; -webkit-line-clamp: unset; overflow: visible; }

/* ============ FAZ 5-c — fikir ayani sohbet panelinin Aura anatomisi ============
   aurora-os.css:1958-1960 balonlari .message-user / .message-assistant diye yazilmisti,
   ama JS "message user" / "message assistant" (bosluklu) uretiyor (index.html:5337) — bu
   yuzden Aura kurallari HIC calismadi ve balonlar eski Ajenturo görünümüyle kaldi:
   11px/18.15px metin, 11px radius, 96% genislik, assistant soluna yaslama. Üstüne
   .message-meta Aura'ya (9.5px) geçtigi için etiket ile metin boyutu iç içe geçti.
   Buradaki kural gercek markup'a göre yazildi; baslik avatarindaki yildiz glifi de
   sprite ikonla degisti (AGENTS.md: emoji yok). */
#view-ideas .messages { gap: 12px; padding: 16px 15px 18px; }

#view-ideas .message {
  max-width: none;
  padding: 11px 13px;
  border: 1px solid var(--au-line);
  border-radius: var(--au-r-md);
  font-size: 13px;
  line-height: 1.6;
  color: var(--au-text);
  white-space: normal;
  overflow-wrap: break-word;
  transition: border-color .2s var(--au-ease);
}

#view-ideas .message.user {
  align-self: flex-end;
  width: fit-content;
  max-width: 88%;
  background: var(--au-amber-soft);
  border-color: rgba(245, 169, 74, .34);
  border-bottom-right-radius: 6px;
}

#view-ideas .message.assistant {
  align-self: stretch;
  max-width: none;
  background: var(--au-card-2);
  border-color: var(--au-line);
  border-bottom-left-radius: 6px;
}

#view-ideas .message-meta {
  margin-bottom: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--au-muted);
  white-space: normal;
}

#view-ideas .message-text { white-space: pre-wrap; }
#view-ideas .message-text + .message-code { margin-top: 9px; }
#view-ideas .message-code {
  margin: 0;
  padding: 10px 11px;
  border: 1px solid var(--au-line);
  border-radius: 10px;
  background: rgba(0, 0, 0, .18);
  color: var(--au-text);
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre;
  overflow-x: auto;
  scrollbar-width: thin;
  overscroll-behavior: x contain;
}
html[data-theme="light"] #view-ideas .message-code { background: rgba(16, 22, 38, .045); }

#view-ideas .agent-icon .od-icon { width: 18px; height: 18px; }

/* karsilama kutusu: baslik Aura'ya gecmisti ama govde/dis liste 11px Ajenturo'da kalmisti */
#view-ideas .welcome { font-size: 13px; }
#view-ideas .welcome p, #view-ideas .welcome ol, #view-ideas .welcome li {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--au-muted);
}
#view-ideas .composer-hint { font-size: 11.5px; color: var(--au-muted); }

/* light temada balon zeminleri head patch'in Ajenturo tint'lerinden (index.html:262-263)
   geliyordu; Aura karsiliklari daha yuksek özgüllükle yazildi. Kod blogu artik tekillestirme
   kilidine (:not(.message-code)) muaf, yoksa IBM Plex Mono hep Inter'a eziliyordu. */
html[data-theme="light"] #view-ideas .message { background: var(--au-card); border-color: var(--au-line-strong); }
html[data-theme="light"] #view-ideas .message.user { background: var(--au-amber-soft); border-color: rgba(221, 138, 43, .34); }
html[data-theme="light"] #view-ideas .welcome { background: transparent; }

/* mobilde sticky composer'in zemini saga soluyordu (head patch var(--bg) boyuyordu) */
#view-ideas .composer { background: var(--au-card); }

@media (prefers-reduced-motion: reduce) {
  #view-ideas .message { transition: none; }
}

/* ============ FAZ 6 — AuSelect: acilir secim kutusu (Aura pop-over liste) ============
   select DOM'da kalır, kutunun olcumunu kendisi yapar (layout aynen kalir); cerceve
   sarmalayicinin ::before'una tasinir, govde metni + chevron bir butonun icinde.
   Dili: .au-dialog yuzeyi (cam + amber cevre isigi + pop) ve .au-city satiri
   (amber nokta = secili). Strateji'de cerceve zaten .toolbar-select etiketinde,
   orada sarmalayici cerceve cizmez. */
.au-select { position: relative; display: inline-block; vertical-align: middle; min-width: 0; max-width: 100%; }
.au-select > select { opacity: 0; pointer-events: none; margin: 0; }
.au-sel-btn {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 0 24px 0 11px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: var(--au-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.au-sel-val { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-sel-ic { margin-left: auto; flex: none; color: var(--au-dim); transition: transform .22s var(--au-ease), color .18s; }
.au-select.is-open .au-sel-ic { transform: rotate(180deg); color: var(--au-amber); }
.au-select.is-disabled .au-sel-btn { cursor: default; opacity: .55; }
.au-select.is-disabled { opacity: .6; }

/* cerceveli ortamlar: Ayarlar alanlari, fikir penceresi, sohbet arac seridi */
#view-settings .field .au-select, #view-ideas .dialog .au-select { display: block; }
#view-settings .field .au-select::before,
#view-ideas .dialog .au-select::before,
#view-ideas .chat-tools .au-select::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--au-line);
  border-radius: 11px;
  background: var(--au-card);
  transition: border-color .2s var(--au-ease), box-shadow .24s var(--au-ease), background .2s;
}
#view-ideas .chat-tools .au-select::before { border-radius: 9px; }
#view-ideas .chat-tools .au-sel-btn { padding: 0 22px 0 8px; }
#view-ideas .dialog .au-sel-btn { padding-left: 11px; }
#view-settings .field .au-select:hover::before,
#view-ideas .dialog .au-select:hover::before,
#view-ideas .chat-tools .au-select:hover::before { border-color: var(--au-line-strong); }
#view-settings .field .au-select:focus-within::before,
#view-ideas .dialog .au-select:focus-within::before,
#view-ideas .chat-tools .au-select:focus-within::before,
#view-settings .field .au-select.is-open::before,
#view-ideas .dialog .au-select.is-open::before,
#view-ideas .chat-tools .au-select.is-open::before {
  border-color: rgba(245, 169, 74, .45);
  box-shadow: 0 0 0 3px var(--au-amber-soft);
}
#view-ideas .chat-tools .au-select.is-open::before,
#view-settings .field .au-select.is-open::before,
#view-ideas .dialog .au-select.is-open::before { background: var(--au-card-2); }

/* ciplak ortamlar: Strateji arac cabusinda cerceveyi .toolbar-select etiketi ciziyor */
#view-strategy .au-sel-btn { padding: 0 20px 0 2px; }
#view-strategy .toolbar-select:has(.au-select.is-open) {
  border-color: rgba(245, 169, 74, .55);
  background: var(--au-amber-soft);
}

/* ---------- pop-over liste ---------- */
.au-sel-list {
  position: fixed;
  z-index: 140;
  max-height: 288px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid var(--au-line-strong);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 44%), var(--au-card);
  box-shadow: 0 26px 58px -26px rgba(0, 0, 0, .9), 0 0 26px -14px rgba(245, 169, 74, .3), inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  scrollbar-width: thin;
  animation: au-sel-pop .16s var(--au-ease) both;
}
.au-sel-list.is-up { animation-name: au-sel-pop-up; }
@keyframes au-sel-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes au-sel-pop-up { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.au-sel-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--au-text);
  cursor: pointer;
  transition: background .16s var(--au-ease), color .16s;
}
.au-sel-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: transparent; transition: background .2s, box-shadow .25s; }
.au-sel-name { min-width: 0; }
.au-sel-opt:hover { background: rgba(255, 255, 255, .045); }
.au-sel-opt.is-active { background: var(--au-amber-soft); box-shadow: inset 0 0 0 1px rgba(245, 169, 74, .3); }
.au-sel-opt.is-selected .au-sel-dot {
  background: var(--au-amber);
  box-shadow: 0 0 0 3px var(--au-amber-soft), 0 0 10px 1px rgba(245, 169, 74, .5);
}
.au-sel-opt.is-selected .au-sel-name { font-weight: 600; }
.au-sel-opt.is-disabled { color: var(--au-dim); cursor: default; background: transparent; box-shadow: none; }
html[data-theme="light"] .au-sel-list {
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), var(--au-card) 46%);
  box-shadow: 0 24px 50px -24px rgba(16, 22, 38, .34), 0 0 22px -12px rgba(245, 169, 74, .34), inset 0 1px 0 #fff;
}
html[data-theme="light"] .au-sel-opt:hover { background: rgba(16, 22, 38, .035); }

@media (max-width: 760px) {
  .au-sel-list { max-height: min(240px, 44vh); }
}

@media (prefers-reduced-motion: reduce) {
  .au-sel-list, .au-sel-list.is-up { animation: none; }
  .au-sel-ic { transition: none; }
}


/* ==========================================================================
   FAZ 7 — STRATEJI UST BOLGESI NIZAMI
   Basligin sagi ve arac cubugu tek bir satir ritmine oturur: her blok iki
   satirdir (ust: kucuk baslik / alt: deger), satirlar ortasindan degil
   hizalarindan kilitlenir. Yukseklikler tek olcek: pill 30, chip 24,
   buton 40, kontrol kutusu 32. Yeni animasyon yok (yalniz renk gecisi),
   bu yuzden reduced-motion kilteni asagida.
   ========================================================================== */

/* ---------- basligin sagi: 3 sirali, saga hizali yigin ---------- */
#view-strategy .heading-actions {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 10px; flex: none;
}
#view-strategy .st-heading-state { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
#view-strategy .st-heading-line {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 8px; flex-wrap: wrap; min-height: 30px;
}
#view-strategy .st-state-pill { height: 30px; padding: 0 12px; }
#view-strategy .st-caps { gap: 5px; }
#view-strategy .cap-chip { height: 24px; }

/* cumle yerine dort mini sayaç: deger ustte, etiket altta, ince ayraclar */
#view-strategy .st-mini-stats { display: flex; align-items: flex-start; justify-content: flex-end; }
#view-strategy .st-mini {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  padding: 0 11px; border-left: 1px solid var(--au-line); min-width: 0;
}
#view-strategy .st-mini:first-child { border-left: 0; padding-left: 0; }
#view-strategy .st-mini b {
  font-size: 13.5px; font-weight: 650; line-height: 1.25; letter-spacing: -.015em;
  font-variant-numeric: tabular-nums; color: var(--au-text);
  transition: color .2s var(--au-ease);
}
#view-strategy .st-mini b.is-positive { color: var(--au-mint); }
#view-strategy .st-mini b.is-negative { color: var(--st-red); }
#view-strategy .st-mini i {
  font-style: normal; font-size: 9.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--au-dim);
  white-space: nowrap;
}
#view-strategy .heading-btns { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- arac cubugu: sol kontroller / sag durum, iki satir ritmi ---------- */
#view-strategy .strategy-toolbar {
  display: flex; align-items: stretch; justify-content: space-between;
  gap: 14px 18px; flex-wrap: wrap;
  padding: 12px 15px; margin: 0 0 16px;
}
#view-strategy .toolbar-controls { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; min-width: 0; }
#view-strategy .toolbar-group { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
#view-strategy .toolbar-label { line-height: 1; color: var(--au-dim); }
#view-strategy .toolbar-select { height: 32px; }
#view-strategy .toolbar-divider { width: 1px; height: auto; align-self: stretch; background: var(--au-line); }
#view-strategy .toolbar-info {
  display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between;
  gap: 6px; min-width: 0; flex: 1 1 240px; text-align: right;
}
#view-strategy .st-msg { font-size: 12.5px; line-height: 1.35; color: var(--au-muted); max-width: 100%; }
#view-strategy .toolbar-status { font-size: 11px; line-height: 1.3; color: var(--au-dim); font-variant-numeric: tabular-nums; }

/* ---------- kart baslari da ortak dile katilsin ---------- */
#view-strategy .signal-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
#view-strategy .signal-card-head h2 { margin: 0; font-size: 15.5px; font-weight: 600; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#view-strategy .st-signal-row { margin-top: 12px; }
#view-strategy .bias { padding: 4px 10px; }

/* ---------- acik tema: ayraclar ve mini degerler Aura kartina uyarsin ---------- */
html[data-theme="light"] #view-strategy .st-mini { border-left-color: rgba(16, 22, 38, .1); }
html[data-theme="light"] #view-strategy .toolbar-divider { background: rgba(16, 22, 38, .1); }

/* ---------- dar ekran: yigin basligin altina gececekse sola hiza ---------- */
/* head patch'teki @media(max-width:900px) .heading-actions{width:100%} ile ayni kilit */
@media (max-width: 900px) {
  #view-strategy .heading-actions,
  #view-strategy .st-heading-state,
  #view-strategy .st-mini-stats { align-items: flex-start; justify-content: flex-start; }
  #view-strategy .st-heading-line,
  #view-strategy .heading-btns { justify-content: flex-start; }
}

/* ---------- cok dar ekran: cubuk alt alta, durum sola ---------- */
@media (max-width: 700px) {
  #view-strategy .strategy-toolbar { flex-direction: column; align-items: stretch; }
  #view-strategy .toolbar-info { align-items: flex-start; justify-content: flex-start; gap: 4px; text-align: left; flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  #view-strategy .st-mini b { transition: none; }
}

/* ============================= FAZ 8-d — kimlik kabugu: profil kutusu + hesap penceresi ============================= */
/* Sol alt kutu artik sunucudan okunan gercek kullanicini gosterir. Kapi kapaliysa
   (auth_enabled: false) ya da oturum dusmusse avatar sonuk kalir — vaat etmez. */
.profile .avatar { transition: background .2s var(--au-ease), border-color .2s var(--au-ease), color .2s, box-shadow .25s; }
.profile[data-state="on"] .avatar { border-color: rgba(245, 169, 74, .38); }
.profile[data-state="off"] .avatar,
.profile[data-state="none"] .avatar { background: rgba(255, 255, 255, .04); color: var(--au-dim); border-color: var(--au-line); }
html[data-theme="light"] .profile[data-state="off"] .avatar,
html[data-theme="light"] .profile[data-state="none"] .avatar { background: #eef1f6; color: var(--au-dim); }
.profile:hover .avatar { box-shadow: 0 0 0 3px var(--au-amber-soft); }
.profile .profile-text strong,
.profile .profile-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* .au-dialog icindeki ikincil dugme: Faz 3-D aynasinda yalniz primary vardi. */
.au-dialog .button-ghost { color: var(--au-text); border-color: var(--au-line-strong); background: rgba(255, 255, 255, .02); }
.au-dialog .button-ghost:hover:not(:disabled) { border-color: rgba(245, 169, 74, .4); background: var(--au-amber-soft); }
.au-dialog .button-ghost:focus-visible { outline: none; border-color: var(--au-amber); box-shadow: 0 0 0 3px var(--au-amber-soft); }

/* ---------- hesap penceresi: kendi rozeti (kuresel .badge kapsami view-lara bagli) ---------- */
.au-acct-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  flex: none;
  border: 1px solid var(--au-line);
  color: var(--au-muted);
  background: rgba(255, 255, 255, .05);
}
.au-acct-badge.is-gold { color: var(--au-amber); background: var(--au-amber-soft); border-color: rgba(245, 169, 74, .28); }
.au-acct-badge.is-neutral { color: var(--au-muted); background: rgba(255, 255, 255, .05); border-color: var(--au-line); }

.au-acct-off { margin: 0; padding: 12px 13px; border: 1px solid var(--au-line); border-radius: 12px; background: var(--au-card-2); font-size: 12.5px; line-height: 1.55; color: var(--au-muted); }
.au-acct-off .au-acct-code { font-size: 11.5px; }
html[data-theme="light"] .au-acct-off code { color: #a35a12; }

.au-acct-id { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 13px; border: 1px solid var(--au-line); border-radius: 14px; background: linear-gradient(160deg, rgba(245, 169, 74, .07), rgba(245, 169, 74, 0) 58%), var(--au-card-2); }
.au-acct-avatar { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: 13.5px; font-weight: 700; color: var(--au-text); background: linear-gradient(140deg, #3a4358, #232a38); border: 1px solid var(--au-line-strong); }
html[data-theme="light"] .au-acct-avatar { background: linear-gradient(140deg, #e9edf5, #d6dce8); }
.au-acct-id-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 180px; }
.au-acct-id-copy strong { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-acct-mail { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 11.5px; color: var(--au-muted); }
.au-acct-mail .icon { width: 13px; height: 13px; flex: none; color: var(--au-dim); }
.au-acct-mail > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-acct-id .au-acct-badge { margin-left: auto; }
.au-acct-meta { margin: 8px 0 0; font-size: 11px; color: var(--au-dim); }

/* ---------- bolum sekmeleri: .tabs anatomisinin pencere ici karsiligi ---------- */
.au-acct-tabs { display: flex; gap: 7px; flex-wrap: wrap; margin: 16px 0 14px; padding: 6px; border: 1px solid var(--au-line); border-radius: 13px; background: rgba(255, 255, 255, .025); }
.au-acct-tab { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--au-muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: color .2s var(--au-ease), background .2s var(--au-ease), box-shadow .2s; }
.au-acct-tab .icon { width: 14px; height: 14px; }
.au-acct-tab:hover { color: var(--au-amber); background: var(--au-amber-soft); }
.au-acct-tab[aria-selected="true"] { color: #191106; background: var(--au-amber); box-shadow: 0 4px 14px -4px rgba(245, 169, 74, .5); }
.au-acct-tab:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--au-amber-soft); }
.au-acct-count { margin-left: 6px; font-size: 11px; font-variant-numeric: tabular-nums; opacity: .75; }

/* ---------- alanlar ---------- */
.au-acct-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 10px; }
.au-acct-field { display: grid; gap: 6px; min-width: 0; }
.au-acct-field > span { font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--au-muted); }
.au-acct-input { width: 100%; padding: 9px 11px; border-radius: 11px; border: 1px solid var(--au-line); background: var(--au-card); color: var(--au-text); font: inherit; font-size: 13px; transition: border-color .2s var(--au-ease), box-shadow .2s var(--au-ease); }
.au-acct-input:focus { outline: none; border-color: rgba(245, 169, 74, .45); box-shadow: 0 0 0 3px var(--au-amber-soft); }
.au-acct-input::placeholder { color: var(--au-dim); }
html[data-theme="light"] .au-acct-input { background: #fff; }
.au-acct-select { padding: 8px 10px; border-radius: 11px; border: 1px solid var(--au-line-strong); background: var(--au-card); color: var(--au-text); font: inherit; font-size: 12.5px; }
.au-acct-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .04em; color: var(--au-muted); }
.au-acct-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.au-acct-hint { font-size: 11.5px; line-height: 1.5; color: var(--au-dim); }
.au-acct-block { margin: 0 0 10px; }
.au-acct-rule { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--au-line); font-size: 11.5px; line-height: 1.55; color: var(--au-dim); }

/* ---------- listeler (oturum / hesap / davet) ---------- */
.au-acct-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 232px; overflow-y: auto; overscroll-behavior: contain; }
.au-acct-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 9px 11px; border-radius: 11px; border: 1px solid var(--au-line); background: rgba(255, 255, 255, .02); transition: border-color .2s var(--au-ease), background .2s; }
.au-acct-item:hover { border-color: var(--au-line-strong); }
.au-acct-item.is-current { border-color: rgba(245, 169, 74, .38); background: linear-gradient(120deg, rgba(245, 169, 74, .08), rgba(255, 255, 255, 0) 62%), rgba(255, 255, 255, .02); }
html[data-theme="light"] .au-acct-item { background: rgba(16, 22, 38, .03); }
html[data-theme="light"] .au-acct-item.is-current { background: linear-gradient(120deg, rgba(245, 169, 74, .14), rgba(255, 255, 255, 0) 62%), rgba(16, 22, 38, .03); }
.au-acct-item-main { display: grid; gap: 3px; min-width: 0; }
.au-acct-item-main strong { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-acct-item-sub { font-size: 11px; line-height: 1.45; color: var(--au-dim); overflow-wrap: anywhere; }
.au-acct-empty { padding: 10px 11px; border: 1px dashed var(--au-line-strong); border-radius: 11px; font-size: 12px; line-height: 1.5; color: var(--au-dim); }
.au-acct-code { font-family: var(--font-mono, ui-monospace, monospace); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; color: var(--au-amber); background: var(--au-amber-soft); border: 1px solid rgba(245, 169, 74, .22); border-radius: 7px; padding: 1px 6px; user-select: all; cursor: text; }
html[data-theme="light"] .au-acct-code { color: #a35a12; background: rgba(245, 169, 74, .14); }
.au-acct-mini { padding: 6px 11px; border-radius: 11px; font-size: 12px; }

.au-acct-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--au-line); }
.au-acct-out:hover:not(:disabled) { color: #ff8a8a; border-color: rgba(255, 122, 114, .45); background: rgba(255, 122, 114, .08); }
html[data-theme="light"] .au-acct-out:hover:not(:disabled) { color: #b3261e; border-color: rgba(179, 38, 30, .45); background: rgba(179, 38, 30, .08); }

@media (max-width: 560px) {
  .au-acct-id .au-acct-badge { margin-left: 0; }
  .au-acct-item { grid-template-columns: minmax(0, 1fr); }
  .au-acct-item > .au-acct-mini { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .profile .avatar,
  .au-acct-tab,
  .au-acct-item,
  .au-acct-input { transition: none; }
}

/* ==========================================================================
   FAZ 9 — KURTARMA KODLARI
   Tek aile, iki yüz: /login kurulum ekranı ve paneldeki "Hesabım" penceresi.
   Kodlar sunucuda hash'li durur; bu liste yalnız üretilmesiyle bir kez dolar.
   ========================================================================== */
.au-recovery { display: grid; gap: 12px; }
.au-recovery[hidden] { display: none; }
.au-recovery-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.au-recovery-count { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--au-dim); }
.au-recovery-count.is-low { color: var(--au-amber); }
.au-recovery-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.au-recovery-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; border: 1px dashed var(--au-line-strong); background: var(--au-amber-soft); font-family: var(--font-mono, "IBM Plex Mono", ui-monospace, monospace); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; color: var(--au-amber); user-select: all; cursor: text; transition: border-color .2s var(--au-ease), background .2s; }
.au-recovery-item:hover { border-color: rgba(245, 169, 74, .5); }
.au-recovery-item .icon { width: 13px; height: 13px; opacity: .65; flex: none; }
html[data-theme="light"] .au-recovery-item { color: #a35a12; background: rgba(245, 169, 74, .12); }
.au-recovery-note { font-size: 11.5px; line-height: 1.55; color: var(--au-dim); }
.au-recovery-note strong { color: var(--au-text); font-weight: 600; }
.au-recovery-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.au-recovery-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--au-line); background: var(--au-card-2); color: var(--au-text); font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; transition: border-color .2s var(--au-ease), color .2s, transform .2s; }
.au-recovery-btn:hover:not(:disabled) { border-color: rgba(245, 169, 74, .45); color: var(--au-amber); }
.au-recovery-btn:active:not(:disabled) { transform: translateY(1px); }
.au-recovery-btn:disabled { opacity: .5; cursor: default; }
.au-recovery-btn .icon { width: 14px; height: 14px; }
html[data-theme="light"] .au-recovery-btn:hover:not(:disabled) { color: #a35a12; }

@media (max-width: 560px) {
  .au-recovery-list { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .au-recovery-item,
  .au-recovery-btn { transition: none; }
  .au-recovery-btn:active:not(:disabled) { transform: none; }
}

/* ==========================================================================
   FAZ 10-a — AuSelect: kalan native kutular + iki ölçüm düzeltmesi
   1) Boyut analizi çubuğu ile tablo başlığı 1px yapışık (margin:0 bırakılmıştı).
   2) Kanal politikası / alarm formu / modül satırı native kalıyordu: artık
      AuSelect, çerçeveyi sarmalayıcı çiziyor — native kurallar yalnız ölçüyü
      (min-width/padding) besliyor, görünümü çizmiyor.
   ========================================================================== */
#view-strategy .st-group-bar { margin: 0 0 12px; }

#view-channels .channel-policy .au-select,
#view-channels .alert-form .au-select,
#view-alarms .alert-form .au-select,
#view-ideas .module-row .au-select { display: block; }

#view-channels .channel-policy .au-select::before,
#view-channels .alert-form .au-select::before,
#view-alarms .alert-form .au-select::before,
#view-ideas .module-row .au-select::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--au-line);
  border-radius: 10px;
  background: var(--au-card);
  transition: border-color .2s var(--au-ease), box-shadow .24s var(--au-ease), background .2s;
}

#view-channels .channel-policy .au-select:hover::before,
#view-channels .alert-form .au-select:hover::before,
#view-alarms .alert-form .au-select:hover::before,
#view-ideas .module-row .au-select:hover::before { border-color: var(--au-line-strong); }

#view-channels .channel-policy .au-select:focus-within::before,
#view-channels .alert-form .au-select:focus-within::before,
#view-alarms .alert-form .au-select:focus-within::before,
#view-ideas .module-row .au-select:focus-within::before,
#view-channels .channel-policy .au-select.is-open::before,
#view-channels .alert-form .au-select.is-open::before,
#view-alarms .alert-form .au-select.is-open::before,
#view-ideas .module-row .au-select.is-open::before {
  border-color: rgba(245, 169, 74, .45);
  box-shadow: 0 0 0 3px var(--au-amber-soft);
}

#view-channels .channel-policy .au-select.is-open::before,
#view-channels .alert-form .au-select.is-open::before,
#view-alarms .alert-form .au-select.is-open::before,
#view-ideas .module-row .au-select.is-open::before { background: var(--au-card-2); }

/* buton, çerçevenin içine oturur: sola nefes, sağa chevron payı */
#view-channels .channel-policy .au-sel-btn,
#view-alarms .alert-form .au-sel-btn,
#view-ideas .module-row .au-sel-btn { padding: 0 26px 0 10px; min-height: 30px; }
#view-channels .alert-form .au-sel-btn { padding: 0 28px 0 11px; min-height: 34px; }
#view-ideas .module-row .au-sel-btn { min-height: 34px; }
#view-channels .channel-policy .au-sel-val,
#view-alarms .alert-form .au-sel-val,
#view-ideas .module-row .au-sel-val { font-size: 12.5px; }

/* native kutunun eski çerçevesi artık çizim yapmaz — yalnız ölçü kalsın */
#view-channels .channel-policy .au-select > select,
#view-channels .alert-form .au-select > select,
#view-alarms .alert-form .au-select > select,
#view-ideas .module-row .au-select > select { border: 0; background: transparent; }

@media (prefers-reduced-motion: reduce) {
  #view-channels .channel-policy .au-select::before,
  #view-channels .alert-form .au-select::before,
  #view-alarms .alert-form .au-select::before,
  #view-ideas .module-row .au-select::before { transition: none; }
}

/* ==========================================================================
   FAZ 10-c — OLAY AKIŞI SAYFASI
   Kanallar'daki "Sistem günlüğü" kendi sayfasına taşındı. Zaman çizgisi
   dili FAZ 21'de Akıllı Akış kartlarına (.ev-*) devretti; buradaki eski
   .timeline kuralları kaldırıldı (bayat kural, iki dilin aynı sayfada
   yarışması demekti).
   ========================================================================== */


/* ==========================================================================
   FAZ 10-e — BİLDİRİM ZİLİ + BİLDİRİM KUTUSU
   Üst bardaki çan, sunucudaki iki gerçek akışın kutusudur: olay günlüğünün
   hata/uyarı kayıtları ve tetiklenmiş fiyat alarmları. Cam dili .au-dialog'dan
   alınma, ama ekranı kaplamaz — çanın altında açılan bir paneldir.
   ========================================================================== */

.nb-anchor { position: relative; display: grid; }

/* rozet, .topbar .icon-btn::after sheen'ini çiğnemez; köşede durur, glife değmez */
.topbar .nb-badge {
  position: absolute;
  top: -10px;
  right: -4px;
  z-index: 3;
  display: grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: linear-gradient(150deg, #ffca86, #ee963f);
  color: #221603;
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--au-card), 0 0 12px rgba(245, 169, 74, .5);
  pointer-events: none;
}
.topbar .nb-badge.is-dot {
  min-width: 10px;
  height: 10px;
  top: -7px;
  right: -4px;
  padding: 0;
  box-shadow: 0 0 0 2px var(--au-card), 0 0 9px rgba(245, 169, 74, .55);
}
.topbar .icon-btn.is-open {
  color: var(--au-amber);
  border-color: rgba(245, 169, 74, .5);
  box-shadow: 0 0 0 3px var(--au-amber-soft), 0 14px 26px -16px rgba(245, 169, 74, .5), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.topbar .icon-btn.is-ringing .icon { animation: nb-ring .76s var(--au-ease); }
@keyframes nb-ring {
  0%, 100% { transform: none; }
  14% { transform: rotate(13deg); }
  30% { transform: rotate(-10deg); }
  48% { transform: rotate(6deg); }
  68% { transform: rotate(-3deg); }
  84% { transform: rotate(1deg); }
}

.nb-pop {
  --nb-red: #ff7a72;
  /* Yüzey sayfadaki karttan (--au-card) bir ton AÇIK: kutu altındaki içeriğin
     içine gömülmüyor, üstünde yüzüyor. Dil de aynı yüzeyi paylaşır ki arada
     renk dikişi kalmasın. */
  --nb-surface: var(--au-card-2);
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: min(392px, calc(100vw - 26px));
  max-height: min(72vh, 540px);
  border: 1px solid var(--au-line-strong);
  border-radius: 18px;
  background: var(--nb-surface);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .5),
    0 16px 30px -16px rgba(0, 0, 0, .85),
    0 44px 84px -34px rgba(0, 0, 0, .95),
    0 0 34px -12px rgba(245, 169, 74, .3),
    inset 0 1px 0 rgba(255, 255, 255, .06);
  animation: nb-in .26s var(--au-ease) both;
}
.nb-pop[hidden] { display: none; }
@keyframes nb-in { from { opacity: 0; transform: translateY(-9px) scale(.97); } to { opacity: 1; transform: none; } }

/* çana bakan küçük dil --nb-caret JS ile kaydırılır (sağa taşma yok) */
.nb-pop::after {
  content: "";
  position: absolute;
  top: -6px;
  right: var(--nb-caret, 15px);
  width: 11px;
  height: 11px;
  transform: rotate(45deg);
  background: var(--nb-surface);
  border-left: 1px solid var(--au-line-strong);
  border-top: 1px solid var(--au-line-strong);
  border-top-left-radius: 3px;
}

/* İki satırlı başlık, üstten yazıldı: 1. satır kimlik + sayaç + düğmeler,
   2. satır kaynak alt başlığı. Eskiden grid 3 sütuna 4 çocuk sığışıyordu ve
   kapat düğmesi başlığın ALTINA düşüp kutuyu 113px yapıyordu; flex satırlar
   sayısı ne olursa olsun hiçbir çocuk sahipsiz kalmaz. */
.nb-head {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 6px;
  padding: 12px 13px 11px;
  border-bottom: 1px solid var(--au-line);
}
.nb-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.nb-kicker { margin: 0; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--au-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-head h2 { margin: 0 auto 0 0; min-width: 0; font-size: 15px; font-weight: 600; letter-spacing: -.02em; color: var(--au-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-count {
  flex: 0 0 auto;
  padding: 4px 9px;
  border: 1px solid rgba(245, 169, 74, .32);
  border-radius: 999px;
  background: var(--au-amber-soft);
  color: var(--au-amber);
  font-size: 10.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.nb-count.is-zero { border-color: var(--au-line); background: rgba(255, 255, 255, .035); color: var(--au-dim); }

/* Başlıktaki simge düğmeler (okundu say / kapat): üst barın .icon-btn
   diliyle aynı kutu — tek tip 28px, hover'da kehribar parıltı.
   "Tümünü okundu say" yazısı simgeye taşındı; adı aria-label + title
   olarak duruyor, işlevi (#nbReadAll) değişmedi. */
.nb-tool {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--au-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, .04);
  color: var(--au-muted);
  cursor: pointer;
  transition: color .18s, border-color .2s, background .2s, box-shadow .24s, transform .22s var(--au-ease);
}
.nb-tool .icon { width: 14px; height: 14px; }
.nb-tool:hover { color: var(--au-amber); border-color: rgba(245, 169, 74, .42); background: var(--au-amber-soft); box-shadow: 0 0 14px -4px rgba(245, 169, 74, .55); }
.nb-tool:focus-visible { outline: none; border-color: var(--au-amber); box-shadow: 0 0 0 3px var(--au-amber-soft); }
.nb-close:hover { transform: rotate(90deg); }

/* üç sabit çocuk da flex-shrink: 0: liste uzayınca kutu max-height'e çarpıyor ve
   negatif alan varsayılan shrink=1 ile başlık/çubuk/ayak için paylaşılmıyor —
   çubuk 49px'ten 29px'e çöküp çipler çizgilere yapışıyordu (çok bildirim = "sıkışık"). */
.nb-bar { display: flex; flex-shrink: 0; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--au-line); overflow-x: auto; scrollbar-width: none; }
.nb-bar::-webkit-scrollbar { display: none; }
.nb-chip {
  flex: 0 0 auto;
  /* kisa etiket ("Tümü") yiginin icinde buduk kaliyordu: hepsi ayni
     nefes-genisliginde basliyor, uzun etiket kendisi kadar yer kaplar. */
  min-width: 72px;
  padding: 6px 12px;
  white-space: nowrap;
  text-align: center;
  border: 1px solid var(--au-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  color: var(--au-muted);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color .18s, border-color .2s, background .2s, box-shadow .24s;
}
.nb-chip:hover { color: var(--au-text); border-color: var(--au-line-strong); }
.nb-chip.is-active { color: var(--au-amber); border-color: rgba(245, 169, 74, .42); background: var(--au-amber-soft); box-shadow: inset 0 0 0 1px rgba(245, 169, 74, .16); }
.nb-chip:focus-visible { outline: none; border-color: var(--au-amber); box-shadow: 0 0 0 3px var(--au-amber-soft); }

.nb-list {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, .35) transparent;
  scrollbar-gutter: stable;
}
/* eski Chromium scrollbar-width'i tanımaz; bu eş yoksa liste oklu kalın sistem çubuğuna düşer */
.nb-list::-webkit-scrollbar { width: 8px; }
.nb-list::-webkit-scrollbar-track { background: transparent; }
.nb-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .09); border-radius: 99px; }
.nb-list::-webkit-scrollbar-thumb:hover { background: rgba(245, 169, 74, .38); }
html[data-theme="light"] .nb-list::-webkit-scrollbar-thumb { background: rgba(16, 22, 38, .16); }
.nb-row {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  width: 100%;
  margin-bottom: 3px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .18s, border-color .2s, box-shadow .24s, transform .18s var(--au-ease);
}
.nb-row:hover { background: rgba(255, 255, 255, .035); border-color: var(--au-line); transform: translateX(2px); }
.nb-row:focus-visible { outline: none; border-color: var(--au-amber); box-shadow: 0 0 0 3px var(--au-amber-soft); }
.nb-copy { min-width: 0; }
.nb-copy strong { display: block; font-size: 12.5px; font-weight: 600; color: var(--au-muted); overflow-wrap: anywhere; }
.nb-copy > span { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.5; color: var(--au-dim); overflow-wrap: anywhere; }
.nb-dot { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--au-dim); }
.nb-when { font-size: 10.5px; color: var(--au-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* okunmamış: hafif ton + içeriden tip şeridi + canlı nokta */
.nb-row.is-unread { box-shadow: inset 2px 0 0 currentColor; }
.nb-row.is-unread .nb-copy strong { color: var(--au-text); }
.nb-row.is-unread .nb-copy > span { color: var(--au-muted); }
.nb-row.is-error { color: var(--nb-red); }
.nb-row.is-warn { color: var(--au-amber); }
.nb-row.is-alarm { color: var(--au-mint); }
.nb-row.is-error .nb-dot { background: var(--nb-red); box-shadow: 0 0 0 3px rgba(255, 122, 114, .12), 0 0 10px rgba(255, 122, 114, .3); }
.nb-row.is-warn .nb-dot { background: var(--au-amber); box-shadow: 0 0 0 3px var(--au-amber-soft), 0 0 10px rgba(245, 169, 74, .3); }
.nb-row.is-alarm .nb-dot { background: var(--au-mint); box-shadow: 0 0 0 3px var(--au-mint-soft), 0 0 10px rgba(65, 216, 163, .28); }
.nb-row.is-unread.is-error { background: rgba(255, 122, 114, .05); }
.nb-row.is-unread.is-warn { background: rgba(245, 169, 74, .05); }
.nb-row.is-unread.is-alarm { background: rgba(65, 216, 163, .05); }
.nb-row:not(.is-unread) .nb-dot { opacity: .45; box-shadow: none; }
.nb-row:not(.is-unread) .nb-when { color: var(--au-dim); }
.nb-row.is-unread .nb-dot { animation: nb-breathe 2.8s var(--au-ease) infinite; }
@keyframes nb-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.32); } }

.nb-none { padding: 14px 10px; font-size: 12.5px; color: var(--au-muted); text-align: center; }

.nb-skeleton { display: flex; flex-direction: column; gap: 9px; padding: 12px 12px 14px; }
.nb-skeleton[hidden] { display: none; }
.nb-skeleton i {
  display: block;
  height: 11px;
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .035) 0%, rgba(255, 255, 255, .1) 42%, rgba(255, 255, 255, .035) 82%);
  background-size: 220% 100%;
  animation: nb-shimmer 1.3s var(--au-ease) infinite;
}
.nb-skeleton i:nth-child(2) { width: 74%; }
.nb-skeleton i:nth-child(3) { width: 52%; }
@keyframes nb-shimmer { from { background-position: 130% 0; } to { background-position: -130% 0; } }

.nb-foot {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px 10px;
  border-top: 1px solid var(--au-line);
  background: rgba(255, 255, 255, .015);
  border-bottom-left-radius: 17px;
  border-bottom-right-radius: 17px;
}
.nb-sync { font-size: 10.5px; color: var(--au-dim); font-variant-numeric: tabular-nums; }
.nb-links { display: flex; gap: 4px; }
.nb-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: none;
  color: var(--au-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: color .18s, background .2s, border-color .2s;
}
.nb-link .icon { width: 12px; height: 12px; transition: transform .2s var(--au-ease); }
.nb-link:hover { color: var(--au-amber); background: var(--au-amber-soft); border-color: rgba(245, 169, 74, .3); }
.nb-link:hover .icon { transform: translateX(2px); }
.nb-link:focus-visible { outline: none; border-color: var(--au-amber); box-shadow: 0 0 0 3px var(--au-amber-soft); }

/* Ayarlar > Bildirimler alt notu */
#view-settings .nb-note { margin: 14px 0 0; padding: 11px 13px; border: 1px solid var(--au-line); border-left: 2px solid var(--au-amber); border-radius: 12px; background: rgba(255, 255, 255, .02); font-size: 11.5px; line-height: 1.6; color: var(--au-muted); }
#view-settings .nb-note code { font-size: 11px; color: var(--au-amber); }

html[data-theme="light"] .nb-pop {
  /* Gündüzde kartlar beyaz: yükseltme tonla değil, gölgeyle verilir. */
  --nb-surface: var(--au-card);
  box-shadow: 0 0 0 1px rgba(16, 22, 38, .06), 0 14px 26px -14px rgba(16, 22, 38, .28),
              0 40px 70px -30px rgba(16, 22, 38, .38), 0 0 26px -14px rgba(245, 169, 74, .3),
              inset 0 1px 0 #fff;
}
html[data-theme="light"] .nb-pop { --nb-red: #d64541; }
html[data-theme="light"] .nb-count.is-zero,
html[data-theme="light"] .nb-tool,
html[data-theme="light"] .nb-chip { background: var(--au-card-2); }
html[data-theme="light"] .nb-row:hover { background: rgba(16, 22, 38, .04); }
html[data-theme="light"] .nb-row.is-unread.is-error { background: rgba(214, 69, 65, .07); }
html[data-theme="light"] .nb-row.is-unread.is-warn { background: rgba(221, 138, 43, .09); }
html[data-theme="light"] .nb-row.is-unread.is-alarm { background: var(--au-mint-soft); }
html[data-theme="light"] .nb-skeleton i { background: linear-gradient(90deg, rgba(16, 22, 38, .04) 0%, rgba(16, 22, 38, .11) 42%, rgba(16, 22, 38, .04) 82%); background-size: 220% 100%; }
html[data-theme="light"] .nb-foot { background: var(--au-card-2); }
html[data-theme="light"] #view-settings .nb-note { background: var(--au-card-2); }
html[data-theme="light"] .topbar .nb-badge { box-shadow: 0 0 0 2px var(--au-card), 0 0 10px rgba(221, 138, 43, .45); }

@media (max-width: 760px) {
  .nb-pop { width: min(340px, calc(100vw - 22px)); max-height: min(66vh, 460px); }
  /* Dar kutuda alt başlık harflerinden kısır; satırlar yine tek tek durur. */
  .nb-kicker { letter-spacing: .07em; }
}

@media (prefers-reduced-motion: reduce) {
  .nb-pop, .nb-row, .nb-chip, .nb-link, .nb-tool { animation: none !important; transition: none !important; }
  .nb-row:hover, .nb-link:hover .icon, .nb-close:hover { transform: none; }
  .nb-row.is-unread .nb-dot,
  .nb-skeleton i,
  .topbar .icon-btn.is-ringing .icon { animation: none !important; }
}

/* =====================================================================
   FAZ 22 — SOL KENAR ÇUBUĞU ÇALARI (Aura media kartı kabuğu)
   Görsel dil resim 1: kapak küçüğü + "şimdi çalıyor" + canlı spektrum çubukları,
   altında sıra rozeti / favori / kütüphane satırı, transport, ilerleme ve zaman.
   Ses artık tarayıcıda ÜRETİLMİYOR: tek <audio> örneği Epidemic Sound HLS
   önizlemesini çalar. Konum ve kart genişliği önceki haliyle birebir aynı.
   ===================================================================== */
.mp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border: 1px solid var(--au-line);
  border-radius: var(--au-r-md);
  padding: 11px 12px 10px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(65, 216, 163, .10), transparent 62%),
    linear-gradient(160deg, rgba(245, 169, 74, .09), rgba(255, 255, 255, .015)),
    var(--au-card);
  box-shadow: var(--au-shadow);
  cursor: pointer;
  transition: border-color .26s var(--au-ease), box-shadow .3s var(--au-ease),
    background-position .5s var(--au-ease);
}
.mp-card:hover {
  border-color: rgba(245, 169, 74, .26);
  box-shadow: var(--au-shadow), 0 0 22px -14px rgba(245, 169, 74, .8);
}
.mp-card:focus-visible {
  outline: none;
  border-color: var(--au-amber);
  box-shadow: 0 0 0 3px var(--au-amber-soft), var(--au-shadow);
}
.mp-card.is-playing {
  border-color: rgba(245, 169, 74, .34);
  box-shadow: var(--au-shadow), 0 0 26px -12px rgba(245, 169, 74, .6);
}
.mp-card.is-busy { border-color: rgba(90, 169, 255, .3); }
.mp-card.is-error { border-color: rgba(255, 122, 122, .42); }

.mp-head { display: flex; align-items: flex-start; gap: 10px; }
.mp-copy { display: flex; min-width: 0; flex: 1 1 auto; flex-direction: column; }
.mp-label {
  margin: 0;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--au-dim);
}
.mp-title {
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--au-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-card.is-empty .mp-title { color: var(--au-muted); font-weight: 500; }
.mp-sub {
  margin-top: 1px;
  font-size: 10px;
  color: var(--au-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* kapak küçüğü: Epidemic Sound'un gerçek görseli (img) ya da müzik ikonu */
.mp-cover {
  position: relative;
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--au-line);
  border-radius: 10px;
  background: linear-gradient(150deg, rgba(245, 169, 74, .18), rgba(65, 216, 163, .12)), var(--au-card-2);
  transition: border-color .3s var(--au-ease), box-shadow .3s var(--au-ease);
}
.mp-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .35s var(--au-ease), transform .5s var(--au-ease);
}
.mp-cover.has-img { border-color: rgba(245, 169, 74, .22); }
.mp-cover.has-img img { opacity: 1; }
.mp-cover.has-img .mp-cover-fallback { opacity: 0; }
.mp-cover-fallback { width: 15px; height: 15px; color: var(--au-dim); transition: opacity .3s; }
.mp-card.is-playing .mp-cover { box-shadow: 0 0 18px -8px rgba(245, 169, 74, .9); }

/* çözümlenmiş ses verisinden çizilir; --v'yi JS AnalyserNode'dan yazıyor */
.mp-eq {
  flex: none;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 22px;
  margin-top: 4px;
  opacity: .4;
  transition: opacity .3s var(--au-ease);
}
.mp-card.is-playing .mp-eq { opacity: 1; }
.mp-eq i {
  width: 2px;
  height: 100%;
  border-radius: 2px;
  transform: scaleY(var(--v, .1));
  transform-origin: 50% 100%;
  background: linear-gradient(180deg, var(--au-amber), rgba(65, 216, 163, .55));
  transition: transform .09s linear;
}

.mp-meta { display: flex; align-items: center; gap: 6px; }
.mp-chip {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 21px;
  padding: 0 8px;
  border: 1px solid var(--au-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  color: var(--au-dim);
}
.mp-chip .icon { flex: none; width: 11px; height: 11px; }
.mp-chip span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 9.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
/* FAZ 23: anatomiyi artik kapsamsiz veriyoruz. Modalalti serit ve yan panel
   butonlari yalnız ".sidebar ." altindaki bu kurallari alabildigi icin
   pencerenin icinde cercevesiz, OS varsayilan gri dugumlere dusuyordu. */
.mp-tool {
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--au-dim);
  cursor: pointer;
  transition: color .18s, background .2s, border-color .2s, transform .18s var(--au-ease), box-shadow .25s;
}
.mp-tool .icon { width: 13px; height: 13px; }
.mp-tool:hover {
  color: var(--au-amber);
  background: var(--au-amber-soft);
  border-color: rgba(245, 169, 74, .28);
  box-shadow: 0 0 14px -7px rgba(245, 169, 74, .9);
}
.mp-tool:active { transform: scale(.9); }
.mp-tool:disabled { opacity: .3; cursor: not-allowed; box-shadow: none; }
.mp-tool:focus-visible { outline: none; border-color: var(--au-amber); box-shadow: 0 0 0 3px var(--au-amber-soft); }
.mp-tool.is-on { color: var(--au-amber); background: var(--au-amber-soft); border-color: rgba(245, 169, 74, .26); }
.mp-fav-on { display: none; }
.mp-tool.is-on .mp-fav-on { display: block; }
.mp-tool.is-on .mp-fav-off { display: none; }

.mp-transport { display: flex; align-items: center; gap: 6px; }
.mp-btn {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--au-muted);
  cursor: pointer;
  transition: color .18s, background .2s, border-color .2s, transform .18s var(--au-ease), box-shadow .25s;
}
.mp-btn .icon { width: 14px; height: 14px; }
.mp-btn:hover {
  color: var(--au-amber);
  background: var(--au-amber-soft);
  border-color: rgba(245, 169, 74, .3);
  box-shadow: 0 0 14px -6px rgba(245, 169, 74, .8);
}
.mp-btn:active { transform: scale(.92); }
.mp-btn:disabled { opacity: .38; cursor: not-allowed; box-shadow: none; }
.mp-btn:focus-visible { outline: none; border-color: var(--au-amber); box-shadow: 0 0 0 3px var(--au-amber-soft); }
.mp-btn.is-on {
  color: var(--au-amber);
  background: var(--au-amber-soft);
  border-color: rgba(245, 169, 74, .3);
  box-shadow: 0 0 16px -8px rgba(245, 169, 74, .9);
}

.mp-play {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 169, 74, .45);
  border-radius: 50%;
  background: linear-gradient(160deg, #ffcb87, var(--au-amber-2));
  color: #221603;
  cursor: pointer;
  box-shadow: 0 8px 20px -10px rgba(245, 169, 74, .9);
  transition: transform .16s var(--au-ease), filter .2s, box-shadow .28s;
}
.mp-play:hover {
  filter: brightness(1.06);
  box-shadow: 0 10px 26px -10px rgba(245, 169, 74, 1), 0 0 0 4px var(--au-amber-soft);
}
.mp-play:active { transform: scale(.94); }
.mp-play:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--au-amber-soft), 0 8px 20px -10px rgba(245, 169, 74, .9); }
.mp-play:disabled { opacity: .5; cursor: not-allowed; filter: saturate(.4); }
.mp-play .icon { width: 15px; height: 15px; }
.mp-gl-playing, .mp-gl-busy { display: none; }
.mp-play.is-playing .mp-gl-playing { display: block; }
.mp-play.is-playing .mp-gl-paused { display: none; }
.mp-play.is-busy .mp-gl-paused, .mp-play.is-busy .mp-gl-playing { display: none; }
.mp-play.is-busy .mp-gl-busy { display: block; animation: mp-spin .9s linear infinite; }
@keyframes mp-spin { to { transform: rotate(360deg); } }

.mp-div { flex: none; width: 1px; height: 16px; margin: 0 2px; background: var(--au-line-strong); }

.mp-vol {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--au-amber) var(--mp-seek, 55%), rgba(255, 255, 255, .1) var(--mp-seek, 55%));
  cursor: pointer;
  outline-offset: 6px;
}
.mp-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--au-amber);
  box-shadow: 0 0 10px rgba(245, 169, 74, .7);
}
.mp-vol::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 3px solid var(--au-amber);
  border-radius: 50%;
  background: #fff;
}
.mp-vol:disabled { opacity: .38; cursor: not-allowed; }

.mp-progress { margin-top: 1px; }
.mp-seek {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--au-amber) var(--ml-fill, 0%), rgba(255, 255, 255, .09) var(--ml-fill, 0%));
  cursor: pointer;
  outline-offset: 6px;
}
.mp-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--au-amber);
  box-shadow: 0 0 8px rgba(245, 169, 74, .6);
  opacity: 0;
  transition: opacity .18s;
}
.mp-seek:hover::-webkit-slider-thumb, .mp-seek:focus-visible::-webkit-slider-thumb { opacity: 1; }
.mp-seek::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border: 2px solid var(--au-amber);
  border-radius: 50%;
  background: #fff;
}
.mp-seek:disabled { cursor: default; opacity: .45; }

.mp-times {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  font-size: 9.5px;
  color: var(--au-dim);
  font-variant-numeric: tabular-nums;
}
.mp-times #mpDurum {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  letter-spacing: .04em;
  color: var(--au-muted);
}
/* ses sürgüsü FAZ 23'te transport satırından buraya taşındı: beş düğme
   213px'i kilitlediği için sürgü 22px'e iniyordu (kart "tıka basık" okunuyordu) */
.mp-vol-icon { flex: none; width: 12px; height: 12px; color: var(--au-dim); }
.mp-card.is-error .mp-times #mpDurum { color: #ff8f8f; }

html[data-theme="light"] .mp-card {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(65, 216, 163, .16), transparent 62%),
    linear-gradient(160deg, rgba(245, 169, 74, .16), rgba(255, 255, 255, .9)),
    var(--au-card);
  box-shadow: 0 18px 36px -28px rgba(16, 22, 38, .4), inset 0 1px 0 #fff;
}
html[data-theme="light"] .mp-play { color: #2a1c05; border-color: rgba(221, 138, 43, .55); }
html[data-theme="light"] .mp-vol { background: linear-gradient(90deg, var(--au-amber) var(--mp-seek, 55%), rgba(16, 22, 38, .12) var(--mp-seek, 55%)); }
html[data-theme="light"] .mp-seek { background: linear-gradient(90deg, var(--au-amber) var(--ml-fill, 0%), rgba(16, 22, 38, .12) var(--ml-fill, 0%)); }
html[data-theme="light"] .mp-eq i { background: linear-gradient(180deg, var(--au-amber), rgba(15, 159, 117, .6)); }
html[data-theme="light"] .mp-chip { background: rgba(16, 22, 38, .05); border-color: rgba(16, 22, 38, .1); }

@media (prefers-reduced-motion: reduce) {
  .mp-card, .mp-play, .mp-cover, .mp-cover img, .mp-btn, .mp-tool,
  .mp-eq, .mp-eq i, .mp-seek::-webkit-slider-thumb { transition: none !important; }
  .mp-play:active, .mp-btn:active, .mp-tool:active { transform: none; }
  .mp-play.is-busy .mp-gl-busy { animation: none; }
  /* Çalar DURURKEN çubuklar sabit dinlenme boyunda; çalarken canlı ses okur
     (transition kapalı olduğu için hareket yumuşamaz, adım adım değişir). */
  .mp-card:not(.is-playing) .mp-eq i { transform: scaleY(.5); }
}


/* ==========================================================================
   FAZ 18 — AuSelect: acilir kutularin olcu nizami + secili satir vurgusu
   Iki kusur ayni kokten doguyor: olcuyu Aura DEGIL, eski styles.css bildiriyor.
   1) `.st-filter-row .toolbar-select, ... , .st-filter-row button {min-height:36px}`
      (styles.css:2833) iki yere sızıyordu: (a) cerceveyi Aura olceginden (32)
      4px yukari cikariyordu, (b) mutlak konumlu .au-sel-btn'i — icinde bulundugu
      18px'lik govdenin ustune yazildigi icin — 36px'e geriyordu. Sonuc: metin +
      chevron sercenin ortasindan 9px asagi, ikon ortada uc ayri hizada.
   2) Cerceveli ortamlarda (alarm formu, kanal politikasi, sohbet seridi) kutunun
      olcuyu gorunmez native select'ten aliyordu; komsu girdi 36,2px iken kutu
      32,5px kalıyordu.
   Cozum: olcuyu Aura bildirir. Govde artik cercevenin ic yuzeyini boydan boya
   doldurur (tek merkez + tam yukseklikte tiklama alani); her ortam tek bir
   yukseklik basamagindan payini alir: 32 = araclar/filtreler, 36 = formulere,
   40 = Ayarlar alanlari. Dili: ikinci gorseldeki 1. model (Temel Dropdown) —
   ikon + etiket + chevron, acik kenarlik, secili satirda amber nokta + tik.
   ========================================================================== */

/* 1) sızıntı kaynaginda kesilir: buton hangi kabukta olursa olsun eski
      min-height'lerden boy almaz; olcuyu daima govde/cerceve verir */
.au-select > .au-sel-btn { min-height: 0; }

/* 2) ciplak ortam (Strateji): govde sercenin icini boydan boya doldurur.
      Dikey: metin/ikon/chevron tek merkeze oturur + tiklama alani yukselir.
      Yatay: govde serceyenin kalan genisligini alir; onceki gibi secenegin
      icerdigi kadar kalmayinca chevron her kutuda farkli mesafede yuzuyordu. */
#view-strategy .toolbar-select { height: 32px; padding: 0 12px; min-height: 0; }
#view-strategy .toolbar-select > .au-select { height: 100%; flex: 1 1 auto; }
#view-strategy .toolbar-select > .au-select > select { height: 100%; }
#view-strategy .st-filter-row .toolbar-select { min-height: 0; }
#view-strategy .st-filter-row > .button { min-height: 0; height: 32px; }
#view-strategy .toolbar-select:has(.au-select.is-open) { box-shadow: 0 0 0 3px var(--au-amber-soft); }
/* chevron payi tek olcek: sol kenarda ikon 13px (12 dolgu + 1 kenarlik)
   icerde, sagda chevron da 13px icerde kalsin => kutu ici simetrik */
#view-strategy .au-sel-btn { padding: 0 0 0 2px; }

/* 3) cerceveli ortam: kutu komsu girdiyle TAM ayni yukseklikte */
#view-settings .field > input:not([type="checkbox"]),
#view-settings .field > .au-select { height: 40px; }
#view-alarms .alert-form input:not([type="checkbox"]),
#view-alarms .alert-form .au-select,
#view-channels .alert-form input:not([type="checkbox"]),
#view-channels .alert-form .au-select,
#view-channels .channel-policy .au-select,
#view-channels .channel-policy input,
#view-ideas .module-row .au-select { height: 36px; }
#view-ideas .chat-tools .au-select,
#view-ideas .chat-tools .btn.small { height: 32px; }
#view-ideas .dialog .au-select, #accountModal .au-select { height: 40px; }
#view-alarms .alert-form .au-select > select,
#view-channels .channel-policy .au-select > select,
#view-ideas .module-row .au-select > select,
#view-ideas .chat-tools .au-select > select,
#view-settings .field .au-select > select,
#view-ideas .dialog .au-select > select,
#accountModal .au-select > select { height: 100%; }

/* 4) hover'da chevron canlanir (ikon ailesinin ortak hareketi) */
.au-select:hover > .au-sel-btn .au-sel-ic { color: var(--au-amber); }

/* cerceveli ortamda chevron da tek olcekten: kenardan 12px (sol bosluklar
   ortama gore kalir — Ayarlar 11, alarm 10, sohbet 8) */
#view-settings .field .au-sel-btn, #view-ideas .dialog .au-sel-btn, #accountModal .au-sel-btn,
#view-ideas .module-row .au-sel-btn, #view-channels .channel-policy .au-sel-btn,
#view-alarms .alert-form .au-sel-btn, #view-channels .alert-form .au-sel-btn,
#view-ideas .chat-tools .au-sel-btn { padding-right: 12px; }

/* ---------- secili satir: amber nokta + sagda tik (1. model) ---------- */
.au-sel-opt { min-height: 34px; }
.au-sel-name { flex: 1 1 auto; }
.au-sel-check {
  margin-left: auto;
  flex: none;
  color: var(--au-amber);
  opacity: 0;
  transform: scale(.7);
  transition: opacity .16s var(--au-ease), transform .2s var(--au-ease);
}
.au-sel-opt.is-selected .au-sel-check { opacity: 1; transform: none; }

/* secili satirin halkasi/noktası koyu amber (#f5a94a) ile cizilmisti; acik
   temada ayari kaciyor — Aura'nin acik amberi (#dd8a2b) ile ayni dile gelir */
html[data-theme="light"] .au-sel-opt.is-selected { box-shadow: inset 0 0 0 1px rgba(221, 138, 43, .38); }
html[data-theme="light"] .au-sel-opt.is-selected .au-sel-dot { box-shadow: 0 0 0 3px var(--au-amber-soft), 0 0 10px 1px rgba(221, 138, 43, .45); }
html[data-theme="light"] .au-sel-opt.is-active { box-shadow: inset 0 0 0 1px rgba(221, 138, 43, .3); }

@media (prefers-reduced-motion: reduce) {
  .au-sel-check { transition: none; }
}

/* ==========================================================================
   FAZ 19 — Fikir ajani karti: baslik satiri ezilmiyor, bos govde artik bos degil

   Kullanici: "fikir ajani penceresi tam yerlesmemis gibi, icerik gorunmuyor,
   icine dogru kaymis". Olculen iki ayri kusur:
   1) Kart 370px'lik sag kolonda; .chat-tools ise 257px (AuSelect'in JS'ten
      gelen min-width:181px'i + 8px bosluk + "Temizle" 68px) ve kuculmuyor.
      Tek satirlik flex baslikta kimlik kutusuna 30.8px kaliyordu -> "Once
      OpenCode'a baglan" uc satira kiriliyor, baslik 94px'e sisuyordu.
   2) OpenCode bagli degilken setConnection() gecmisi hic boyamadan donuyordu
      -> .messages bombos, kart'in ici kuyu gibi gorunuyordu.
   Baslik artik sariliyor (genis tek satir, dar iki satir); bos durum ise Aura
   dilinde bir karsilama paneli ve markup'ta duruyor, ilk boyamada da gorunur.
   ========================================================================== */

/* 1) baslik: araca yer yoksa arac alt satira iner, kimlik ezilmez */
#view-ideas .chat-head { flex-wrap: wrap; row-gap: 10px; padding: 13px 15px 12px; }
#view-ideas .chat-head > div:not(.chat-tools):not(.agent-icon) { flex: 1 1 130px; min-width: 0; }
#view-ideas .chat-tools { flex: 0 1 auto; min-width: 0; }
#view-ideas .chat-heading { line-height: 1.3; }
/* durum yazisi uzun (teknik hata metinleri): iki satirdan fazlasi basligi sisirir */
#view-ideas .chat-state {
  line-height: 1.35;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 2) govde: kaydirma cubugu Aura ciftiyle (standart + webkit).
   Oluk burada BILEREK ayrilmiyor: .welcome kutusu kartta 15/15 yaslama
   ortalanmali; surekli rezerve edilen 10px oluk sag boslugu 26px'e
   cikarip karsilama panelini basligina gore kaydiriyordu. */
#view-ideas .messages {
  scrollbar-color: rgba(148, 163, 184, .35) transparent;
  overscroll-behavior: contain;
}
#view-ideas .messages::-webkit-scrollbar-track { background: transparent; }
#view-ideas .messages::-webkit-scrollbar-thumb:hover { background: rgba(245, 169, 74, .38); }
html[data-theme="light"] #view-ideas .messages::-webkit-scrollbar-thumb { background: rgba(16, 22, 38, .16); }

/* 3) karsilama paneli: amber halesi olan baslik + sirali adim kutulari */
#view-ideas .welcome {
  align-self: center;
  margin: auto;
  max-width: 326px;
  padding: 20px 18px 16px;
  border: 1px solid var(--au-line);
  border-radius: 18px;
  background:
    radial-gradient(120% 78% at 50% 0%, var(--au-amber-soft), rgba(255, 255, 255, 0) 62%),
    var(--au-card-2);
  box-shadow: var(--au-shadow), inset 0 1px 0 rgba(255, 255, 255, .04);
  text-align: center;
  color: var(--au-muted);
  font-size: 12.5px;
  animation: auWelcome .38s var(--au-ease) both;
}
#view-ideas .welcome .agent-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 15px;
  box-shadow: 0 0 0 5px var(--au-amber-soft), 0 0 26px rgba(245, 169, 74, .24);
}
#view-ideas .welcome .agent-icon .od-icon { width: 21px; height: 21px; }
#view-ideas .welcome strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--au-text);
}
#view-ideas .welcome p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--au-muted);
  text-wrap: pretty;
}
#view-ideas .welcome ol {
  counter-reset: au-adim;
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
#view-ideas .welcome li {
  counter-increment: au-adim;
  position: relative;
  margin: 0;
  padding: 8px 10px 8px 32px;
  border-radius: 11px;
  border: 1px solid var(--au-line);
  background: rgba(255, 255, 255, .022);
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--au-muted);
}
#view-ideas .welcome li::before {
  content: counter(au-adim);
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--au-amber);
  background: var(--au-amber-soft);
}
html[data-theme="light"] #view-ideas .welcome {
  border-color: var(--au-line-strong);
  background:
    radial-gradient(120% 78% at 50% 0%, rgba(221, 138, 43, .12), rgba(255, 255, 255, 0) 62%),
    var(--au-card);
}
html[data-theme="light"] #view-ideas .welcome li {
  border-color: var(--au-line);
  background: rgba(16, 22, 38, .028);
}

@keyframes auWelcome {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  #view-ideas .welcome { animation: none; }
}
/* ============================================================
   FAZ 20 - Sohbet arac seridi: iki kutu artik TEK OLCU AILESI
   Olculen (370px kolon, .chat-head 106px, rig :8147): model kutusunun
   gorunen etiketi 15px/400 (miras govde fontunu devraliyor), yanindaki
   "Temizle" 12px/600 -> ayni satirda iki farkli tipografi. Yari cap
   9px vs 10px, kenarlik rgba(255,255,255,.07) vs .13, sol ic bosluk
   8px vs 11px. Cercevenin zemini kart rengiyle BIREBIR idi
   (rgb(17,20,27) = --au-card) -> kutu kartta eriyor, butonun uzerinde
   ise .02 beyaz vardi. Serit sagda yaslanip solunda 96.8px bosluk
   birakiyordu.
   ============================================================ */

/* 1) etiket: butonun olcusune cekilir (12px/600, yatay 11px) */
#view-ideas .chat-tools .au-sel-btn { font-size: 12px; font-weight: 600; padding: 0 12px 0 11px; }

/* 2) cerceve: yari cap/kenarlik/zemin olarak butonun cifti */
#view-ideas .chat-tools .au-select::before {
  border-radius: 10px;
  border-color: var(--au-line-strong);
  background: rgba(255, 255, 255, .02);
}

/* 3) hover dili de esitlenir: buton kehribara donusuyor, cerceve soluk kaliyordu */
#view-ideas .chat-tools .au-select:hover:not(.is-open):not(:focus-within)::before {
  border-color: rgba(245, 169, 74, .4);
  background: var(--au-amber-soft);
}

/* 4) devre disi birakma cift katmanliydi (.6 * .55 = .33) -> tek katman .6 */
#view-ideas .chat-tools .au-select.is-disabled .au-sel-btn { opacity: 1; }

/* buton kirpilmamali: serit tam genislige yayildiginda sabit kalan parca o */
#view-ideas .chat-tools .btn.small { flex: none; }

/* 5) yerlesim: 370px kolonda (aurora 1180px kuralinin tam tamami) serit kart
   icinde yastan yasa bir cubuk olur; solundaki 96.8px bosluk model kutusunun
   icine dolar. Kisaltma: <=1180px'de kart zaten tam genislikte, serit eski
   gibi baslik satirinin saginda duruyor. */
@media (min-width: 1181px) {
  #view-ideas .chat-tools { flex: 1 1 100%; margin-left: 0; }
  #view-ideas .chat-tools .au-select { flex: 1 1 auto; }
}

/* ==========================================================================
   FAZ 21 — KRONOLOJİ: AKILLI AKIŞ (sol kategori paneli + sağ detay kartları)

   Kullanıcı referans görseldeki 4. modeli seçti: iki kolon (~%19 / ~%81),
   solda seviye sayıları, sağda sekmeler + arama + tarih + tür ve dokununca
   açılan kompakt kartlar. Görseldeki "Başarılı" kategorisi ile "Kaynak" ve
   "Kod" alanları sunucuda karşılıksız: events tablosu yalnız id, ts, level,
   message taşır ve level kümesi ERROR / WARN / AUTH / INFO. Bu yüzden panel
   gerçek seviyeleri sayar (AUTH oturum olarak ayrı satırda), detay da
   yalnız gerçekten taşınan alanları gösterir; IP mesaj metninde yazılıysa
   görünür. Uydurma alan yerine Kayıt No, Tür ve her iki saat damgası var.
   Görseldeki 900px gibi içerik sınırları bilinçli olarak alınmadı: kolon
   dolusu akış istendi. Ölçü dili: chip 24 / kontrol kutusu 32 / kart radius 14.
   ========================================================================== */

/* ---------- seviye rampası: tek yerden boyar, dört tüketici okur ---------- */
#view-events {
  --ev-error: var(--st-red);
  --ev-error-soft: rgba(255, 122, 114, .12);
  --ev-error-line: rgba(255, 122, 114, .26);
}
#view-events [data-ev-cat="all"]   { --ev-c: var(--au-text); --ev-soft: rgba(255, 255, 255, .055); --ev-line: var(--au-line-strong); }
#view-events [data-ev-cat="error"] { --ev-c: var(--ev-error); --ev-soft: var(--ev-error-soft); --ev-line: var(--ev-error-line); }
#view-events [data-ev-cat="warn"]  { --ev-c: var(--au-amber); --ev-soft: var(--au-amber-soft); --ev-line: rgba(245, 169, 74, .3); }
#view-events [data-ev-cat="auth"]  { --ev-c: var(--au-mint);  --ev-soft: var(--au-mint-soft);  --ev-line: rgba(65, 216, 163, .28); }
#view-events [data-ev-cat="info"]  { --ev-c: var(--au-blue);  --ev-soft: var(--au-blue-soft);  --ev-line: rgba(90, 169, 255, .26); }
html[data-theme="light"] #view-events { --ev-error-soft: rgba(214, 69, 65, .1); --ev-error-line: rgba(214, 69, 65, .24); }
html[data-theme="light"] #view-events [data-ev-cat="all"]  { --ev-soft: rgba(16, 22, 38, .055); --ev-line: rgba(16, 22, 38, .16); }
html[data-theme="light"] #view-events [data-ev-cat="warn"] { --ev-line: rgba(221, 138, 43, .32); }
html[data-theme="light"] #view-events [data-ev-cat="auth"] { --ev-line: rgba(15, 159, 117, .26); }
html[data-theme="light"] #view-events [data-ev-cat="info"] { --ev-line: rgba(47, 127, 212, .24); }

/* ---------- iki kolon: %19 kategori / %81 akış, boşluk payı kolonlarda ---------- */
#view-events .ev-layout {
  display: grid;
  grid-template-columns: minmax(0, 19fr) minmax(0, 81fr);
  gap: 14px;
  align-items: start;
}
/* Üst kenar referansı: iki kolonun ilk kartı (.ev-cats ve .ev-tools) aynı hizada
   başlar. Eski .ev-stream-head başlığı kaldırıldı — JS tarafı #evListTitle ve
   #evCount yokluğunu zaten null-guard ile karşılıyor. */
#view-events .ev-stream { display: grid; gap: 12px; min-width: 0; }

/* ---------- sol panel: yapışkan, kartla aynı yüzey dilinde ----------
   .panel:hover lift'i bu kolonda istenmez: panel kaydırma sırasında yerinde
   durur, zıplaması referans tasarımın 'sabit özet' davranışını bozar. */
#view-events .ev-cats { position: sticky; top: 18px; display: grid; gap: 12px; padding: 16px; }
#view-events .ev-cats:hover { transform: none; border-color: var(--au-line); }
#view-events .ev-cats-foot { margin: 0; padding-top: 2px; border-top: 1px solid var(--au-line); font-size: 11px; color: var(--au-dim); }
#view-events .ev-cat-list { display: grid; gap: 6px; }
#view-events .ev-cat {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 10px;
  margin: 0;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: rgba(255, 255, 255, .022);
  color: var(--au-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s var(--au-ease), background .2s var(--au-ease), box-shadow .2s var(--au-ease);
}
#view-events .ev-cat:hover { border-color: var(--au-line-strong); background: rgba(255, 255, 255, .05); }
#view-events .ev-cat:focus-visible { outline: none; border-color: rgba(245, 169, 74, .45); box-shadow: 0 0 0 3px var(--au-amber-soft); }
/* seçili satır amber: sayfadaki tüm seçimlerin ortak dili (.filter-chip.is-active) */
#view-events .ev-cat.is-active { border-color: rgba(245, 169, 74, .34); background: var(--au-amber-soft); }
#view-events .ev-cat-ic { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: var(--ev-c); background: var(--ev-soft); }
#view-events .ev-cat-name { min-width: 0; font-size: 12.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-events .ev-cat-n { font-size: 13px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ev-c); }
#view-events .ev-cat-bar { grid-column: 1 / -1; height: 3px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; }
#view-events .ev-cat-bar i { display: block; height: 100%; border-radius: 999px; background: var(--ev-c); transition: width .45s var(--au-ease); }
html[data-theme="light"] #view-events .ev-cat { background: #ffffff; }
html[data-theme="light"] #view-events .ev-cat:hover { background: var(--au-card-2); }
html[data-theme="light"] #view-events .ev-cat-bar { background: rgba(16, 22, 38, .08); }

/* ---------- araç şeridi: sekmeler + arama + iki açılır + temizle ----------
   Yükseklik tek basamak: 24px çip + 3px dolgu + 1px kenarlık = 32px, tıpkı
   arama girdisi ve açılır kutular gibi. Şerit içinde iki farklı Ölçü olsaydı
   Faz 18'de kesilen 'kutular farklı boylarda' kusuru burada yeniden doğardı. */
#view-events .ev-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 11px;
  border: 1px solid var(--au-line);
  border-radius: 13px;
  background: rgba(255, 255, 255, .022);
}
#view-events .ev-tools .sig-filters { flex: none; }
#view-events .ev-tools .filter-chip { min-height: 24px; padding: 0 10px; font-size: 11.5px; }
#view-events .ev-reset { margin-left: auto; flex: none; }

#view-events .ev-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 200px;
  min-width: 0;
  height: 32px;
  padding: 0 9px 0 11px;
  border: 1px solid var(--au-line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, .02);
  color: var(--au-dim);
  transition: border-color .2s var(--au-ease), box-shadow .2s var(--au-ease), background .2s var(--au-ease);
}
#view-events .ev-search:hover { border-color: rgba(245, 169, 74, .28); }
#view-events .ev-search:focus-within { border-color: rgba(245, 169, 74, .45); box-shadow: 0 0 0 3px var(--au-amber-soft); background: rgba(255, 255, 255, .04); }
#view-events .ev-search > svg { flex: none; }
#view-events .ev-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--au-text);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
}
#view-events .ev-search input::placeholder { color: var(--au-dim); font-weight: 500; }
#view-events .ev-search-clear {
  display: grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .09);
  color: var(--au-muted);
  cursor: pointer;
  transition: background .18s, color .18s;
}
#view-events .ev-search-clear:hover { background: var(--au-amber-soft); color: var(--au-amber); }
html[data-theme="light"] #view-events .ev-tools { background: #ffffff; }
html[data-theme="light"] #view-events .ev-search { background: var(--au-card-2); }
html[data-theme="light"] #view-events .ev-search:focus-within { background: #ffffff; }
html[data-theme="light"] #view-events .ev-search-clear { background: rgba(16, 22, 38, .09); }

/* ---------- açılır kutular (AuSelect): çerçeve etikette, gövde kutuyu doldurur ---------- */
#view-events .ev-pick { display: flex; align-items: center; gap: 8px; flex: none; }
#view-events .ev-pick-label { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--au-dim); }
#view-events .ev-pick-box {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px 0 11px;
  border: 1px solid var(--au-line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, .02);
  color: var(--au-dim);
  cursor: pointer;
  transition: border-color .2s var(--au-ease), box-shadow .24s var(--au-ease), background .2s;
}
#view-events .ev-pick-box:hover { border-color: rgba(245, 169, 74, .4); background: var(--au-amber-soft); }
#view-events .ev-pick-box > .au-select { height: 100%; display: block; flex: 1 1 auto; }
#view-events .ev-pick-box > .au-select > select { height: 100%; }
#view-events .ev-pick .au-sel-btn { padding: 0; }
#view-events .ev-pick .au-sel-val { font-size: 12px; font-weight: 600; }
#view-events .ev-pick-box:has(.au-select.is-open) { border-color: rgba(245, 169, 74, .5); box-shadow: 0 0 0 3px var(--au-amber-soft); background: var(--au-amber-soft); }
html[data-theme="light"] #view-events .ev-pick-box { background: var(--au-card-2); }

/* ---------- kart: kompakt satır, dokununca tam kayıt ---------- */
#view-events .ev-list { display: grid; gap: 8px; min-width: 0; }
#view-events .ev-card {
  border: 1px solid var(--au-line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0) 42%), var(--au-card);
  overflow: hidden;
  transition: border-color .22s var(--au-ease), box-shadow .22s var(--au-ease);
}
#view-events .ev-card:hover { border-color: var(--au-line-strong); box-shadow: 0 16px 32px -26px rgba(0, 0, 0, .95); }
#view-events .ev-card.is-open { border-color: var(--ev-line); }
#view-events .ev-card-head {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
#view-events .ev-card-head:focus-visible { outline: none; box-shadow: inset 0 0 0 2px rgba(245, 169, 74, .45); }
#view-events .ev-card-ic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; color: var(--ev-c); background: var(--ev-soft); transition: transform .22s var(--au-ease); }
#view-events .ev-card:hover .ev-card-ic { transform: scale(1.06); }
#view-events .ev-card-main { display: grid; gap: 2px; min-width: 0; }
#view-events .ev-card-title { font-size: 13px; font-weight: 600; letter-spacing: -.01em; color: var(--au-text); overflow-wrap: anywhere; }
#view-events .ev-card[data-ev-cat="error"] .ev-card-title { color: var(--ev-error); }
#view-events .ev-card[data-ev-cat="warn"] .ev-card-title { color: var(--au-amber); }
#view-events .ev-card-text { font-size: 11.5px; line-height: 1.45; color: var(--au-muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; line-clamp: 1; overflow: hidden; }
#view-events .ev-card-side { display: flex; align-items: center; gap: 10px; }
#view-events .ev-card-side time { font-size: 11px; color: var(--au-dim); white-space: nowrap; font-variant-numeric: tabular-nums; transition: color .2s var(--au-ease); }
#view-events .ev-card:hover .ev-card-side time { color: var(--au-muted); }
#view-events .ev-badge { flex: none; padding: 3px 9px; font-size: 10.5px; color: var(--ev-c); background: var(--ev-soft); border-color: var(--ev-line); }
#view-events .ev-card-chev { flex: none; color: var(--au-dim); transition: transform .26s var(--au-ease), color .2s; }
#view-events .ev-card.is-open .ev-card-chev { transform: rotate(180deg); color: var(--au-amber); }
html[data-theme="light"] #view-events .ev-card { background: linear-gradient(180deg, rgba(16, 22, 38, .018), rgba(16, 22, 38, 0) 42%), #ffffff; }

/* ---------- detay: 0fr -> 1fr satır açılır, görüşmediğinde erişilemez ---------- */
#view-events .ev-detail {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .28s var(--au-ease), visibility 0s linear .28s;
}
#view-events .ev-card.is-open .ev-detail { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .28s var(--au-ease); }
#view-events .ev-detail-in { min-height: 0; overflow: hidden; display: grid; gap: 11px; padding: 0 12px; border-top: 1px solid transparent; }
#view-events .ev-card.is-open .ev-detail-in { padding: 11px 12px 12px; border-top-color: var(--au-line); }
#view-events .ev-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 10px 14px; margin: 0; }
#view-events .ev-field { display: grid; align-content: start; gap: 3px; min-width: 0; }
#view-events .ev-field dt { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--au-dim); }
#view-events .ev-field dd { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--au-text); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
#view-events .ev-field-full { grid-column: 1 / -1; }
#view-events .ev-lvl { display: inline-flex; align-self: start; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--ev-line); background: var(--ev-soft); color: var(--ev-c); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; }
#view-events .ev-code { display: inline-block; padding: 1px 6px; border-radius: 7px; border: 1px solid var(--au-line); background: rgba(255, 255, 255, .05); font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace; font-size: 12px; color: var(--au-text); user-select: all; cursor: text; }
#view-events .ev-detail-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#view-events .ev-detail-foot .text-button { margin-top: 0; }
#view-events .ev-detail-hint { font-size: 11px; color: var(--au-dim); }
html[data-theme="light"] #view-events .ev-code { background: rgba(16, 22, 38, .04); }

/* ---------- boş durum + yükleme iskeleti ---------- */
#view-events .ev-empty {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 9px;
  padding: 34px 18px;
  border: 1px dashed var(--au-line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, .015);
  text-align: center;
}
#view-events .ev-empty-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--au-muted); background: rgba(255, 255, 255, .05); }
#view-events .ev-empty strong { font-size: 13.5px; letter-spacing: -.01em; }
#view-events .ev-empty p { margin: 0; max-width: 420px; font-size: 12px; line-height: 1.5; color: var(--au-dim); }
#view-events .ev-empty .text-button { margin-top: 4px; }
#view-events .ev-skel-list { display: grid; gap: 8px; }
#view-events .ev-skel { position: relative; height: 52px; border-radius: 14px; border: 1px solid var(--au-line); background: rgba(255, 255, 255, .022); overflow: hidden; }
#view-events .ev-skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .05), transparent); transform: translateX(-100%); animation: ev-skel-gecis 1.5s var(--au-ease) infinite; }
@keyframes ev-skel-gecis { to { transform: translateX(100%); } }
html[data-theme="light"] #view-events .ev-empty { background: #ffffff; border-top-color: var(--au-line); }
html[data-theme="light"] #view-events .ev-empty-ic { background: rgba(16, 22, 38, .05); }
html[data-theme="light"] #view-events .ev-skel { background: rgba(16, 22, 38, .03); }
html[data-theme="light"] #view-events .ev-skel::after { background: linear-gradient(90deg, transparent, rgba(16, 22, 38, .05), transparent); }

/* ---------- FAZ 29: sayfa seridi (50 kayıt sonrası ilerler) ---------- */
#view-events .ev-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 2px; }
#view-events .ev-pager-note { flex: 1 1 auto; margin: 0; text-align: center; font-size: 11.5px; color: var(--au-dim); font-variant-numeric: tabular-nums; }
#view-events .ev-pager .text-button > svg { transition: transform .2s var(--au-ease); }
#view-events .ev-pager .text-button:hover:not(:disabled) > svg { transform: translateX(2px); }
/* Sprite'te sola bakan şevron yok: tek aile korunsun diye sağ olan çevriliyor. */
#view-events .ev-pager .ev-page-prev > svg { transform: rotate(180deg); }
#view-events .ev-pager .ev-page-prev:hover:not(:disabled) > svg { transform: rotate(180deg) translateX(2px); }
#view-events .ev-pager .text-button:disabled { opacity: .4; cursor: default; }

/* hidden niteliği display:inline-flex'i yenemez: kabuk FAZ 21'den önce de
   bu sayfada .text-button kullanıyordu, ölçü aynı kalsın diye burada kesilir. */
#view-events .ev-pager[hidden], #view-events .ev-reset[hidden], #view-events .ev-search-clear[hidden] { display: none; }

/* ---------- tablet + dar laptop: kategori paneli tek kolonda kompakt yatay şeride iner ---------- */
/* Eşik 1180px: #view-channels .channel-layout ve #view-ideas .layout da aynı
   basamakta tek kolona devriliyor. 1040 bırakılsaydı 1041-1180 bandında %19
   kolon ~165px'e iner, ad sütunu (68px gerekiyor) 63px'te kalıp "Toplam…"
   olarak kırpılırdı. Şerit genişliği 158px = 16 dolgu + 2 kenarlık + 28 ikon
   + 2x10 boşluk + 16 sayaç + 68 ad + 7 nefes; 150px'te ad sütunu 67.6px'ti. */
@media (max-width: 1180px) {
  #view-events .ev-layout { grid-template-columns: minmax(0, 1fr); }
  #view-events .ev-cats { position: static; }
  #view-events .ev-cat-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(158px, 1fr);
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, .35) transparent;
  }
  #view-events .ev-cat-list::-webkit-scrollbar { height: 8px; }
  #view-events .ev-cat-list::-webkit-scrollbar-track { background: transparent; }
  #view-events .ev-cat-list::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, .35); border-radius: 99px; }
}

@media (max-width: 760px) {
  #view-events .ev-tools { padding: 9px 10px; gap: 8px; }
  #view-events .ev-search { flex-basis: 100%; order: 3; }
  #view-events .ev-reset { margin-left: 0; }
  #view-events .ev-card-head { grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 10px; }
  #view-events .ev-card-ic { width: 28px; height: 28px; }
  #view-events .ev-card-side { grid-column: 1 / -1; gap: 9px; }
  #view-events .ev-card-side time { margin-left: auto; }
  #view-events .ev-fields { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  #view-events .ev-cat,
  #view-events .ev-cat-bar i,
  #view-events .ev-card,
  #view-events .ev-card-ic,
  #view-events .ev-card-chev,
  #view-events .ev-card-side time,
  #view-events .ev-detail,
  #view-events .ev-search,
  #view-events .ev-pick-box,
  #view-events .ev-pager .text-button > svg { transition: none; }
  #view-events .ev-card:hover .ev-card-ic { transform: none; }
  #view-events .ev-skel::after { animation: none; }
}


/* =====================================================================
   FAZ 22 — AÇILIR MÜZİK KÜTÜPHANESİ (.ml-*)
   Üç sütun: nav (bölümler + listeler) · ana (arama, filtreler, vitrin,
   satırlar) · yan (şimdi çalıyor, sıra, seçili liste). Altta transport
   şeridi. Pencere yalnız ARAYÜZDÜR: ses motoru onda bağlı değildir,
   kapatılınca çalma sürer.
   ===================================================================== */
.ml-modal { padding: 18px 16px; }
.ml-dialog {
  width: min(1200px, 100%);
  max-height: min(88vh, 800px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
/* kapan düğmesi başlık satırının sağında kalacak kadar pay */
.ml-dialog .au-dialog-close { top: 14px; right: 14px; z-index: 2; }

.ml-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 54px 14px 18px;
  border-bottom: 1px solid var(--au-line);
  background: linear-gradient(180deg, rgba(245, 169, 74, .06), transparent);
}
.ml-head-mark {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 169, 74, .3);
  border-radius: 10px;
  background: var(--au-amber-soft);
  color: var(--au-amber);
  box-shadow: 0 0 20px -10px rgba(245, 169, 74, .9);
}
.ml-head-mark .icon { width: 15px; height: 15px; }
.ml-head-copy { min-width: 0; flex: 1 1 auto; }
.ml-dialog h2.ml-head-copy, .ml-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--au-text);
}
.ml-sub { margin: 2px 0 0; font-size: 10.5px; color: var(--au-dim); }

/* API bağlantı rozeti — okuma/kota/hata durumunu dürüstçe söyler */
.ml-api {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border: 1px solid var(--au-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--au-muted);
  white-space: nowrap;
}
.ml-api i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--au-dim);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .05);
}
.ml-api[data-state="ok"] { color: var(--au-mint); border-color: rgba(65, 216, 163, .3); background: var(--au-mint-soft); }
.ml-api[data-state="ok"] i { background: var(--au-mint); box-shadow: 0 0 0 3px rgba(65, 216, 163, .16); animation: ml-nabiz 2.4s ease-in-out infinite; }
.ml-api[data-state="quota"] { color: var(--au-amber); border-color: rgba(245, 169, 74, .34); background: var(--au-amber-soft); }
.ml-api[data-state="quota"] i { background: var(--au-amber); }
.ml-api[data-state="down"] { color: #ff8f8f; border-color: rgba(255, 122, 122, .34); background: rgba(255, 122, 122, .1); }
.ml-api[data-state="down"] i { background: #ff8f8f; }
.ml-api[data-state="wait"] i { animation: ml-nabiz 1.1s ease-in-out infinite; }
@keyframes ml-nabiz { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Satırlar TAVANLI: satır izleyicisi (grid-template-rows) bildirilmezse
   satır "auto" kalır ve içerik uzayınca .ml-main kutuyu aşar; .ml-dialog
   overflow:hidden olduğu için listenin altı kesilir, kaydırma çubuğu hiç
   doğmaz (kullanıcının 2. görüntüsündeki "aşağı kaydırmıyor" kusuru). */
.ml-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 274px;
  grid-template-rows: minmax(0, 1fr);
}

/* ------------------------------- nav ------------------------------- */
.ml-nav {
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .12) transparent;
  scrollbar-gutter: stable;
  padding: 12px 10px;
  border-right: 1px solid var(--au-line);
  background: rgba(255, 255, 255, .014);
}
.ml-nav::-webkit-scrollbar { width: 8px; }
.ml-nav::-webkit-scrollbar-track { background: transparent; }
.ml-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .1); border-radius: 99px; }
.ml-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 30px;
  margin-bottom: 2px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--au-muted);
  font-size: 11.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color .18s, background .2s, border-color .2s, box-shadow .25s, transform .16s var(--au-ease);
}
.ml-tab .icon { flex: none; width: 14px; height: 14px; opacity: .8; transition: opacity .2s, transform .3s var(--au-ease); }
.ml-tab span:first-of-type { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-tab:hover { color: var(--au-text); background: rgba(255, 255, 255, .045); }
.ml-tab:hover .icon { opacity: 1; transform: translateX(1px); }
.ml-tab:active { transform: scale(.985); }
.ml-tab:focus-visible { outline: none; border-color: var(--au-amber); box-shadow: 0 0 0 3px var(--au-amber-soft); }
.ml-tab.is-active {
  color: var(--au-amber);
  background: var(--au-amber-soft);
  border-color: rgba(245, 169, 74, .26);
  box-shadow: 0 0 18px -10px rgba(245, 169, 74, .9);
}
.ml-tab.is-active .icon { opacity: 1; }
.ml-count {
  flex: none;
  margin-left: auto;
  min-width: 18px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  font-size: 9.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--au-dim);
}
.ml-tab.is-active .ml-count { background: rgba(245, 169, 74, .2); color: var(--au-amber); }

.ml-nav-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 15px 7px 7px 4px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--au-dim);
}
/* FAZ 23: "+" 19px'ken nav'ın sag kenarına yapisik çikiyordu (kenara kaymis
   sikayeti). 24px hedef + saga 7px nefes: artik satirin kendi hizasi var. */
.ml-add-list {
  flex: none;
  margin-left: auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--au-line);
  border-radius: 8px;
  background: transparent;
  color: var(--au-dim);
  cursor: pointer;
  transition: color .18s, background .2s, border-color .2s, transform .2s var(--au-ease), box-shadow .25s;
}
.ml-add-list .icon { width: 12px; height: 12px; }
.ml-add-list:hover {
  color: var(--au-amber);
  background: var(--au-amber-soft);
  border-color: rgba(245, 169, 74, .35);
  transform: rotate(90deg);
  box-shadow: 0 0 14px -7px rgba(245, 169, 74, .9);
}
.ml-add-list:focus-visible { outline: none; border-color: var(--au-amber); box-shadow: 0 0 0 3px var(--au-amber-soft); }

.ml-name-row { margin: 0 2px 8px; }
.ml-name-hint { margin: 0 0 4px; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--au-dim); }
.ml-name-input {
  width: 100%;
  height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(245, 169, 74, .4);
  border-radius: 9px;
  background: var(--au-card-2);
  color: var(--au-text);
  font-size: 11.5px;
  box-shadow: 0 0 0 3px var(--au-amber-soft);
}
.ml-name-input:focus { outline: none; }

.ml-nav-list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ml-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background .2s, border-color .2s, transform .16s var(--au-ease);
}
.ml-nav-link:hover { background: rgba(255, 255, 255, .045); border-color: var(--au-line); }
.ml-nav-link:active { transform: scale(.99); }
.ml-nav-item.is-active .ml-nav-link { background: var(--au-amber-soft); border-color: rgba(245, 169, 74, .26); }
.ml-nav-item.is-active .ml-nav-copy strong { color: var(--au-amber); }
.ml-nav-cover {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--au-line);
  border-radius: 8px;
  background: var(--au-card-2);
  color: var(--au-dim);
}
.ml-nav-cover .icon { width: 13px; height: 13px; }
.ml-nav-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ml-nav-copy { display: flex; min-width: 0; flex-direction: column; }
.ml-nav-copy strong {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--au-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ml-nav-copy em {
  margin-top: 1px;
  font-size: 9.5px;
  font-style: normal;
  color: var(--au-dim);
}
.ml-nav-empty { margin: 4px 6px; font-size: 10.5px; color: var(--au-dim); }

/* ------------------------------- ana ------------------------------- */
.ml-main {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.ml-search {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 16px 0;
  height: 36px;
  padding: 0 4px 0 11px;
  border: 1px solid var(--au-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  transition: border-color .22s, box-shadow .28s, background .22s;
}
.ml-search:focus-within {
  border-color: rgba(245, 169, 74, .45);
  background: rgba(255, 255, 255, .055);
  box-shadow: 0 0 0 3px var(--au-amber-soft), 0 0 24px -14px rgba(245, 169, 74, .9);
}
.ml-search .icon { flex: none; width: 14px; height: 14px; color: var(--au-dim); }
.ml-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--au-text);
  font-size: 12.5px;
}
.ml-search input:focus { outline: none; }
.ml-search input::placeholder { color: var(--au-dim); }
.ml-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.ml-search-go {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 169, 74, .3);
  border-radius: 9px;
  background: var(--au-amber-soft);
  color: var(--au-amber);
  cursor: pointer;
  transition: transform .18s var(--au-ease), box-shadow .25s, background .2s;
}
.ml-search-go .icon { width: 13px; height: 13px; }
.ml-search-go:hover { background: rgba(245, 169, 74, .2); box-shadow: 0 0 16px -8px rgba(245, 169, 74, 1); transform: translateX(1px); }
.ml-search-go:active { transform: scale(.92); }
.ml-search-go:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--au-amber-soft); }

/* FAZ 23 — arama önerileri. Öneriler native <datalist> ile işletim sisteminin
   gri kutusunda çiziliyordu ("yazıp arayınca çıkıyor" şikâyeti); artık Aura
   pop-over'i: aynı cam yüzey, aynı amber odak, klavye ile gezilir. */
.ml-suggest {
  position: fixed;
  z-index: 141;
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-height: 232px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .14) transparent;
  scrollbar-gutter: stable;
  padding: 6px;
  border: 1px solid var(--au-line-strong);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 44%), var(--au-card);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  box-shadow: 0 26px 58px -26px rgba(0, 0, 0, .9), 0 0 26px -14px rgba(245, 169, 74, .3), inset 0 1px 0 rgba(255, 255, 255, .05);
  animation: au-sel-pop .16s var(--au-ease) both;
}
.ml-suggest::-webkit-scrollbar { width: 8px; }
.ml-suggest::-webkit-scrollbar-track { background: transparent; }
.ml-suggest::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .1); border-radius: 99px; }
.ml-suggest-label {
  padding: 2px 8px 5px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--au-dim);
}
.ml-suggest-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--au-muted);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  transition: background .16s var(--au-ease), color .16s, border-color .2s;
}
.ml-suggest-item .icon { flex: none; width: 12px; height: 12px; opacity: .7; }
.ml-suggest-item span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ml-suggest-item:hover { background: rgba(255, 255, 255, .055); color: var(--au-text); border-color: var(--au-line); }
.ml-suggest-item.is-active { color: var(--au-amber); background: var(--au-amber-soft); border-color: rgba(245, 169, 74, .3); }
.ml-suggest-empty { padding: 7px 9px; font-size: 11px; color: var(--au-dim); }

/* FAZ 23 — filtre şeridi. İki kusur aynı yerden: (a) flex-wrap eşit olmayan
   genişliklerle kırpışık bir satır üretiyordu, (b) kutular native <select>
   olarak kalıyordu (AuSelect kapsamı dışıydı) ve çerçevesizdi. Artık eşit
   gözlü ızgara + Aura çerçeveli pop-over. */
.ml-filters {
  flex: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 9px 10px;
  align-items: end;
  margin: 11px 16px 0;
}
.ml-filter { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ml-filter > span {
  padding-left: 2px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--au-dim);
}
.ml-filter select { width: 100%; min-width: 0; }
/* ölçüyü ızgara verir: AuSelect'in içeriğe göre yazdığı satır içi min-width
   burada gözü kırardi */
.ml-filter .au-select { display: block; width: 100%; height: 30px; min-width: 0 !important; }
.ml-filter .au-select > select { height: 100%; width: 100%; min-width: 0 !important; border: 0; background: transparent; }
.ml-filter .au-select::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--au-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, .035);
  transition: border-color .2s var(--au-ease), box-shadow .24s var(--au-ease), background .2s;
}
.ml-filter .au-select:hover::before { border-color: var(--au-line-strong); }
.ml-filter .au-select:focus-within::before,
.ml-filter .au-select.is-open::before {
  border-color: rgba(245, 169, 74, .45);
  box-shadow: 0 0 0 3px var(--au-amber-soft);
  background: var(--au-card-2);
}
.ml-filter .au-sel-btn { padding: 0 26px 0 10px; min-height: 0; }
.ml-filter .au-sel-val { font-size: 11.5px; }
.ml-filter .au-sel-ic { width: 13px; height: 13px; }
.ml-bpm { display: flex; align-items: center; gap: 5px; height: 30px; }
.ml-bpm em { flex: none; font-style: normal; color: var(--au-dim); }
.ml-bpm input {
  flex: 1 1 auto;
  min-width: 0;
  height: 30px;
  padding: 0 6px;
  border: 1px solid var(--au-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, .035);
  color: var(--au-text);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.ml-bpm input:hover { border-color: var(--au-line-strong); }
.ml-bpm input:focus { outline: none; border-color: rgba(245, 169, 74, .45); box-shadow: 0 0 0 3px var(--au-amber-soft); }

.ml-note {
  flex: none;
  margin: 11px 16px 0;
  padding: 8px 11px;
  border: 1px solid var(--au-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
  font-size: 11.5px;
  color: var(--au-muted);
}
.ml-note[data-tip="error"] {
  border-color: rgba(255, 122, 122, .34);
  background: rgba(255, 122, 122, .09);
  color: #ffabab;
}
.ml-note[data-tip="info"] { border-color: rgba(245, 169, 74, .3); background: var(--au-amber-soft); color: var(--au-amber); }

.ml-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .12) transparent;
  scrollbar-gutter: stable;
  padding: 12px 16px 16px;
}
.ml-scroll::-webkit-scrollbar { width: 8px; }
.ml-scroll::-webkit-scrollbar-track { background: transparent; }
.ml-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .1); border-radius: 99px; }
.ml-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .18); }

/* vitrin: Epidemic Sound'un kendi küratörlü koleksiyonları */
.ml-rails { display: flex; flex-direction: column; gap: 18px; margin-bottom: 18px; }
.ml-rails:empty { display: none; }
.ml-rail-head { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.ml-rail-copy { min-width: 0; flex: 1 1 auto; }
.ml-rail-head h3 {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--au-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ml-rail-head span { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--au-dim); }
.ml-rail-play {
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 169, 74, .32);
  border-radius: 50%;
  background: var(--au-amber-soft);
  color: var(--au-amber);
  cursor: pointer;
  transition: transform .18s var(--au-ease), box-shadow .25s, background .2s;
}
.ml-rail-play .icon { width: 11px; height: 11px; }
.ml-rail-play:hover { background: rgba(245, 169, 74, .22); box-shadow: 0 0 18px -8px rgba(245, 169, 74, 1); transform: scale(1.06); }
.ml-rail-play:active { transform: scale(.92); }
.ml-rail-play:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--au-amber-soft); }
.ml-rail-items {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(128px, 1fr);
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .12) transparent;
}
.ml-rail-items::-webkit-scrollbar { height: 7px; }
.ml-rail-items::-webkit-scrollbar-track { background: transparent; }
.ml-rail-items::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .1); border-radius: 99px; }
.ml-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 7px;
  border: 1px solid var(--au-line);
  border-radius: 12px;
  background: var(--au-card-2);
  text-align: left;
  cursor: pointer;
  transition: border-color .22s, box-shadow .3s, transform .2s var(--au-ease), background .22s;
}
.ml-tile:hover {
  border-color: rgba(245, 169, 74, .34);
  background: #181d27;
  box-shadow: 0 14px 30px -22px rgba(0, 0, 0, .95), 0 0 22px -14px rgba(245, 169, 74, .8);
  transform: translateY(-2px);
}
.ml-tile:active { transform: translateY(0) scale(.99); }
.ml-tile:focus-visible { outline: none; border-color: var(--au-amber); box-shadow: 0 0 0 3px var(--au-amber-soft); }
.ml-tile-cover { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 9px; background: rgba(255, 255, 255, .04); display: grid; place-items: center; color: var(--au-dim); }
.ml-tile-cover .icon { width: 18px; height: 18px; }
.ml-tile-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ml-tile-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(6, 8, 14, .5);
  color: #fff;
  opacity: 0;
  transition: opacity .22s var(--au-ease);
}
.ml-tile-play .icon { width: 16px; height: 16px; }
.ml-tile:hover .ml-tile-play, .ml-tile:focus-visible .ml-tile-play { opacity: 1; }
.ml-tile strong {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--au-text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ml-tile em {
  font-size: 9.5px;
  font-style: normal;
  color: var(--au-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* satır listesi */
.ml-rows { display: flex; flex-direction: column; gap: 1px; margin: 0; padding: 0; list-style: none; }
.ml-rows:empty { display: none; }
.ml-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  transition: background .2s, border-color .2s, box-shadow .28s;
}
.ml-row:hover { background: rgba(255, 255, 255, .038); border-color: var(--au-line); }
.ml-row.is-now {
  background: linear-gradient(90deg, var(--au-amber-soft), rgba(255, 255, 255, .02) 62%);
  border-color: rgba(245, 169, 74, .24);
}
.ml-row.is-now .ml-row-title { color: var(--au-amber); }
.ml-row.is-drag { opacity: .42; }
.ml-row.is-above { box-shadow: inset 0 2px 0 var(--au-amber); }
.ml-row.is-below { box-shadow: inset 0 -2px 0 var(--au-amber); }
.ml-row-grip {
  flex: none;
  width: 16px;
  display: grid;
  place-items: center;
  color: var(--au-dim);
  opacity: .45;
  cursor: grab;
  transition: opacity .2s, color .2s;
}
.ml-row-grip .icon { width: 13px; height: 13px; }
.ml-row:hover .ml-row-grip { opacity: 1; color: var(--au-muted); }
.ml-row-grip:active { cursor: grabbing; }
.ml-row-cover {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--au-line);
  border-radius: 10px;
  background: var(--au-card-2);
  color: var(--au-dim);
  cursor: pointer;
  transition: border-color .22s, box-shadow .3s;
}
.ml-row-cover .icon { width: 14px; height: 14px; }
.ml-row-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ml-row-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(6, 8, 14, .52);
  color: #fff;
  opacity: 0;
  transition: opacity .2s var(--au-ease);
}
.ml-row-play .icon { width: 15px; height: 15px; }
.ml-row:hover .ml-row-play, .ml-row-cover:focus-visible .ml-row-play, .ml-row.is-now .ml-row-play { opacity: 1; }
.ml-row-cover:focus-visible { outline: none; border-color: var(--au-amber); box-shadow: 0 0 0 3px var(--au-amber-soft); }
.ml-row-copy { display: flex; min-width: 0; flex: 1 1 auto; flex-direction: column; }
.ml-row-title {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--au-text);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: color .18s;
}
.ml-row-title:hover { color: var(--au-amber); }
.ml-row-title:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--au-amber-soft); border-radius: 4px; }
.ml-row-artist {
  margin: 1px 0 0;
  font-size: 11px;
  color: var(--au-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ml-row-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 0; }
.ml-row-tags span {
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--au-dim);
}
.ml-row-now { flex: none; display: flex; align-items: flex-end; gap: 2px; height: 13px; }
.ml-row-now i {
  width: 2px;
  height: 100%;
  border-radius: 2px;
  background: var(--au-amber);
  transform-origin: 50% 100%;
  animation: ml-bars 1.05s ease-in-out infinite;
}
.ml-row-now i:nth-child(2) { animation-delay: .18s; }
.ml-row-now i:nth-child(3) { animation-delay: .36s; }
@keyframes ml-bars { 0%, 100% { transform: scaleY(.28); } 50% { transform: scaleY(1); } }
.ml-row-time {
  flex: none;
  min-width: 34px;
  text-align: right;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--au-dim);
}
.ml-row-tools { flex: none; display: flex; align-items: center; gap: 2px; opacity: .5; transition: opacity .2s; }
.ml-row:hover .ml-row-tools, .ml-row:focus-within .ml-row-tools { opacity: 1; }
.ml-dialog .ml-row-tool {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--au-muted);
  cursor: pointer;
  transition: color .18s, background .2s, border-color .2s, transform .16s var(--au-ease), box-shadow .25s;
}
.ml-dialog .ml-row-tool .icon { width: 14px; height: 14px; }
.ml-dialog .ml-row-tool:hover {
  color: var(--au-amber);
  background: var(--au-amber-soft);
  border-color: rgba(245, 169, 74, .28);
  box-shadow: 0 0 14px -7px rgba(245, 169, 74, .9);
}
.ml-dialog .ml-row-tool:active { transform: scale(.9); }
.ml-dialog .ml-row-tool:focus-visible { outline: none; border-color: var(--au-amber); box-shadow: 0 0 0 3px var(--au-amber-soft); }
.ml-dialog .ml-row-tool.is-on { color: var(--au-amber); }

.ml-blank { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 42px 20px; text-align: center; }
.ml-blank-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--au-line-strong);
  border-radius: 50%;
  color: var(--au-dim);
  animation: ml-yerdeg .5s var(--au-ease) both;
}
.ml-blank-mark .icon { width: 19px; height: 19px; }
@keyframes ml-yerdeg { from { opacity: 0; transform: translateY(6px) scale(.94); } }
.ml-blank p { margin: 0; max-width: 330px; font-size: 11.5px; line-height: 1.6; color: var(--au-muted); }
.ml-pager {
  flex: none;
  display: flex;
  justify-content: center;
  padding: 8px 16px 14px;
  border-top: 1px solid var(--au-line);
}

/* ------------------------------- yan ------------------------------- */
.ml-side {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 15px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .12) transparent;
  scrollbar-gutter: stable;
  border-left: 1px solid var(--au-line);
  background: rgba(255, 255, 255, .014);
}
/* yatay da kayabiliyor (<=1180px): yükseklik bildirilmezse owner'ın
   Chromium'u burada oklu 17px sistem çubuğuna düşüyor */
.ml-side::-webkit-scrollbar { width: 8px; height: 8px; }
.ml-side::-webkit-scrollbar-track { background: transparent; }
.ml-side::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .1); border-radius: 99px; }
.ml-side::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .18); }
/* FAZ 23: üç katman (şimdi çalıyor / sıra / seçili liste) aynı kart ölçüsünü
   paylaşsın — eskiden ilk katmansız, diğerleri çerçeveli olduğu için yan
   panel "orantısız/düzensiz" okunuyordu. */
.ml-now, .ml-side-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--au-line);
  border-radius: 14px;
  background: var(--au-card-2);
}
.ml-now { gap: 4px; animation: ml-giris .42s var(--au-ease) both; }
.ml-now-copy { display: flex; min-width: 0; flex: 1 1 auto; flex-direction: column; gap: 2px; }
@keyframes ml-giris { from { opacity: 0; transform: translateY(8px); } }
.ml-now-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--au-line);
  border-radius: 11px;
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(245, 169, 74, .16), transparent 60%),
    var(--au-card);
  color: var(--au-dim);
  box-shadow: 0 20px 40px -30px rgba(0, 0, 0, .95);
  transition: border-color .3s var(--au-ease), box-shadow .4s var(--au-ease);
}
.ml-now-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ml-now-fallback { width: 26px; height: 26px; }
.ml-now-cover.is-cover { border-color: rgba(245, 169, 74, .26); box-shadow: 0 20px 44px -28px rgba(0, 0, 0, .95), 0 0 30px -14px rgba(245, 169, 74, .7); }
.ml-now-cover.is-cover .ml-now-fallback { display: none; }
.ml-label {
  margin: 9px 0 0;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--au-dim);
}
.ml-side-block .ml-label { margin-top: 0; }
.ml-now-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.3;
  color: var(--au-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ml-now-artist {
  font-size: 11px;
  line-height: 1.4;
  color: var(--au-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* yan panelin tek düğme ölçüsü: 30px. Kartların içi aynı cetveli paylaşsın
   (eskiden .mp-tool 24px tabanla kalıyor, .button ise 40px'e geriyordu). */
.ml-now-actions, .ml-side-tools, .ml-list-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.ml-now-actions .mp-tool, .ml-side-tools .mp-tool, .ml-list-tools .mp-tool {
  width: 30px;
  height: 30px;
  border: 1px solid var(--au-line);
  background: rgba(255, 255, 255, .035);
  color: var(--au-muted);
}
.ml-now-actions .mp-tool .icon, .ml-side-tools .mp-tool .icon, .ml-list-tools .mp-tool .icon { width: 14px; height: 14px; }
.ml-now-actions .mp-tool.is-on, .ml-side-tools .mp-tool.is-on {
  color: var(--au-amber);
  border-color: rgba(245, 169, 74, .3);
  background: var(--au-amber-soft);
}
.ml-now-actions .mp-fav-on { display: none; }
.ml-now-actions .mp-tool.is-on .mp-fav-on { display: block; }
.ml-now-actions .mp-tool.is-on .mp-fav-off { display: none; }
.ml-side .button { min-height: 30px; height: 30px; padding: 0 11px; gap: 6px; border-radius: 9px; font-size: 11.5px; }
.ml-side .button .icon { width: 13px; height: 13px; }
.ml-playall { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.ml-list-tools .button { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.ml-side-title { font-size: 12.5px; font-weight: 600; color: var(--au-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-side-note { font-size: 10px; color: var(--au-dim); font-variant-numeric: tabular-nums; }
.ml-danger { color: #ff8f8f !important; border-color: rgba(255, 122, 122, .26) !important; }
.ml-danger:hover { background: rgba(255, 122, 122, .12); border-color: rgba(255, 122, 122, .45) !important; color: #ffb3b3 !important; }
.ml-hint { margin: 8px 0 0; font-size: 10px; line-height: 1.55; color: var(--au-dim); }
.ml-legal { margin-top: auto; padding-top: 4px; }
.ml-legal summary {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--au-dim);
  cursor: pointer;
  transition: color .2s;
}
.ml-legal summary:hover { color: var(--au-amber); }
.ml-legal p { margin: 7px 0 0; font-size: 10px; line-height: 1.6; color: var(--au-dim); }

/* ------------------------------ alt şerit ------------------------------ */
/* FAZ 23: şerit, sol kenar çubuğundaki transport'un AYNI cetvelini kullanir
   (34px cakar + 28px oncelik). Buton anatomisi artik kapsamsiz geldigi icin
   burada OS varsayilan gri kutular cizilmiyor. */
.ml-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-top: 1px solid var(--au-line);
  background: rgba(0, 0, 0, .22);
}
.ml-bar .mp-btn { width: 28px; height: 28px; }
.ml-bar .mp-btn .icon { width: 14px; height: 14px; }
.ml-bar .mp-btn.is-on { color: var(--au-amber); background: var(--au-amber-soft); border-color: rgba(245, 169, 74, .3); }
.ml-bar-time { flex: none; min-width: 34px; text-align: center; font-size: 10.5px; font-variant-numeric: tabular-nums; color: var(--au-dim); }
.ml-vol-icon { flex: none; width: 14px; height: 14px; color: var(--au-dim); }
.ml-seek, .ml-vol {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  cursor: pointer;
  outline-offset: 6px;
}
.ml-seek { flex: 1 1 auto; min-width: 0; background: linear-gradient(90deg, var(--au-amber) var(--ml-fill, 0%), rgba(255, 255, 255, .09) var(--ml-fill, 0%)); }
.ml-vol { flex: none; width: 82px; background: linear-gradient(90deg, var(--au-amber) var(--mp-seek, 55%), rgba(255, 255, 255, .09) var(--mp-seek, 55%)); }
.ml-seek::-webkit-slider-thumb, .ml-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--au-amber);
  box-shadow: 0 0 10px rgba(245, 169, 74, .7);
}
.ml-seek::-moz-range-thumb, .ml-vol::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 3px solid var(--au-amber);
  border-radius: 50%;
  background: #fff;
}
.ml-seek:disabled { cursor: default; opacity: .4; }
.ml-seek:enabled::-webkit-slider-thumb { opacity: 0; transition: opacity .18s; }
.ml-seek:enabled:hover::-webkit-slider-thumb, .ml-seek:focus-visible::-webkit-slider-thumb { opacity: 1; }

/* --------------------------- liste menüsü --------------------------- */
.ml-menu {
  position: absolute;
  z-index: 4;
  width: 244px;
  max-height: 264px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .14) transparent;
  padding: 8px;
  border: 1px solid var(--au-line-strong);
  border-radius: 14px;
  background: rgba(21, 25, 35, .96);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 26px 54px -24px rgba(0, 0, 0, .95), 0 0 26px -16px rgba(245, 169, 74, .4);
  animation: ml-menu-ac .2s var(--au-ease) both;
}
@keyframes ml-menu-ac { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.ml-menu-title {
  margin: 2px 4px 5px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--au-dim);
}
.ml-menu ul { display: flex; flex-direction: column; gap: 1px; margin: 0; padding: 0; list-style: none; }
.ml-menu li > button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--au-muted);
  font-size: 11.5px;
  text-align: left;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .2s;
}
.ml-menu li > button .icon { flex: none; width: 12px; height: 12px; }
.ml-menu li > button span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ml-menu li > button em {
  flex: none;
  margin-left: auto;
  font-size: 9.5px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  color: var(--au-dim);
}
.ml-menu li > button:hover { background: rgba(255, 255, 255, .055); color: var(--au-text); border-color: var(--au-line); }
.ml-menu li > button:focus-visible { outline: none; border-color: var(--au-amber); box-shadow: 0 0 0 3px var(--au-amber-soft); }
.ml-menu li > button.is-in { color: var(--au-amber); }
.ml-menu-bos { padding: 8px; font-size: 10.5px; color: var(--au-dim); }
.ml-menu-new {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  padding: 8px;
  border: 0;
  border-top: 1px solid var(--au-line);
  border-radius: 0 0 8px 8px;
  background: transparent;
  color: var(--au-amber);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s;
}
.ml-menu-new .icon { width: 12px; height: 12px; }
.ml-menu-new:hover { background: var(--au-amber-soft); }

/* ------------------------------ açık tema ------------------------------ */
html[data-theme="light"] .ml-dialog { background: linear-gradient(180deg, rgba(255, 255, 255, .92), var(--au-card) 42%); }
html[data-theme="light"] .ml-nav, html[data-theme="light"] .ml-side { background: rgba(16, 22, 38, .025); }
html[data-theme="light"] .ml-search, html[data-theme="light"] .mp-chip, html[data-theme="light"] .ml-note { background: rgba(16, 22, 38, .045); }
html[data-theme="light"] .ml-filter .au-select::before { background: rgba(16, 22, 38, .045); }
html[data-theme="light"] .ml-filter .au-select.is-open::before { background: #fff; }
html[data-theme="light"] .ml-bpm input { background: rgba(16, 22, 38, .045); }
html[data-theme="light"] .ml-bpm input:focus { background: #fff; }
html[data-theme="light"] .ml-tile { background: rgba(16, 22, 38, .035); }
html[data-theme="light"] .ml-tile:hover { background: #fff; }
html[data-theme="light"] .ml-now, html[data-theme="light"] .ml-side-block { background: rgba(16, 22, 38, .035); }
html[data-theme="light"] .ml-now-cover { background: radial-gradient(120% 100% at 20% 0%, rgba(245, 169, 74, .14), transparent 60%), #fff; }
html[data-theme="light"] .ml-bar { background: rgba(16, 22, 38, .045); }
html[data-theme="light"] .ml-menu { background: rgba(255, 255, 255, .97); }
html[data-theme="light"] .ml-suggest {
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), var(--au-card) 46%);
  box-shadow: 0 24px 50px -24px rgba(16, 22, 38, .34), 0 0 22px -12px rgba(245, 169, 74, .34), inset 0 1px 0 #fff;
}
html[data-theme="light"] .ml-suggest::-webkit-scrollbar-thumb { background: rgba(16, 22, 38, .16); }
html[data-theme="light"] .ml-suggest-item:hover { background: rgba(16, 22, 38, .04); }
html[data-theme="light"] .ml-seek, html[data-theme="light"] .ml-vol { background-image: linear-gradient(90deg, var(--au-amber) var(--ml-fill, 0%), rgba(16, 22, 38, .12) var(--ml-fill, 0%)); }
html[data-theme="light"] .ml-vol { background-image: linear-gradient(90deg, var(--au-amber) var(--mp-seek, 55%), rgba(16, 22, 38, .12) var(--mp-seek, 55%)); }
html[data-theme="light"] .ml-row:hover { background: rgba(16, 22, 38, .045); }
html[data-theme="light"] .ml-nav::-webkit-scrollbar-thumb,
html[data-theme="light"] .ml-scroll::-webkit-scrollbar-thumb,
html[data-theme="light"] .ml-side::-webkit-scrollbar-thumb,
html[data-theme="light"] .ml-rail-items::-webkit-scrollbar-thumb { background: rgba(16, 22, 38, .16); }

/* ------------------------------ mobil ------------------------------ */
@media (max-width: 1180px) {
  .ml-body { grid-template-columns: 184px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .ml-side {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-gutter: auto;
    border-left: 0;
    border-top: 1px solid var(--au-line);
    padding: 12px 16px;
  }
  .ml-now { flex: 0 0 292px; flex-direction: row; align-items: center; gap: 11px; }
  .ml-now .ml-label { margin-top: 0; }
  .ml-now-cover { width: 84px; flex: none; }
  .ml-side-block { flex: 0 0 240px; }
  .ml-legal { flex: 0 0 220px; margin-top: 0; }
}
@media (max-width: 860px) {
  .ml-modal { padding: 0; }
  .ml-dialog {
    width: 100%;
    max-height: none;
    height: 100dvh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .ml-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
  /* Telefon: nav ve yan panel TEK satırlık yatay şeritlere iner. İkisi de
     dikey kalınca (232px + 313px) orta göze 130px kalıyor, .ml-scroll 24px'e
     sıkışıp liste hiç kaydırılamıyordu. */
  .ml-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-gutter: auto;
    border-right: 0;
    border-bottom: 1px solid var(--au-line);
    padding: 9px 12px;
  }
  .ml-nav::-webkit-scrollbar { height: 6px; }
  .ml-tab { flex: none; width: auto; min-height: 30px; }
  .ml-nav-label { flex: none; margin: 0 0 0 9px; }
  .ml-name-row { flex: 1 1 190px; min-width: 170px; margin: 0; }
  .ml-nav-list { flex-direction: row; flex-wrap: nowrap; gap: 5px; }
  .ml-nav-list li { flex: none; min-width: 0; }
  .ml-nav-empty { flex: none; margin: 0; }
  .ml-side {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-gutter: auto;
    padding: 11px 12px;
  }
  .ml-now { flex: 0 0 272px; }
  .ml-side-block { flex: 0 0 232px; }
  .ml-now-cover { width: 82px; }
  .ml-legal { flex: 0 0 190px; margin-top: 0; }
  .ml-head { padding: 14px 52px 12px 14px; }
  .ml-sub { display: none; }
  .ml-search { margin: 12px 12px 0; }
  .ml-filters { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 9px 12px 0; }
  .ml-filter { min-width: 0; }
  .ml-bpm { gap: 4px; }
  .ml-bpm input { padding: 0 5px; }
  .ml-filter select { min-width: 0; width: 100%; }
  .ml-scroll { padding: 10px 12px 14px; }
  .ml-note { margin: 9px 12px 0; }
  .ml-bar { gap: 7px; padding: 9px 12px; }
  .ml-bar .mp-play { width: 32px; height: 32px; }
  .ml-bar .mp-btn { width: 26px; height: 26px; }
  .ml-bar-time { min-width: 30px; }
  .ml-vol { width: 58px; }
  .ml-row-tags { display: none; }
  .ml-menu { width: min(244px, calc(100vw - 32px)); }
}
/* dokunmatik: hover ile beliren şeyler her zaman dursun */
@media (hover: none) {
  .ml-row-tools { opacity: 1; }
  .ml-row-play, .ml-tile-play { opacity: 1; }
  .ml-row-grip { opacity: .8; }
}

@media (prefers-reduced-motion: reduce) {
  .ml-dialog, .ml-now, .ml-blank-mark, .ml-menu, .ml-suggest, .ml-tab, .ml-tile, .ml-row, .ml-api i {
    animation: none !important;
    transition: none !important;
  }
  .ml-row-now i { animation: none; transform: scaleY(.6); }
  .ml-tile:hover { transform: none; }
  .ml-tab:hover .icon, .ml-add-list:hover, .ml-filter .au-select::before { transform: none; }
}

/* =========================================================================
   FAZ 24 — AYARLAR TASARIM DILI
   Kullanici referansi (ajenturo-ayarlar-referans.html) Aura kabugunun icine
   tasinir: koyu zemin + amber, kart 22px, ic kutu 18px, kontrol 12-14px.
   Renkler #view-settings uzerinde --st-* katmanina baglandi; bolume gore
   degil, ORTAK yere tanimlandigi icin sonradan eklenecek her bolum/ayar
   ayni dili bedava alir (id'ye ozel kural yok).
   Pilot: #panel-work. Diger paneller eski sisini koruyor.
   ========================================================================= */

/* YZ saglayici penceresi govde olarak #view-settings'in disinda (body altinda
   ortak modal): --st-* tokenlarini almayinca anahtarin amber dolusu
   "gecersiz degere dusen ozellik" sayilip sekilsiz kalmasi olcuyle goruldu.
   Tek dogru tamir token sahiplerini genisletmek — renk Ayarlar'la ayni kalsin. */
#view-settings, #aiProviderModal {
  --st-page: #0a0a0d;
  --st-card: #121217;
  --st-inner: rgba(255, 255, 255, .025);
  --st-line: rgba(255, 255, 255, .08);
  --st-line-soft: rgba(255, 255, 255, .07);
  --st-line-strong2: rgba(255, 255, 255, .12);
  --st-text: #f3f1ec;
  --st-muted: #9a9aa5;
  --st-hint: #8b8b97;
  --st-accent: #f5a742;
  --st-accent-2: #ffbf66;
  --st-accent-glow: rgba(245, 167, 66, .55);
  --st-on-accent: #1a1204;
  --st-green: #3ddc97;
  --st-blue: #6cb6ff;
  --st-red: #ff6b5e;
  --st-red-text: #ff8a7f;
  --st-field: #0d0d11;
  --st-r-card: 16px;
  --st-r-box: 13px;
  --st-r-ctl: 11px;
  /* OLCEK: referans tek basina bir sayfa olarak cizildi (24px padding, 40px
     baslik, 52px kontrol). Panelin icinde ayni oran "devasa" kaliyor: kardes
     sayfalar 18px kart padding'i, 21-27px h1, 11.5px etiket, 40px giris kullaniyor.
     Faz 24-B butun boyutlari kabugun yogunluguna ceker; dil ayni kalir. */
  --st-gap: 14px;
  --st-pad-card: 16px;
  --st-pad-box: 14px;
  --st-fs-h3: 15px;
  --st-fs-desc: 12px;
  --st-fs-label: 12px;
  --st-fs-num: 16px;
  --st-font-ui: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --st-font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Aydinlik tema: yuzeyler kabugun beyazina ceker, amber/vurgu renkleri
   kontrast icin koyulastirilir (hint 4.5:1 altina dusmesin). */
html[data-theme="light"] #view-settings,
html[data-theme="light"] #aiProviderModal {
  --st-page: transparent;
  --st-card: #ffffff;
  --st-inner: rgba(16, 22, 38, .025);
  --st-line: rgba(16, 22, 38, .1);
  --st-line-soft: rgba(16, 22, 38, .08);
  --st-line-strong2: rgba(16, 22, 38, .16);
  --st-text: #141822;
  --st-muted: #5d6478;
  --st-hint: #636b7e;
  --st-accent: #dd8a2b;
  --st-accent-2: #efa44d;
  --st-accent-glow: rgba(221, 138, 43, .45);
  --st-on-accent: #22150a;
  --st-green: #0f9f75;
  --st-blue: #2f7fd4;
  --st-red: #d64541;
  --st-red-text: #b8332f;
  --st-field: #f7f8fb;
}

/* Ayarlar sayyasi referansin ailesini kullanir: arayuz Manrope, sayilar/kucuk
   etiketler JetBrains Mono.
   NEDEN !important: 1579 satirindaki kabuk kilidi
   `body *:not(svg)...  { font-family: Inter !important }` butun projede
   Inter'i zorlar (muafiyetler .message-code/.au-acct-code gibi tek tek
   verilmis). !important'siz kural o kilidi asamaz; id'li scoped !important
   ise yalniz #view-settings icini etkiler, kabugun geri kalanina dokunmaz.
   Sayilar icin: yeni bir alan eklenirse class="st-mono" yeter. */
#view-settings, #view-settings * { font-family: var(--st-font-ui) !important; }
/* MONO KURALI (Faz 24-B): JetBrains Mono yalniz SAYILAR ve BÜYÜK HARF KICKER'larda.
   Okunur metin (ray alt-yazisi, aciklama, alan etiketi) daima Manrope — kullanici
   ihbari: "soldaki ayarlarin altindaki kucuk yazilarin yazı tipi güzel degil,
   digerleriyle uygun yap".
   Yeni bir alan eklerken: sayi/rozet ise class="st-mono", degilse hicbir sey yapma. */
#view-settings .eyebrow, #view-settings .st-mono, #view-settings .st-val,
#view-settings .st-valwrap i, #view-settings .settings-nav-label,
#view-settings .st-stepper input, #view-settings .st-chip, #view-settings .st-sbadge,
#view-settings .st-field input[type="number"], #view-settings .st-field input[readonly],
#view-settings .st-field textarea, #view-settings .sy-chip { font-family: var(--st-font-mono) !important; }

/* ---------- baslik: kicker + h1 + durum hapi (kardes sayfalarla AYNI olcek) ----------
   1964. satirdaki ortak kabuk kurali h1'i clamp(21,2.2vw,27)/600 ciziyor; Faz 24-A
   referanstaki 40px/800'i oldugu gibi tasiyince bolumun gerisi devasasi gorundu. */
#view-settings .view-heading { margin: 2px 0 16px; }
#view-settings .view-heading .eyebrow {
  margin: 0 0 8px; display: flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--st-accent);
}
#view-settings .view-heading .eyebrow-line { width: 18px; height: 1px; flex: none; background: var(--st-accent); }
#view-settings .view-heading h1 {
  margin: 0; font-size: clamp(21px, 2.2vw, 27px); line-height: 1.15; font-weight: 700;
  letter-spacing: -.025em; color: var(--st-text);
}
#view-settings .view-heading .view-heading-copy > p:last-child {
  margin: 8px 0 0; max-width: 620px; font-size: 12.5px; line-height: 1.55; color: var(--st-muted);
}
#view-settings .view-heading .heading-actions { align-items: center; gap: 10px; }

/* durum hapi: 36px (tiklanabilir degil, kabuktaki .sync-note ile aile) */
#view-settings .sync-note {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 13px;
  border-radius: 999px; border: 1px solid var(--st-line-strong2); background: var(--st-inner);
  font-size: 12.5px; font-weight: 600; color: var(--st-text);
}
#view-settings .sync-note .save-status:last-child { color: var(--st-hint); font-weight: 500; }
#view-settings .sync-note .status-dot {
  width: 7px; height: 7px; border-radius: 999px; background: var(--st-green);
  box-shadow: 0 0 9px var(--st-green); transition: background .18s var(--au-ease), box-shadow .18s var(--au-ease);
}
#view-settings .sync-note .status-dot.is-warn { background: var(--st-accent); box-shadow: 0 0 9px var(--st-accent); }

#view-settings #setSave {
  min-height: 40px; padding: 0 20px; border: 0; border-radius: 999px;
  font-family: var(--st-font-ui); font-size: 13.5px; font-weight: 700; letter-spacing: 0;
  color: var(--st-on-accent); background: linear-gradient(180deg, var(--st-accent-2), var(--st-accent));
  box-shadow: 0 10px 30px -8px var(--st-accent-glow);
}
#view-settings #setSave:hover { transform: none; filter: brightness(1.14); box-shadow: 0 12px 32px -8px var(--st-accent-glow); }
#view-settings #setSave:disabled {
  opacity: 1; cursor: not-allowed; color: var(--st-hint); background: var(--st-inner);
  border: 1px solid var(--st-line); box-shadow: none; filter: none;
}

/* ---------- yerlesim: ray + icerik ----------
   Kolonlar yalniz GENIS ekranda: 1998 satirindeki `@media (max-width:1023px)`
   kurali (tek kolon, ray uste ciker) ayni ozgullukte ve buradan ONCE yaziliyor;
   kosulsuz yazilirsa o kurali ezer, dar ekranda icerik sutunu 268px rayin
   gerisinde kalan kirpinta 180px'e duser (olcultan cikarildi). */
@media (min-width: 1024px) {
  #view-settings .settings-layout { grid-template-columns: 248px minmax(0, 1fr); gap: 18px; }
}
/* Icerik kolonu CONTAINER olur: grid kolon sayisi ekran genisligine degil
   GERCEK kolon genisligine bakiyor (sol menu daralabiliyor, 248px ray dusulunce
   iceris 80px daha genisliyor). Kural yoksa tek kolon = guvenli dusus. */
#view-settings .settings-content {
  display: flex; flex-direction: column; gap: var(--st-gap); min-width: 0;
  container-type: inline-size; container-name: stcol;
}

/* pilot paneli (#panel-work) artik `st-panel` sinifini tasir; zemini Faz 24-C
   blokdaki `#view-settings .settings-panel.st-panel` kurali ciziyor — panel-
   bazli kural yok, boylece yeni bolum eklemek CSS gerektirmiyor. */

/* ---------- gruplama: her grup kendi kartinda ----------
   Faz 24-A'da gruplar kartlarin ICINE ic ice kutulara gomuluyordu; kullanici
   ihbari: "gruplari kartlar icinde ayirabilirsin, boylece guzel olur — ic
   paneldekiler cok buyuk gorunuyor". .st-grid kartlari yan yana koyer, hicbiri
   sutunun tamamına yayilmaz. Sonradan eklenecek her ayar = yeni bir .st-card.
   FAZ 24-C: burada sabit 2/3 kolon yerine auto-fit — bolumlerdeki kart sayisi
   farkli (Risk 2, YZ 2, Bilgi 1, Kanallar 3); sabit kolonda 2 kartlik bolum
   3 kolonluk izgarada bos sutun biraktiriyordu. auto-fit bos izleri catalliyor,
   min() ise 300px'lik iz dar ekranda tasmasini onluyor. */
#view-settings .st-grid { display: grid; gap: var(--st-gap); grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); align-items: stretch; }
@container stcol (min-width: 1180px) {
  /* genis icerik kolonunda 5-6 incecik kolon olmasin: iz tabani buyur */
  #view-settings .st-grid { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
}

/* ---------- bolum rayi (kompakt: 46px satir, 30px ikon kutusu) ---------- */
#view-settings .settings-nav { gap: 4px; padding: 10px; border-radius: var(--st-r-card); border: 1px solid var(--st-line); background: var(--st-card); box-shadow: var(--au-shadow); }
#view-settings .settings-nav-label {
  margin: 6px 8px 4px; font-size: 10px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--st-hint);
}
#view-settings .settings-nav-group { gap: 4px; }
#view-settings .settings-nav-group + .settings-nav-group { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--st-line); }
#view-settings .settings-tab {
  align-items: center; gap: 10px; min-height: 46px; padding: 7px 9px; border-radius: 11px;
  border: 1px solid transparent; background: transparent; color: var(--st-text);
  transition: border-color .18s var(--au-ease), background .18s var(--au-ease), box-shadow .18s var(--au-ease), color .18s var(--au-ease);
}
#view-settings .settings-nav .settings-tab-icon {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: rgba(255, 255, 255, .05); color: #a9a9b4;
  transition: background .18s var(--au-ease), color .18s var(--au-ease);
}
#view-settings .settings-tab-icon .od-icon { width: 16px; height: 16px; }
#view-settings .settings-tab-txt { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
#view-settings .settings-tab-txt strong { font-size: 13px; font-weight: 700; letter-spacing: -.01em; color: var(--st-text); }
/* alt-yazi = okunur metin: Manrope, mono degil (Faz 24-B font kurali) */
#view-settings .settings-tab-txt small { font-size: 11px; line-height: 1.35; font-weight: 500; color: var(--st-hint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-settings .settings-tab:hover { background: rgba(255, 255, 255, .04); color: var(--st-text); }
#view-settings .settings-tab:hover .settings-tab-icon { background: rgba(255, 255, 255, .08); color: var(--st-accent); }
#view-settings .settings-tab[aria-selected="true"] {
  border-color: rgba(245, 167, 66, .5); color: var(--st-text);
  background: linear-gradient(90deg, rgba(245, 167, 66, .18), rgba(245, 167, 66, .04));
  box-shadow: 0 0 22px -8px var(--st-accent-glow);
}
#view-settings .settings-tab[aria-selected="true"] .settings-tab-icon { background: rgba(245, 167, 66, .18); color: var(--st-accent); }
#view-settings .settings-tab[aria-selected="true"] .settings-tab-txt strong { color: var(--st-text); }
html[data-theme="light"] #view-settings .settings-nav .settings-tab-icon { background: rgba(16, 22, 38, .05); color: #6a7285; }
html[data-theme="light"] #view-settings .settings-tab:hover { background: rgba(16, 22, 38, .04); }
html[data-theme="light"] #view-settings .settings-tab:hover .settings-tab-icon { background: rgba(16, 22, 38, .08); color: var(--st-accent); }

/* ---------- durum ozeti seridi ---------- */
#view-settings .st-summary {
  --st-tone: var(--st-accent);
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; min-width: 0;
  border-radius: var(--st-r-box); border: 1px solid var(--st-line); background: var(--st-inner);
}
#view-settings .st-summary {
  border-color: color-mix(in srgb, var(--st-tone) 33%, transparent);
  background: color-mix(in srgb, var(--st-tone) 8%, var(--st-card));
}
/* kabuktaki au-breathe translateY(-50%) iceriyor (mutlak konumlu kapsul icin);
   noktalarda kullanilursa nokta yarim boyu kadar yukari sicer. */
@keyframes st-breathe {
  0%, 100% { opacity: .7; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1.08); }
}
#view-settings .st-summary[data-tone="red"]   { --st-tone: var(--st-red); }
#view-settings .st-summary[data-tone="blue"]  { --st-tone: var(--st-blue); }
#view-settings .st-summary[data-tone="amber"] { --st-tone: var(--st-accent); }
#view-settings .st-summary[data-tone="green"] { --st-tone: var(--st-green); }
#view-settings .st-summary .st-sdot {
  flex: none; width: 8px; height: 8px; border-radius: 999px;
  background: var(--st-tone); box-shadow: 0 0 10px var(--st-tone);
  animation: st-breathe 2.6s var(--au-ease) infinite;
}
#view-settings .st-sbody { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#view-settings .st-sbody b { font-size: 13.5px; font-weight: 800; letter-spacing: -.01em; color: var(--st-text); }
#view-settings .st-sbody span { font-size: 12px; line-height: 1.5; color: var(--st-muted); }
#view-settings .st-sbadge { margin-left: auto; flex: none; font-family: var(--st-font-mono); letter-spacing: .1em; }

/* ---------- kartlar (grup yuzeyi) ----------
   Dikkat: .st-card'lara taban `flex:` VERILMEZ. #panel-work dikey bir flex
   kapsayici; flex:1 alan kart bos yuksekilige yayilip uzuyordu (olcultan
   cikarildi). Yan-yana dizilme isi .st-grid'in (grid kolonlari). */
#view-settings .st-card {
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
  padding: var(--st-pad-card); border-radius: var(--st-r-card); border: 1px solid var(--st-line);
  background: var(--st-card); box-shadow: var(--au-shadow);
}
#view-settings .st-card-head { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
#view-settings .st-card-head h3 { margin: 0; font-size: var(--st-fs-h3); font-weight: 700; letter-spacing: -.015em; color: var(--st-text); }
#view-settings .st-card-head p { margin: 0; font-size: var(--st-fs-desc); line-height: 1.5; color: var(--st-muted); }
/* Tek kontrolluk gruplarda kart basligi dogrudan <label for> oldu: alan adini
    degistirip klavye/ekran okuyucu bagini kirpmadan baslik gorunumu alir. */
#view-settings .st-card-head h3 label { font: inherit; color: inherit; letter-spacing: inherit; }
#view-settings .st-card-head .st-lblrow label { font-size: var(--st-fs-h3); font-weight: 700; letter-spacing: -.015em; color: var(--st-text); }
#view-settings .st-card-head .st-lblrow { gap: 10px; }
/* kart direkt olarak ipucu satiri tasir (artık .st-field icinde degil) */
#view-settings .st-card > .field-help { font-size: 11px; line-height: 1.45; color: var(--st-hint); }
#view-settings .st-card > .field-help.is-error { color: var(--st-red-text); }

/* ---------- secim kartlari ---------- */
#view-settings .st-tiles { display: flex; flex-wrap: wrap; gap: 10px; }
#view-settings .st-tile {
  flex: 1 1 150px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  min-width: 0; padding: 12px; border-radius: var(--st-r-box); text-align: left;
  color: var(--st-text); font-family: var(--st-font-ui); cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .02);
  transition: border-color .18s var(--au-ease), background .18s var(--au-ease), box-shadow .18s var(--au-ease), transform .18s var(--au-ease);
}
#view-settings .st-tile-top { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 8px; }
#view-settings .st-tile-ico {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: rgba(255, 255, 255, .06); color: var(--st-accent);
}
#view-settings .st-tile-ico .od-icon { width: 16px; height: 16px; }
#view-settings .st-tile-check {
  flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, .25);
  transition: background .18s var(--au-ease), border-color .18s var(--au-ease);
}
#view-settings .st-tile-check .od-icon { width: 11px; height: 11px; stroke-width: 3.2; stroke: var(--st-on-accent); opacity: 0; transition: opacity .18s var(--au-ease); }
#view-settings .st-tile-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
#view-settings .st-tile-txt b { font-size: 13px; font-weight: 700; }
#view-settings .st-tile-txt small { font-size: 11.5px; line-height: 1.45; color: var(--st-muted); }
#view-settings .st-tile:hover { border-color: rgba(245, 167, 66, .42); transform: translateY(-1px); }
#view-settings .st-tile[aria-pressed="true"] {
  border-color: var(--st-accent);
  background: linear-gradient(160deg, rgba(245, 167, 66, .18), rgba(245, 167, 66, .04));
  box-shadow: 0 0 0 1px rgba(245, 167, 66, .25), 0 10px 28px -14px var(--st-accent-glow);
}
#view-settings .st-tile[aria-pressed="true"] .st-tile-check { background: var(--st-accent); border-color: var(--st-accent); }
#view-settings .st-tile[aria-pressed="true"] .st-tile-check .od-icon { opacity: 1; }
html[data-theme="light"] #view-settings .st-tile { border-color: var(--st-line-strong2); background: rgba(16, 22, 38, .02); }
html[data-theme="light"] #view-settings .st-tile-check { border-color: rgba(16, 22, 38, .25); }
html[data-theme="light"] #view-settings .st-tile-ico { background: rgba(221, 138, 43, .12); }

/* ---------- anahtar satiri ---------- */
#view-settings .st-switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: var(--st-r-box); background: rgba(255, 255, 255, .03); border: 1px solid var(--st-line-soft);
}
#view-settings .st-switch-txt { min-width: 0; }
#view-settings .st-switch-txt b { display: block; font-size: 12.5px; font-weight: 700; color: var(--st-text); }
html[data-theme="light"] #view-settings .st-switch-row { background: rgba(16, 22, 38, .03); }

/* ---------- alan kutulari (kart icinde alt-grup) ---------- */
#view-settings .st-fields { display: flex; flex-wrap: wrap; gap: 10px; }
#view-settings .st-field {
  flex: 1 1 190px; min-width: 0; display: flex; flex-direction: column; gap: 7px;
  padding: 12px; border-radius: 11px; background: var(--st-inner); border: 1px solid var(--st-line-soft);
}
#view-settings .st-field > label, #view-settings .st-lblrow label { font-size: var(--st-fs-label); font-weight: 700; color: var(--st-text); }
#view-settings .st-field .field-help { font-size: 11px; line-height: 1.45; color: var(--st-hint); }
#view-settings .st-field .field-help.is-error { color: var(--st-red-text); }
#view-settings .st-lblrow { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
#view-settings .st-valwrap { display: inline-flex; align-items: baseline; gap: 4px; }
#view-settings .st-valwrap i { font-style: normal; font-size: 11px; color: var(--st-hint); }
#view-settings .st-val {
  width: 4.5ch; min-width: 0; padding: 0; border: 0; background: transparent;
  font-family: var(--st-font-mono); font-size: var(--st-fs-num); font-weight: 600; color: var(--st-accent);
  text-align: right;
}
#view-settings .st-val:focus { outline: none; }
#view-settings .st-valwrap:focus-within { outline: 2px solid var(--st-accent); outline-offset: 3px; border-radius: 4px; }
#view-settings .st-val::-webkit-outer-spin-button, #view-settings .st-val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#view-settings .st-val { -moz-appearance: textfield; appearance: textfield; }

/* sayi adimlandirici — 44px: kabuktaki giris kotusu de 40-44px (4485. satir) */
#view-settings .st-stepper {
  display: flex; align-items: stretch; height: 44px; overflow: hidden;
  border-radius: var(--st-r-ctl); border: 1px solid var(--st-line-strong2); background: var(--st-field);
  transition: border-color .18s var(--au-ease), background .18s var(--au-ease);
}
#view-settings .st-step {
  flex: none; width: 44px; border: 0; background: rgba(255, 255, 255, .04); color: var(--st-text);
  font-family: var(--st-font-mono); font-size: 16px; line-height: 1; cursor: pointer;
  transition: background .18s var(--au-ease), color .18s var(--au-ease);
}
#view-settings .st-step:hover { background: rgba(245, 167, 66, .16); color: var(--st-accent); }
#view-settings .st-stepper input {
  flex: 1 1 auto; min-width: 0; border: 0; background: transparent; color: var(--st-text);
  text-align: center; font-family: var(--st-font-mono); font-size: 15px; font-weight: 600;
}
#view-settings .st-stepper input:focus { outline: none; }
#view-settings .st-stepper input::-webkit-outer-spin-button, #view-settings .st-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#view-settings .st-stepper input { -moz-appearance: textfield; appearance: textfield; }
#view-settings .st-stepper.is-invalid { border-color: var(--st-red); background: color-mix(in srgb, var(--st-red) 6%, var(--st-field)); }

/* kaydirici + hizli cip */
#view-settings .st-range { width: 100%; height: 22px; margin: 2px 0; accent-color: var(--st-accent); cursor: pointer; }
#view-settings .st-chips { display: flex; flex-wrap: wrap; gap: 6px; }
#view-settings .st-chip {
  min-height: 32px; padding: 0 11px; border-radius: 999px; cursor: pointer;
  font-family: var(--st-font-mono); font-size: 11.5px; font-weight: 600; color: #c9c9d1;
  border: 1px solid var(--st-line-strong2); background: transparent;
  transition: border-color .18s var(--au-ease), background .18s var(--au-ease), color .18s var(--au-ease);
}
#view-settings .st-chip:hover { border-color: rgba(245, 167, 66, .45); color: var(--st-accent); }
#view-settings .st-chip.is-on { border-color: var(--st-accent); background: rgba(245, 167, 66, .16); color: var(--st-accent); }
html[data-theme="light"] #view-settings .st-chip { color: #5d6478; }

/* ---------- tehlike bolgesi ---------- */
#view-settings .st-danger {
  display: flex; flex-direction: column; overflow: hidden; min-width: 0;
  border-radius: var(--st-r-card); border: 1px solid rgba(255, 107, 94, .28);
  background: rgba(255, 107, 94, .05);
}
/* grid icinde: varsayilan tam satir; yalniz 3 kolonlu duzende (yas kartisi
   2. satir 1. kolona dustugunde) yanindaki bosluga yerlesir.
   3 kolon araligi: 928px (3x300+2x14) .. 1402px (4x340+3x14). */
#view-settings .st-grid > .st-danger { grid-column: 1 / -1; }
#view-settings .st-grid > .st-danger .st-drow { flex: 1 1 auto; }
@container stcol (min-width: 928px) and (max-width: 1401px) {
  #view-settings .st-grid > .st-danger { grid-column: 2 / -1; }
}
#view-settings .st-drow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
#view-settings .st-dico {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: rgba(255, 107, 94, .14); color: var(--st-red-text);
}
#view-settings .st-dico .od-icon { width: 16px; height: 16px; }
#view-settings .st-dtxt { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 220px; }
#view-settings .st-dtxt b { font-size: 13px; font-weight: 700; color: var(--st-red-text); }
#view-settings .st-dtxt p { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--st-muted); }
#view-settings .st-dact { display: flex; align-items: center; gap: 10px; flex: none; margin-left: auto; }
#view-settings .st-dsep { height: 1px; margin: 0; border: 0; background: rgba(255, 107, 94, .2); }
#view-settings .st-btn-danger {
  flex: none; min-height: 40px; padding: 0 16px; border-radius: 11px; cursor: pointer;
  font-family: var(--st-font-ui); font-size: 13px; font-weight: 700; letter-spacing: 0;
  border: 1px solid rgba(255, 107, 94, .5); background: rgba(255, 107, 94, .1); color: var(--st-red-text);
  transition: border-color .18s var(--au-ease), background .18s var(--au-ease), color .18s var(--au-ease);
}
#view-settings .st-btn-danger:hover { background: rgba(255, 107, 94, .2); border-color: rgba(255, 107, 94, .7); }
#view-settings .st-btn-danger.is-armed, #view-settings .st-btn-danger.is-active {
  border-color: transparent; background: var(--st-red); color: #1a0705; box-shadow: 0 8px 22px -12px rgba(255, 107, 94, .8);
}
#view-settings .st-danger .badge { font-family: var(--st-font-mono); }

/* ---------- kaydedilmemis degisiklik cubugu (tum bolümler) ---------- */
#view-settings .st-savebar {
  position: sticky; bottom: 14px; z-index: 20; display: none;
  align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px;
  width: -moz-fit-content; width: fit-content; margin: -6px auto 0; padding: 7px 7px 7px 16px;
  border-radius: 999px; border: 1px solid rgba(245, 167, 66, .45);
  background: rgba(24, 24, 30, .92);
  box-shadow: 0 14px 40px -10px rgba(0, 0, 0, .7), 0 0 30px -10px var(--st-accent-glow);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
#view-settings .st-savebar.is-show { display: flex; }
#view-settings .st-savebar-txt { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: #f3f1ec; }
#view-settings .st-savebar .st-sdot { flex: none; width: 7px; height: 7px; border-radius: 999px; background: var(--st-accent); box-shadow: 0 0 9px var(--st-accent); animation: st-breathe 2.6s var(--au-ease) infinite; }
#view-settings .st-ghost {
  min-height: 34px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  font-family: var(--st-font-ui); font-size: 12.5px; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, .14); background: transparent; color: #f3f1ec;
  transition: border-color .18s var(--au-ease), background .18s var(--au-ease);
}
#view-settings .st-ghost:hover { border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .07); }
#view-settings .st-savebar .st-btn-save {
  min-height: 34px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--st-font-ui); font-size: 12.5px; font-weight: 700; color: var(--st-on-accent);
  background: linear-gradient(180deg, var(--st-accent-2), var(--st-accent));
  box-shadow: 0 8px 24px -8px var(--st-accent-glow);
}
#view-settings .st-savebar .st-btn-save:hover { filter: brightness(1.14); }
#view-settings .st-savebar .st-btn-save:disabled { background: rgba(255, 255, 255, .07); color: #8b8b97; cursor: not-allowed; box-shadow: none; filter: none; }
html[data-theme="light"] #view-settings .st-savebar { background: rgba(255, 255, 255, .92); border-color: rgba(221, 138, 43, .5); }
html[data-theme="light"] #view-settings .st-savebar-txt { color: #141822; }
html[data-theme="light"] #view-settings .st-ghost { color: #141822; border-color: rgba(16, 22, 38, .2); }
html[data-theme="light"] #view-settings .st-ghost:hover { background: rgba(16, 22, 38, .05); }
html[data-theme="light"] #view-settings .st-savebar .st-btn-save:disabled { background: rgba(16, 22, 38, .07); color: #636b7e; }

/* ---------- odak + parlama (erisim) ----------
   Kapsam #panel-work degil, .settings-content: Faz 24-B'den sonra diger
   bolumler de bu dille cizilecek ve halkayi bedava alacak. */
#view-settings .settings-content button:focus-visible,
#view-settings .settings-content input:focus-visible,
#view-settings .settings-content select:focus-visible,
#view-settings .settings-content textarea:focus-visible,
#view-settings .settings-tab:focus-visible,
#view-settings .st-savebar button:focus-visible {
  outline: 2px solid var(--st-accent); outline-offset: 2px;
}
#view-settings .settings-content .st-stepper:has(input:focus-visible) { border-color: var(--st-accent); }
#view-settings .st-tile:active, #view-settings .st-chip:active { transform: translateY(1px); }

/* ---------- dar ekran ---------- */
@media (max-width: 1023px) {
  #view-settings .settings-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  #view-settings .settings-nav-group { min-width: 0; }
  #view-settings .settings-nav-group + .settings-nav-group { margin-top: 0; }
}
@media (max-width: 700px) {
  #view-settings .settings-nav { grid-template-columns: 1fr; }
  #view-settings .st-card { padding: 14px; }
  #view-settings .st-drow { padding: 12px; }
  #view-settings .st-field { padding: 11px; }
  #view-settings .st-summary { align-items: flex-start; }
  #view-settings .st-sbadge { display: none; }
  #view-settings .st-savebar { width: auto; align-self: stretch; justify-content: space-between; border-radius: 14px; padding: 10px; }
  /* tehlike satiri: ikon + metin yan yana, dugu altta tam genislik */
  #view-settings .st-drow { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  #view-settings .st-dact { grid-column: 1 / -1; margin-left: 0; }
  #view-settings .st-drow .st-btn-danger { flex: 1 1 auto; }
}

/* ---------- azaltilmis hareket ---------- */
@media (prefers-reduced-motion: reduce) {
  #view-settings .st-summary .st-sdot, #view-settings .st-savebar .st-sdot { animation: none; }
  #view-settings .st-tile, #view-settings .st-chip, #view-settings .st-btn-danger, #view-settings .st-ghost,
  #view-settings .settings-tab, #view-settings .settings-tab-icon, #view-settings .st-stepper,
  #view-settings #setSave, #view-settings .sync-note .status-dot {
    transition: none;
  }
  #view-settings .st-tile:hover, #view-settings .st-chip:active, #view-settings .st-tile:active,
  #view-settings #setSave:hover { transform: none; }
}

/* =========================================================================
   FAZ 24-C — KALAN BOLUMLER (Risk, SL/TP, Broker, Semboller, Bilgi,
   Kanallar, Yapay zeka, Bildirimler)
   24-B'nin olcegi ve kart dili artik bolum ayrimi gozetmeden tum Ayarlar'a
   yayilir. BILEREK KORUNAN ESKI SINIF ADLARI:
     - JS bu adlari ÜRETIYOR: .info-row, .info-icon, .channel-avatar,
       .ai-chain-row, .sy-group/.sy-chip/.sy-more/.sy-resolve, .test-result,
       .save-status -> adlar degismez, yalniz kisvesi --st-*'a baglanir.
     - AuSelect cercevesi `#view-settings .field .au-select::before` (3381.
       satir) ata-babasina bagli; PILOT listesi `#view-settings select`
       oldugu icin her secim kutusu sariliyor. Bu yuzden alan kutusu
       `.field st-field` ÇIFT sinifini tasir — .field silinirse cerceve
       dusuyor (olcultan: cercevesiz native kutu).
   Sonradan eklenecek her ayar = yeni bir .st-card ya da mevcut kartta
   .field st-field. Baska bir sinif yazmaya gerek yok.
   ========================================================================= */

/* ---------- 0) [hidden] kilidi ----------
   .st-panel ve .st-card `display` ARIKOLU oldugu icin UA'nin `hidden`
   stilini (display:none) ezer: sekme degistirmediginde TÜM bolumler,
   yetkisiz kullaniciya da kanal kesfi karti görünürdü. Projedeki diğer
   [hidden] kurallari gibi acik ve hizli; sonradan eklenecek her gizli
   öge de bedavaya gelir. */
#view-settings [hidden] { display: none !important; }

/* ---------- 1) panel zemini: yuzeyi kartlar cizer, kabuk degil ---------- */
#view-settings .settings-panel.st-panel {
  display: flex; flex-direction: column; gap: var(--st-gap); min-width: 0;
  padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
}
/* kart basliginin saginda tek meta (sayi/rozet): .is-row */
#view-settings .st-card-head.is-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
#view-settings .st-card-head.is-row h3 { flex: 1 1 auto; }

/* ---------- 2) native alanlar (giris / secim / cok satir) ---------- */
#view-settings .st-field input, #view-settings .st-field select, #view-settings .st-field textarea {
  width: 100%; min-height: 40px; padding: 9px 12px; box-sizing: border-box;
  border: 1px solid var(--st-line-strong2); border-radius: var(--st-r-ctl);
  background: var(--st-field); color: var(--st-text);
  font-family: var(--st-font-ui); font-size: 13px; font-weight: 500; line-height: 1.4;
  transition: border-color .18s var(--au-ease), box-shadow .18s var(--au-ease), background .18s var(--au-ease);
}
#view-settings .st-field input::placeholder, #view-settings .st-field textarea::placeholder { color: var(--st-hint); font-weight: 500; }
#view-settings .st-field input:focus, #view-settings .st-field select:focus, #view-settings .st-field textarea:focus {
  outline: none; border-color: var(--st-accent); box-shadow: 0 0 0 3px var(--st-accent-glow);
  background: color-mix(in srgb, var(--st-accent) 4%, var(--st-field));
}
#view-settings .st-field input[readonly] {
  color: var(--st-muted); background: var(--st-inner); cursor: default; font-family: var(--st-font-mono); font-size: 12.5px;
  /* dar sütunda uzun değer (ör. "BYBIT · bybit demo · swap") karakterin ortasında
     kesilmesin: sonunu üç noktayla kapatır, tamamı odaklanınca görülebilir. */
  text-overflow: ellipsis;
}
#view-settings .st-field input[readonly]:focus { border-color: var(--st-line-strong2); box-shadow: none; background: var(--st-inner); }
#view-settings .st-field input.is-invalid, #view-settings .st-field textarea.is-invalid {
  border-color: var(--st-red); background: color-mix(in srgb, var(--st-red) 6%, var(--st-field));
}
#view-settings .st-field input:invalid:not(:placeholder-shown):not([readonly]) { border-color: var(--st-red); }
#view-settings .st-field select { padding-right: 30px; appearance: none; background-image: none; cursor: pointer; }
#view-settings .st-field textarea { min-height: 88px; padding: 10px 12px; line-height: 1.6; resize: vertical; }
#view-settings .st-field input[type="number"] { font-weight: 600; letter-spacing: .01em; }
#view-settings .st-fields > .field-wide { flex: 1 1 100%; }

/* anahtar alanlari: etiket solda, anahtar sagda, ipucu altta (24-B satir dili) */
#view-settings .st-field:has(> .switch) {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center;
  align-items: center; gap: 3px 12px; padding: 10px 12px;
}
#view-settings .st-field > label:not(.switch) { grid-column: 1; grid-row: 1; }
#view-settings .st-field > .switch { grid-column: 2; grid-row: 1 / span 2; }
#view-settings .st-field > .field-help { grid-column: 1; grid-row: 2; }

/* secim kutusu cercevesi (AuSelect govdeyi cizmiyor, ser savarli ::before ciziyor) */
/* AuSelect (olcVeBagla) en uzun secenek metnine gore hem <select>'e hem span'e
   ISTEVE min-width yaziyor ("manual — panelden seçilen" -> 240px). Isteve oldugu
   icin ancak !important ile silinir: 197px'lik alan kutusunda govde 240 kalir,
   serceve kutunun sagindan +67px tasardi (Faz 24-D, kullanicinin "Broker secimi
   uyumsuz" ihbari). Faz 23 filtre satirinda ayni hata, ayni nollama. */
#view-settings .st-field .au-select { display: block; width: 100%; min-width: 0 !important; }
#view-settings .st-field .au-select > select { width: 100%; min-width: 0 !important; }
#view-settings .st-field .au-select::before {
  border-color: var(--st-line-strong2); border-radius: var(--st-r-ctl); background: var(--st-field);
}
#view-settings .st-field .au-select:hover::before { border-color: color-mix(in srgb, var(--st-accent) 45%, var(--st-line-strong2)); }
#view-settings .st-field .au-select:focus-within::before,
#view-settings .st-field .au-select.is-open::before {
  border-color: var(--st-accent); box-shadow: 0 0 0 3px var(--st-accent-glow); background: var(--st-field);
}
#view-settings .st-field .au-sel-btn { padding: 0 26px 0 12px; font-size: 13px; font-weight: 500; color: var(--st-text); }
#view-settings .st-field .au-sel-ic { color: var(--st-hint); }
#view-settings .st-field .au-select.is-open .au-sel-ic,
#view-settings .st-field .au-select:hover .au-sel-ic { color: var(--st-accent); }

/* ---------- 3) dugmeler ---------- */
#view-settings .settings-content .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 40px; padding: 0 15px; border-radius: var(--st-r-ctl);
  border: 1px solid var(--st-line-strong2); background: var(--st-inner); color: var(--st-text);
  font-family: var(--st-font-ui); font-size: 12.5px; font-weight: 700; letter-spacing: 0;
  cursor: pointer; transition: border-color .18s var(--au-ease), background .18s var(--au-ease),
    color .18s var(--au-ease), box-shadow .18s var(--au-ease);
}
#view-settings .settings-content .button .od-icon { width: 15px; height: 15px; }
#view-settings .settings-content .button:hover { border-color: rgba(245, 167, 66, .5); background: rgba(245, 167, 66, .1); color: var(--st-accent); }
#view-settings .settings-content .button-primary {
  border-color: transparent; color: var(--st-on-accent);
  background: linear-gradient(180deg, var(--st-accent-2), var(--st-accent));
  box-shadow: 0 8px 22px -12px var(--st-accent-glow);
}
#view-settings .settings-content .button-primary:hover { filter: brightness(1.12); color: var(--st-on-accent); background: linear-gradient(180deg, var(--st-accent-2), var(--st-accent)); }
#view-settings .settings-content .button-ghost { background: transparent; }
#view-settings .settings-content .button:disabled { opacity: .45; cursor: not-allowed; filter: none; box-shadow: none; }
#view-settings .settings-content .text-button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 2px;
  border: 0; background: transparent; color: var(--st-muted);
  font-family: var(--st-font-ui); font-size: 12px; font-weight: 700; cursor: pointer;
  transition: color .18s var(--au-ease);
}
#view-settings .settings-content .text-button:hover { color: var(--st-accent); background: transparent; border-color: transparent; }

/* ---------- 4) satir listeleri (kanallar, kesis, YZ durumu, bildirim bilgisi) ---------- */
#view-settings .st-panel .info-list { display: flex; flex-direction: column; gap: 8px; margin: 0; border-top: 0; }
#view-settings .st-panel .info-list > div, #view-settings .st-panel .info-list > button, #view-settings .st-panel .ai-chain > div {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  padding: 9px 11px; border-radius: var(--st-r-box); border: 1px solid var(--st-line-soft);
  background: var(--st-inner); font-size: 12.5px; color: var(--st-muted);
}
/* Ikinci cocuk (baslik + meta) kalan genisligi alir; rozet ve dugmeler BIRLIKTE
   alt satira iner. Uc kolonlu grid'de 5 cocuklu kanal satiri (avatar, metin,
   rozet, 2 dugme) kendi kendine 3 satira yayilip 190px oluyordu. */
#view-settings .st-panel .info-list > div > span:nth-child(2),
#view-settings .st-panel .info-list > button > span:nth-child(2),
#view-settings .st-panel .ai-chain > div > span:nth-child(2) { flex: 1 1 168px; min-width: 0; }
#view-settings .st-panel .info-list > div > .badge,
#view-settings .st-panel .info-list > button > .badge,
#view-settings .st-panel .ai-chain > div > .badge { flex: none; }
#view-settings .st-panel .info-list > span, #view-settings .st-panel .ai-chain > span { display: block; }
#view-settings .st-panel .info-list .muted { font-size: 11.5px; color: var(--st-hint); }
#view-settings .st-panel .info-list strong, #view-settings .st-panel .ai-chain strong { font-size: 12.5px; font-weight: 700; color: var(--st-text); }
#view-settings .st-panel .info-list small, #view-settings .st-panel .ai-chain small { display: block; font-size: 11px; line-height: 1.45; color: var(--st-hint); }
#view-settings .st-panel .info-icon {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 9px; border: 1px solid var(--st-line); background: rgba(255, 255, 255, .05); color: var(--st-accent);
}
#view-settings .st-panel .info-icon svg { width: 15px; height: 15px; }
/* .channel-avatar Ayarlar'da hic stillenmemisti (yalniz #view-channels'da kurali
   var): kesif ve YZ zinciri satirlari cercevesiz metin olarak cikiyordu. */
#view-settings .st-panel .channel-avatar {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  font-family: var(--st-font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
  color: var(--st-accent); background: rgba(245, 167, 66, .12); border: 1px solid rgba(245, 167, 66, .28);
}
#view-settings .st-panel .info-list .button { min-height: 32px; padding: 0 12px; border-radius: 9px; font-size: 12px; }
#view-settings .st-panel .ai-chain { display: flex; flex-direction: column; gap: 8px; margin: 0; }

/* ---------- FAZ 29: bildirim beslemesi (Ayarlar → Bildirimler) ----------
   Bolümdeonce yalniz sayac vardi; kullanici "bildirimler gelmiyor" diyordu.
   Satir gercek bir <button> (klavye + ekran okuyucu bedava), o yuzden UA'nin
   ortalama/hacim stilleri satir diline cevrilir. Okunmamis kaydirma yapmadan
   secilir: solda 3px isik seridi + baslik rengi. */
#view-settings .st-panel .info-list > button {
  -webkit-appearance: none; appearance: none; margin: 0; font-family: inherit;
  text-align: left; cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
#view-settings .st-panel .info-list > button:hover { border-color: rgba(245, 167, 66, .42); background: rgba(245, 167, 66, .07); }
#view-settings .st-panel .info-list > button:focus-visible { outline: 2px solid var(--st-accent); outline-offset: 2px; }
#view-settings .st-panel .info-list > button.is-unread { box-shadow: inset 3px 0 0 var(--st-accent); }
#view-settings .st-panel .info-list > button.is-unread strong { color: var(--st-accent); }
/* #nbFeed markup'ta .info-list.is-scroll tasir; kaydirma cubugunun standart+webkit
   cifti ve gutter'i 6928'deki ortak kuraldan gelir (yeni cift yazmak ayni
   bilesenin iki farkli renk tonuyla boyanmasi demek). Burada yalniz pencere. */
#view-settings .st-panel #nbFeed { max-height: 322px; overflow-y: auto; overscroll-behavior: contain; }
/* Gövde metni sunucudan geldiği gibi uzun (ör. KAPATILAMADI satırında emir
   yanıtları sözlüğü): ölçüldü, kırpma yokken gövde 3 satıra inip satır 101px'e
   çıkıyordu — 322px pencerede 3 satır görünüyordu. Kronoloji kartının gövde
   satırı zaten tek satıra kırpılır (#view-events .ev-card-text); besleme
   listesinde iki satır okunur. Ölçülen en uzun gövde: 118 karakter. */
#view-settings .st-panel #nbFeed > button > span > small {
  display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  overflow-wrap: anywhere;
}
/* Ölçüldü: ortak .info-list satırı flex-wrap:wrap olduğu için rozet (91x22)
   metin 265px genişliğe ulaşınca KENDİ satırına iniyordu — satır 101px, 40
   kayıtta 3970px kaydırma. Besleme satırında üç çocuk var (ikon/metin/rozet),
   kanal satırındaki beş çocuk gibi dökülmesi gerekmiyor: metnin flex tabanı
   daraltılıp rozet tek satıra alınır → satır ~71px. */
#view-settings .st-panel #nbFeed > button > span:nth-child(2) { flex: 1 1 120px; }
#view-settings .st-panel .nb-feed-none {
  padding: 12px 13px; border-radius: var(--st-r-box); border: 1px dashed var(--st-line-strong2);
  background: transparent; font-size: 12px; line-height: 1.5; color: var(--st-hint);
}
html[data-theme="light"] #view-settings .st-panel .info-list > button:hover { border-color: rgba(221, 138, 43, .45); background: rgba(221, 138, 43, .08); }
@media (prefers-reduced-motion: reduce) {
  #view-settings .st-panel .info-list > button { transition: none; }
}

/* ---------- 5) eylem satiri (baglanti testi, kesif, Telegram karti) ---------- */
#view-settings .st-panel .test-box, #view-settings .st-panel .connection-card {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0;
  padding: 11px 12px; border-radius: var(--st-r-box); border: 1px solid var(--st-line-soft);
  background: var(--st-inner);
}
#view-settings .st-panel .test-box > div { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
#view-settings .st-panel .test-box strong { font-size: 13px; font-weight: 700; color: var(--st-text); }
#view-settings .st-panel .test-box p { margin: 0; font-size: var(--st-fs-desc); line-height: 1.5; color: var(--st-muted); max-width: none; }
#view-settings .st-panel .test-result { flex: 1 1 100%; font-size: 11.5px; line-height: 1.5; color: var(--st-accent); }
#view-settings .st-panel .test-result.is-error { color: var(--st-red-text); }
#view-settings .st-panel .connection-icon { width: 32px; height: 32px; padding: 7px; border-radius: 9px; color: var(--st-accent); background: rgba(245, 167, 66, .12); border-color: rgba(245, 167, 66, .28); }
#view-settings .st-panel .connection-copy { min-width: 0; flex: 1 1 160px; }
#view-settings .st-panel .connection-copy strong { display: block; font-size: 12.5px; font-weight: 700; color: var(--st-text); }
#view-settings .st-panel .connection-copy small { display: block; font-size: 11px; color: var(--st-hint); }

/* durum satiri (kaydetme/kontrol mesaji) */
#view-settings .st-panel .save-status { display: block; font-size: 11.5px; line-height: 1.5; color: var(--st-hint); }

/* ---------- 6) satir ici girdi seritleri (Telegram adimlari, arama, kesif) ---------- */
#view-settings .st-panel .inline-form { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; }
#view-settings .st-panel .inline-form input, #view-settings .st-panel .sy-search input {
  flex: 1 1 190px; min-width: 0; min-height: 40px; padding: 9px 12px; box-sizing: border-box;
  border: 1px solid var(--st-line-strong2); border-radius: var(--st-r-ctl); background: var(--st-field);
  color: var(--st-text); font-family: var(--st-font-ui); font-size: 13px; font-weight: 500;
  transition: border-color .18s var(--au-ease), box-shadow .18s var(--au-ease);
}
#view-settings .st-panel .inline-form input::placeholder, #view-settings .st-panel .sy-search input::placeholder { color: var(--st-hint); }
#view-settings .st-panel .inline-form input:focus, #view-settings .st-panel .sy-search input:focus {
  outline: none; border-color: var(--st-accent); box-shadow: 0 0 0 3px var(--st-accent-glow);
}
#view-settings .st-panel .inline-form .button { flex: none; }
/* Telegram adimlari tek kapsayiciyi paylasir: kart boslugu (12px) burada
   adimlar arasinda cok genis kalmasin diye daraltildi. */
#view-settings .st-panel #tgAccountBody { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

/* parite aramasi: dar kartta dugme alt satira duser */
#view-settings .st-panel .sy-search { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
#view-settings .st-panel .sy-search input { flex: 1 1 180px; }
#view-settings .st-panel .sy-search .button { flex: none; }

/* ---------- 7) borsa parite katalogu (JS sinif adlari sabit) ---------- */
#view-settings .st-panel .sy-meta { margin: 2px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--st-muted); font-variant-numeric: tabular-nums; }
#view-settings .st-panel .sy-groups { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
#view-settings .st-panel .sy-group {
  display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 0 10px;
  border-radius: 999px; border: 1px solid var(--st-line-strong2); background: transparent;
  font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--st-hint);
}
#view-settings .st-panel .sy-group b { font-size: 11.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--st-text); }
#view-settings .st-panel .sy-resolve {
  margin-top: 10px; padding: 9px 12px; border-radius: var(--st-r-box);
  border: 1px solid color-mix(in srgb, var(--st-green) 34%, transparent);
  background: color-mix(in srgb, var(--st-green) 8%, var(--st-card)); font-size: 12px; color: var(--st-text);
}
#view-settings .st-panel .sy-resolve.is-miss {
  border-color: rgba(245, 167, 66, .38); background: rgba(245, 167, 66, .08);
}
#view-settings .st-panel .sy-resolve strong { font-family: var(--st-font-mono); font-size: 12px; }
#view-settings .st-panel .sy-list {
  display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; margin-top: 10px;
  max-height: 188px; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--st-line-strong2) transparent; scrollbar-gutter: stable;
}
#view-settings .st-panel .sy-chip {
  min-height: 28px; padding: 4px 9px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--st-line); background: var(--st-inner); color: var(--st-muted); font-size: 11.5px;
  transition: border-color .18s var(--au-ease), color .18s var(--au-ease), background .18s var(--au-ease);
}
#view-settings .st-panel .sy-chip:hover { border-color: rgba(245, 167, 66, .5); color: var(--st-accent); background: rgba(245, 167, 66, .08); }
#view-settings .st-panel .sy-more { align-self: center; font-size: 11px; color: var(--st-hint); }
#view-settings .st-panel .sy-list .muted { font-size: 11.5px; color: var(--st-hint); }

/* ---------- 8) SL/TP onizlemesi (satir ici stiller CSS'e tasindi) ---------- */
#view-settings .st-preview {
  display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 12px; border-radius: var(--st-r-box); background: var(--st-inner); border: 1px solid var(--st-line-soft);
}
#view-settings .st-preview svg { display: block; width: 100%; height: auto; overflow: visible; }
#view-settings .st-preview-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
#view-settings .st-preview small { font-size: 11.5px; line-height: 1.5; color: var(--st-muted); }
#view-settings .st-preview small b { font-family: var(--st-font-mono); font-weight: 600; color: var(--st-text); }
#view-settings #rrPreview { font-size: 12.5px; font-weight: 700; color: var(--st-text); }

/* ---------- 9) salt okunur broker satiri + bilgi notu ---------- */
#view-settings .st-panel .broker-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
#view-settings .st-panel .broker-line .button { flex: 1 1 150px; }
#view-settings .st-panel .nb-note {
  margin: 0; padding: 11px 13px; border-radius: var(--st-r-box);
  border: 1px solid var(--st-line-soft); border-left: 2px solid var(--st-accent);
  background: var(--st-inner); font-size: var(--st-fs-desc); line-height: 1.6; color: var(--st-muted);
}
#view-settings .st-panel .nb-note code { font-family: var(--st-font-mono); font-size: 11px; color: var(--st-accent); }

/* ---------- 10) kaydirma bölgeleri (sahibin tarayicida oklu sistem cubuguna düşmesin) ---------- */
#view-settings .st-panel .info-list.is-scroll { scrollbar-width: thin; scrollbar-color: var(--st-line-strong2) transparent; scrollbar-gutter: stable; }
#view-settings .st-panel .sy-list::-webkit-scrollbar, #view-settings .st-panel .info-list.is-scroll::-webkit-scrollbar { width: 8px; }
#view-settings .st-panel .sy-list::-webkit-scrollbar-track, #view-settings .st-panel .info-list.is-scroll::-webkit-scrollbar-track { background: transparent; }
#view-settings .st-panel .sy-list::-webkit-scrollbar-thumb, #view-settings .st-panel .info-list.is-scroll::-webkit-scrollbar-thumb { background: var(--st-line-strong2); border-radius: 99px; }
#view-settings .st-panel .sy-list::-webkit-scrollbar-thumb:hover, #view-settings .st-panel .info-list.is-scroll::-webkit-scrollbar-thumb:hover { background: rgba(245, 167, 66, .38); }

/* ---------- 11) aydinlik tema ---------- */
html[data-theme="light"] #view-settings .st-field input,
html[data-theme="light"] #view-settings .st-field select,
html[data-theme="light"] #view-settings .st-field textarea,
html[data-theme="light"] #view-settings .st-panel .inline-form input,
html[data-theme="light"] #view-settings .st-panel .sy-search input { background: var(--st-field); color: var(--st-text); border-color: var(--st-line-strong2); }
html[data-theme="light"] #view-settings .st-field input[readonly] { color: var(--st-muted); background: var(--st-inner); }
html[data-theme="light"] #view-settings .st-field .au-select::before,
html[data-theme="light"] #view-settings .st-field .au-select.is-open::before { background: var(--st-field); }
html[data-theme="light"] #view-settings .st-panel .info-icon { background: rgba(221, 138, 43, .1); color: var(--st-accent); border-color: rgba(221, 138, 43, .26); }
html[data-theme="light"] #view-settings .st-panel .channel-avatar { background: rgba(221, 138, 43, .1); border-color: rgba(221, 138, 43, .26); }
html[data-theme="light"] #view-settings .st-panel .sy-chip { background: rgba(16, 22, 38, .03); }
html[data-theme="light"] #view-settings .st-panel .sy-resolve { border-color: rgba(15, 159, 117, .34); }

/* ---------- 12) dar ekran ---------- */
@media (max-width: 700px) {
  #view-settings .st-field:has(> .switch) { grid-template-columns: minmax(0, 1fr) auto; }
  /* R:O kutusu tek kolona düşerse svg %100 genislige yayilir (120x120 viewBox ->
     238px kare) ve blok 360px olur; kare yaninda kalsin, sadece küçülsün. */
  #view-settings .st-preview { grid-template-columns: 84px minmax(0, 1fr); gap: 10px; padding: 10px 11px; }
  #view-settings .settings-content .button { flex: 1 1 auto; }
}

/* ---------- 13) azaltilmis hareket ---------- */
@media (prefers-reduced-motion: reduce) {
  #view-settings .st-field input, #view-settings .st-field select, #view-settings .st-field textarea,
  #view-settings .settings-content .button, #view-settings .settings-content .text-button,
  #view-settings .st-panel .sy-chip, #view-settings .st-panel .inline-form input,
  #view-settings .st-field .au-select::before { transition: none; }
  #view-settings .settings-content .button:active { transform: none; }
}

/* ==========================================================================
   FAZ 28 — KOŞULLU PLANLAR: satır satır plan defteri, dokununca tam kayıt

   Sayfa GET /api/conditional-intents'in gerçek kayıtlarının üstünde kuruldu
   (app/web/server.py:1475). Sunucuda YAZMA ucu yok: durumları yalnız
   pipeline'ın 60 sn'lik izleyicisi değiştirir (app/pipeline.py:632). Bu
   yüzden satırda onay/iptal/silme düğmesi tasarlanmadı — olsaydı karşılıksız
   istek atardı. Erişilen alanlar: symbol, direction, trigger_type/_price/
   _time, status, confidence, quality_score, reasoning, güncelleme saatleri.
   entry/sl/tp sütunları şemada var ama kayıtlarda NULL, kanal boş string:
   ana tabloda kolon açılmadı, alanlar yalnız doluysa detayda boyanır.

   Ölçü dili Sinyaller tablosundan alındı (gövde 12.5px, th 9x12, td 11x12,
   hover rgba(255,255,255,.025)); açılır kaydın anatomi ve 0fr->1fr geçişi
   FAZ 21 Akıllı Akış ile birebir aynı — iki sayfa aynı kabukta farklı
   davranırsa kullanıcı hangisinin gerçek olduğunu bilemez.
   ========================================================================== */

/* .badge-neg küresi (:512) yalnız dört sayfayı kapsıyor; styles.css:517'nin
   sıcak kırmızısı (.neg) bu sayfaya sızmasın diye kırmızı burada bildirilir. */
#view-conditional { --st-red: #ff7a72; }
html[data-theme="light"] #view-conditional { --st-red: #d64541; }

/* ---------- durum rampası: satır tek yerden boyar, dört tüketici okur ----------
   new  = mavi   (izleyiciye henüz girmedi), watching = amber (eşik bekleniyor),
   triggered = mint (tetiklendi ve bildirildi), expired = gri (etkisi kalmadı).
   Bilinmeyen bir durum gelirse .cp-row'un kendi değeri kazanır: çip çıplak
   kalmaz, uydurma renk de verilmez. */
#view-conditional .cp-row,
#view-conditional .cp-detail-row { --cp-c: var(--au-muted); --cp-soft: rgba(255, 255, 255, .05); --cp-line: var(--au-line-strong); }
#view-conditional tr[data-cp-durum="new"]       { --cp-c: var(--au-blue);  --cp-soft: var(--au-blue-soft);  --cp-line: rgba(90, 169, 255, .26); }
#view-conditional tr[data-cp-durum="watching"]  { --cp-c: var(--au-amber); --cp-soft: var(--au-amber-soft); --cp-line: rgba(245, 169, 74, .3); }
#view-conditional tr[data-cp-durum="triggered"] { --cp-c: var(--au-mint);  --cp-soft: var(--au-mint-soft);  --cp-line: rgba(65, 216, 163, .28); }
#view-conditional tr[data-cp-durum="expired"]   { --cp-c: var(--au-muted); --cp-soft: rgba(255, 255, 255, .05); --cp-line: var(--au-line-strong); }
html[data-theme="light"] #view-conditional tr[data-cp-durum="new"]       { --cp-line: rgba(47, 127, 212, .24); }
html[data-theme="light"] #view-conditional tr[data-cp-durum="watching"]  { --cp-line: rgba(221, 138, 43, .32); }
html[data-theme="light"] #view-conditional tr[data-cp-durum="triggered"] { --cp-line: rgba(15, 159, 117, .26); }
/* expired koyu tarafta da literal soft/line tasiyor (mint/amber/mavi token
   degil, gri-nötr), bu yuzden light karsiligi burada ayri yazilmali. */
html[data-theme="light"] #view-conditional tr[data-cp-durum="expired"]   { --cp-soft: rgba(16, 22, 38, .05); --cp-line: rgba(16, 22, 38, .16); }
/* Varsayilan çiftin beyaz softu beyaz kartta görünmez; ama düz bir light
   override (html[...] #view-conditional .cp-row) tr[data-cp-durum] çiftinden
   özgün olduğu için tanınmış durumların softunu da ezmişti — koyu temada renkli
   olan çip ışığı açık temada nötrleşiyordu (Akıllı Akış böyle değil).
   Override artık yalnız rampada yeri olmayan durumlara yazılıyor: tanınmış dört
   durum softunu zaten temayı bilen tokendan alıyor. */
html[data-theme="light"] #view-conditional tr[data-cp-durum]:not([data-cp-durum="new"]):not([data-cp-durum="watching"]):not([data-cp-durum="triggered"]):not([data-cp-durum="expired"]) {
  --cp-soft: rgba(16, 22, 38, .05);
  --cp-line: rgba(16, 22, 38, .16);
}

/* ---------- panel başındaki araç şeridi ---------- */
#view-conditional .cp-head-tools { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; min-width: 0; }

/* 32px kutu: yanındaki rozet ve üstteki çip şeridiyle aynı aile. Faz 18'de
   kesilen "kutular farklı boylarda" kusuru burada yeniden doğmasın. */
#view-conditional .cp-pick-box {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px 0 11px;
  border: 1px solid var(--au-line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, .02);
  color: var(--au-dim);
  cursor: pointer;
  transition: border-color .2s var(--au-ease), box-shadow .24s var(--au-ease), background .2s;
}
#view-conditional .cp-pick-box:hover { border-color: rgba(245, 169, 74, .4); background: var(--au-amber-soft); }
#view-conditional .cp-pick-box:has(.au-select.is-open) { border-color: rgba(245, 169, 74, .5); box-shadow: 0 0 0 3px var(--au-amber-soft); background: var(--au-amber-soft); }
/* AuSelect çerçevesi etikette taşar, gövde kutuyu doldurur (Akıllı Akış kuralı). */
#view-conditional .cp-pick-box > .au-select { height: 100%; display: block; flex: 1 1 auto; }
#view-conditional .cp-pick-box > .au-select > select { height: 100%; }
#view-conditional .cp-pick-box .au-sel-btn { padding: 0; }
#view-conditional .cp-pick-box .au-sel-val { font-size: 12px; font-weight: 600; }
html[data-theme="light"] #view-conditional .cp-pick-box { background: var(--au-card-2); }

/* ---------- tablo: Sinyaller ile aynı ölçü ailesi ---------- */
/* Sahibin tarayıcısı stillendirilmemiş kaydırma bölgesinde klasik 17px oklu
   çubuğa düşüyor: standart (scrollbar-width/color) + webkit çifti birlikte
   bildirilir, aksi halde tablo yatay taşarsa sağ kolonun saati çubuğun altında kalır. */
#view-conditional .table-scroll {
  overflow-x: auto;
  border-radius: var(--au-r-md);
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, .35) transparent;
}
#view-conditional .table-scroll::-webkit-scrollbar { height: 9px; }
#view-conditional .table-scroll::-webkit-scrollbar-track { background: transparent; }
#view-conditional .table-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .09); border-radius: 99px; }
/* 720px taban, canlı üç kayıtla ölçülen DOĞAL toplama dayanıyor:
   plan 127,2 + tetik 211,7 + durum 116,4 + güven 106,0 + saat 107,7 + açma 52,0
   = 721,1px (açma kolonu .cp-th-open ile sabit 52px). Dar ekranda tabloyu
   sıkıştırmak yerine şerit yatay kayıyor; saat kolonu iki satıra kırılmıyor.
   Geniş ekranda doğal toplam zaten bunu aştığı için taban hiçbir şey değiştirmiyor.
   Owner'ın 17px oklu çubuğuna düşmesin diye standart + webkit çifti yukarıda. */
#view-conditional .data-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 12.5px; }
#view-conditional .data-table thead th { padding: 9px 12px; text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--au-muted); border-bottom: 1px solid var(--au-line); white-space: nowrap; }
#view-conditional .data-table td { padding: 11px 12px; border-bottom: 1px solid var(--au-line); vertical-align: middle; }
#view-conditional .data-table .align-right { text-align: right; }
#view-conditional .data-table .mono { font-variant-numeric: tabular-nums; }
#view-conditional .data-table tbody tr { transition: background .18s var(--au-ease); }
#view-conditional .data-table tbody tr.cp-row:hover { background: rgba(255, 255, 255, .025); }
/* Açık satır = seçili satır: sayfadaki diğer seçimlerin amber halkası. */
#view-conditional .data-table tbody tr.cp-row.is-open { background: rgba(255, 255, 255, .032); }
#view-conditional .cp-row.is-open > td:first-child { box-shadow: inset 2px 0 0 var(--cp-c); }
html[data-theme="light"] #view-conditional .data-table tbody tr.cp-row:hover { background: rgba(16, 22, 38, .025); }
html[data-theme="light"] #view-conditional .data-table tbody tr.cp-row.is-open { background: rgba(16, 22, 38, .04); }
html[data-theme="light"] #view-conditional .table-scroll::-webkit-scrollbar-thumb { background: rgba(16, 22, 38, .16); }

/* ---------- kolon 1: sembol + yön rozeti ---------- */
#view-conditional .cp-plan { display: flex; align-items: center; gap: 8px; min-width: 0; }
#view-conditional .cp-sym { font-size: 13px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-conditional .cp-dir { flex: none; }
/* Bu sayfanın rozet renkleri burada bildirilir: :510-514 küresi dört sayfayı
   sayıyor, üstteki :is() .badge kurali (1995) ise daha özgüllü olduğu için
   styles.css'in .badge-pos/.badge-neg'ini eziyordu (Sinyaller'deki aynı wart
   PROGRESS.md'de kayıtlı). */
#view-conditional .badge-pos { color: var(--au-mint); background: var(--au-mint-soft); border-color: rgba(65, 216, 163, .3); }
#view-conditional .badge-neg { color: var(--st-red); background: rgba(255, 122, 114, .12); border-color: rgba(255, 122, 114, .28); }
#view-conditional .badge-neutral { color: var(--au-muted); background: rgba(255, 255, 255, .04); border-color: var(--au-line); }
html[data-theme="light"] #view-conditional .badge-neg { color: var(--st-red); background: rgba(214, 69, 65, .1); border-color: rgba(214, 69, 65, .24); }

/* ---------- kolon 2: tetik ---------- */
#view-conditional .cp-trig { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
#view-conditional .cp-trig > svg { flex: none; color: var(--au-muted); }
#view-conditional .cp-trig-txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-conditional .cp-trig-deg {
  flex: none;
  padding: 1px 6px;
  border: 1px solid var(--au-line);
  border-radius: 7px;
  background: rgba(255, 255, 255, .05);
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 11.5px;
  color: var(--au-text);
  font-variant-numeric: tabular-nums;
}
html[data-theme="light"] #view-conditional .cp-trig-deg { background: rgba(16, 22, 38, .04); }

/* ---------- kolon 3: durum çipi (rampayı taşıyan tek yer) ---------- */
#view-conditional .cp-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--cp-line);
  border-radius: 999px;
  background: var(--cp-soft);
  color: var(--cp-c);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
#view-conditional .cp-state > svg { flex: none; }

/* ---------- kolon 4: güven barı ----------
   Dolgu amber: bar kayıt kalitesini gösteriyor, satır durumunu değil.
   Durum rengine boyansaydı "tetiklenen her plan daha güvenli" okunurdu. */
#view-conditional .cp-conf { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; }
#view-conditional .cp-conf b { min-width: 30px; font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
/* İki farklı ebeveynde duruyor: satırda .cp-conf'un flex çocuğu, ayrıntıda düz
   dd çocuğu. dd içinde satır içi (inline) kalırsa width yok sayılıp tüm satır
   genişliğine yayılıyor — ölçümde 673px çıktı. inline-block her iki durumda da
   44/56px'i koruyor. */
#view-conditional .cp-bar { display: inline-block; vertical-align: middle; flex: none; width: 44px; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; }
#view-conditional .cp-bar i { display: block; height: 100%; border-radius: 999px; background: var(--au-amber); transition: width .45s var(--au-ease); }
html[data-theme="light"] #view-conditional .cp-bar { background: rgba(16, 22, 38, .08); }

/* ---------- kolon 6: aç/kapa düğmesi ---------- */
#view-conditional .cp-th-open { width: 52px; }
/* projede ayrı bir sr-only kümesi yok: başlık görsel olarak gereksiz ama
   ekran okuyucu kolonu adsız bırakmamalı. */
#view-conditional .cp-th-txt { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
#view-conditional .cp-td-open { text-align: right; }
#view-conditional .cp-open {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--au-dim);
  cursor: pointer;
  transition: border-color .2s var(--au-ease), background .2s var(--au-ease), color .2s;
}
#view-conditional .cp-open:hover { border-color: var(--au-line-strong); background: var(--au-amber-soft); color: var(--au-amber); }
#view-conditional .cp-chev { transition: transform .26s var(--au-ease), color .2s; }
#view-conditional .cp-row.is-open .cp-chev { transform: rotate(180deg); }
#view-conditional .cp-row.is-open .cp-open { color: var(--au-amber); }

/* ---------- açılır kayıt: 0fr -> 1fr, görüşmediğinde erişilemez ---------- */
/* td'yi .data-table ile birlikte yazmak zorunda: #view-conditional .data-table td
   (id+class+tur) bu hücreleri de seçiyor; çıplak .cp-td-detail (id+class) onun
   11px dolgusunu ve 1px ayraç çizgisini yenemiyordu — ölçümde kapalı her kaydın
   altında 22px boş bant + çizgi kaldı (row 22,16px). */
#view-conditional .data-table td.cp-td-detail { padding: 0; border-bottom: 0; }
#view-conditional .cp-row.is-open + .cp-detail-row .cp-td-detail { border-bottom: 1px solid var(--au-line); }
#view-conditional .data-table tbody tr.cp-detail-row:last-child .cp-td-detail { border-bottom: 0; }
#view-conditional .cp-detail {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .28s var(--au-ease), visibility 0s linear .28s;
}
#view-conditional .cp-row.is-open + .cp-detail-row .cp-detail { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .28s var(--au-ease); }
#view-conditional .cp-detail-in { min-height: 0; overflow: hidden; display: grid; gap: 11px; padding: 0 12px; background: rgba(255, 255, 255, .014); }
#view-conditional .cp-row.is-open + .cp-detail-row .cp-detail-in { padding: 12px; }
html[data-theme="light"] #view-conditional .cp-detail-in { background: rgba(16, 22, 38, .018); }
#view-conditional .cp-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 10px 14px; margin: 0; }
#view-conditional .cp-field { display: grid; align-content: start; gap: 3px; min-width: 0; }
#view-conditional .cp-field dt { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--au-dim); }
#view-conditional .cp-field dd { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--au-text); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
#view-conditional .cp-field-full { grid-column: 1 / -1; }
#view-conditional .cp-code { display: inline-block; padding: 1px 6px; border-radius: 7px; border: 1px solid var(--au-line); background: rgba(255, 255, 255, .05); font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace; font-size: 12px; color: var(--au-text); user-select: all; cursor: text; }
html[data-theme="light"] #view-conditional .cp-code { background: rgba(16, 22, 38, .04); }
#view-conditional .cp-field .cp-bar { width: 56px; }
#view-conditional .cp-detail-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#view-conditional .cp-detail-foot .text-button { margin-top: 0; }
#view-conditional .cp-hint { font-size: 11px; color: var(--au-dim); }
/* tetiklenmiş kayıtta uyarı cümlesi amber: "bildirildi ama emir gitmedi" */
#view-conditional tr[data-cp-durum="triggered"] .cp-hint { color: var(--au-amber); }

/* ---------- boş durum + yükleme iskeleti ---------- */
#view-conditional .cp-empty {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 9px;
  padding: 34px 18px;
  border: 1px dashed var(--au-line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, .015);
  text-align: center;
}
#view-conditional .cp-empty-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--au-muted); background: rgba(255, 255, 255, .05); }
#view-conditional .cp-empty strong { font-size: 13.5px; letter-spacing: -.01em; }
#view-conditional .cp-empty p { margin: 0; max-width: 420px; font-size: 12px; line-height: 1.5; color: var(--au-dim); }
#view-conditional .cp-empty .text-button { margin-top: 4px; }
html[data-theme="light"] #view-conditional .cp-empty { background: #ffffff; }
html[data-theme="light"] #view-conditional .cp-empty-ic { background: rgba(16, 22, 38, .05); }
/* iskelet satırı gerçek satırın dolgusunu paylaşır: veri gelince satır
   yüksekliği sıçramaz */
#view-conditional .cp-skel { position: relative; display: block; height: 22px; border-radius: 9px; background: rgba(255, 255, 255, .022); overflow: hidden; }
#view-conditional .cp-skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .05), transparent); transform: translateX(-100%); animation: cp-skel-gecis 1.5s var(--au-ease) infinite; }
@keyframes cp-skel-gecis { to { transform: translateX(100%); } }
html[data-theme="light"] #view-conditional .cp-skel { background: rgba(16, 22, 38, .03); }
html[data-theme="light"] #view-conditional .cp-skel::after { background: linear-gradient(90deg, transparent, rgba(16, 22, 38, .05), transparent); }

/* ---------- daha fazla + alt not ---------- */
#view-conditional .cp-more { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px 0; }
#view-conditional .cp-more-note { font-size: 11.5px; color: var(--au-dim); font-variant-numeric: tabular-nums; }
#view-conditional .cp-more .text-button > svg { transition: transform .2s var(--au-ease); }
#view-conditional .cp-more .text-button:hover > svg { transform: translateY(1px); }
#view-conditional .cp-foot { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding-top: 11px; border-top: 1px solid var(--au-line); font-size: 11.5px; color: var(--au-dim); }
#view-conditional .cp-foot > svg { flex: none; color: var(--au-muted); }

/* hidden niteliği display:inline-flex'i yenemez (Akıllı Akış'taki aynı kesim). */
#view-conditional .cp-more[hidden], #view-conditional .cp-reset[hidden],
#view-conditional .cp-pick-box[hidden], #view-conditional .cp-empty[hidden],
#view-conditional #cpClearBtn[hidden], #view-conditional #cpRetryBtn[hidden] { display: none; }

@media (max-width: 760px) {
  #view-conditional .cp-fields { grid-template-columns: minmax(0, 1fr); }
  #view-conditional .cp-head-tools { width: 100%; justify-content: space-between; }
  #view-conditional .cp-more { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  #view-conditional .cp-pick-box,
  #view-conditional .cp-open,
  #view-conditional .cp-chev,
  #view-conditional .cp-detail,
  #view-conditional .cp-bar i,
  #view-conditional .data-table tbody tr { transition: none; }
  #view-conditional .cp-row.is-open + .cp-detail-row .cp-detail { transition: none; }
  #view-conditional .cp-skel::after { animation: none; }
}

/* =====================================================================
   FAZ 29b — AYARLAR › YAPAY ZEKÂ: sağlayıcı listesi + ekle/düzenle penceresi
   Listeye yeni cetvel GELMEDİ: satırlar kanal satırının aynısı (.info-row,
   32px avatar, .button button-ghost eylemleri). Yeni olan tek şey pencere
   alanları, ki onlar da Faz 8d ".au-acct-*" ölçülerinin birebir kopyasıdır.
   ===================================================================== */

/* zincir satırı: başlık içindeki küçük nitelik etiketi */
#view-settings .au-aip-star {
  display: inline-block; vertical-align: 2px; margin-left: 7px;
  padding: 1px 6px; border-radius: 6px;
  border: 1px solid rgba(245, 169, 74, .28); background: var(--au-amber-soft);
  color: var(--au-amber); font-size: 10px; font-weight: 700; letter-spacing: .04em;
}
#view-settings .au-aip-star.is-off {
  border-color: var(--st-line); background: rgba(255, 255, 255, .05); color: var(--st-hint);
}
/* birincil = denenecek ilk: avatar amber dolu + ince ışık */
#view-settings .st-panel .channel-avatar.is-primary {
  color: #1b1408; background: var(--st-accent); border-color: var(--st-accent);
  box-shadow: 0 0 16px -6px var(--st-accent-glow);
}
/* 6900'deki avatin aydinlik kurali (1,3,1) bunu (1,3,0) eziyordu: birincil
   saglayici aydinlik temada digerlerinden ayrt edilemiyordu. Ayni spec + daha
   sonra yazildi -> amber dolu yeniden birincilin. */
html[data-theme="light"] #view-settings .st-panel .channel-avatar.is-primary {
  color: var(--st-on-accent); background: var(--st-accent); border-color: var(--st-accent);
}
#view-settings .st-panel .ai-chain-row.is-off { opacity: .62; }
#view-settings .au-aip-first { margin-top: 2px; align-self: flex-start; }

/* pencere alanları (au-acct-field/input cetveli: 6px aralık, 9x11 dolgulu 11px köşe) */
/* ---- sade akış: yalnız Ad + API anahtarı, kalanı "Gelişmiş" altında ---- */
#aiProviderModal .au-aip-basic { display: grid; gap: 12px; }
#aiProviderModal .au-aip-auto {
  margin: 0; padding: 8px 10px; border-radius: 10px;
  font-size: 11.5px; line-height: 1.5; overflow-wrap: anywhere;
  color: var(--st-hint, var(--au-muted));
  background: var(--au-card-2); border: 1px solid var(--au-line);
  border-left: 2px solid var(--st-accent);
}
#aiProviderModal .au-aip-auto strong { color: var(--au-text); font-weight: 600; }
#aiProviderModal .au-aip-auto .au-aip-auto-tag { font-style: normal; opacity: .72; }
#aiProviderModal .au-aip-auto .au-aip-auto-warn { color: var(--st-accent); }
#aiProviderModal .au-aip-auto[hidden] { display: none; }
#aiProviderModal .au-aip-adv {
  display: flex; align-items: center; gap: 6px; width: 100%; margin-top: 12px;
  padding: 8px 10px; border-radius: 10px; cursor: pointer; text-align: left;
  border: 1px dashed var(--au-line-strong); background: transparent;
  color: var(--au-muted); font: inherit; font-size: 12px;
  transition: color .2s var(--au-ease), border-color .2s var(--au-ease),
              background .2s var(--au-ease);
}
#aiProviderModal .au-aip-adv:hover {
  color: var(--au-text); border-color: rgba(245, 169, 74, .5);
  background: var(--au-card-2);
}
#aiProviderModal .au-aip-adv:focus-visible {
  outline: none; border-color: rgba(245, 169, 74, .6);
  box-shadow: 0 0 0 3px var(--au-amber-soft);
}
#aiProviderModal .au-aip-adv .au-aip-adv-chev {
  margin-left: auto; transition: transform .22s var(--au-ease);
}
#aiProviderModal .au-aip-adv[aria-expanded="true"] .au-aip-adv-chev { transform: rotate(180deg); }
html[data-theme="light"] #aiProviderModal .au-aip-adv:hover,
html[data-theme="light"] #aiProviderModal .au-aip-adv:focus-visible {
  border-color: rgba(221, 138, 43, .6);
}
/* display:grid, [hidden] varsayılanını yener — kapalı gelişmiş gerçekten kalkmalı */
#aiProviderModal .au-aip-grid[hidden] { display: none; }
#aiProviderModal .au-aip-adv + .au-aip-grid { margin-top: 10px; }

#aiProviderModal .au-aip-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 10px;
}
#aiProviderModal .au-aip-wide { grid-column: 1 / -1; }
#aiProviderModal .au-aip-field { display: grid; gap: 6px; min-width: 0; }
#aiProviderModal .au-aip-field > span {
  font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--au-muted);
}
#aiProviderModal .au-aip-input {
  width: 100%; min-width: 0; padding: 9px 11px; border-radius: 11px;
  border: 1px solid var(--au-line); background: var(--au-card); color: var(--au-text);
  font: inherit; font-size: 13px;
  transition: border-color .2s var(--au-ease), box-shadow .2s var(--au-ease);
}
#aiProviderModal .au-aip-input:focus {
  outline: none; border-color: rgba(245, 169, 74, .45); box-shadow: 0 0 0 3px var(--au-amber-soft);
}
#aiProviderModal .au-aip-input::placeholder { color: var(--au-dim); }
#aiProviderModal .au-aip-input:disabled { opacity: .55; cursor: not-allowed; }
html[data-theme="light"] #aiProviderModal .au-aip-input { background: #fff; }
#aiProviderModal .au-aip-help { font-size: 11px; line-height: 1.45; color: var(--st-hint, var(--au-muted)); }
#aiProviderModal .au-aip-keyrow { display: flex; align-items: center; gap: 8px; min-width: 0; }
#aiProviderModal .au-aip-keyrow .au-aip-input { flex: 1 1 auto; }

/* tür seçimi: AuSelect kutusu ayarlardaki .field kutusuyla aynı çerçeveyi giyer */
#aiProviderModal .au-aip-field .au-select {
  display: block; width: 100%; height: 40px; min-width: 0 !important;
}
#aiProviderModal .au-aip-field .au-select > select { width: 100%; min-width: 0 !important; }
#aiProviderModal .au-aip-field .au-select::before {
  content: ""; position: absolute; inset: 0;
  border: 1px solid var(--au-line); border-radius: 11px; background: var(--au-card);
  transition: border-color .2s var(--au-ease), box-shadow .24s var(--au-ease), background .2s;
}
#aiProviderModal .au-aip-field .au-select:hover::before { border-color: var(--au-line-strong); }
#aiProviderModal .au-aip-field .au-select:focus-within::before,
#aiProviderModal .au-aip-field .au-select.is-open::before {
  border-color: rgba(245, 169, 74, .45); box-shadow: 0 0 0 3px var(--au-amber-soft);
}
#aiProviderModal .au-aip-field .au-select.is-open::before { background: var(--au-card-2); }
#aiProviderModal .au-aip-field .au-sel-btn { padding: 0 26px 0 11px; font-size: 13px; }

/* anahtar/kapan + birincil anahtarları: switch ailesi (48x28, 22px topuz) */
#aiProviderModal .au-aip-switches { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
#aiProviderModal .au-aip-switch {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  min-height: 32px; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--au-muted);
}
#aiProviderModal .au-aip-switch input { position: absolute; left: 0; top: 2px; width: 48px; height: 28px; opacity: 0; margin: 0; cursor: pointer; }
#aiProviderModal .au-aip-switch .switch-track {
  position: relative; flex: none; width: 48px; height: 28px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  transition: background .22s var(--au-ease), border-color .22s var(--au-ease), box-shadow .22s var(--au-ease);
}
#aiProviderModal .au-aip-switch .switch-track::after {
  content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px;
  border-radius: 50%; background: #ffffff; box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
  transition: transform .22s var(--au-ease);
}
#aiProviderModal .au-aip-switch input:checked + .switch-track {
  background: var(--st-accent); border-color: var(--st-accent);
  box-shadow: 0 0 16px -4px var(--st-accent-glow);
}
#aiProviderModal .au-aip-switch input:checked + .switch-track::after { transform: translateX(20px); }
#aiProviderModal .au-aip-switch input:focus-visible + .switch-track {
  outline: 2px solid rgba(245, 169, 74, .55); outline-offset: 3px;
}
#aiProviderModal .au-aip-switch:hover .switch-track { background: rgba(255, 255, 255, .13); border-color: rgba(245, 169, 74, .3); }
html[data-theme="light"] #aiProviderModal .au-aip-switch .switch-track { background: rgba(16, 22, 38, .1); }
html[data-theme="light"] #aiProviderModal .au-aip-switch .switch-track::after { background: #ffffff; box-shadow: 0 1px 4px rgba(16, 22, 38, .3); }
/* Aydinlik temada sonda yazilan bu iki satir CAPLIM-specificity oldugu icin
   "acik" yatak yi yutuyordu (Ayarlar'da ayni kusur 2353'te kapatilmisti):
   acik anahtar beyaz zeminde soluk kalmasin, amber geri gelsin. */
html[data-theme="light"] #aiProviderModal .au-aip-switch input:checked + .switch-track { background: var(--st-accent); }

/* pencere mesajı: hata ise kırmızı */
#aiProviderModal .au-aip-msg {
  margin: 12px 0 0; padding: 9px 11px; border-radius: 11px;
  border: 1px solid rgba(65, 216, 163, .26); background: var(--au-mint-soft);
  font-size: 12px; line-height: 1.5; color: var(--au-mint);
}
#aiProviderModal .au-aip-msg.is-error {
  border-color: rgba(255, 107, 94, .34); background: rgba(255, 107, 94, .08); color: #ff9b93;
}
html[data-theme="light"] #aiProviderModal .au-aip-msg.is-error { color: #b02a1f; }
#aiProviderModal .au-aip-msg[hidden] { display: none; }

@media (max-width: 640px) {
  #aiProviderModal .au-aip-grid { grid-template-columns: minmax(0, 1fr); }
  #view-settings .st-card-head.is-row { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  #aiProviderModal .au-aip-input,
  #aiProviderModal .au-aip-adv,
  #aiProviderModal .au-aip-adv .au-aip-adv-chev,
  #aiProviderModal .au-aip-field .au-select::before,
  #aiProviderModal .au-aip-switch .switch-track,
  #aiProviderModal .au-aip-switch .switch-track::after { transition: none; }
}

/* =========================================================================
   FAZ 30b + FAZ 34 — GENEL BAKIŞ KART DÜZENİ (sıra + genişlik + yükseklik)
   Izgara üstünde sürükleme YOK (Faz 30'da vardı, kullanıcı bırakamaz hale
   geldi): tek hayalet düğme "Düzenle" pencereyi açar. Sıra oradaki listede
   sürüklenerek/oklarla, genişlik satırdaki 1·2·4 düğmeleriyle, satır
   yüksekliği üstteki Eşitle/Doğal anahtarıyla değişir. Üçü de taslaktır ve
   ancak Kaydet ile sunucuya yazılır (data/panel_ui.json). Grid DOM sırasını
   kullanır; FLIP inline transform yazdığı için kart/satır geçişi transform
   üzerinde durur. Eski ızgara sürükleme modu ve tutma şeridi sınıfları bu
   dosyada hiç anılmaz — bekçi yokluklarını denetler.
   ========================================================================= */

/* ---------- araç şeridi: tek düğme ---------- */
#view-overview .ov-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 0 12px;
}
#view-overview .ov-tools-note {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--au-amber);
}
#view-overview .ov-tools-btns { display: flex; align-items: center; gap: 8px; flex: none; }
#view-overview .ov-layout-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
}
/* hidden, display:inline-flex'i yenemez: düğme gizli kalacağı yerde dururdu */
#view-overview .ov-layout-btn[hidden] { display: none; }
#view-overview .ov-layout-btn .icon {
  width: 14px;
  height: 14px;
  flex: none;
  transition: transform .2s var(--au-ease), color .2s;
}
#view-overview .ov-layout-btn:hover .icon { color: var(--au-amber); transform: translateY(-1px); }

/* ---------- pencere: kart sırası listesi ----------
   Faz 39: 540 → 640px. Satıra beşinci düğme (göz) eklendi; 540'ta ad sütunu
   155px'ten 125px'e düşüyor ve "İşlem sırası ve katkı" kırpılıyordu. 640'ta
   ad 225px ölçüldü — en uzun ad 141px, kırpma yok. */
#ovLayoutModal .ovl-dialog { width: min(640px, 100%); }

/* ---------- Faz 34: satır yüksekliği modu (liste üstü şerit) ----------
   Tek anahtar, iki seçenek: Eşitle (ızgara stretch) / Doğal (start).
   Kart başına yükseklik yok — yukarıdaki .ov-grid[data-ov-h] kuralına bakar. */
#ovLayoutModal .ovl-mode {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
  padding: 9px 10px;
  border: 1px solid var(--au-line);
  border-radius: var(--au-r-md);
  background: rgba(255, 255, 255, .02);
}
#ovLayoutModal .ovl-mode-ad {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--au-dim);
}
#ovLayoutModal .ovl-seg {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--au-line);
  border-radius: 999px;
  background: rgba(0, 0, 0, .18);
}
#ovLayoutModal .ovl-seg-btn {
  padding: 4px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--au-muted);
  cursor: pointer;
  transition: color .18s, background .18s, box-shadow .18s;
}
#ovLayoutModal .ovl-seg-btn:hover:not(:disabled):not([aria-pressed="true"]) {
  color: var(--au-text);
  background: rgba(255, 255, 255, .05);
}
#ovLayoutModal .ovl-seg-btn[aria-pressed="true"] {
  color: var(--au-amber);
  background: var(--au-amber-soft);
  box-shadow: inset 0 0 0 1px rgba(245, 169, 74, .34);
}
#ovLayoutModal .ovl-seg-btn:focus-visible { outline: 2px solid var(--au-amber); outline-offset: 2px; }
#ovLayoutModal .ovl-seg-btn:disabled { opacity: .4; cursor: not-allowed; }
#ovLayoutModal .ovl-mode-hint {
  flex: 1 1 190px;
  min-width: 0;
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--au-muted);
}
#ovLayoutModal .ovl-list {
  position: relative;                 /* offsetTop içerik uzayı buradan ölçülür */
  list-style: none;
  margin: 14px 0 0;
  padding: 4px;
  max-height: min(46vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--au-line);
  border-radius: var(--au-r-md);
  background: rgba(255, 255, 255, .02);
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, .35) transparent;
  scrollbar-gutter: stable;
}
/* eski Chromium scrollbar-width'i tanımaz; eş olmazsa liste oklu kalın sistem çubuğuna düşer */
#ovLayoutModal .ovl-list::-webkit-scrollbar { width: 8px; }
#ovLayoutModal .ovl-list::-webkit-scrollbar-track { background: transparent; }
#ovLayoutModal .ovl-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .09); border-radius: 99px; }
#ovLayoutModal .ovl-list::-webkit-scrollbar-thumb:hover { background: rgba(245, 169, 74, .38); }

#ovLayoutModal .ovl-row {
  position: relative;
  display: grid;
  grid-template-columns: 18px 24px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  transition: border-color .2s var(--au-ease), background .2s, box-shadow .2s, transform .3s var(--au-ease);
}
#ovLayoutModal .ovl-row + .ovl-row { margin-top: 2px; }
#ovLayoutModal .ovl-row:hover { border-color: var(--au-line-strong); background: rgba(255, 255, 255, .03); }

/* sürükleme tutamaçı: dokunmatikte sürükleyen tek yer burası — satır gövdesi
   parmağa izin verirse liste kaydırılamaz hale gelir */
#ovLayoutModal .ovl-grip {
  display: grid;
  place-items: center;
  width: 18px;
  height: 26px;
  border-radius: 6px;
  color: var(--au-dim);
  cursor: grab;
  touch-action: none;
  transition: color .18s, background .18s;
}
#ovLayoutModal .ovl-grip .icon { width: 14px; height: 14px; pointer-events: none; }
#ovLayoutModal .ovl-row:hover .ovl-grip { color: var(--au-muted); }
#ovLayoutModal .ovl-grip:hover { color: var(--au-amber); background: var(--au-amber-soft); }
#ovLayoutModal .ovl-grip:focus-visible { outline: 2px solid var(--au-amber); outline-offset: 2px; color: var(--au-amber); }
#ovLayoutModal .ovl-grip.is-ro { cursor: default; }
#ovLayoutModal .ovl-grip.is-ro:hover { color: var(--au-dim); background: transparent; }

/* sürüklenen satır: yerinde duran bir kart gibi kalkar; transform'ı JS verir,
   geçiş burada sıfırlanmazsa satır parmağın gerisinde kalır */
#ovLayoutModal .ovl-row.is-dragging {
  z-index: 3;
  border-color: rgba(245, 169, 74, .55);
  background: rgba(245, 169, 74, .09);
  box-shadow: 0 18px 38px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(245, 169, 74, .22);
  cursor: grabbing;
  transition: none;
}
#ovLayoutModal .ovl-list.is-sorting { user-select: none; -webkit-user-select: none; cursor: grabbing; }
#ovLayoutModal .ovl-list.is-sorting .ovl-row { cursor: grabbing; }

#ovLayoutModal .ovl-no {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(245, 169, 74, .26);
  border-radius: 8px;
  background: var(--au-amber-soft);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--au-amber);
}
#ovLayoutModal .ovl-name {
  min-width: 0;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--au-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#ovLayoutModal .ovl-size {
  flex: none;
  padding: 2px 7px;
  border: 1px solid var(--au-line);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--au-dim);
  background: rgba(255, 255, 255, .03);
}

/* ---------- Faz 34: genişlik seçici (1 / 2 / tam satır) ----------
   Sahip için rozetin içi üç düğmeye dönüşür (.is-seg kabuğu kaldırır);
   izleyicide aynı rozet salt okunur metin olarak kalır. Düğmeler rakam
   değil MİNİ KOLON ŞERİDİ gösterir: 4 kutudan kaçı doluysa kart o kadar
   kolon kaplar. Önizleme ayrı bir satır değil, düğmenin kendisi — böylece
   seçimle sonuç aynı yerde durur. */
#ovLayoutModal .ovl-size.is-seg {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0;
  border: 0;
  background: transparent;
}
#ovLayoutModal .ovl-w {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--au-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .03);
  color: var(--au-dim);
  cursor: pointer;
  transition: color .18s, border-color .18s, background .18s, box-shadow .18s;
}
#ovLayoutModal .ovl-w-prev { display: grid; grid-template-columns: repeat(4, 4px); gap: 1px; }
#ovLayoutModal .ovl-w-prev i {
  height: 11px;
  border-radius: 1px;
  background: currentColor;
  opacity: .2;
}
#ovLayoutModal .ovl-w[data-ovl-w="1"] .ovl-w-prev i:nth-child(-n+1),
#ovLayoutModal .ovl-w[data-ovl-w="2"] .ovl-w-prev i:nth-child(-n+2),
#ovLayoutModal .ovl-w[data-ovl-w="3"] .ovl-w-prev i:nth-child(-n+3),
#ovLayoutModal .ovl-w[data-ovl-w="4"] .ovl-w-prev i { opacity: 1; }
#ovLayoutModal .ovl-w:hover:not(:disabled) {
  color: var(--au-amber);
  border-color: rgba(245, 169, 74, .5);
  background: var(--au-amber-soft);
}
#ovLayoutModal .ovl-w[aria-pressed="true"] {
  color: var(--au-amber);
  border-color: rgba(245, 169, 74, .55);
  background: var(--au-amber-soft);
  box-shadow: inset 0 0 0 1px rgba(245, 169, 74, .18);
}
#ovLayoutModal .ovl-w:focus-visible { outline: 2px solid var(--au-amber); outline-offset: 2px; }
#ovLayoutModal .ovl-w:disabled { opacity: .35; cursor: not-allowed; }
#ovLayoutModal .ovl-btns { display: flex; align-items: center; gap: 4px; }
#ovLayoutModal .ovl-btn {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--au-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .03);
  color: var(--au-muted);
  cursor: pointer;
  transition: color .18s, border-color .18s, background .18s, box-shadow .18s, transform .18s var(--au-ease);
}
#ovLayoutModal .ovl-btn .icon { width: 14px; height: 14px; }
#ovLayoutModal .ovl-btn:hover:not(:disabled) {
  color: var(--au-amber);
  border-color: rgba(245, 169, 74, .5);
  background: var(--au-amber-soft);
  box-shadow: 0 6px 16px -12px rgba(245, 169, 74, .95);
  transform: translateY(-1px);
}
#ovLayoutModal .ovl-btn:focus-visible { outline: 2px solid var(--au-amber); outline-offset: 2px; }
#ovLayoutModal .ovl-btn:disabled { opacity: .3; cursor: not-allowed; }

#ovLayoutModal .ovl-note {
  min-height: 17px;
  margin: 10px 0 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--au-muted);
}
#ovLayoutModal .ovl-note.is-warn { color: var(--au-amber); }
#ovLayoutModal .ovl-actions {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--au-line);
}
#ovLayoutModal .ovl-flex { flex: 1 1 auto; }

/* ---------- açık tema ---------- */
html[data-theme="light"] #ovLayoutModal .ovl-list { background: rgba(16, 22, 38, .02); }
html[data-theme="light"] #ovLayoutModal .ovl-list::-webkit-scrollbar-thumb { background: rgba(16, 22, 38, .16); }
html[data-theme="light"] #ovLayoutModal .ovl-no { background: rgba(221, 138, 43, .14); border-color: rgba(221, 138, 43, .3); }
html[data-theme="light"] #ovLayoutModal .ovl-size { background: rgba(16, 22, 38, .04); }
/* Faz 34: seçici kabuğu açık temada da şeffaf kalmalı — yukarıdaki rozet
   arka planı .is-seg'den dahaspecific ve düğmeleri kutuya sokardı */
html[data-theme="light"] #ovLayoutModal .ovl-size.is-seg { background: transparent; }
html[data-theme="light"] #ovLayoutModal .ovl-mode { background: rgba(16, 22, 38, .02); }
html[data-theme="light"] #ovLayoutModal .ovl-seg { background: rgba(16, 22, 38, .05); }
html[data-theme="light"] #ovLayoutModal .ovl-seg-btn:hover:not(:disabled):not([aria-pressed="true"]) { background: rgba(16, 22, 38, .06); }
html[data-theme="light"] #ovLayoutModal .ovl-seg-btn[aria-pressed="true"] { background: rgba(221, 138, 43, .16); box-shadow: inset 0 0 0 1px rgba(221, 138, 43, .34); }
html[data-theme="light"] #ovLayoutModal .ovl-w { background: rgba(16, 22, 38, .03); }
html[data-theme="light"] #ovLayoutModal .ovl-w:hover:not(:disabled),
html[data-theme="light"] #ovLayoutModal .ovl-w[aria-pressed="true"] { background: rgba(221, 138, 43, .16); }
html[data-theme="light"] #ovLayoutModal .ovl-row:hover { background: rgba(16, 22, 38, .03); }
html[data-theme="light"] #ovLayoutModal .ovl-btn { background: rgba(16, 22, 38, .03); }
html[data-theme="light"] #ovLayoutModal .ovl-btn:hover:not(:disabled) { background: rgba(221, 138, 43, .16); }
html[data-theme="light"] #ovLayoutModal .ovl-row.is-dragging { background: rgba(221, 138, 43, .14); box-shadow: 0 14px 30px -18px rgba(16, 22, 38, .5), 0 0 0 1px rgba(221, 138, 43, .35); }

/* ---------- dar yarı ---------- */
@media (max-width: 720px) {
  /* Faz 34: genişlik seçici GİZLENMEZ, ikinci satıra iner — boyut telefonda
     da değiştirilebilsin. Satır iki satırlı olur; sürükleme motorunun
     offsetTop/offsetHeight orta nokta hesabı bundan etkilenmez. */
  #ovLayoutModal .ovl-row {
    grid-template-columns: 22px 24px minmax(0, 1fr) auto;
    grid-template-areas: "grip no name btns" ". . size size";
    gap: 6px 8px;
  }
  #ovLayoutModal .ovl-grip { grid-area: grip; width: 22px; height: 34px; }
  #ovLayoutModal .ovl-no { grid-area: no; }
  #ovLayoutModal .ovl-name { grid-area: name; }
  #ovLayoutModal .ovl-btns { grid-area: btns; }
  #ovLayoutModal .ovl-size { grid-area: size; justify-self: end; }
  #ovLayoutModal .ovl-btn { width: 30px; height: 30px; }
  #ovLayoutModal .ovl-list { max-height: min(52vh, 420px); }
  #ovLayoutModal .ovl-mode-hint { flex-basis: 100%; }
}

@media (max-width: 480px) {
  /* Faz 34: ad sütunu dar telefonda ÖLÇÜLDÜ — 390px'te 57px (ad 79px istiyor,
     ellipsis), ~330px'te 0px (ad hiç görünmüyor). Birinci satırı dört ok
     düğmesi (132px) yiyordu. Oklar ikinci satıra, genişlik seçicinin yanına
     iner; ad birinci satırın TAMAMINI alır (3+4. kolon), tutamaç iki satır
     boyu uzar. Oklar 26px'e iner (116px): 390px'te ad 197px.

     Faz 35: seçici artık DÖRT düğme (span 3 eklendi) → 4×26 + 3×3 = 113px,
     eskisi 84px'ti. İkinci satırda seçicinin alanı 2.+3. kolon = (P - 285)px
     (P: pencere genişliği; 390→105, 421→136, 480→195 ölçüldü). 113px'lik blok
     406px'in altında alandan taşar ve justify-self:end onu sola, tutamacın
     üstüne iter (390'da ölçüldü: sizeL = gripR, yani 8px'lik ara yenmiş).
     Bu yüzden üç satırlı kuralın eşiği 360'tan 420'ye çıktı — 406 yerine 420:
     sınırın üstünde emniyet payı kalsın (421'de tutamaçla 31px, oklarla 8px).

     Faz 39: satıra BEŞİNCİ düğme (göz) geldi → oklar 4×26+3×4 = 116px'den
     5×26+4×4 = 146px'e çıktı (+30). Aynı kolon matematiği alanı (P - 315)px
     yapıyor: 113px'lik seçici 428px'in altında taşıyor. Eşik 480'de KALIR
     (481'de alan 166px, 53px pay), üç satıra geçiş 420'den 440'a çıkar
     (441'de alan 126px, 13px pay — faz 35'in 14px payıyla aynı). */
  #ovLayoutModal .ovl-row {
    grid-template-areas: "grip no name name" "grip size size btns";
  }
  #ovLayoutModal .ovl-grip { height: auto; align-self: stretch; }
  #ovLayoutModal .ovl-btn { width: 26px; height: 26px; }
}

@media (max-width: 440px) {
  /* Üç satır: seçici ve oklar AYRI satırlara iner, ikisi de sağa hizalı;
     tutamaç üç satır boyu uzar, ad birinci satırda tam genişlik kalır.
     Ölçüm (Faz 35, 4 ok): 375/390/414/420'de satır 104px, tutamaç 88px,
     seçici 113px, tutamaçla arası 109/124/148/154px — çakışma yok, ad
     kısaltması yok (nameHid 0), pencere taşması yok. Liste kayar.
     Faz 39 (5 ok, 146px): aynı satırlar 330/360/390/440'ta denendi — ok
     bloğu 3. satırın (P-315+146) kolonuna sığar, eşik 428'de taşardı. */
  #ovLayoutModal .ovl-row {
    grid-template-areas: "grip no name name" "grip size size size" "grip btns btns btns";
  }
  #ovLayoutModal .ovl-btns { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  #view-overview .ov-layout-btn .icon,
  #ovLayoutModal .ovl-row,
  #ovLayoutModal .ovl-grip,
  #ovLayoutModal .ovl-seg-btn,
  #ovLayoutModal .ovl-w,
  #ovLayoutModal .ovl-btn { transition: none !important; }
  #ovLayoutModal .ovl-btn:hover:not(:disabled) { transform: none; }
}

/* ==========================================================================
   FAZ 35 — KARTI DOĞRUDAN BOYUTLANDIRMA + DARALMAYA UYGUN İÇERİK
   Sahibin isteği: "köşeden ve yanlardan daraltma yapılabilir, tabii bu
   daraltma yapılınca içerisi kötü durması, daralmaya uygun olsun."

   İÇERİK UYARLAMASI NEDEN CONTAINER QUERY: mevcut responsive kurallar
   viewport'a bağlı (hub-grid 2 kolon ≤1023, 1 kolon ≤760). Kartı 4 kolondan
   2 kolona daraltmak viewport'u değiştirmez, o kurallar TETİKLENMEZ. Ölçüm
   (1400px pencere, ızgara 1041px, kolon 250px; içerik genişliği span 1 = 212,
   span 2 = 476, span 3 = 739, span 4 = 1003):
     · atolye .ov-hub-meta span 2'de 23px görünür kalıyordu (metnin %87'si
       kesik), span 1'de 0px — 476px'lik kartta 4'lü ızgara metni yiyor.
     · ai-note .ain-top strong span 1'de 20-69px görünür (40 öğe).
     · sources .ov-src-name 49px, signals span 99px, channels room-name 70px.
     · chart .segmented +50px ve atolye başlık chip'i +92px kartın DIŞINA
       taşıyordu (panel-head'de flex-wrap yok).
     · positions tablosu 690px sabit: span 1/2'de yatay kaydırma, span 3'te
       sığıyor.
     · engine, goals, pending, weekly gövdesi hiçbir span'da kırılmıyor —
       onlara DOKUNULMADI (çalışanı yeniden tasarlama).
   Eşikler bu ölçümden seçildi, tahmin değil. 999px eşiği span 4'ün varsayılan
   1003px'ini BİLİNÇLI olarak dışarıda bırakır: onaylanmış tam genişlik
   görünümü değişmez.
   ========================================================================== */

/* inline-size containment block eksenine dokunmaz: kart yüksekliği ve
   align-items:stretch aynen çalışır. paint containment YOK — kartın
   parlama/gölgesi dışına taşabilsin. */
#view-overview .ov-grid > .card {
  container-type: inline-size;
  container-name: ovkart;
}

/* ---------- gövde: tek kaydırılabilir kutu ----------
   JS (ovGovdeSar) başlık DIŞINDAKİ her şeyi buraya toplar. Başlık kartın
   doğrudan çocuğu kalır → daraltınca tepede sabit. Tutamaçlar da kartın
   çocuğu → gövde kayarken yerinde durur. Kartın KENDİSİ kaydırılsaydı
   absolute tutamaçlar içerikle birlikte kayıp giderdi.
   Sarmalayıcı yüksüz: flex sütun, gap yok, kenar boşluğu yok — çocukların
   kendi margin ritmi aynen korunur. */
#view-overview .ov-grid > .card > .ov-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
#view-overview .ov-grid > .card.is-ov-clamped > .ov-body {
  overflow: hidden auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, .42) transparent;
  scrollbar-gutter: stable;
}
#view-overview .ov-grid > .card.is-ov-clamped > .ov-body::-webkit-scrollbar { width: 8px; }
#view-overview .ov-grid > .card.is-ov-clamped > .ov-body::-webkit-scrollbar-track { background: transparent; }
#view-overview .ov-grid > .card.is-ov-clamped > .ov-body::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, .42); border-radius: 99px; }
#view-overview .ov-grid > .card.is-ov-clamped > .ov-body::-webkit-scrollbar-thumb:hover { background: rgba(245, 169, 74, .38); }
html[data-theme="light"] #view-overview .ov-grid > .card.is-ov-clamped > .ov-body { scrollbar-color: rgba(16, 22, 38, .2) transparent; }
html[data-theme="light"] #view-overview .ov-grid > .card.is-ov-clamped > .ov-body::-webkit-scrollbar-thumb { background: rgba(16, 22, 38, .16); }

/* YZ akışının KENDİ kaydırıcısı var (Faz 32: .ai-note-feed flex 1 1 222px,
   min-height 0, overflow-y auto). Gövde de kaydırırsa çift kaydırıcı olur ve
   gutter stable akışı 8px daha daraltır. Akış zaten kısaldığı için gövde
   taşmaz → burada kaydırma kapatılır, tavanı akış kendi içinde karşılar. */
#view-overview .ov-grid > .card.is-ov-clamped[data-ov-card="ai-note"] > .ov-body {
  overflow: visible;
  scrollbar-gutter: auto;
}

/* styles.css'in `.pending-panel > p` kuralı sarmalayıcıdan sonra eşleşmez;
   aynı bildirimi yeni derinlikte sürdürüyoruz (onay kuyruğu açıklaması).
   Renk --au-muted DEĞİL --muted: styles.css'in değeri (#9aa2b1) farklı,
   token değiştirmek sarmalayıcının "sıfır görsel fark" sözünü bozardı. */
#view-overview .pending-panel > .ov-body > p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

/* ---------- 999px: atolye 4'lü → 2'li ----------
   Ölçüm: span 3 (739px) 4'lüde meta 89px görünür / 96px kesik. 2'lüde kutu
   365px, metin 185px → tam sığar. span 4 (1003px) bu eşiğin dışında kalır. */
@container ovkart (max-width: 999px) {
  #view-overview .ov-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 679px: pozisyon tablosu istifle ----------
   Tablonun doğal genişliği 690px (9 kolon). Dar kartta yatay kaydırma yerine
   her kayıt kendi mini kartına dönüşür: 9 alanın HİÇBİRİ kaybolmaz, başlık
   satırı yerine her hücrenin kendi etiketi gelir (data-label, JS yazar). */
@container ovkart (max-width: 679px) {
  #view-overview .positions-panel .table-scroll { overflow-x: visible; }
  /* styles.css `.positions-table{min-width:690px}` yatay kaydırma için konmuştu.
     İstiflenmiş tabloda o taban taşımayı GERİ getirir: display:block olsa bile
     kutu 690px'te kalır ve kartın dışına taşar (ölçüm: span 1'de +477px). */
  #view-overview .positions-panel .data-table { display: block; min-width: 0; font-size: 12px; }
  #view-overview .positions-panel .data-table thead { display: none; }
  #view-overview .positions-panel .data-table tbody { display: flex; flex-direction: column; gap: 8px; }
  #view-overview .positions-panel .data-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
    padding: 10px 12px;
    border: 1px solid var(--au-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .02);
    transition: border-color .2s var(--au-ease);
  }
  #view-overview .positions-panel .data-table tr:hover { border-color: rgba(245, 169, 74, .38); }
  #view-overview .positions-panel .data-table td {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
  }
  #view-overview .positions-panel .data-table td::before {
    content: attr(data-label);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--au-dim);
  }
  #view-overview .positions-panel .data-table td[data-label="Sembol"],
  #view-overview .positions-panel .data-table td[data-label="İşlem"],
  #view-overview .positions-panel .data-table td[colspan] { grid-column: 1 / -1; }
  #view-overview .positions-panel .data-table td[data-label="Sembol"]::before,
  #view-overview .positions-panel .data-table td[colspan]::before { content: none; }
  #view-overview .positions-panel .data-table td[data-label="İşlem"] { align-items: stretch; }
  #view-overview .positions-panel .data-table .pos-close { width: 100%; justify-content: center; }
  #view-overview .positions-panel .data-table .pnl-sub { display: inline; margin-left: 6px; }
  html[data-theme="light"] #view-overview .positions-panel .data-table tr { background: rgba(16, 22, 38, .025); }
}

/* ---------- 559px: atolye 2'li → tekli ----------
   Ölçüm: span 2'de (476px içerik) 2'li kutu 231px, meta 144px görünür /
   41px kesik ("%20,0 emre dönüştü · 32 işle…"). Metnin tamamı 185px
   istiyor → kutu 272px olmalı, yani içerik 558px. Tek sütunda 476px'lik
   kutuda meta tam görünür. span 3 (739px) 2'lide kalır: kutu 365px yeter. */
@container ovkart (max-width: 559px) {
  #view-overview .ov-hub-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 419px: tek kolon + metinler SARAR ----------
   span 1'in 212px'inde ellipsis metnin çoğunu yiyordu. Burada amaç kısaltmak
   değil, TAMAMINI göstermek: nowrap kaldırılır, uzun kanal adları iki satıra
   iner. Başlık ve segment kontrolü de sarar — ölçülen +92/+50 taşma biter. */
@container ovkart (max-width: 419px) {
  #view-overview .ov-hub-tile { align-items: flex-start; }
  #view-overview .ov-hub-label,
  #view-overview .ov-hub-value,
  #view-overview .ov-hub-meta { white-space: normal; overflow-wrap: anywhere; }

  #view-overview .panel-head,
  #view-overview .card-head { flex-wrap: wrap; }
  #view-overview .panel-head > *,
  #view-overview .card-head > * { min-width: 0; }
  #view-overview .segmented { flex-wrap: wrap; }

  /* kahraman: gösterge 168px + istatistik yan yana sığmaz. .energy-stats
     flex:1 (basis 0) olduğu için SATIR ATLAMAZ, 26px'e büzülür ve içindeki
     değerler kartın dışına taşardı (ölçüm: span 1'de +113px). Dikey dizilim
     ≤760px görüntü kuralının aynısı — ama burada kartın kendi genişliği
     tetikliyor, pencere 1400px olsa bile. */
  #view-overview .energy-body { flex-direction: column; align-items: stretch; }
  #view-overview .gauge { margin: 0 auto 4px; }
  #view-overview .energy-stats { min-width: 0; }
  :is(#view-overview, #view-strategy) .stat-note { white-space: normal; overflow-wrap: anywhere; }

  /* rozetler tek satırda nowrap: başlık sarınca kendi satırına inerler ama
     tek rozet karttan genişse yine taşar. Metin sarar, bilgi kaybolmaz. */
  #view-overview .card-head-right .badge,
  #view-overview .card-head-right .chip { white-space: normal; max-width: 100%; }

  /* YZ akışı: tarih/etiket kendi satırına iner, kanal adı tam görünür */
  #view-overview .ain-row { flex-wrap: wrap; }
  #view-overview .ain-main { flex: 1 1 auto; }
  #view-overview .ain-top { flex-wrap: wrap; }
  #view-overview .ain-top strong { white-space: normal; overflow-wrap: anywhere; }
  #view-overview .ain-meta {
    flex: 1 1 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  /* kaynaklar: K/Z kendi satırına, ad ve meta sarar */
  #view-overview .ov-src-row { grid-template-columns: 18px minmax(0, 1fr); }
  #view-overview .ov-src-pnl { grid-column: 2 / 3; justify-self: start; }
  #view-overview .ov-src-name,
  #view-overview .ov-src-meta { white-space: normal; overflow-wrap: anywhere; }

  /* sinyaller ve kanallar */
  #view-overview .signal-main > span { white-space: normal; overflow-wrap: anywhere; }
  #view-overview .room-name,
  #view-overview .room-meta { white-space: normal; overflow-wrap: anywhere; }
}

/* ---------- boyutlandırma modu: tutamaçlar ----------
   Tutamaçlar kartın çocuğu (absolute) → kartla birlikte taşınır, yeniden
   konumlandırma gerekmez. Izgara aralığı 14px, tutamaç 12px ve 6px dışarı
   taşar → komşuya değmez. touch-action:none yoksa dokunmatikte sürükleme
   sayfayı kaydırır. */
#view-overview .ov-rz {
  position: absolute;
  z-index: 6;
  display: none;
  touch-action: none;
  color: rgba(245, 169, 74, .5);
  transition: color .18s var(--au-ease);
}
#view-overview .ov-grid.is-ov-resizing .ov-rz { display: block; }
#view-overview .ov-rz:hover,
#view-overview .ov-rz:focus-visible,
#view-overview .ov-rz.is-active { color: var(--au-amber); }
#view-overview .ov-rz:focus-visible { outline: 2px solid var(--au-amber); outline-offset: 2px; border-radius: 6px; }
/* Açık temada --au-amber (#dd8a2b) beyaz kartta ~2.6:1 — metin olmayan bir
   UI bileşeni için 3:1 eşiğinin altında, %50 saydamlıkla ~1.5:1'e düşer ve
   tutamaç gözden kaybolur. Rozetin açık tema mürekkebi (#8a5410, ~7:1)
   aileye zaten ait: boşta .55 → ~3.3:1, aktif/odakta tam → ~7:1. */
html[data-theme="light"] #view-overview .ov-rz { color: rgba(138, 84, 16, .55); }
html[data-theme="light"] #view-overview .ov-rz:hover,
html[data-theme="light"] #view-overview .ov-rz:focus-visible,
html[data-theme="light"] #view-overview .ov-rz.is-active { color: #8a5410; }
html[data-theme="light"] #view-overview .ov-rz:focus-visible { outline-color: #8a5410; }

#view-overview .ov-rz-e { top: 14px; bottom: 14px; right: -6px; width: 12px; cursor: ew-resize; }
#view-overview .ov-rz-s { left: 14px; right: 14px; bottom: -6px; height: 12px; cursor: ns-resize; }
#view-overview .ov-rz-se { right: -7px; bottom: -7px; width: 22px; height: 22px; cursor: nwse-resize; border-radius: 7px; }

/* kenar tutamacı: ortada 2px'lik yuvarlak çubuk (kayıt çubuğu dili) */
#view-overview .ov-rz-e::after,
#view-overview .ov-rz-s::after {
  content: "";
  position: absolute;
  border-radius: 99px;
  background: currentColor;
  transition: box-shadow .18s var(--au-ease);
}
#view-overview .ov-rz-e::after { top: 50%; left: 50%; width: 3px; height: 26px; translate: -50% -50%; }
#view-overview .ov-rz-s::after { top: 50%; left: 50%; width: 26px; height: 3px; translate: -50% -50%; }
#view-overview .ov-rz:hover::after,
#view-overview .ov-rz.is-active::after { box-shadow: 0 0 10px rgba(245, 169, 74, .55); }

/* köşede iki çapraz çizgi: standart "buradan boyutlandır" işareti, ikon
   ailesinden bağımsız geometrik tutamaç (emoji yok, yeni kütüphane yok) */
#view-overview .ov-rz-se::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 3px;
  background: repeating-linear-gradient(135deg,
    currentColor 0 1.5px, transparent 1.5px 4px);
  transition: box-shadow .18s var(--au-ease);
}
#view-overview .ov-rz-se:hover::after,
#view-overview .ov-rz-se.is-active::after { box-shadow: 0 0 12px rgba(245, 169, 74, .5); }

#view-overview .ov-grid.is-ov-resizing > .card { border-color: var(--au-line-strong); }
#view-overview .ov-grid.is-ov-resizing > .card.is-ov-active {
  border-color: rgba(245, 169, 74, .55);
  box-shadow: var(--au-shadow), 0 0 0 1px rgba(245, 169, 74, .25), 0 18px 40px -26px rgba(245, 169, 74, .7);
}
/* sürüklerken metin seçimi ve kart içi tıklama istenmez; pointer capture
   zaten olayları tutamacada tutar, bu yalnız seçimi keser */
#view-overview .ov-grid.is-ov-dragging { user-select: none; cursor: inherit; }
#view-overview .ov-grid.is-ov-dragging > .card { transition: none; }

/* canlı ölçü rozeti: sürüklenen kartın sağ üstünde "3 kolon · 420 px" */
#view-overview .ov-rz-olcu {
  position: absolute;
  z-index: 7;
  top: 8px;
  right: 10px;
  display: none;
  padding: 3px 8px;
  border-radius: 99px;
  border: 1px solid rgba(245, 169, 74, .35);
  background: rgba(10, 12, 16, .82);
  color: var(--au-amber);
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  pointer-events: none;
  backdrop-filter: blur(6px);
}
#view-overview .card.is-ov-active .ov-rz-olcu,
#view-overview .ov-grid.is-ov-resizing > .card:focus-within .ov-rz-olcu { display: block; }
html[data-theme="light"] #view-overview .ov-rz-olcu { background: rgba(255, 255, 255, .9); color: #8a5410; }

/* ---------- mod şeridi ---------- */
#view-overview .ov-rz-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(245, 169, 74, .28);
  border-radius: var(--au-r-lg);
  background: linear-gradient(120deg, rgba(245, 169, 74, .09), rgba(245, 169, 74, .02) 60%), var(--au-card);
  animation: ov-rise .35s var(--au-ease) both;
}
#view-overview .ov-rz-bar[hidden] { display: none; }
#view-overview .ov-rz-hint {
  flex: 1 1 260px;
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--au-muted);
}
#view-overview .ov-rz-hint strong { color: var(--au-text); font-weight: 600; }
#view-overview .ov-rz-btns { display: flex; align-items: center; gap: 8px; margin-left: auto; }
#view-overview .ov-rz-btns .button { font-size: 11.5px; padding: 7px 13px; }
#view-overview .ov-rz-btns .button:disabled { opacity: .45; cursor: not-allowed; }
/* Canlı taslak durumu: şeridin TAMAMINI kaplayan ikinci satır. Değişiklik
   yokken gizli — kalıcı bir satır, "ne değişti" bilgisini gürültüye çevirir. */
#view-overview .ov-rz-durum {
  flex: 1 1 100%;
  margin: 0;
  padding-top: 9px;
  border-top: 1px solid rgba(245, 169, 74, .18);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--au-muted);
}
#view-overview .ov-rz-durum[hidden] { display: none; }
#view-overview .ov-rz-durum.is-warn { color: var(--au-amber); }
#view-overview #ovResizeToggle[aria-pressed="true"] {
  border-color: rgba(245, 169, 74, .5);
  background: var(--au-amber-soft);
  color: var(--au-amber);
}
#view-overview #ovResizeToggle[aria-pressed="true"] .icon { color: var(--au-amber); }

@media (max-width: 720px) {
  #view-overview .ov-rz-btns { margin-left: 0; width: 100%; }
  #view-overview .ov-rz-btns .button { flex: 1 1 auto; justify-content: center; }
  /* telefonda klavye yok: ok/Esc anlatısı şeridi 138px'ten ~90px'e indirir */
  #view-overview .ov-rz-kb { display: none; }
  /* telefonda kart zaten tek kolon: kenar tutamacı ekran dışına taşmasın */
  #view-overview .ov-rz-e { right: -4px; width: 10px; }
  #view-overview .ov-rz-se { right: -5px; bottom: -5px; }
}

@media (prefers-reduced-motion: reduce) {
  #view-overview .ov-rz,
  #view-overview .ov-rz::after,
  #view-overview .ov-rz-bar,
  #view-overview .ov-grid.is-ov-resizing > .card,
  #view-overview .positions-panel .data-table tr { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   FAZ 39 — GENEL BAKIŞ KARTINI GİZLE/GÖSTER + YÜKSEKLİK HAZIR DEĞERLERİ

   GİZLEME NEDEN SIRA LİSTESİNDEN ÇIKARMIYOR: kart `overview` dizisinde
   kalır, yalnız ayrı `gizli` alanına yazılır. Çıkarsaydı (a) "Göster"
   kartı en alta eklerdi ve sahibin kurduğu sıra bozulurdu; (b) SURUM 4
   kaydını okuyan ÖNBELLEKTEKİ eski istemci o kartı bir daha hiç
   geri getiremezdi. Eski istemci `gizli`yi yok sayıp her şeyi gösterir —
   panel hiçbir durumda bomboş kalmaz.

   NEDEN [hidden] TEK BAŞINA YETMİYOR: .card kuralı display:flex bildiriyor;
   aynı tuzak yukarıdaki .ov-layout-btn[hidden] satırında da kırılmıştı
   (nöbetçi o satırı imzalar). FLIP gizli kartı ölçemez: display:none'ın
   getBoundingClientRect() 0×0 döner, geri gelen kart (0,0)'dan uçarak
   gelmesin diye JS o kareyi atlıyor — alttaki kural JS'siz de çalışmalı.

   RAFTAKİ DİGME NEDEN SATIRLAY AYNİ 26px: aynı pencerenin iki
   kontrolü farklı boyutta olsaydı "kasıtlı" değil "unutulmuş" gibi
   dururdu. Ölçüm (640px diyalog, raf içi 547px): üç pill 172 + 167 + 142 +
   2×6 ara = 493px, TEK satıra sığar. Dördüncü pill satırı kırar; raf
   max-height 104px'e kadar kendi kayar (720px altında 132px) — taşma değil
   kaydırma.
   ========================================================================== */

/* gizlenen kart ızgarada YER KAPLAMAZ — display:flex'i ezen tek kural */
#view-overview .ov-grid > .card[hidden] { display: none; }

/* ---------- araç şeridi: kaç kart gizli rozeti ----------
   Kalıcı ve tıklanabilir: kartı saklayan sayfa bomboş görünürse geri
   dönüş yolunun HEP ortada durması gerekir (dağıtıcı düğme yalnızca
   pencere açıkken erişilebilir). Rozet yazılmış kaydı gösterir, taslağı
   değil — Kaydet'e basmadan "bir şey değişti" izlenimi vermemeli. */
#view-overview .ov-gizli-rozet {
  border-color: rgba(245, 169, 74, .3);
  background: var(--au-amber-soft);
  color: var(--au-amber);
}
#view-overview .ov-gizli-rozet .icon { width: 13px; height: 13px; }
#view-overview .ov-gizli-rozet:hover {
  border-color: rgba(245, 169, 74, .55);
  box-shadow: 0 8px 20px -14px rgba(245, 169, 74, .9);
}
#view-overview .ov-gizli-sayi { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- satırdaki göz düğmesi ----------
   Oklardan ayrışmalı: sıralama yapmıyor, kartı sayfadan kaldırıyor.
   Kırmızı .ovl-btn'in hover gölgesini devralmasın diye kendi hover'ı. */
#ovLayoutModal .ovl-btn[data-ovl-act="hide"] { color: var(--au-dim); }
#ovLayoutModal .ovl-btn[data-ovl-act="hide"]:hover:not(:disabled) {
  color: #ff9b93;
  border-color: rgba(255, 107, 94, .45);
  background: rgba(255, 107, 94, .1);
  box-shadow: 0 6px 16px -12px rgba(255, 107, 94, .85);
}
#ovLayoutModal .ovl-btn[data-ovl-act="hide"]:disabled { opacity: .18; }

/* ---------- pencere: gizli kart rafı ----------
   Listeyle aynı dili konuşur ama SÜRÜKLEMEZ: sır taşımak satırın işi,
   buradaki tek eylem geri getirmek. Kesikli kenar + soluk zemin,
   "listede değil" bilgisini renk vermeden de taşır. */
#ovLayoutModal .ovl-gizli {
  margin: 12px 0 0;
  padding: 9px 10px 10px;
  border: 1px dashed var(--au-line-strong);
  border-radius: var(--au-r-md);
  background: rgba(0, 0, 0, .16);
}
#ovLayoutModal .ovl-gizli-ad {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--au-dim);
}
#ovLayoutModal .ovl-gizli-sayi {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 1px solid rgba(245, 169, 74, .26);
  border-radius: 999px;
  background: var(--au-amber-soft);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--au-amber);
}
#ovLayoutModal .ovl-gizli-list {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 104px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, .35) transparent;
  scrollbar-gutter: stable;
}
/* .ovl-list'in aksine SADECE doluysa çizilir: boşken stable gutter
   8px'lik boş bir şerit bırakırdı. Raf boşken tüm blok gizli zaten. */
#ovLayoutModal .ovl-gizli-list::-webkit-scrollbar { width: 8px; }
#ovLayoutModal .ovl-gizli-list::-webkit-scrollbar-track { background: transparent; }
#ovLayoutModal .ovl-gizli-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .09); border-radius: 99px; }
#ovLayoutModal .ovl-gizli-list::-webkit-scrollbar-thumb:hover { background: rgba(245, 169, 74, .38); }
#ovLayoutModal .ovl-gizli-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 3px 4px 3px 9px;
  border: 1px solid var(--au-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  font-size: 11.5px;
  color: var(--au-muted);
  transition: border-color .18s var(--au-ease), background .18s;
}
#ovLayoutModal .ovl-gizli-item:hover { border-color: var(--au-line-strong); background: rgba(255, 255, 255, .05); }
#ovLayoutModal .ovl-gizli-item .icon { width: 13px; height: 13px; flex: none; color: var(--au-dim); }
#ovLayoutModal .ovl-gizli-adet {
  min-width: 0;
  max-width: 148px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#ovLayoutModal .ovl-gizli-item .ovl-btn { border-radius: 999px; }
#ovLayoutModal .ovl-gizli-item .ovl-btn .icon { width: 14px; height: 14px; }
#ovLayoutModal .ovl-gizli-ro {
  padding: 1px 7px;
  border: 1px solid var(--au-line);
  border-radius: 999px;
  font-size: 9.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--au-dim);
}

/* ---------- açık tema ---------- */
html[data-theme="light"] #view-overview .ov-gizli-rozet { background: rgba(221, 138, 43, .14); border-color: rgba(221, 138, 43, .32); }
html[data-theme="light"] #ovLayoutModal .ovl-gizli { border-color: rgba(16, 22, 38, .18); background: rgba(16, 22, 38, .02); }
html[data-theme="light"] #ovLayoutModal .ovl-gizli-item { background: rgba(16, 22, 38, .03); }
html[data-theme="light"] #ovLayoutModal .ovl-gizli-item:hover { background: rgba(16, 22, 38, .06); }
html[data-theme="light"] #ovLayoutModal .ovl-gizli-item .ovl-btn { background: rgba(16, 22, 38, .05); }
html[data-theme="light"] #ovLayoutModal .ovl-gizli-sayi { background: rgba(221, 138, 43, .14); border-color: rgba(221, 138, 43, .3); }
html[data-theme="light"] #ovLayoutModal .ovl-gizli-list::-webkit-scrollbar-thumb { background: rgba(16, 22, 38, .16); }

@media (max-width: 720px) {
  /* telefonda raf tek satıra yakın kalsın: pill'ler 26px ok hizasına çıkar,
     ad tavanı kırpılmayı kendisi çözer (max-width yerine 1fr payı) */
  #ovLayoutModal .ovl-gizli-list { max-height: 132px; }
}

@media (prefers-reduced-motion: reduce) {
  #view-overview .ov-gizli-rozet,
  #view-overview .ov-gizli-rozet .icon,
  #ovLayoutModal .ovl-gizli-item,
  #ovLayoutModal .ovl-gizli-item .ovl-btn { transition: none !important; }
  #ovLayoutModal .ovl-btn[data-ovl-act="hide"]:hover:not(:disabled) { transform: none; }
}
