/* ASC Manager — ortak tasarım sistemi.
 *
 * App Store Connect'in görsel dilini taklit eder: açık zemin, beyaz kartlar,
 * ince gri çizgiler, Apple mavisi, SF Pro tipografisi ve solda kalıcı bölüm
 * menüsü. Sayfalar bu dosyayı bağlar ve YALNIZCA kendilerine özgü bileşen
 * stillerini kendi <style> bloklarında tutar; taban öğeler (body, button,
 * table, input, .card, .row, .pill …) buradan gelir.
 *
 * Sayfa-özel stiller aşağıdaki değişkenleri kullandığı sürece koyu tema da
 * kendiliğinden çalışır — sayfalarda sabit renk yazılmamalı.
 */

:root {
  /* Yüzeyler */
  --bg: #f5f5f7;            /* sayfa zemini */
  --panel: #ffffff;         /* kart */
  --panel-2: #f5f5f7;       /* kart içi ikincil dolgu, input zemini */
  --panel-3: #fafafa;       /* tablo başlığı, kenar çubuğu */
  --border: #d2d2d7;        /* ASC'nin ayırıcı grisi */
  --border-soft: #e8e8ed;

  /* Metin */
  --text: #1d1d1f;
  --muted: #6e6e73;
  --faint: #86868b;

  /* Aksan */
  --accent: #0071e3;        /* ASC birincil mavisi */
  --accent-hover: #0077ed;
  --accent-soft: rgba(0, 113, 227, .10);
  --link: #0066cc;

  /* Durum renkleri — ASC rozetleriyle aynı okuma */
  --accent-2: #248a3d;      /* onay / yayında */
  --green-soft: rgba(36, 138, 61, .10);
  --warn: #b25000;          /* beklemede / incelemede */
  --warn-soft: rgba(178, 80, 0, .10);
  --danger: #d70015;        /* red / hata */
  --danger-soft: rgba(215, 0, 21, .09);

  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 0 0 .5px rgba(0, 0, 0, .04);
  --sidebar-w: 232px;
  --topbar-h: 52px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
          "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1c1e;
    --panel: #2c2c2e;
    --panel-2: #3a3a3c;
    --panel-3: #252527;
    --border: #48484a;
    --border-soft: #3a3a3c;
    --text: #f5f5f7;
    --muted: #98989d;
    --faint: #8e8e93;
    --accent: #0a84ff;
    --accent-hover: #3d9bff;
    --accent-soft: rgba(10, 132, 255, .18);
    --link: #6cb4ff;
    --accent-2: #30d158;
    --green-soft: rgba(48, 209, 88, .16);
    --warn: #ff9f0a;
    --warn-soft: rgba(255, 159, 10, .16);
    --danger: #ff453a;
    --danger-soft: rgba(255, 69, 58, .16);
    --shadow: 0 1px 3px rgba(0, 0, 0, .4);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 14px/1.47 var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------- İskelet */
/* asc-shell.js kurar: solda kalıcı bölüm menüsü, üstte başlık çubuğu.       */

.asc-shell { display: flex; min-height: 100vh; min-height: 100dvh; }

.asc-sidebar {
  width: var(--sidebar-w);
  flex: none;
  background: var(--panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh; height: 100dvh;
  overflow-y: auto;
}

.asc-brand {
  display: flex; align-items: center; gap: 9px;
  height: var(--topbar-h); flex: none;
  padding: 0 18px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px; font-weight: 600; letter-spacing: -.01em;
  color: var(--text); text-decoration: none;
}
.asc-brand .mark {
  width: 20px; height: 20px; border-radius: 5px; flex: none;
  background: linear-gradient(160deg, #2ea7ff, #0057d8);
  display: grid; place-items: center;
  color: #fff; font-size: 11px; font-weight: 700;
}

.asc-nav { padding: 12px 10px; display: flex; flex-direction: column; gap: 1px; }
.asc-nav .group {
  font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--faint); padding: 12px 10px 6px;
}
.asc-nav a {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 10px; border-radius: var(--radius-xs);
  font-size: 13.5px; font-weight: 400; color: var(--text); text-decoration: none;
}
.asc-nav a:hover { background: var(--panel-2); }
.asc-nav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 550; }
.asc-nav a .ico { width: 16px; text-align: center; font-size: 13px; flex: none; opacity: .85; }

/* Kenar çubuğunun dibindeki ipucu alanı (hesap artık üst barda) */
.asc-sidebar-foot {
  margin-top: auto; padding: 12px 14px; border-top: 1px solid var(--border-soft);
  font-size: 11.5px; line-height: 1.45; color: var(--faint);
}

.asc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.asc-topbar {
  height: var(--topbar-h); flex: none;
  display: flex; align-items: center; gap: 12px;
  padding: 0 24px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.asc-main { position: relative; }
.asc-topbar h1 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.asc-topbar .sub { color: var(--muted); font-size: 13px; }
.asc-topbar .spacer { margin-left: auto; }
/* Sağ üst kontrol çifti: [uygulama seçici] [hesap] — ASC'deki yerleşim. */
.asc-topbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; min-width: 0; }
.asc-topbar-right .sep { width: 1px; height: 24px; background: var(--border-soft); flex: none; }

/* --------------------------------------------- Üst bar açılır kontrolleri */

.asc-picker {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  padding: 5px 9px; border-radius: var(--radius-xs);
  background: transparent; border: 1px solid transparent; text-align: left;
  max-width: 260px;
}
.asc-picker:hover:not(:disabled) { background: var(--panel-2); border-color: var(--border-soft); }
.asc-picker[aria-expanded="true"] { background: var(--panel-2); border-color: var(--border); }
.asc-picker .icon {
  width: 26px; height: 26px; border-radius: 6px; flex: none;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: var(--accent-soft); color: var(--accent);
}
.asc-picker .icon.round { border-radius: 50%; }
.asc-picker .who { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.asc-picker .who .nm {
  font-size: 13px; font-weight: 550; color: var(--text); line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.asc-picker .who .sb {
  font-size: 11px; color: var(--muted); line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.asc-picker .chev { color: var(--faint); font-size: 10px; flex: none; }
.asc-picker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); flex: none; }
.asc-picker .dot.off { background: var(--danger); }
.asc-picker:disabled { opacity: .5; }

/* Açılır menü */
.asc-menu {
  position: absolute; top: calc(var(--topbar-h) - 6px); right: 0; z-index: 40;
  width: 380px; max-width: calc(100vw - 32px);
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
  overflow: hidden;
}
.asc-menu.hidden { display: none !important; }
.asc-menu-search { padding: 9px; border-bottom: 1px solid var(--border-soft); }
.asc-menu-search input { padding: 7px 10px; font-size: 13px; }
.asc-menu-list { max-height: min(62vh, 460px); overflow-y: auto; padding: 6px; }
.asc-menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; border-radius: var(--radius-xs);
  background: transparent; border: 1px solid transparent; text-align: left;
}
.asc-menu-item:hover, .asc-menu-item.cursor { background: var(--panel-2); border-color: transparent; }
.asc-menu-item[aria-selected="true"] { background: var(--accent-soft); }
.asc-menu-item[aria-selected="true"] .nm { color: var(--accent); }
.asc-menu-item .icon {
  width: 28px; height: 28px; border-radius: 6px; flex: none;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: var(--accent-soft); color: var(--accent);
}
.asc-menu-item .who { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.asc-menu-item .nm {
  font-size: 13.5px; font-weight: 500; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.asc-menu-item .sb {
  font-size: 11.5px; color: var(--muted); font-family: var(--mono);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.asc-menu-item .tick { color: var(--accent); font-size: 12px; flex: none; }
/* Yapışkan grup başlığı imlecin üstüne binmesin (scrollIntoView). */
.asc-menu-item { scroll-margin-top: 30px; }

/* Satır + "gizle" düğmesi. Düğme yalnızca satırın üzerine gelince (ya da
   klavyeyle odaklanınca) görünür: 50 satırlık listede her satırda duran bir
   × gürültüden ibaret. */
.asc-menu-row { position: relative; display: flex; align-items: center; }
.asc-menu-row .asc-menu-item { flex: 1; min-width: 0; padding-right: 28px; }
.asc-menu-hide {
  position: absolute; right: 4px; width: 22px; height: 22px; padding: 0;
  display: grid; place-items: center; font-size: 13px; line-height: 1;
  border-radius: var(--radius-xs); border: 1px solid transparent;
  background: transparent; color: var(--muted); opacity: 0;
}
.asc-menu-row:hover .asc-menu-hide,
.asc-menu-hide:focus-visible { opacity: 1; }
.asc-menu-hide:hover { background: var(--panel); color: var(--text); border-color: var(--border-soft); }
/* Gizli bir satır yalnızca "gizlenenleri göster" modunda çizilir — soluk
   dursun ki geçici olarak görünen bir şey olduğu belli olsun. */
.asc-menu-row.is-hidden .asc-menu-item { opacity: .5; }
.asc-menu-row.is-hidden .asc-menu-hide { opacity: 1; color: var(--accent); }

.asc-menu-hidden-toggle {
  width: 100%; margin-top: 4px; padding: 7px 10px; font-size: 12.5px;
  background: transparent; border: 1px dashed var(--border-soft);
  border-radius: var(--radius-xs); color: var(--muted); text-align: center;
}
.asc-menu-hidden-toggle:hover { color: var(--text); border-color: var(--muted); }

/* Dokunmatikte :hover yok — düğme hep görünür olmalı, yoksa telefonda
   gizleme yolu diye bir şey kalmaz. */
@media (hover: none) {
  .asc-menu-hide { opacity: .55; }
}

/* Hangi hesabın uygulaması — bundleId'nin yanında, mono DEĞİL. */
.asc-menu-item .sb .acct {
  font-family: var(--font); color: var(--faint);
}
.asc-menu-item .sb .acct::before { content: " · "; }

/* Durum rozeti. .pill tabanını kullanır, dar menüye göre küçültülmüş. */
.asc-menu-item .badge { flex: none; max-width: 42%; }
.pill.mini {
  padding: 2px 8px 2px 6px; font-size: 11px; gap: 5px; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pill.mini::before { width: 5px; height: 5px; }

/* Aksiyon bekleyen satır: solda ince şerit. Şerit rozetin TONUNU alır —
   hepsini kırmızı yapmak "yayına hazır, düğmeye bas" satırını da felaket
   gibi gösterirdi. */
.asc-menu-item.needs-action          { box-shadow: inset 2px 0 0 var(--danger); }
.asc-menu-item.needs-action.t-ok     { box-shadow: inset 2px 0 0 var(--accent-2); }
.asc-menu-item.needs-action.t-review { box-shadow: inset 2px 0 0 var(--warn); }
.asc-menu-item.needs-action.t-info   { box-shadow: inset 2px 0 0 var(--accent); }

/* Grup başlığı — kenar çubuğundaki .group ile aynı dil. */
.asc-menu-group {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; gap: 6px;
  padding: 10px 10px 4px; margin: 0 -6px;
  background: var(--panel);
  font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--faint);
}
.asc-menu-group:first-child { padding-top: 4px; }
.asc-menu-group .cnt {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0;
  padding: 0 6px; border-radius: 999px;
  background: var(--panel-2); color: var(--muted);
}

/* Listesi alınamayan hesap — gizlemiyoruz, sebebini yazıyoruz. */
.asc-menu-error {
  margin: 4px 4px 0; padding: 8px 10px; border-radius: var(--radius-xs);
  background: var(--danger-soft); color: var(--danger);
  font-size: 11.5px; line-height: 1.4;
}
.asc-menu-error b { font-weight: 600; }
.asc-menu-empty { padding: 18px 12px; text-align: center; color: var(--muted); font-size: 13px; }
.asc-menu-foot {
  border-top: 1px solid var(--border-soft); padding: 8px 10px;
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; color: var(--faint);
}
.asc-menu-foot .cnt { margin-left: auto; }
.asc-menu-foot .link {
  padding: 2px 7px; border-radius: var(--radius-xs); flex: none;
  background: transparent; border: 1px solid transparent; color: var(--muted); font-size: 13px;
}
.asc-menu-foot .link:hover { background: var(--panel-2); border-color: var(--border-soft); }
.asc-menu-foot .link.spin { animation: asc-spin .9s linear infinite; color: var(--accent); }
.asc-menu-foot kbd {
  font-family: var(--mono); font-size: 10.5px; padding: 1px 5px;
  border: 1px solid var(--border); border-radius: 4px; background: var(--panel-2); color: var(--muted);
}

.wrap { width: 100%; max-width: 1000px; margin: 0 auto; padding: 24px; }

/* Dar ekran: kenar çubuğu üst şeride döner. */
@media (max-width: 820px) {
  .asc-shell { flex-direction: column; }
  .asc-sidebar {
    width: 100%; height: auto; position: static;
    border-right: 0; border-bottom: 1px solid var(--border);
  }
  .asc-nav { flex-direction: row; overflow-x: auto; padding: 8px; }
  .asc-nav .group { display: none; }
  .asc-nav a { white-space: nowrap; }
  .asc-sidebar-foot { display: none; }
  .asc-topbar { height: auto; padding: 10px 16px; flex-wrap: wrap; gap: 8px; }
  .asc-topbar h1 { font-size: 15px; }
  .asc-topbar-right { width: 100%; margin-left: 0; }
  .asc-picker { flex: 1; max-width: none; }
  .asc-menu { top: auto; left: 8px; right: 8px; width: auto; }
  .wrap { padding: 16px; }
}

/* ------------------------------------------------------------------ Kart */

.card {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.card > h2 {
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  color: var(--text); margin: 0 0 14px;
  text-transform: none;   /* eski tasarımın uppercase başlıklarını sıfırla */
}
.card > h2 .hint { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 8px; }

.subcard {
  border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  padding: 14px; margin-top: 12px; background: var(--panel-2);
}
.box {
  border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  padding: 12px 14px; background: var(--panel-2);
}

/* ------------------------------------------------------------- Tipografi */

.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny  { font-size: 12px; }
.mono  { font-family: var(--mono); }
a { color: var(--link); }
h3 { font-size: 14px; font-weight: 600; margin: 0 0 8px; }

/* ----------------------------------------------------------- Form öğeleri */

label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }

select, input[type=text], input[type=email], input[type=number], input[type=date], textarea {
  width: 100%; padding: 8px 11px;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-xs);
  font-size: 14px; font-family: inherit;
  transition: border-color .12s, box-shadow .12s;
}
select:focus, input:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
select:disabled, input:disabled, textarea:disabled { opacity: .55; cursor: not-allowed; }
textarea { line-height: 1.5; resize: vertical; min-height: 84px; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%236e6e73' d='M0 0h10L5 6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
  padding-right: 30px;
}

.field { margin-top: 12px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 180px; }

.checks { display: flex; gap: 18px; flex-wrap: wrap; margin: 6px 0 2px; }
.checks label, .checkline {
  display: flex; align-items: center; gap: 8px;
  color: var(--text); cursor: pointer; margin: 0; font-size: 14px;
}
/* Alt alta gelen onay satırları birbirine yapışmasın. (.checks içindekiler
   yan yana dizildiği için oradaki boşluğu gap veriyor, burada gerekmiyor.) */
.checkline + .checkline { margin-top: 8px; }
.row + .checkline, .field + .checkline { margin-top: 12px; }
.checks input, .checkline input { width: auto; flex: none; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 15px; height: 15px; }

/* ---------------------------------------------------------------- Düğme */

button {
  appearance: none; cursor: pointer;
  border: 1px solid var(--border); background: var(--panel); color: var(--text);
  padding: 7px 15px; border-radius: var(--radius-xs);
  font-size: 13.5px; font-weight: 500; font-family: inherit;
  transition: background .12s, border-color .12s, opacity .12s;
}
button:hover:not(:disabled) { background: var(--panel-2); border-color: var(--muted); }
button:disabled { opacity: .45; cursor: not-allowed; }

button.primary {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
button.primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }

button.success { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
button.success:hover:not(:disabled) { filter: brightness(1.08); background: var(--accent-2); }

button.danger { background: transparent; border-color: var(--danger); color: var(--danger); }
button.danger:hover:not(:disabled) { background: var(--danger); border-color: var(--danger); color: #fff; }

button.small, .actions button.small { padding: 5px 11px; font-size: 12.5px; }

.linkbtn {
  background: none; border: none; color: var(--link); padding: 0;
  font-size: 13px; font-weight: 500; cursor: pointer;
}
.linkbtn:hover { text-decoration: underline; background: none; border-color: transparent; }

.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; align-items: center; }

/* --------------------------------------------------------------- Tablo */

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border-soft); }
th {
  color: var(--faint); font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: .04em;
  background: var(--panel-3); border-bottom: 1px solid var(--border);
}
tbody tr:last-child td { border-bottom: 0; }
tr.selectable { cursor: pointer; }
tr.selectable:hover td { background: var(--panel-2); }
tr.selected td { background: var(--accent-soft); }
tr.disabled { opacity: .5; }
tr.disabled td { cursor: not-allowed; }
.radio-cell { width: 34px; }

/* --------------------------------------------------------------- Rozet */
/* ASC'nin durum göstergesi: renkli nokta + metin.                         */

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px 3px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 500; line-height: 1.5;
  background: var(--panel-2); border: 1px solid var(--border-soft); color: var(--muted);
}
.pill::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: currentColor; opacity: .9;
}
.pill.ok     { color: var(--accent-2); background: var(--green-soft);  border-color: transparent; }
.pill.review { color: var(--warn);     background: var(--warn-soft);   border-color: transparent; }
.pill.danger { color: var(--danger);   background: var(--danger-soft); border-color: transparent; }
.pill.info   { color: var(--accent);   background: var(--accent-soft); border-color: transparent; }
.pill.plain::before { display: none; }

/* Anahtar/değer kapsülü (bundle id, app id …) */
.kv {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--border-soft); background: var(--panel-2);
  font-size: 12px; color: var(--muted);
}
.kv b { font-weight: 600; color: var(--text); font-family: var(--mono); font-size: 12px; }

.appmeta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; font-size: 12px; color: var(--muted); }
.appmeta button { padding: 4px 10px; font-size: 11px; }
.appmeta a { color: var(--link); text-decoration: none; }
.appmeta a:hover { text-decoration: underline; }

/* ------------------------------------------------------- Uyarı kutuları */

.banner, .warns, .warnbox, .done-note {
  padding: 11px 14px; border-radius: var(--radius-sm);
  font-size: 13px; border: 1px solid transparent;
}
.banner, .warns, .warnbox {
  background: var(--warn-soft); border-color: rgba(178, 80, 0, .32);
  border-color: color-mix(in srgb, var(--warn) 32%, transparent);
  color: var(--text);
}
.banner { margin-bottom: 16px; }
.warns, .warnbox { margin: 12px 0 0; }
.warns ul, .warnbox ul { margin: 0; padding-left: 18px; }
.done-note {
  margin: 12px 0 0; background: var(--green-soft);
  border-color: rgba(36, 138, 61, .32);
  border-color: color-mix(in srgb, var(--accent-2) 32%, transparent);
}
.banner.err, .warnbox.err {
  background: var(--danger-soft); border-color: rgba(215, 0, 21, .32);
  border-color: color-mix(in srgb, var(--danger) 32%, transparent);
}

.steps { margin: 12px 0 0; padding: 0; list-style: none; font-size: 13px; }
.steps li { padding: 6px 0 6px 22px; position: relative; color: var(--text); }
.steps li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2); font-weight: 600; }

/* --------------------------------------------------------------- Toast */

.toast {
  position: fixed; bottom: 20px; right: 20px; max-width: 420px; z-index: 60;
  padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--panel); color: var(--text);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .18);
  opacity: 0; transform: translateY(8px); transition: .18s; pointer-events: none;
  font-size: 13.5px;
}
.toast.show { opacity: 1; transform: none; }
.toast.err { border-color: var(--danger); }
.toast.ok  { border-color: var(--accent-2); }

/* ------------------------------------------------------------- Yardımcı */

.spinner {
  display: inline-block; width: 13px; height: 13px;
  border: 2px solid currentColor; border-top-color: transparent;
  border-radius: 50%; animation: asc-spin .7s linear infinite; vertical-align: -2px; opacity: .7;
}
@keyframes asc-spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

/* İlk yükleme iskeleti */
.skeleton {
  background: linear-gradient(90deg, var(--panel-2) 25%, var(--border-soft) 50%, var(--panel-2) 75%);
  background-size: 200% 100%; animation: asc-shimmer 1.3s infinite;
  border-radius: var(--radius-xs); color: transparent;
}
@keyframes asc-shimmer { to { background-position: -200% 0; } }

/* ------------------------------------------------------------- Pencere */

.modal {
  position: fixed; inset: 0; z-index: 50; padding: 24px;
  background: rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
}
.modal.hidden { display: none !important; }
.modal-card {
  background: var(--panel); border: 1px solid var(--border-soft);
  border-radius: var(--radius); width: 100%; max-width: 540px; max-height: 100%;
  overflow: auto; padding: 20px 22px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .3);
}
.modal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.modal-head h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.modal-head button { margin-left: auto; padding: 5px 12px; font-size: 13px; }

/* Onay penceresi (AscShell.ask) — gönderim öncesi "ne gidiyor, ne eksik". */
.ask-body { font-size: 13.5px; line-height: 1.55; }
.ask-body p { margin: 0 0 10px; }
/* Düğmeler kartın dibine YAPIŞIK: uzun ürün listesinde eylem çubuğu kaydırma
   alanının altına düşüyordu ve telefonda pencere "sadece uyarı" gibi görünüp
   tek düğmeli akış hiç keşfedilmiyordu. `bottom: -20px` kartın alt
   padding'ini telafi ediyor. */
.ask-actions {
  position: sticky; bottom: -20px; z-index: 1; background: var(--panel);
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end;
  margin-top: 16px; padding: 14px 0 0; border-top: 1px solid var(--border-soft);
}
/* "Vazgeç" solda kalsın: yıkıcı olmayan çıkış yolu göz hizasında dursun. */
.ask-actions button[data-ask-left] { margin-right: auto; }
.asklist {
  display: flex; flex-direction: column; gap: 6px; margin: 10px 0 4px;
  max-height: 42vh; overflow-y: auto;
}
/* Sınıf adı bilerek `.row` DEĞİL: asc.css'teki genel `.row > * { flex: 1;
   min-width: 180px }` kuralı işaret sütununu 180px'e şişirip metni ortaya
   itiyordu. */
.asklist .askrow {
  display: flex; gap: 9px; align-items: flex-start; padding: 8px 10px;
  border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--panel-2);
}
.asklist .askrow.bad { border-color: var(--danger); background: var(--danger-soft); }
.asklist .mark { flex: 0 0 auto; line-height: 1.45; }
.asklist .nm { font-weight: 550; }
.asklist .why { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* --------------------------------------------------------- Hesap paneli */

.acc-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.profile {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; flex-wrap: wrap;
  border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--panel-2);
}
.profile.active { border-color: var(--accent); background: var(--accent-soft); }
.profile input.pname {
  font-weight: 550; font-size: 14px; flex: 1 1 140px; min-width: 0; width: auto;
  background: transparent; border: 1px solid transparent; padding: 3px 7px;
  border-radius: var(--radius-xs); color: var(--text);
}
.profile input.pname:hover { border-color: var(--border); }
.profile input.pname:focus { background: var(--panel); border-color: var(--accent); outline: none; box-shadow: none; }
.profile .pmeta { color: var(--muted); font-size: 12px; padding: 0 8px; }
.profile .pmeta .mono { color: var(--text); font-weight: 600; font-family: var(--mono); }
.profile .pacts { margin-left: auto; display: flex; gap: 6px; }
.profile .pacts button { padding: 5px 10px; font-size: 12px; }

.acc-card {
  border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  padding: 14px; margin-top: 12px; background: var(--panel-2);
}
.acc-field { margin-top: 10px; }
.drop {
  display: block; width: 100%;
  border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 16px 12px;
  text-align: center; color: var(--muted); font-size: 13px; cursor: pointer; background: var(--panel);
  font-family: inherit; font-weight: 500; box-shadow: none;
}
.drop .dropsub { display: block; margin-top: 3px; font-size: 11.5px; color: var(--faint); font-weight: 400; }
/* Dokunmatikte sürükleme yok; ikinci satır yalnızca masaüstünde anlamlı. */
@media (hover: none) { .drop .dropsub { display: none; } }

/* Dosya seçici iOS'ta tıkanırsa diye elle yapıştırma yolu. */
.acc-paste { margin-top: 8px; }
.acc-paste summary {
  cursor: pointer; font-size: 12px; color: var(--muted);
  padding: 4px 0; list-style: none;
}
.acc-paste summary::-webkit-details-marker { display: none; }
.acc-paste summary::before { content: "▸ "; color: var(--faint); }
.acc-paste[open] summary::before { content: "▾ "; }
.acc-paste textarea {
  margin-top: 6px; min-height: 96px;
  font-family: var(--mono); font-size: 12px; line-height: 1.45;
}
.drop.over { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.drop.filled { border-style: solid; border-color: var(--accent-2); color: var(--text); }

/* Gizlilik notu — anahtarın nerede durduğunu her hesap penceresinde söyle. */
.acc-privacy {
  margin: 12px 0 0; padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--green-soft);
  border: 1px solid rgba(36, 138, 61, .28);
  border-color: color-mix(in srgb, var(--accent-2) 28%, transparent);
  font-size: 12.5px; color: var(--text);
}

/* --------------------------------------------------- Dokunmatik son sözü
   iOS, 16px'ten küçük bir alana odaklanınca sayfayı yakınlaştırır ve bir daha
   geri çıkmaz — hesap penceresindeki kimlik alanları da buna dahildi.
   Yakınlaştırmayı maximum-scale ile kapatmak erişilebilirliği bozacağı için
   doğru çözüm alanları 16px yapmak.

   DİKKAT: Bu blok dosyanın SONUNDA durmalı. Yukarıdaki 820px bloğu form
   kurallarından önce geldiği için oraya konan aynı özgüllükteki bir kural
   `font-size: 14px` tarafından eziliyordu. */
@media (max-width: 820px) {
  select, input[type=text], input[type=email], input[type=number],
  input[type=date], input[type=password], input[type=search], textarea {
    font-size: 16px;
  }
  .asc-menu-search input,
  .profile input.pname,
  .acc-paste textarea { font-size: 16px; }
}

/* Hesap değişiyor: geçiş bir-iki saniye sürebiliyor ve o sırada ekranda hâlâ
   ESKİ hesabın verisi duruyor. Tıklamayı kapatmak, kullanıcının yarı yüklenmiş
   bir ekrandan iş yapmasını (ve yanlış hesaba yazmasını) engelliyor. */
body.asc-switching { pointer-events: none; cursor: progress; }
