/* =============================================================================
   Repertuar Pro — "Console" görsel dili (Google Play Console 2026'dan ilhamla)
   Açık zemin, büyük yuvarlatılmış beyaz kap, ince ikon rayı, tonal pastel kutular.
   ============================================================================= */
:root {
  --c-bg: #f7f8fa;          /* sayfa zemini */
  --c-surface: #ffffff;     /* büyük kap */
  --c-tile: #f1f3f7;        /* içerideki gri paneller */
  --c-tile-2: #e9edf3;
  --c-line: #e3e6ec;
  --c-ink: #1b1d22;
  --c-ink-2: #45484f;
  --c-mut: #6e727b;
  --c-navy: #122143;
  --c-blue: #1a4fb3;        /* vurgu metin / ok */
  --c-blue-tonal: #dde7fb;  /* tonal chip ve ok butonu */
  --c-blue-tonal-2: #c9d9f9;
  --c-magenta: #9e1f62;
  --c-magenta-2: #b8266f;
  --c-magenta-tonal: #fbe3ef;
  --c-green: #0d7a3e; --c-green-tonal: #d8efdf;
  --c-red: #b3261e; --c-red-tonal: #fbe1e0;
  --c-amber: #8a5a00; --c-amber-tonal: #fbeccf;
  --c-radius-xl: 28px; --c-radius-lg: 16px; --c-radius-md: 12px; --c-radius-sm: 8px;
  --c-font: "Inter", "Google Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --c-display: "Outfit", "Google Sans", "Inter", system-ui, sans-serif;
  --c-rail: 264px;
  --c-ease: cubic-bezier(.2, 0, 0, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--c-font); font-size: 14px; color: var(--c-ink); background: var(--c-bg); -webkit-font-smoothing: antialiased; min-height: 100dvh; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
svg.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

/* ---------- Üst çubuk ---------- */
.c-top { height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 20px 0 24px; }
.c-brand { display: flex; align-items: center; gap: 10px; font-family: var(--c-display); font-size: 20px; font-weight: 500; letter-spacing: -.01em; color: var(--c-ink-2); }
.c-brand .mark { width: 30px; height: 30px; border-radius: 50%; background: var(--c-navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.c-brand b { font-weight: 500; color: var(--c-magenta); }
.c-top .grow { flex: 1; }
.c-pill { height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--c-line); background: var(--c-surface); display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--c-ink-2); transition: background .2s var(--c-ease); }
.c-pill:hover { background: var(--c-tile); }
.c-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-magenta); margin-left: -2px; }
.c-iconbtn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--c-ink-2); transition: background .2s; }
.c-iconbtn:hover { background: var(--c-tile-2); }
.c-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--c-navy), var(--c-magenta)); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; font-family: var(--c-display); }

/* ---------- Gövde: ray + kap ---------- */
.c-body { display: grid; grid-template-columns: var(--c-rail) 1fr; gap: 0; align-items: start; }
.c-rail { position: sticky; top: 64px; display: flex; flex-direction: column; gap: 2px; padding: 8px 12px 24px 16px; max-height: calc(100dvh - 64px); overflow-y: auto; overflow-x: hidden; }
.c-rail .grp { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-mut); padding: 14px 16px 6px; }
.c-rail a { height: 48px; padding: 0 16px; border-radius: 999px; display: flex; align-items: center; gap: 14px; color: var(--c-ink-2); font-weight: 500; font-size: 14px; transition: background .2s var(--c-ease), color .2s; white-space: nowrap; }
.c-rail a:hover { background: var(--c-tile-2); }
.c-rail a.on { background: var(--c-blue-tonal); color: var(--c-navy); }
.c-rail a.on svg { stroke-width: 2.2; }
.c-rail a .n { margin-left: auto; font-size: 12px; color: var(--c-mut); font-weight: 500; }
.c-rail a.on .n { color: var(--c-navy); }
.c-rail .sep { height: 1px; background: var(--c-line); margin: 8px 12px; }
.c-rail .plan { margin: 12px 4px 0; background: var(--c-magenta-tonal); border-radius: 16px; padding: 14px 16px; font-size: 13px; color: var(--c-ink-2); }
.c-rail .plan b { display: block; color: var(--c-magenta); font-weight: 600; margin-bottom: 2px; }
.c-rail .plan a { height: auto; padding: 8px 0 0; color: var(--c-magenta); font-size: 13px; gap: 6px; }
.c-rail .plan a:hover { background: none; text-decoration: underline; }
.c-container { background: var(--c-surface); border-radius: var(--c-radius-xl) 0 0 var(--c-radius-xl); min-height: calc(100dvh - 64px); padding: 36px 40px 56px 40px; display: flex; flex-direction: column; gap: 24px; box-shadow: 0 0 0 1px rgba(0,0,0,.02); }

/* ---------- Başlık ---------- */
.c-head { display: flex; align-items: center; gap: 28px; padding: 0 0 8px; }
.c-head .big-avatar { width: 88px; height: 88px; border-radius: 50%; background: var(--c-tile-2); display: grid; place-items: center; color: var(--c-ink-2); font-family: var(--c-display); font-size: 30px; font-weight: 500; flex: 0 0 auto; }
.c-head h1 { margin: 0; font-family: var(--c-display); font-weight: 500; font-size: 30px; line-height: 1.15; letter-spacing: -.01em; }
.c-head h1 small { display: block; font-size: 22px; font-weight: 400; color: var(--c-ink-2); margin-top: 2px; }
.c-head .meta { margin-top: 10px; color: var(--c-ink-2); font-size: 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.c-head .meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--c-mut); display: inline-block; font-style: normal; }
.c-head .acts { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.c-textbtn { height: 40px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; color: var(--c-blue); font-weight: 500; transition: background .2s; }
.c-textbtn:hover { background: var(--c-blue-tonal); }
.c-primary { height: 44px; padding: 0 22px 0 18px; border-radius: 999px; background: var(--c-magenta); color: #fff; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,.15); transition: background .2s, box-shadow .2s; }
.c-primary:hover { background: var(--c-magenta-2); box-shadow: 0 2px 6px rgba(158,31,98,.35); }

/* ---------- Kap içi gri bölge ---------- */
.c-zone { background: var(--c-tile); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 20px; }

/* Özet kutuları */
.c-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.c-tile { background: var(--c-surface); border-radius: 12px; padding: 18px 20px; display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: start; min-height: 120px; }
.c-tile:first-child { border-radius: 16px 12px 12px 16px; } .c-tile:last-child { border-radius: 12px 16px 16px 12px; }
.c-tile .ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.c-tile .ico.green { background: var(--c-green-tonal); color: var(--c-green); }
.c-tile .ico.red { background: var(--c-red-tonal); color: var(--c-red); }
.c-tile .ico.blue { background: var(--c-blue-tonal); color: var(--c-blue); }
.c-tile .ico.magenta { background: var(--c-magenta-tonal); color: var(--c-magenta); }
.c-tile .ico.amber { background: var(--c-amber-tonal); color: var(--c-amber); }
.c-tile h3 { margin: 0; font-family: var(--c-display); font-weight: 500; font-size: 17px; }
.c-tile p { margin: 2px 0 0; color: var(--c-ink-2); }
.c-tile .line2 { grid-column: 1 / -1; color: var(--c-ink-2); font-size: 14px; margin-top: 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.c-tile .line2 .pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--c-tile); font-size: 13px; font-weight: 500; }
.c-tile .line2 .pill.red { background: var(--c-red-tonal); color: var(--c-red); } .c-tile .line2 .pill.green { background: var(--c-green-tonal); color: var(--c-green); }
.c-tile .line2 .pill.amber { background: var(--c-amber-tonal); color: var(--c-amber); }
button.pill { cursor: pointer; }
.c-tile .flt { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--c-ink-2); }
.c-tile .flt:hover { background: var(--c-tile); }

/* Filtre satırı */
.c-filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.c-chip { height: 40px; padding: 0 14px 0 18px; border-radius: 999px; background: var(--c-blue-tonal); color: var(--c-navy); display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.c-chip:hover { background: var(--c-blue-tonal-2); }
.c-chip svg { width: 18px; height: 18px; }
.c-filters .grow { flex: 1; }
.c-range { display: inline-flex; align-items: center; gap: 8px; color: var(--c-ink-2); font-weight: 500; padding: 0 8px; }
.c-search { height: 40px; width: 220px; border-radius: 999px; background: var(--c-tile-2); display: flex; align-items: center; gap: 8px; padding: 0 14px; color: var(--c-mut); }
.c-search input { border: 0; background: none; font: inherit; color: var(--c-ink); width: 100%; outline: none; }

/* Satırlar */
.c-rows { display: flex; flex-direction: column; gap: 4px; }
.c-row { display: grid; grid-template-columns: 1fr 112px minmax(0, 460px) 72px; gap: 4px; }
.c-cell { background: var(--c-surface); border-radius: 12px; min-height: 112px; display: flex; align-items: center; }
.c-row .c-cell:first-child { border-radius: 16px 12px 12px 16px; padding: 16px 22px; gap: 18px; }
.c-row .c-cell:last-child { border-radius: 12px 16px 16px 12px; justify-content: center; }
.c-row:first-child .c-cell:first-child { border-top-left-radius: 20px; } .c-row:first-child .c-cell:last-child { border-top-right-radius: 20px; }
.c-row:last-child .c-cell:first-child { border-bottom-left-radius: 20px; } .c-row:last-child .c-cell:last-child { border-bottom-right-radius: 20px; }
.c-app { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto; }
.c-app.cat { background: var(--c-magenta-tonal); color: var(--c-magenta); }
.c-app.set { background: var(--c-navy); color: #fff; }
.c-app svg { width: 24px; height: 24px; }
.c-ident { min-width: 0; }
.c-ident .ttl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.c-ident .ttl b { font-family: var(--c-display); font-weight: 500; font-size: 17px; }
.c-ident .sub { margin-top: 6px; color: var(--c-ink-2); font-size: 13px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.c-ident .sub i { width: 4px; height: 4px; border-radius: 50%; background: var(--c-mut); display: inline-block; }
.c-badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; background: var(--c-tile); color: var(--c-ink-2); }
.c-badge svg { width: 14px; height: 14px; }
.c-badge.red { background: var(--c-red-tonal); color: var(--c-red); }
.c-badge.green { background: var(--c-green-tonal); color: var(--c-green); } .c-badge.magenta { background: var(--c-magenta-tonal); color: var(--c-magenta); }
.c-badge.amber { background: var(--c-amber-tonal); color: var(--c-amber); }
.c-badge.blue { background: var(--c-blue-tonal); color: var(--c-blue); }
.c-badge.outline { background: transparent; box-shadow: inset 0 0 0 1px var(--c-line); }
.c-status { flex-direction: column; justify-content: center; gap: 6px; text-align: center; font-size: 12px; color: var(--c-ink-2); padding: 10px; }
.c-status svg { width: 22px; height: 22px; }
.c-status.green svg { color: var(--c-green); } .c-status.red svg { color: var(--c-red); } .c-status.amber svg { color: var(--c-amber); } .c-status.mut svg { color: var(--c-mut); }
.c-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px 20px; }
.c-metric .lbl { font-size: 13px; color: var(--c-ink-2); text-decoration: underline dotted; text-underline-offset: 3px; text-decoration-color: var(--c-mut); white-space: nowrap; }
.c-metric .val { font-family: var(--c-display); font-size: 26px; font-weight: 500; line-height: 1.2; margin-top: 4px; font-variant-numeric: tabular-nums; }
.c-metric .dlt { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 500; margin-top: 4px; }
.c-metric .dlt svg { width: 14px; height: 14px; padding: 1px; border-radius: 50%; }
.c-metric .dlt.up { color: var(--c-green); } .c-metric .dlt.up svg { background: var(--c-green-tonal); }
.c-metric .dlt.down { color: var(--c-red); } .c-metric .dlt.down svg { background: var(--c-red-tonal); }
.c-metric .dlt.flat { color: var(--c-mut); }
.c-arrow { width: 40px; height: 40px; border-radius: 50%; background: var(--c-blue-tonal); color: var(--c-blue); display: grid; place-items: center; transition: background .2s, transform .2s var(--c-ease); }
.c-row:hover .c-arrow { background: var(--c-blue-tonal-2); transform: translateX(2px); }

/* Alt bölüm: iki kart */
.c-two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.c-card { background: var(--c-tile); border-radius: 20px; padding: 20px 22px; }
.c-card h2 { margin: 0 0 4px; font-family: var(--c-display); font-weight: 500; font-size: 18px; }
.c-card .desc { color: var(--c-ink-2); font-size: 13px; margin-bottom: 14px; }
.c-list { display: flex; flex-direction: column; gap: 4px; }
.c-list a { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 12px; align-items: center; background: var(--c-surface); border-radius: 12px; padding: 10px 14px; min-height: 60px; }
.c-list a:hover { background: #fbfcfe; }
.c-list .k { width: 40px; height: 40px; border-radius: 10px; background: var(--c-tile); display: grid; place-items: center; color: var(--c-ink-2); }
.c-list b { font-weight: 500; display: block; } .c-list small { color: var(--c-mut); font-size: 12.5px; }
.c-key { font-family: var(--c-display); font-weight: 600; font-size: 13px; padding: 4px 9px; border-radius: 8px; background: var(--c-blue-tonal); color: var(--c-navy); }
.c-key.none { background: var(--c-tile); color: var(--c-mut); font-weight: 500; }
.c-devices { display: flex; flex-direction: column; gap: 4px; }
.c-dev { display: flex; align-items: center; gap: 12px; background: var(--c-surface); border-radius: 12px; padding: 12px 14px; }
.c-dev .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--c-tile); display: grid; place-items: center; color: var(--c-ink-2); }
.c-dev b { font-weight: 500; display: block; } .c-dev small { color: var(--c-mut); font-size: 12.5px; }
.c-dev .st { margin-left: auto; }

/* Mobil */
.c-bottom { display: none; }
@media (max-width: 1100px) {
  .c-row { grid-template-columns: 1fr 100px 72px; }
  .c-metrics { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); min-height: 0; padding: 14px 20px; border-radius: 12px; }
  .c-two { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .c-top { padding: 0 12px 0 16px; height: 56px; }
  .c-brand { font-size: 18px; }
  .c-pill span { display: none; } .c-pill { padding: 0 12px; }
  .c-body { grid-template-columns: 1fr; }
  .c-rail { display: none; }
  .c-container { border-radius: 24px 24px 0 0; padding: 22px 16px 110px; min-height: auto; }
  .c-head { gap: 14px; align-items: flex-start; flex-wrap: wrap; }
  .c-head .big-avatar { width: 56px; height: 56px; font-size: 20px; }
  .c-head h1 { font-size: 24px; } .c-head h1 small { font-size: 16px; }
  .c-head .acts { width: 100%; margin-left: 0; justify-content: flex-start; }
  .c-primary { width: 100%; justify-content: center; }
  .c-zone { padding: 12px; border-radius: 18px; gap: 14px; }
  .c-tiles { grid-template-columns: 1fr; }
  .c-tile, .c-tile:first-child, .c-tile:last-child { border-radius: 12px; min-height: 0; }
  .c-tiles .c-tile:first-child { border-radius: 16px 16px 12px 12px; } .c-tiles .c-tile:last-child { border-radius: 12px 12px 16px 16px; }
  .c-search { width: 100%; }
  .c-row { grid-template-columns: 1fr 88px; }
  .c-row .c-cell:first-child { padding: 14px 16px; gap: 12px; min-height: 0; }
  .c-row .c-cell:last-child { display: none; }
  .c-status { min-height: 0; }
  .c-metrics { grid-column: 1 / -1; padding: 12px 16px; gap: 8px; }
  .c-metric .val { font-size: 20px; }
  .c-metric .lbl { font-size: 11.5px; white-space: normal; }
  .c-ident .ttl b { font-size: 16px; }
  .c-bottom { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; height: calc(72px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--c-surface); border-top: 1px solid var(--c-line); z-index: 10; }
  .c-bottom a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 500; color: var(--c-ink-2); }
  .c-bottom a span { padding: 4px 16px; border-radius: 999px; display: grid; place-items: center; }
  .c-bottom a.on span { background: var(--c-blue-tonal); color: var(--c-navy); }
}

/* =============================================================================
   Ek bileşenler: diyalog, snackbar, menü, metin alanı, onay kutusu, sıralama
   ============================================================================= */
.c-scrim { position: fixed; inset: 0; background: rgba(27,29,34,.42); z-index: 50; display: none; animation: c-fade .18s var(--c-ease); }
.c-scrim.on { display: block; }
@keyframes c-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes c-pop { from { opacity: 0; transform: translateY(10px) scale(.98) } to { opacity: 1; transform: none } }
.c-dialog { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: 16px; }
.c-dialog.on { display: flex; }
.c-dialog > form, .c-dialog > div { width: 100%; max-width: 440px; background: var(--c-surface); border-radius: 28px; padding: 24px; box-shadow: 0 24px 64px -24px rgba(0,0,0,.4); animation: c-pop .22s var(--c-ease); max-height: calc(100dvh - 32px); overflow: auto; }
.c-dialog.wide > form, .c-dialog.wide > div { max-width: 720px; }
.c-dialog h2 { margin: 0 0 6px; font-family: var(--c-display); font-weight: 500; font-size: 22px; }
.c-dialog .d-desc { color: var(--c-ink-2); font-size: 14px; margin: 0 0 18px; }
.c-dialog .d-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px; }
.c-dialog .d-ico.red { background: var(--c-red-tonal); color: var(--c-red); } .c-dialog .d-ico.green { background: var(--c-green-tonal); color: var(--c-green); } .c-dialog .d-ico.blue { background: var(--c-blue-tonal); color: var(--c-blue); } .c-dialog .d-ico.amber { background: var(--c-amber-tonal); color: var(--c-amber); }
.c-dialog .d-acts { display: flex; justify-content: flex-end; gap: 6px; margin-top: 22px; flex-wrap: wrap; }
.c-btn { height: 40px; padding: 0 20px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; transition: background .2s; white-space: nowrap; }
.c-btn.text { color: var(--c-blue); } .c-btn.text:hover { background: var(--c-blue-tonal); }
.c-btn.filled { background: var(--c-magenta); color: #fff; } .c-btn.filled:hover { background: var(--c-magenta-2); }
.c-btn.danger { background: var(--c-red); color: #fff; } .c-btn.danger:hover { filter: brightness(.93); }
.c-btn.tonal { background: var(--c-blue-tonal); color: var(--c-navy); } .c-btn.tonal:hover { background: var(--c-blue-tonal-2); }
/* Temizle / sil / kaldır gibi geri alınması zor eylemler: kırmızı ton (onaydaki asıl Sil dolu kırmızı kalır) */
.c-btn.danger-tonal { background: var(--c-red-tonal); color: var(--c-red); } .c-btn.danger-tonal:hover { background: color-mix(in srgb, var(--c-red) 16%, var(--c-red-tonal)); }
.c-btn.outlined { box-shadow: inset 0 0 0 1px var(--c-line); color: var(--c-ink-2); } .c-btn.outlined:hover { background: var(--c-tile); }
.c-btn:disabled { opacity: .45; pointer-events: none; }
.c-textbtn:disabled { opacity: .45; pointer-events: none; }
.c-btn svg { width: 18px; height: 18px; }
/* Metin alanı (M3 filled) */
.c-field { display: flex; flex-direction: column; gap: 6px; }
.c-field label { font-size: 13px; font-weight: 500; color: var(--c-ink-2); }
.c-field .in { position: relative; }
.c-field input, .c-field select, .c-field textarea { width: 100%; height: 52px; border: 0; border-radius: 12px; background: var(--c-tile); padding: 0 16px; font: inherit; font-size: 15px; color: var(--c-ink); outline: none; box-shadow: inset 0 0 0 1px var(--c-line); transition: background .2s, box-shadow .2s; }
/* Gri bölge (c-zone) içindeki alanlar beyaz zemin üzerinde durur */
.c-zone .c-field input, .c-zone .c-field select, .c-zone .c-field textarea { background: var(--c-surface); }
.c-field textarea { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; }
/* Odak: alt çizgi yerine yumuşak halka (klavye kullanıcıları için görünür kalır) */
.c-field input:focus, .c-field select:focus, .c-field textarea:focus { background: var(--c-surface); box-shadow: inset 0 0 0 1.5px var(--c-blue-tonal-2), 0 0 0 4px var(--c-blue-tonal); }
.c-field .hint { font-size: 12px; color: var(--c-mut); padding-left: 16px; }
.c-field.err input, .c-field.err select, .c-field.err textarea { box-shadow: inset 0 0 0 1.5px var(--c-red); } .c-field.err .hint { color: var(--c-red); }
.c-radios { display: flex; gap: 18px; flex-wrap: wrap; }
.c-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; min-height: 40px; }
.c-check input { appearance: none; width: 18px; height: 18px; margin: 0; border: 2px solid var(--c-mut); border-radius: 4px; display: grid; place-content: center; transition: all .15s; cursor: pointer; }
.c-check input[type=radio] { border-radius: 50%; }
.c-check input::before { content: ""; width: 10px; height: 10px; transform: scale(0); background: #fff; clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); transition: transform .15s; }
.c-check input[type=radio]::before { clip-path: none; border-radius: 50%; width: 8px; height: 8px; background: var(--c-blue); }
.c-check input:checked { background: var(--c-blue); border-color: var(--c-blue); } .c-check input[type=radio]:checked { background: #fff; }
.c-check input:checked::before { transform: scale(1); }
.c-check input:indeterminate { background: var(--c-blue); border-color: var(--c-blue); } .c-check input:indeterminate::before { transform: scale(1); clip-path: none; height: 2px; width: 10px; }
/* Menü */
.c-menuwrap { position: relative; display: inline-flex; }
.c-menu { position: absolute; top: calc(100% + 6px); right: 0; min-width: 220px; background: var(--c-surface); border-radius: 16px; box-shadow: 0 8px 28px -6px rgba(0,0,0,.22), 0 0 0 1px rgba(0,0,0,.04); padding: 8px; z-index: 40; display: none; animation: c-pop .18s var(--c-ease); }
.c-menu.on { display: block; } .c-menu.left { right: auto; left: 0; }
.c-menu button, .c-menu a { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border-radius: 10px; font-size: 14px; text-align: left; }
.c-menu button:hover, .c-menu a:hover { background: var(--c-tile); }
.c-menu .on-item { background: var(--c-blue-tonal); color: var(--c-navy); font-weight: 500; }
.c-menu .lbl { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--c-mut); font-weight: 600; padding: 8px 12px 4px; }
.c-menu .sep { height: 1px; background: var(--c-line); margin: 6px 4px; }
.c-menu svg { width: 18px; height: 18px; color: var(--c-ink-2); }
/* Snackbar */
.c-snack { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--c-ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14px; display: flex; align-items: center; gap: 16px; opacity: 0; pointer-events: none; transition: all .25s var(--c-ease); z-index: 80; max-width: calc(100vw - 32px); box-shadow: 0 10px 30px -8px rgba(0,0,0,.4); }
.c-snack.on { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
.c-snack b { color: #9fc0ff; font-weight: 500; cursor: pointer; }
@media (max-width: 760px) { .c-snack { bottom: calc(84px + env(safe-area-inset-bottom)); } }
/* Sıralanabilir kategori satırı */
.c-row.sortable { grid-template-columns: 1fr 150px 180px 72px; }
.c-row.sortable .c-cell { min-height: 84px; }
.c-row.sortable .c-cell:first-child { padding: 12px 18px 12px 12px; gap: 12px; }
.c-grip { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--c-mut); cursor: grab; touch-action: none; flex: 0 0 auto; }
.c-grip:hover { background: var(--c-tile); color: var(--c-ink-2); }
.c-row.dragging { opacity: .35; }
.c-row.drop-before .c-cell { box-shadow: inset 0 3px 0 var(--c-blue); } .c-row.drop-after .c-cell { box-shadow: inset 0 -3px 0 var(--c-blue); }
.c-idx { width: 24px; text-align: right; font-family: var(--c-display); color: var(--c-mut); font-size: 13px; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.c-cell.c-num { flex-direction: column; align-items: flex-start; justify-content: center; padding: 10px 18px; gap: 2px; }
.c-cell.c-num .lbl { font-size: 12.5px; color: var(--c-ink-2); } .c-cell.c-num .val { font-family: var(--c-display); font-size: 22px; font-weight: 500; }
.c-cell.c-num .val small { font-size: 13px; color: var(--c-mut); font-weight: 400; font-family: var(--c-font); }
.c-cell.c-acts { justify-content: flex-end; padding-right: 10px; gap: 2px; }
.c-ib { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--c-ink-2); transition: background .15s; position: relative; }
.c-ib:hover { background: var(--c-tile); } .c-ib.red:hover { background: var(--c-red-tonal); color: var(--c-red); }
.c-ib svg { width: 19px; height: 19px; }
.c-ib[data-tip]::after { content: attr(data-tip); position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); background: var(--c-ink); color: #fff; font-size: 11.5px; padding: 4px 8px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.c-ib:hover::after { opacity: 1; }
.c-row .c-ib.updown { display: none; }
.c-row .sel { display: none; }
.c-rows.selecting .c-row .sel { display: inline-flex; } .c-rows.selecting .c-grip { display: none; }
.c-row.is-selected .c-cell { background: #eef3fd; }
.c-empty { text-align: center; padding: 48px 20px; color: var(--c-ink-2); background: var(--c-surface); border-radius: 16px; }
.c-empty .ico { width: 56px; height: 56px; border-radius: 50%; background: var(--c-tile); display: grid; place-items: center; margin: 0 auto 12px; color: var(--c-mut); }
.c-empty h3 { margin: 0 0 4px; font-family: var(--c-display); font-weight: 500; font-size: 17px; color: var(--c-ink); }
.c-empty p { margin: 0 0 16px; font-size: 13.5px; }
.c-banner { display: flex; align-items: center; gap: 10px; background: var(--c-blue-tonal); color: var(--c-navy); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; }
.c-banner svg { width: 18px; height: 18px; }
.c-banner.amber { background: var(--c-amber-tonal); color: var(--c-amber); } .c-banner.green { background: var(--c-green-tonal); color: var(--c-green); }
.c-banner.red { background: var(--c-red-tonal); color: var(--c-red); } .c-banner.plain { background: var(--c-tile); color: var(--c-ink-2); }
.c-banner { line-height: 1.45; } .c-banner svg { flex: 0 0 auto; }
/* Seçim çubuğu */
.c-selbar { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(300%); visibility: hidden; background: var(--c-ink); color: #fff; border-radius: 999px; padding: 8px 8px 8px 20px; display: flex; align-items: center; gap: 8px; z-index: 45; box-shadow: 0 14px 40px -10px rgba(0,0,0,.45); transition: transform .3s var(--c-ease); max-width: calc(100vw - 24px); flex-wrap: wrap; }
.c-selbar.on { transform: translateX(-50%); visibility: visible; }
.c-selbar .n { font-weight: 500; margin-right: 8px; white-space: nowrap; }
.c-selbar .c-btn { background: rgba(255,255,255,.1); color: #fff; height: 36px; } .c-selbar .c-btn:hover { background: rgba(255,255,255,.2); }
.c-selbar .c-btn.filled { background: var(--c-magenta); }
.c-selbar .c-btn.danger-tonal { background: var(--c-red-tonal); color: var(--c-red); } .c-selbar .c-btn.danger-tonal:hover { background: color-mix(in srgb, var(--c-red) 22%, var(--c-red-tonal)); }
/* Seçim çubuğu açıkken listenin sonu (son satırlar, sayfalama) çubuğun arkasında kalmasın */
body:has(.c-selbar.on) .c-container { padding-bottom: 120px; }
@media (max-width: 760px) { body:has(.c-selbar.on) .c-container { padding-bottom: calc(220px + env(safe-area-inset-bottom)); } }
@media (max-width: 760px) { .c-selbar { left: 12px; right: 12px; transform: translateY(300%); border-radius: 20px; bottom: calc(84px + env(safe-area-inset-bottom)); } .c-selbar.on { transform: none; } }
/* Silinenler bölümü */
.c-zone.danger { background: #fdf3f3; }
.c-zone.danger .c-row .c-cell { background: #fff; }
.c-zone h2 { margin: 0; font-family: var(--c-display); font-weight: 500; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.c-zone h2 .c-badge { margin-left: 2px; }
.c-zonehead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.c-zonehead p { margin: 4px 0 0; color: var(--c-ink-2); font-size: 13.5px; }
.c-log { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.c-log th { text-align: left; font-weight: 500; color: var(--c-mut); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--c-line); }
.c-log td { padding: 10px; border-bottom: 1px solid var(--c-line); }
@media (max-width: 1100px) { .c-row.sortable { grid-template-columns: 1fr 72px; } .c-row.sortable .c-cell.c-num { display: none; } .c-row.sortable .c-cell.c-acts { grid-column: 1 / -1; min-height: 0; padding: 4px 8px; } }
@media (max-width: 760px) {
  .c-row.sortable { grid-template-columns: 1fr; }
  .c-row.sortable .c-cell:first-child, .c-row.sortable .c-cell:last-child { border-radius: 12px; }
  .c-row.sortable .c-cell.c-acts { justify-content: flex-start; }
  .c-row .c-ib.updown { display: grid; }
  .c-grip { display: none; }
  .c-idx { display: none; }
  .c-row.sortable .c-cell:last-child.arrow { display: none; }
  .c-head .acts .c-menuwrap { width: 100%; } .c-head .acts .c-menuwrap > .c-textbtn { width: 100%; justify-content: center; box-shadow: inset 0 0 0 1px var(--c-line); }
}

/* ===== Kategori detayı: şarkı satırları, okuyucu, nota seçici, içe aktarma ===== */
.c-back { display: inline-flex; align-items: center; gap: 6px; color: var(--c-blue); font-weight: 500; font-size: 14px; margin-bottom: 10px; }
.c-back:hover { text-decoration: underline; }
.c-seg { display: inline-flex; background: var(--c-tile); border-radius: 999px; padding: 4px; gap: 2px; }
.c-seg button { height: 32px; padding: 0 14px; border-radius: 999px; font-weight: 500; font-size: 13px; color: var(--c-ink-2); }
.c-seg button.on { background: var(--c-surface); color: var(--c-navy); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.c-seg a { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; font-weight: 500; font-size: 13px; color: var(--c-ink-2); text-decoration: none; }
.c-seg a.on { background: var(--c-surface); color: var(--c-navy); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.c-head > .c-seg { margin-left: auto; flex: 0 0 auto; align-self: center; }
.c-row.song { grid-template-columns: 1fr 120px 170px 72px; }
.c-row.song .c-cell { min-height: 80px; }
.c-row.song .c-cell:first-child { padding: 10px 18px 10px 12px; gap: 12px; }
.c-row.song .c-app { width: 44px; height: 44px; border-radius: 12px; background: var(--c-tile); color: var(--c-ink-2); }
.c-row.song .c-app svg { width: 20px; height: 20px; }
.c-note { height: 36px; min-width: 52px; padding: 0 12px; border-radius: 10px; background: var(--c-blue-tonal); color: var(--c-navy); font-family: var(--c-display); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background .15s; }
.c-note:hover { background: var(--c-blue-tonal-2); }
.c-note.none { background: var(--c-tile); color: var(--c-mut); font-weight: 500; font-family: var(--c-font); font-size: 13px; }
.c-note.none:hover { background: var(--c-amber-tonal); color: var(--c-amber); }
.c-cell.c-notecell { justify-content: center; }
.c-id { font-family: var(--c-font); font-size: 12px; color: var(--c-mut); background: var(--c-tile); border-radius: 6px; padding: 2px 7px; }
/* Okuyucu */
.c-dialog.reader > div { max-width: 860px; padding: 0; overflow: hidden; display: flex; flex-direction: column; max-height: calc(100dvh - 32px); }
.r-head { display: flex; align-items: center; gap: 14px; padding: 20px 24px 14px; border-bottom: 1px solid var(--c-line); flex-wrap: wrap; }
.r-head h2 { margin: 0; font-size: 24px; }
.r-head .sub { color: var(--c-ink-2); font-size: 13.5px; margin-top: 2px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.r-head .acts { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.r-body { padding: 28px 40px 40px; overflow: auto; font-size: 20px; line-height: 1.8; white-space: pre-wrap; color: var(--c-ink); font-weight: 450; }
.r-foot { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--c-line); background: var(--c-tile); flex-wrap: wrap; }
.r-foot .c-seg { background: var(--c-surface); }
.r-foot .sz { display: inline-flex; gap: 2px; align-items: center; background: var(--c-surface); border-radius: 999px; padding: 2px; }
.r-foot .sz button { width: 36px; height: 36px; border-radius: 50%; font-weight: 600; }
.r-foot .sz button:hover { background: var(--c-tile-2); }
.r-foot .grow { flex: 1; }
@media (max-width: 760px) { .r-body { padding: 20px 18px 30px; font-size: 18px; } .r-head { padding: 16px 18px 12px; } .r-head .acts { width: 100%; margin-left: 0; } }
/* Nota seçici */
.n-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.n-grid button { height: 46px; border-radius: 12px; background: var(--c-tile); font-family: var(--c-display); font-weight: 600; font-size: 15px; color: var(--c-ink); transition: background .15s, transform .1s; }
.n-grid button:hover { background: var(--c-blue-tonal); }
.n-grid button.on { background: var(--c-navy); color: #fff; }
/* Ton seç penceresi ve sayfa başlığındaki A-B-C / Do-Re-Mi anahtarı (#notation): üstteki anahtarlarda (A-B-C/Do-Re-Mi, Majör/Minör, Diyez/Bemol) seçili olan belirgin */
#noteDlg .c-seg button.on, #notation button.on, #akorYazim button.on, #akorDlg .c-seg button.on, .c-seg.koyu button.on, .c-seg.koyu a.on { background: var(--c-navy); color: #fff; box-shadow: none; }
.n-grid button:active { transform: scale(.96); }
.n-lbl { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-mut); margin: 14px 0 8px; }
.n-none { width: 100%; height: 44px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--c-line); color: var(--c-ink-2); font-weight: 500; margin-top: 14px; }
.n-none:hover { background: var(--c-tile); }
/* İçe aktarma listesi */
.imp-list { max-height: 360px; overflow: auto; border-radius: 12px; background: var(--c-tile); padding: 4px; display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }
.imp-list label { display: flex; align-items: center; gap: 12px; background: var(--c-surface); border-radius: 10px; padding: 10px 14px; cursor: pointer; }
.imp-list label:hover { background: #fbfcfe; }
.imp-list label.in { opacity: .5; }
.imp-list b { font-weight: 500; display: block; } .imp-list small { color: var(--c-mut); font-size: 12.5px; }
.imp-list .c-note { margin-left: auto; height: 28px; min-width: 40px; font-size: 13px; }
.imp-foot { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.imp-foot .grow { flex: 1; color: var(--c-ink-2); font-size: 13.5px; }
.c-alert { display: flex; align-items: center; gap: 10px; background: var(--c-red-tonal); color: var(--c-red); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; }
@media (max-width: 1100px) { .c-row.song { grid-template-columns: 1fr 100px 72px; } .c-row.song .c-cell.c-acts { grid-column: 1 / -1; min-height: 0; padding: 4px 8px; } }
@media (max-width: 760px) { .c-row.song { grid-template-columns: 1fr 84px; } .c-row.song .c-cell:last-child { display: none; } .c-row.song .c-cell:first-child { border-radius: 12px 0 0 12px; } .c-row.song .c-notecell { border-radius: 0 12px 12px 0; } .c-row.song .c-cell.c-acts { justify-content: flex-start; border-radius: 12px; } .n-grid { grid-template-columns: repeat(4, 1fr); } }

/* ===== Sabit üst çubuk + sabit sol menü; yalnızca beyaz kap kayar ===== */
html, body { height: 100%; overflow: hidden; }
.c-top { position: relative; z-index: 20; }
.c-body { height: calc(100dvh - 64px); overflow: hidden; }
.c-rail { position: static; top: auto; height: 100%; max-height: none; }
.c-container { height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--c-tile-2) transparent; }
.c-container::-webkit-scrollbar { width: 10px; }
.c-container::-webkit-scrollbar-thumb { background: var(--c-tile-2); border-radius: 999px; border: 2px solid var(--c-surface); }
.c-container::-webkit-scrollbar-thumb:hover { background: #d5dae3; }
@media (max-width: 760px) {
  .c-body { height: calc(100dvh - 56px); }
  .c-container { border-radius: 24px 24px 0 0; }
}

/* Mobil Safari: yüzde yükseklik grid satırında çözülmeyince kap büyüyüp kesiliyordu;
   kabı grid ile gerdirip yüksekliği gridden alıyoruz. */
.c-body { grid-template-rows: minmax(0, 1fr); align-items: stretch; }
.c-rail, .c-container { height: auto; min-height: 0; align-self: stretch; }
.c-container { -webkit-overflow-scrolling: touch; touch-action: pan-y; }
@media (max-width: 760px) { .c-body { height: calc(100dvh - 56px); height: calc(100svh - 56px); } }

/* Sürükleme: hayalet satır ve imleç */
.c-ghost { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; opacity: .92; transform-origin: top left; box-shadow: 0 18px 40px -14px rgba(0,0,0,.45); border-radius: 16px; transition: none; }
.c-ghost .c-cell { background: var(--c-surface); }
.c-ghost .c-cell:not(:first-child) { display: none; }
.c-ghost { display: block !important; grid-template-columns: 1fr !important; }
body.c-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
body.c-dragging .c-row { cursor: grabbing; }
.c-row.sortable .c-cell:first-child, .c-row.song .c-cell:first-child { cursor: grab; }
.c-rows.no-sort .c-grip { opacity: .3; cursor: not-allowed; }
.c-rows.no-sort .c-row .c-cell:first-child { cursor: default; }
.c-row.drop-before .c-cell, .c-row.drop-after .c-cell { background: #f5f8ff; }

/* Kısa ekranlarda menü öğeleri sıkışmasın; menü kendi içinde kaysın */
.c-rail > * { flex: 0 0 auto; }

/* Birincil buton lacivert */
.c-primary { background: var(--c-navy); }
.c-primary:hover { background: #1b2f63; box-shadow: 0 2px 6px rgba(18,33,67,.35); }
.c-btn.filled { background: var(--c-navy); }
.c-btn.filled:hover { background: #1b2f63; }

/* Kategori klasör ikonu: pembe yerine lacivert tonal */
.c-app.cat { background: var(--c-blue-tonal); color: var(--c-navy); }
.c-row:hover .c-app.cat { background: var(--c-blue-tonal-2); }

/* =============================================================================
   DARK MOD — seçilmiş değerler. OS tercihi + [data-theme] anahtarı (anahtar kazanır)
   ============================================================================= */
:root[data-theme="dark"], :root:not([data-theme="light"]).os-dark {
  color-scheme: dark;
  --c-bg: #0f1218; --c-surface: #171b24; --c-tile: #1f2430; --c-tile-2: #28303f; --c-line: #2d3443;
  --c-ink: #e8eaf0; --c-ink-2: #b9bfcc; --c-mut: #8b92a3;
  --c-navy: #a9b8e8; --c-blue: #8fb0ff; --c-blue-tonal: #243459; --c-blue-tonal-2: #2e4270;
  --c-magenta: #e984b2; --c-magenta-2: #f3a3c7; --c-magenta-tonal: #3a1f31;
  --c-green: #6fd39a; --c-green-tonal: #16311f; --c-red: #f28b8b; --c-red-tonal: #3a1f1f; --c-amber: #f0c060; --c-amber-tonal: #3a2d12;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --c-bg: #0f1218; --c-surface: #171b24; --c-tile: #1f2430; --c-tile-2: #28303f; --c-line: #2d3443;
    --c-ink: #e8eaf0; --c-ink-2: #b9bfcc; --c-mut: #8b92a3;
    --c-navy: #a9b8e8; --c-blue: #8fb0ff; --c-blue-tonal: #243459; --c-blue-tonal-2: #2e4270;
    --c-magenta: #e984b2; --c-magenta-2: #f3a3c7; --c-magenta-tonal: #3a1f31;
    --c-green: #6fd39a; --c-green-tonal: #16311f; --c-red: #f28b8b; --c-red-tonal: #3a1f1f; --c-amber: #f0c060; --c-amber-tonal: #3a2d12;
  }
}
/* Sabit renk kullanan parçalar için dark düzeltmeleri (her iki kapsam) */
:root[data-theme="dark"] .c-brand .mark, :root:not([data-theme="light"]).os-dark .c-brand .mark { background: #fff; color: #122143; }
:root[data-theme="dark"] .c-primary, :root[data-theme="dark"] .c-btn.filled { background: #4d6bc9; color: #fff; }
:root[data-theme="dark"] .c-primary:hover, :root[data-theme="dark"] .c-btn.filled:hover { background: #5b7ad8; box-shadow: 0 2px 8px rgba(77,107,201,.45); }
:root[data-theme="dark"] .c-btn.danger { background: #c94d4d; }
:root[data-theme="dark"] .c-app.set { background: #4d6bc9; color: #fff; }
:root[data-theme="dark"] .c-avatar { background: linear-gradient(135deg, #4d6bc9, #9e1f62); }
:root[data-theme="dark"] .c-row.is-selected .c-cell { background: #1e2740; }
:root[data-theme="dark"] .c-row.drop-before .c-cell, :root[data-theme="dark"] .c-row.drop-after .c-cell { background: #1e2740; }
:root[data-theme="dark"] .c-list a:hover { background: #1c212c; }
:root[data-theme="dark"] .c-zone.danger { background: #2a1a1d; }
:root[data-theme="dark"] .c-zone.danger .c-row .c-cell { background: var(--c-surface); }
:root[data-theme="dark"] .c-snack, :root[data-theme="dark"] .c-selbar { background: #2b3242; color: #fff; }
:root[data-theme="dark"] .c-ghost .c-cell { background: var(--c-tile-2); }
:root[data-theme="dark"] .c-scrim { background: rgba(0,0,0,.6); }
:root[data-theme="dark"] .c-container { box-shadow: 0 0 0 1px rgba(255,255,255,.04); }
:root[data-theme="dark"] .c-rail a[data-tip]::after, :root[data-theme="dark"] .c-ib[data-tip]::after { background: #2b3242; }
:root[data-theme="dark"] .c-check input:checked { background: var(--c-blue); border-color: var(--c-blue); }
:root[data-theme="dark"] .c-check input:checked::before { background: #0f1218; }
:root[data-theme="dark"] .n-grid button.on { background: #4d6bc9; }
:root[data-theme="dark"] #noteDlg .c-seg button.on, :root[data-theme="dark"] #notation button.on, :root[data-theme="dark"] #akorYazim button.on, :root[data-theme="dark"] #akorDlg .c-seg button.on, :root[data-theme="dark"] .c-seg.koyu button.on, :root[data-theme="dark"] .c-seg.koyu a.on { background: #4d6bc9; }
/* Küçük segment (önizleme başlık / alt çubukları) */
.c-seg.kucuk { padding: 3px; } .c-seg.kucuk button { height: 28px; padding: 0 11px; font-size: 12.5px; }
:root[data-theme="dark"] .c-dialog > form, :root[data-theme="dark"] .c-dialog > div { box-shadow: 0 24px 64px -24px rgba(0,0,0,.8), 0 0 0 1px var(--c-line); }
:root[data-theme="dark"] .c-menu { box-shadow: 0 8px 28px -6px rgba(0,0,0,.6), 0 0 0 1px var(--c-line); }
:root[data-theme="dark"] .c-container::-webkit-scrollbar-thumb { background: var(--c-tile-2); border-color: var(--c-surface); }
/* Tema düğmesi */
.c-iconbtn .sun, .c-ib .sun { display: none; } .c-iconbtn .moon, .c-ib .moon { display: block; }
:root[data-theme="dark"] .c-iconbtn .sun, :root[data-theme="dark"] .c-ib .sun { display: block; } :root[data-theme="dark"] .c-iconbtn .moon, :root[data-theme="dark"] .c-ib .moon { display: none; }

/* Sol menüdeki abonelik kartı: pembe yerine lacivert tonal */
.c-rail .plan { background: var(--c-blue-tonal); color: var(--c-ink-2); }
.c-rail .plan b, .c-rail .plan a { color: var(--c-navy); }

/* =============================================================================
   SAHNE MODU — tam ekran söz görünümü, yatay kaydırmayla şarkı geçişi
   ============================================================================= */
.stage { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--c-bg); color: var(--c-ink); }
.s-top { height: 56px; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 6px; border-bottom: 1px solid var(--c-line); background: var(--c-surface); flex: 0 0 auto; }
.s-top .ttl { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; position: relative; }
.s-top .ttl b { font-family: var(--c-display); font-weight: 500; font-size: 18px; display: inline-block; }
.s-top .ttl.marquee b { animation: s-marquee 12s linear infinite; padding-right: 48px; }
@keyframes s-marquee { 0%, 15% { transform: translateX(0) } 85%, 100% { transform: translateX(calc(-100% + 100px)) } }
.s-top .sub { font-size: 12px; color: var(--c-mut); display: block; }
.s-note { height: 36px; min-width: 52px; padding: 0 12px; border-radius: 10px; background: var(--c-blue-tonal); color: var(--c-navy); font-family: var(--c-display); font-weight: 600; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.s-pos { font-size: 13px; color: var(--c-mut); font-variant-numeric: tabular-nums; white-space: nowrap; }
.s-track { flex: 1; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.s-track::-webkit-scrollbar { display: none; }
.s-page { flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow-y: auto; overscroll-behavior-y: contain; padding: 28px clamp(16px, 5vw, 64px) 160px; white-space: pre-wrap; line-height: 1.6; font-weight: 450; color: var(--c-ink); transition: font-size .25s var(--c-ease); }
.s-page .s-head { font-family: var(--c-display); font-weight: 500; font-size: 1.1em; color: var(--c-mut); margin-bottom: .6em; display: none; }
.s-bottom { flex: 0 0 auto; height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 14px; border-top: 1px solid var(--c-line); background: var(--c-surface); font-size: 13px; color: var(--c-ink-2); cursor: pointer; padding-bottom: env(safe-area-inset-bottom); box-sizing: content-box; }
.s-bottom .nx { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-bottom .chg { height: 28px; padding: 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--c-line); font-size: 12px; font-weight: 500; color: var(--c-ink-2); }
.s-fabs { position: fixed; right: 16px; bottom: calc(60px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; z-index: 5; }
.s-fabs button { width: 52px; height: 52px; border-radius: 16px; background: var(--c-navy); color: #fff; font-family: var(--c-display); font-weight: 600; font-size: 20px; box-shadow: 0 8px 20px -8px rgba(0,0,0,.5); display: grid; place-items: center; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.s-fabs button:active { transform: scale(.95); }
:root[data-theme="dark"] .s-fabs button { background: #4d6bc9; }
.s-fabs button.sm { width: 44px; height: 44px; border-radius: 14px; background: var(--c-surface); color: var(--c-ink-2); box-shadow: 0 0 0 1px var(--c-line), 0 6px 16px -8px rgba(0,0,0,.4); font-size: 16px; }
.s-hint { position: fixed; left: 50%; bottom: calc(60px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--c-ink); color: var(--c-bg); font-size: 12.5px; padding: 8px 14px; border-radius: 999px; opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 5; white-space: nowrap; }
.s-hint.on { opacity: .92; }
.s-edge { position: fixed; top: 56px; bottom: 44px; width: 14%; max-width: 160px; z-index: 2; cursor: pointer; opacity: 0; display: flex; align-items: center; justify-content: center; }
.s-edge.l { left: 0; } .s-edge.r { right: 0; }
.s-edge span { width: 40px; height: 40px; border-radius: 50%; background: var(--c-surface); box-shadow: 0 0 0 1px var(--c-line); display: grid; place-items: center; color: var(--c-ink-2); }
@media (hover: hover) { .s-edge:hover { opacity: 1; } }
/* Atlama paneli */
.s-jump .imp-list label { grid-template-columns: 1fr; }
.s-jump .imp-list label.cur { box-shadow: inset 0 0 0 2px var(--c-blue); }
.s-jump .imp-list .idx { color: var(--c-mut); font-size: 12px; width: 22px; text-align: right; font-variant-numeric: tabular-nums; }
.s-fs { font-size: 12px; color: var(--c-mut); text-align: center; }
@media (max-width: 760px) { .s-top .ttl b { font-size: 16px; } .s-fabs { right: 12px; } .s-page { padding-top: 18px; } }

/* Sahne modu butonları: yarı saydam, altındaki söz okunabilsin */
.s-fabs button { background: rgba(18,33,67,.38); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 0 0 1px rgba(255,255,255,.25), 0 6px 16px -8px rgba(0,0,0,.35); opacity: .75; transition: opacity .2s, background .2s, transform .1s; }
.s-fabs button:hover, .s-fabs button:active { opacity: 1; background: rgba(18,33,67,.7); }
.s-fabs button.sm { background: rgba(255,255,255,.35); color: var(--c-ink-2); box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 6px 16px -8px rgba(0,0,0,.25); }
.s-fabs button.sm:hover, .s-fabs button.sm:active { background: rgba(255,255,255,.7); }
:root[data-theme="dark"] .s-fabs button { background: rgba(77,107,201,.32); box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 6px 16px -8px rgba(0,0,0,.6); }
:root[data-theme="dark"] .s-fabs button:hover, :root[data-theme="dark"] .s-fabs button:active { background: rgba(77,107,201,.7); }
:root[data-theme="dark"] .s-fabs button.sm { background: rgba(40,48,63,.45); color: var(--c-ink-2); }
.s-page { padding-right: clamp(16px, 5vw, 64px); }

/* Yatay logo (üst çubuk) */
.c-brand img { height: 34px; width: auto; display: block; }
.c-brand .logo-dark { display: none; }
:root[data-theme="dark"] .c-brand .logo-light { display: none; }
:root[data-theme="dark"] .c-brand .logo-dark { display: block; }
@media (max-width: 760px) { .c-brand img { height: 28px; } }

/* ===== Ortak navigasyon: gruplar, mobil çekmece ===== */
.c-rail .rail-head { display: none; }
.c-rail .grp-item button { width: 100%; height: 48px; padding: 0 16px; border-radius: 999px; display: flex; align-items: center; gap: 14px; color: var(--c-ink-2); font-weight: 500; font-size: 14px; text-align: left; transition: background .2s; }
.c-rail .grp-item button:hover { background: var(--c-tile-2); }
.c-rail .grp-item button.on-parent { color: var(--c-navy); }
.c-rail .grp-item .lbl { flex: 1; }
.c-rail .grp-item .chev { width: 16px; height: 16px; color: var(--c-mut); transition: transform .2s var(--c-ease); }
.c-rail .grp-item.open .chev { transform: rotate(90deg); }
.c-rail .grp-item .sub { display: none; flex-direction: column; gap: 2px; padding: 2px 0 6px; }
.c-rail .grp-item.open .sub { display: flex; }
.c-rail .grp-item .sub a { height: 40px; padding-left: 50px; font-size: 13.5px; font-weight: 400; }
.c-rail .grp-item .sub a.on { font-weight: 500; }
.c-rail .live { width: 8px; height: 8px; border-radius: 50%; background: var(--c-green); margin-left: auto; box-shadow: 0 0 0 3px var(--c-green-tonal); }
.c-top .menu-btn { display: none; }
.rail-scrim { position: fixed; inset: 0; background: rgba(27,29,34,.42); z-index: 30; display: none; }
.rail-scrim.on { display: block; }
@media (max-width: 760px) {
  .c-top .menu-btn { display: grid; }
  .c-rail { display: flex; position: fixed; top: 0; left: 0; bottom: 0; width: min(300px, 86vw); background: var(--c-surface); z-index: 35; transform: translateX(-105%); transition: transform .28s var(--c-ease); padding: 8px 12px 24px; box-shadow: 0 0 0 1px var(--c-line); height: auto; }
  .c-rail.open { transform: none; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
  .c-rail .rail-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 4px 8px 16px; }
  .c-bottom button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 500; color: var(--c-ink-2); }
  .c-bottom button span { padding: 4px 16px; border-radius: 999px; display: grid; place-items: center; }
}

/* ===== Admin: kullanıcı satırları ===== */
.c-row.member { grid-template-columns: minmax(0, 1fr) 128px 190px 210px 56px 64px; }
.c-row.member .c-cell { min-height: 96px; }
.c-row.member .c-cell:first-child { padding: 12px 16px 12px 12px; gap: 12px; align-items: center; }
.c-row.member .tint { align-self: stretch; width: 4px; border-radius: 2px; margin-right: 2px; background: transparent; flex: 0 0 auto; }
.c-row.member.t-pink .tint { background: var(--c-red); } .c-row.member.t-orange .tint { background: #e8842c; } .c-row.member.t-yellow .tint { background: #e6b800; }
.c-row.member .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--c-display); font-weight: 600; font-size: 15px; background: var(--c-blue-tonal); color: var(--c-navy); flex: 0 0 auto; }
.c-row.member .av.t2 { background: var(--c-magenta-tonal); color: var(--c-magenta); } .c-row.member .av.t3 { background: var(--c-green-tonal); color: var(--c-green); } .c-row.member .av.t4 { background: var(--c-amber-tonal); color: var(--c-amber); }
.c-row.member .c-ident .sub { font-size: 12.5px; }
.c-row.member .c-ident .sub .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.c-row.member .c-status { cursor: pointer; }
.c-row.member .c-status small { font-size: 11px; color: var(--c-mut); max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-row.member .c-metrics { grid-template-columns: repeat(3, 1fr); padding: 12px 14px; gap: 6px; }
.c-row.member .c-metric .val { font-size: 20px; }
.c-row.member .c-metric .lbl { text-decoration: none; font-size: 12px; }
.c-cell.c-subs { flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; padding: 10px 14px; }
.c-cell.c-subs .line { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--c-ink-2); }
.c-prem { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; font-weight: 500; background: var(--c-tile); color: var(--c-ink-2); }
.c-prem.ok { background: var(--c-green-tonal); color: var(--c-green); } .c-prem.past { background: var(--c-red-tonal); color: var(--c-red); }
.c-prem svg { width: 14px; height: 14px; }
.c-cell.c-more { justify-content: center; }
.c-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--c-ink-2); align-items: center; }
.c-legend span { display: inline-flex; align-items: center; gap: 6px; } .c-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.c-filters .c-sel, .sg-temizle .c-sel { height: 40px; padding: 0 36px 0 16px; border-radius: 999px; background: var(--c-tile-2); color: var(--c-ink); font: inherit; font-weight: 500; border: 0; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236e727b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; max-width: 200px; }
.c-filters .c-sel.active { background-color: var(--c-blue-tonal); color: var(--c-navy); }
.c-filters .c-numin { height: 40px; width: 120px; border-radius: 999px; background: var(--c-tile-2); border: 0; padding: 0 14px; font: inherit; color: var(--c-ink); }
.c-active-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--c-ink-2); }
.c-active-filters .c-chip { height: 32px; font-size: 13px; padding: 0 10px 0 14px; }
.c-active-filters .c-chip svg { width: 14px; height: 14px; }
.c-pager { display: flex; align-items: center; gap: 8px; justify-content: flex-end; font-size: 13px; color: var(--c-ink-2); padding-top: 4px; flex-wrap: wrap; }
.c-pager .c-ib { width: 36px; height: 36px; }
.emoji-row { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.emoji-row button { width: 34px; height: 34px; border-radius: 8px; font-size: 18px; background: var(--c-tile); } .emoji-row button:hover { background: var(--c-tile-2); }
@media (max-width: 1280px) { .c-row.member { grid-template-columns: minmax(0, 1fr) 128px 56px 64px; } .c-row.member .c-metrics, .c-row.member .c-subs { grid-column: 1 / -1; min-height: 0; } .c-row.member .c-subs { flex-direction: row; gap: 14px; align-items: center; } }
@media (max-width: 760px) { .c-row.member { grid-template-columns: minmax(0, 1fr) 96px; } .c-row.member .c-cell:last-child { display: none; } .c-row.member .c-more { grid-column: 1 / -1; min-height: 0; padding: 4px; justify-content: flex-end; } .c-row.member .c-subs { flex-wrap: wrap; } .c-row.member .c-cell:first-child { flex-wrap: wrap; } }

/* Sol menü: Repertuarım / Yönetim bağlam geçişi */
.rail-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--c-tile-2); border-radius: 999px; padding: 4px; margin: 4px 4px 10px; }
.c-rail .rail-switch a { height: 36px; padding: 0 10px; justify-content: center; gap: 8px; font-size: 13px; color: var(--c-ink-2); border-radius: 999px; }
.c-rail .rail-switch a.on { background: var(--c-surface); color: var(--c-navy); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.c-rail .rail-switch a svg { width: 16px; height: 16px; }
.c-rail .plan.admin { background: var(--c-tile); color: var(--c-mut); font-size: 12.5px; }
.c-rail .plan.admin b { color: var(--c-ink-2); }
.c-top .c-pill.mode { color: var(--c-navy); border-color: #d3daea; }
@media (max-width: 1100px) { .c-top .c-pill.mode span { display: none; } .c-top .c-pill.mode { padding: 0 12px; } }

/* ===== Grafikler (console) ===== */
.chart { width: 100%; } .chart svg { width: 100%; height: auto; display: block; }
.chart .grid line { stroke: var(--c-line); stroke-width: 1; }
.chart .bar { transition: opacity .15s; } .chart .bar:hover { opacity: .8; }
.chart-tip { position: fixed; z-index: 60; pointer-events: none; background: var(--c-ink); color: var(--c-bg); font-size: 12px; padding: 6px 9px; border-radius: 6px; box-shadow: 0 6px 16px -6px rgba(0,0,0,.3); opacity: 0; transition: opacity .12s; white-space: nowrap; }
.chart-tip.is-visible { opacity: 1; }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--c-ink-2); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; } .chart-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
:root { --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --series-4: #eda100; --chart-surface: #fff; --text: var(--c-ink); --text-muted: var(--c-mut); --font-display: var(--c-display); --font-sans: var(--c-font); --gray-900: #1b1d22; }
:root[data-theme="dark"] { --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500; --chart-surface: #171b24; }
.s1 { background: var(--series-1); } .s2 { background: var(--series-2); } .s3 { background: var(--series-3); } .s4 { background: var(--series-4); }
.d-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.d-grid .c-tile { min-height: 110px; }
.d-grid .c-tile .val { font-family: var(--c-display); font-size: 26px; font-weight: 500; line-height: 1.15; }
.d-grid.mini { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.d-grid.mini .c-tile { min-height: 0; padding: 14px 16px; display: block; }
.d-grid.mini .c-tile .lbl { font-size: 12.5px; color: var(--c-ink-2); } .d-grid.mini .c-tile .val { font-size: 22px; }
a.c-tile { text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; } a.c-tile:hover { box-shadow: 0 0 0 2px var(--c-blue-tonal-2); }
.d-two { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 4px; }
.d-two .c-tile { display: block; min-height: 0; }
.d-two h3, .d-full h3 { margin: 0 0 2px; } .d-two p, .d-full p { margin: 0 0 12px; color: var(--c-ink-2); font-size: 13px; }
.d-full .c-tile { display: block; min-height: 0; }
.country-row { display: grid; grid-template-columns: 26px 1fr 60px; gap: 10px; align-items: center; padding: 7px 0; font-size: 13.5px; border-top: 1px solid var(--c-line); }
.country-row:first-child { border-top: 0; } .country-row .flag { font-size: 18px; line-height: 1; }
.meter { height: 6px; background: var(--c-tile); border-radius: 999px; overflow: hidden; margin-top: 4px; } .meter > span { display: block; height: 100%; background: var(--series-1); border-radius: 999px; }
.pkg-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 6px 0; border-top: 1px solid var(--c-line); } .pkg-row:first-child { border-top: 0; }
.pkg-row i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; } .pkg-row .n { margin-left: auto; font-weight: 500; font-variant-numeric: tabular-nums; } .pkg-row .p { width: 42px; text-align: right; color: var(--c-mut); font-variant-numeric: tabular-nums; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 12px; } .tbl th { text-align: left; color: var(--c-mut); font-weight: 500; font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--c-line); } .tbl td { padding: 6px 8px; border-bottom: 1px solid var(--c-line); } .tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 1280px) { .d-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .d-grid.mini { grid-template-columns: repeat(3, minmax(0, 1fr)); } .d-two { grid-template-columns: 1fr 1fr; } .d-two > :first-child { grid-column: 1 / -1; } }
@media (max-width: 760px) { .d-grid, .d-grid.mini { grid-template-columns: repeat(2, minmax(0, 1fr)); } .d-two { grid-template-columns: 1fr; } .d-grid .c-tile .val { font-size: 22px; } }

/* Sol menü: yönetim paneline giriş / geri dönüş */
.c-rail .rail-admin { width: 100%; height: 48px; padding: 0 16px; border-radius: 999px; display: flex; align-items: center; gap: 14px; color: var(--c-ink-2); font-weight: 500; font-size: 14px; text-align: left; transition: background .2s; }
.c-rail .rail-admin:hover { background: var(--c-tile-2); color: var(--c-navy); }
.c-rail .rail-admin .chev { margin-left: auto; width: 16px; height: 16px; color: var(--c-mut); }
.c-rail .rail-back { height: 40px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; color: var(--c-blue); font-weight: 500; font-size: 13.5px; margin: 4px 0 2px; }
.c-rail .rail-back:hover { background: var(--c-blue-tonal); }
.c-rail .rail-back svg { width: 16px; height: 16px; }
.c-rail .rail-title { display: flex; align-items: center; gap: 10px; padding: 8px 16px 12px; font-family: var(--c-display); font-weight: 500; font-size: 17px; color: var(--c-ink); border-bottom: 1px solid var(--c-line); margin-bottom: 6px; }
.c-rail .rail-title svg { color: var(--c-navy); }
.rail-switch { display: none; }
@keyframes u-spin { to { transform: rotate(360deg); } }
/* Filtre satırındaki çok seçenekli segment dar ekranda yatay kayar (sayfa taşmaz) */
@media (max-width: 760px) { .c-filters > .c-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; } .c-filters > .c-seg::-webkit-scrollbar { display: none; } .c-filters > .c-seg button { flex: 0 0 auto; white-space: nowrap; } }
/* ---------- Aranabilir seçim kutusu (combo-select.js; Select2 benzeri) ---------- */
.cs { position: relative; }
.cs-btn { width: 100%; height: 52px; border-radius: 12px; background: var(--c-tile); box-shadow: inset 0 0 0 1px var(--c-line); display: flex; align-items: center; gap: 8px; padding: 0 10px 0 16px; font-size: 15px; color: var(--c-ink); text-align: left; transition: background .2s, box-shadow .2s; }
.c-zone .cs-btn { background: var(--c-surface); }
.cs-btn:hover { background: var(--c-tile); }
.cs-btn:focus-visible, .cs.on .cs-btn { outline: none; background: var(--c-surface); box-shadow: inset 0 0 0 1.5px var(--c-blue-tonal-2), 0 0 0 4px var(--c-blue-tonal); }
.cs-val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-ph { color: var(--c-mut); }
.cs-clear { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--c-mut); }
.cs-clear:hover { background: var(--c-tile-2); color: var(--c-ink); }
.cs-clear svg { width: 16px; height: 16px; }
.cs-chev { width: 18px; height: 18px; color: var(--c-mut); transition: transform .2s; }
.cs.on .cs-chev { transform: rotate(180deg); }
.cs-pop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 45; background: var(--c-surface); border-radius: 14px; box-shadow: 0 12px 32px -8px rgba(0,0,0,.25), 0 0 0 1px var(--c-line); padding: 6px; }
.cs-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px; background: var(--c-tile); color: var(--c-mut); }
.cs-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: inherit; font-size: 14px; color: var(--c-ink); }
.cs-search svg { width: 16px; height: 16px; }
.cs-list { list-style: none; margin: 6px 0 0; padding: 0; max-height: 240px; overflow: auto; }
.cs-list li { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.cs-list li span { flex: 1; min-width: 0; }
.cs-list li.act { background: var(--c-tile); }
.cs-list li[aria-selected="true"] { color: var(--c-navy); font-weight: 500; }
.cs-list li svg { width: 16px; height: 16px; color: var(--c-blue); }
.cs-list li.new { color: var(--c-blue); font-weight: 500; border-top: 1px solid var(--c-line); border-radius: 0 0 8px 8px; margin-top: 4px; }
.cs-list li.none { color: var(--c-mut); cursor: default; justify-content: center; }
.cs-list mark { background: var(--c-amber-tonal); color: inherit; border-radius: 3px; padding: 0 1px; }
.c-field.err .cs-btn { box-shadow: inset 0 0 0 1.5px var(--c-red); }
/* Öneri listeli yazı alanı (combo-select.js): kutunun kendisi input */
.cs-field { cursor: text; }
.cs-field:focus-within { outline: none; background: var(--c-surface); box-shadow: inset 0 0 0 1.5px var(--c-blue-tonal-2), 0 0 0 4px var(--c-blue-tonal); }
.cs-in { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font: inherit; color: var(--c-ink); padding: 0; }
.cs-in::placeholder { color: var(--c-mut); }
.cs-field .cs-chev { cursor: pointer; }
/* .c-field input genel stili (zemin, kenarlık, yükseklik, odak halkası) iç alana uygulanmasın:
   yoksa kutunun içinde ikinci bir kutu görünüyordu */
.c-field .cs .cs-in, .c-zone .c-field .cs .cs-in, .c-field .cs .cs-in:focus { width: auto; height: 100%; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
/* Mobil başlık: İptal de Kaydet gibi tam genişlik */
@media (max-width: 760px) { .c-head .acts > .c-btn.tonal { flex: 1 1 100%; justify-content: center; height: 44px; } }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .c-seg.koyu button.on, :root:not([data-theme="light"]) .c-seg.koyu a.on,
  :root:not([data-theme="light"]) #noteDlg .c-seg button.on, :root:not([data-theme="light"]) #notation button.on,
  :root:not([data-theme="light"]) #akorYazim button.on, :root:not([data-theme="light"]) #akorDlg .c-seg button.on { background: #4d6bc9; }
}
