/* Yırtık Studio paneli · Faz 1b (kararlar) */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations"),
       url(fonts/inter-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter-latin-wght-normal.woff2) format("woff2-variations"),
       url(fonts/inter-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --bg: #f7f7f8;
  --surface: #fff;
  --sunken: #f4f4f5;
  --hover: #f1f1f3;
  --line: #e6e6ea;
  --line-strong: #d5d5db;
  --fg: #111114;
  --fg-2: #3a3a42;
  --muted: #6b6b76;
  --faint: #a0a0aa;
  --primary: #111114;
  --primary-hover: #2b2b31;
  --on-primary: #fff;
  --accent: #ffc21a;
  --accent-strong: #e0a400;
  --accent-soft: #fff6d9;
  --accent-fg: #7a5600;
  --on-accent: #111114;
  --link: #1d5fb4;
  --info: #1d5fb4;
  --info-soft: #eaf2fd;
  --ok: #16803c;
  --ok-soft: #e8f6ed;
  --warn: #b45309;
  --warn-soft: #fff3e3;
  --bad: #c62828;
  --bad-soft: #fdecec;
  --cz-muzik: #7c3aed;
  --cz-yazi: #b7791f;
  --cz-ses: #0f766e;
  --cz-efekt: #85858f;
  --shadow-card: 0 1px 2px rgb(17 17 20 / .04), 0 1px 1px rgb(17 17 20 / .02);
  --shadow-secili: 0 1px 3px rgb(17 17 20 / .10), 0 0 0 1px var(--line);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c0e;
    --surface: #151518;
    --sunken: #101013;
    --hover: #1d1d22;
    --line: #26262c;
    --line-strong: #36363d;
    --fg: #f4f4f5;
    --fg-2: #d4d4d8;
    --muted: #9d9da8;
    --faint: #62626c;
    --primary: #f4f4f5;
    --primary-hover: #e4e4e7;
    --on-primary: #111114;
    --accent: #ffc21a;
    --accent-strong: #ffc21a;
    --accent-soft: rgb(255 194 26 / .12);
    --accent-fg: #ffd25e;
    --link: #82b4ff;
    --info: #82b4ff;
    --info-soft: rgb(130 180 255 / .12);
    --ok: #4ade80;
    --ok-soft: rgb(74 222 128 / .12);
    --warn: #f5a524;
    --warn-soft: rgb(245 165 36 / .12);
    --bad: #f87171;
    --bad-soft: rgb(248 113 113 / .12);
    --cz-muzik: #c084fc;
    --cz-yazi: #ffc21a;
    --cz-ses: #2dd4bf;
    --cz-efekt: #62626c;
    --shadow-card: none;
    --shadow-secili: 0 0 0 1px var(--line-strong);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.45 "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

a { color: var(--link); }
button { font-family: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 2px;
  border-radius: 8px;
}
h1:focus { outline: none; }

.gizli {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- sayfa ---------- */

.sayfa {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 max(16px, env(safe-area-inset-right)) calc(96px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.ust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 10px 0 4px;
}

.marka {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--fg);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  text-decoration: none;
}
.marka-isaret {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--accent);
  display: grid;
  place-items: center;
  flex: none;
}
.marka-isaret svg { width: 22px; height: 22px; display: block; }

.geri {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  padding-right: 10px;
  margin-left: -6px;
  color: var(--link);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.geri svg { width: 24px; height: 24px; }

.yenile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--fg);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.yenile:hover { background: var(--hover); }
.yenile svg { width: 18px; height: 18px; }
.donuyor svg { animation: don .9s linear infinite; }
@keyframes don { to { transform: rotate(360deg); } }

h1 {
  font-size: 30px;
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -.02em;
  margin: 12px 0 6px;
}

.bilgi {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 0;
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 16px;
}
.bilgi > span { display: inline-flex; align-items: center; gap: 6px; }
.bilgi > span:not(:last-child)::after { content: "·"; margin: 0 8px 0 2px; color: var(--faint); }

.not-kart {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 12px;
  font-size: 15px;
  background: var(--warn-soft);
  color: var(--fg);
}
.not-kart svg { width: 20px; height: 20px; flex: none; color: var(--warn); margin-top: 1px; }
.not-kart.bilgi-kart { background: var(--info-soft); }
.not-kart.bilgi-kart svg { color: var(--info); }
.not-kart button {
  margin-left: auto;
  flex: none;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- gruplar ve liste ---------- */

.grup {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 8px;
  font-size: 15px;
  font-weight: 650;
  color: var(--fg-2);
}
.adet { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }

.nokta {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex: none;
  background: var(--faint);
}
.nokta.sende { background: var(--accent-strong); }
.nokta.calisiyor { background: var(--info); animation: nabiz 1.6s ease-in-out infinite; }
.nokta.hazir { background: transparent; box-shadow: inset 0 0 0 2px var(--ok); }
.nokta.yayinda { background: var(--ok); }
.nokta.sirada, .nokta.diger { background: var(--faint); }
@keyframes nabiz { 50% { opacity: .35; } }

.liste {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.liste > li + li { border-top: 1px solid var(--line); }
.liste a:focus-visible { outline-offset: -3px; border-radius: 14px; }

.video {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 20px;
  gap: 14px;
  align-items: center;
  min-height: 82px;
  padding: 14px 16px;
  color: inherit;
  text-decoration: none;
}
.video:hover, .video:active { background: var(--hover); }

.kucuk-kapak, .bas-harf {
  width: 96px; height: 54px;
  border-radius: 8px;
  background: var(--sunken);
  display: block;
}
.kucuk-kapak { object-fit: cover; }
.bas-harf {
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 750;
  color: var(--muted);
  border: 1px solid var(--line);
}

.video-metin { display: block; min-width: 0; }
.video-ad { display: block; font-size: 17px; font-weight: 650; line-height: 1.25; }
.video-alt {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.video-ozet {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.35;
  color: var(--fg-2);
}
.video-ozet .nokta { width: 8px; height: 8px; transform: translateY(-1px); }

.ilerleme {
  display: block;
  height: 4px;
  margin-top: 9px;
  border-radius: 99px;
  background: var(--sunken);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.ilerleme > i { display: block; height: 100%; border-radius: inherit; background: var(--ok); }
.ilerleme.sende > i { background: var(--accent-strong); }
.ilerleme.calisiyor > i { background: var(--info); }

.ok-sag { width: 20px; height: 20px; color: var(--faint); }

/* ---------- video ayrıntısı ---------- */

.kapak-buyuk {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  margin: 6px 0 16px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--sunken);
  border: 1px solid var(--line);
}
.kapak-buyuk img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kapak-yok {
  aspect-ratio: auto;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--faint);
}
.kapak-yok b { font-size: 28px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.kapak-yok span { font-size: 15px; color: var(--muted); }

.detay-h1 { font-size: 28px; margin: 0 0 2px; }
.detay-ad { font-size: 18px; color: var(--fg-2); margin: 0 0 14px; }
.etiket-baslik { font-size: 14px; color: var(--muted); margin: 0 0 2px; }
.yt-baslik { font-size: 17px; font-weight: 600; line-height: 1.35; margin: 0 0 16px; }

.durum-kutu {
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0 0 8px;
  background: var(--sunken);
  border: 1px solid var(--line);
}
.durum-kutu.sende { background: var(--accent-soft); border-color: transparent; }
.durum-kutu.hazir, .durum-kutu.yayinda { background: var(--ok-soft); border-color: transparent; }
.durum-kutu.calisiyor { background: var(--info-soft); border-color: transparent; }
.durum-satir { display: flex; align-items: baseline; gap: 9px; font-size: 16px; font-weight: 600; line-height: 1.35; }
.durum-satir .nokta { transform: translateY(1px); }
.durum-alt { margin-top: 4px; padding-left: 19px; font-size: 15px; color: var(--fg-2); }

.dugme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 0;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.dugme:hover { background: var(--primary-hover); }
.dugme svg { width: 18px; height: 18px; }
.dugme.ikincil { background: var(--surface); color: var(--fg); border: 1px solid var(--line-strong); }
.dugme.ikincil:hover { background: var(--hover); }
.durum-kutu .dugme { margin-top: 12px; }

.bolum-capa { height: 0; }
.bolumler {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 10px 0;
  margin: 0 0 4px;
  background: var(--bg);
}
.bolum-ray {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: var(--sunken);
  border: 1px solid var(--line);
}
.bolum-ray button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.15;
  cursor: pointer;
}
.bolum-ray button:hover { color: var(--fg); }
.bolum-ray button[aria-selected="true"] { background: var(--surface); color: var(--fg); box-shadow: var(--shadow-secili); }
.bolum-ray small { font-size: 13px; font-weight: 550; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 2px; }
.bolum-ray .isaret {
  position: absolute;
  top: 8px; right: 10px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-strong);
}

/* adımlar */
.adim {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  min-height: 56px;
  padding: 14px 16px;
  color: inherit;
  text-decoration: none;
}
a.adim:hover { background: var(--hover); }
.adim.sende { background: var(--accent-soft); box-shadow: inset 4px 0 0 var(--accent-strong); }

.ikon { width: 28px; height: 28px; margin-top: -2px; display: grid; place-items: center; }
.ikon svg { width: 26px; height: 26px; display: block; overflow: visible; }
.ikon .dolu { fill: currentColor; }
.ikon .halka { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ikon .kesik { stroke-dasharray: 4.2 3.2; }
.ikon .ters { fill: none; stroke: var(--surface); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ikon .koyu { fill: var(--on-accent); }
.ikon .zemin { fill: var(--sunken); stroke: var(--line-strong); stroke-width: 1.5; }
.ikon .soru { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ikon.tamam { color: var(--ok); }
.ikon.kismi { color: var(--warn); }
.ikon.suruyor { color: var(--info); }
.ikon.planli { color: var(--info); }
.ikon.bekliyor { color: var(--accent); }
.ikon.yok { color: var(--faint); }
.ikon.hata { color: var(--bad); }
.donen { animation: don 2.4s linear infinite; transform-origin: 50% 50%; }

.adim-metin { display: block; min-width: 0; }
.adim-ad {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.adim-not { display: block; margin-top: 3px; font-size: 15px; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }

.hap {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}
.hap.sen { background: var(--accent); color: var(--on-accent); }
.hap.tahmin { background: var(--sunken); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); }
.hap.gecti { background: var(--sunken); color: var(--muted); }
.hap.uzun { background: var(--info-soft); color: var(--info); }

.adim-sag { display: flex; align-items: center; gap: 6px; margin-top: 1px; }
.cip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  background: var(--sunken);
  color: var(--fg-2);
}
.cip.tamam { background: var(--ok-soft); color: var(--ok); }
.cip.kismi { background: var(--warn-soft); color: var(--warn); }
.cip.suruyor, .cip.planli { background: var(--info-soft); color: var(--info); }
.cip.bekliyor { background: var(--accent); color: var(--on-accent); }
.cip.yok { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); }
.cip.bilinmiyor { background: var(--sunken); color: var(--muted); }
.cip.hata { background: var(--bad-soft); color: var(--bad); }
.cip.ac { background: var(--info-soft); color: var(--link); }
.cip svg { width: 15px; height: 15px; }

/* reels listesi */
.reels-bas {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 8px;
}
.reels-bas h2 { font-size: 18px; font-weight: 700; }
.reel {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 20px;
  gap: 12px;
  align-items: start;
  min-height: 56px;
  padding: 12px 16px;
  color: inherit;
  text-decoration: none;
}
div.reel { grid-template-columns: 36px minmax(0, 1fr); }
a.reel:hover { background: var(--hover); }
.reel .ok-sag { margin-top: 8px; }
.reel-no {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--sunken);
  color: var(--fg-2);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.reel-no.cikti { background: var(--ok-soft); color: var(--ok); }
.reel-no.planli { background: var(--info-soft); color: var(--info); }
.reel-ad {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.reel-meta { display: block; margin-top: 3px; font-size: 15px; color: var(--muted); }
.mini { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.mini span { padding: 3px 9px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.2; }
.mini .var { background: var(--ok-soft); color: var(--ok); }
.mini .yok { color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* ---------- bekleyenler ---------- */

.is-kart {
  margin: 0 0 12px;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.is-kart.sert { box-shadow: inset 4px 0 0 var(--accent-strong), var(--shadow-card); padding-left: 20px; }
.is-kart.yumusak { background: transparent; box-shadow: none; }
.is-kart .kim { font-size: 15px; font-weight: 600; color: var(--muted); }
.is-kart .ne { margin: 4px 0 6px; font-size: 19px; font-weight: 700; line-height: 1.3; }
.is-kart.yumusak .ne { font-size: 17px; font-weight: 650; }
.is-kart .not { font-size: 15px; color: var(--fg-2); }
.is-kart .dugme { margin-top: 14px; }

.bos-kart {
  margin: 8px 0 12px;
  padding: 28px 16px;
  border-radius: 16px;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  color: var(--fg-2);
}

/* ---------- takvim ---------- */

.gun-bas {
  margin: 22px 0 8px;
  font-size: 15px;
  font-weight: 650;
  color: var(--fg-2);
}
.gun-bas b { color: var(--fg); font-weight: 750; }
.olay {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 56px;
  padding: 12px 16px;
  color: inherit;
  text-decoration: none;
}
a.olay { grid-template-columns: 60px minmax(0, 1fr) 20px; }
a.olay .ok-sag { align-self: center; }
a.olay:hover { background: var(--hover); }
.olay-saat { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.3; }
.olay-metin { display: block; min-width: 0; }
.olay-ne { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 16px; font-weight: 600; line-height: 1.3; }
.olay-ad { display: block; margin-top: 2px; font-size: 15px; color: var(--muted); }
.olay.gecti { opacity: .55; }
.olay.uzun { box-shadow: inset 4px 0 0 var(--info); }

/* ---------- genel ---------- */

.dip {
  margin: 28px 0 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}
.aciklama { margin: -2px 0 10px; font-size: 15px; color: var(--muted); }

.yukleniyor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50vh;
  font-size: 17px;
  color: var(--muted);
}
.cark {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 3px solid var(--line-strong);
  border-top-color: var(--fg);
  animation: don .8s linear infinite;
}

.hata-kart {
  margin: 24px 0;
  padding: 24px 20px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.hata-kart h1 { margin: 0 0 8px; font-size: 24px; }
.hata-kart p { font-size: 16px; color: var(--fg-2); margin: 0 0 8px; }
.hata-kart .kucuk { font-size: 14px; color: var(--muted); }
.hata-kart .dugme { margin-top: 10px; }

/* ---------- alt sekmeler ---------- */

.sekmeler {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 10;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.sekmeler-ic {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.sekmeler-ic[data-adet="3"] { grid-template-columns: repeat(3, 1fr); }
.sekmeler a[hidden] { display: none; }
.sekmeler a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 60px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.sekmeler a:focus-visible { outline-offset: -4px; }
.sekmeler svg { width: 24px; height: 24px; }
.sekmeler svg .c { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sekmeler svg .f { fill: currentColor; }
.sekmeler a[aria-current="page"] { color: var(--fg); }
.sekmeler a[aria-current="page"] span:not(.rozet) { font-weight: 750; }
.rozet {
  position: absolute;
  top: 6px;
  left: calc(50% + 5px);
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11.5px;
  font-weight: 750;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--surface);
}
.rozet[hidden] { display: none; }

/* ---------- giriş sayfası ---------- */

.giris-sayfa {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top);
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
.giris-kart {
  margin-top: auto;
  padding: 32px 22px 26px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.giris-simge {
  width: 72px; height: 72px;
  margin: 0 auto 18px;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--accent-fg);
  display: grid;
  place-items: center;
}
.giris-simge svg { width: 40px; height: 40px; display: block; }
.giris-simge .parmak, .giris-simge.parmakli .yuz { display: none; }
.giris-simge.parmakli .parmak { display: block; }
.giris-kart h1 { margin: 0 0 8px; font-size: 28px; }
.giris-alt { margin: 0 0 24px; font-size: 17px; color: var(--fg-2); }
.giris-dugme { width: 100%; min-height: 56px; font-size: 18px; }
.giris-mesaj { margin: 16px 0 0; font-size: 16px; line-height: 1.45; color: var(--fg-2); }
.giris-mesaj:empty { margin: 0; }
.giris-mesaj.hata { color: var(--bad); }
.giris-mesaj.tamam { color: var(--ok); }
.giris-yedek { margin: 18px 0 auto; text-align: center; font-size: 16px; }
.giris-yedek a { display: inline-block; padding: 10px 6px; font-weight: 600; text-underline-offset: 3px; }

.dugme:disabled, .dugme[aria-disabled="true"] { opacity: .55; cursor: default; }
.dugme:disabled:hover, .dugme[aria-disabled="true"]:hover { background: var(--primary); }
.dugme.ikincil:disabled:hover, .dugme.ikincil[aria-disabled="true"]:hover { background: var(--surface); }

/* ---------- giriş ayarları ---------- */

.ga-mesaj {
  margin: 4px 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 16px;
  background: var(--sunken);
  color: var(--fg);
}
.ga-mesaj.tamam { background: var(--ok-soft); box-shadow: inset 4px 0 0 var(--ok); }
.ga-mesaj.hata { background: var(--bad-soft); box-shadow: inset 4px 0 0 var(--bad); }
.ga-uyari { margin: 12px 0; font-size: 16px; color: var(--fg-2); }
.hata-kart h2 { margin: 0 0 8px; font-size: 21px; font-weight: 700; }
.ga-bos {
  margin: 8px 0 16px;
  padding: 28px 20px;
  border-radius: 16px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.ga-bos h2 { margin: 0 0 6px; font-size: 21px; font-weight: 700; }
.ga-bos p { margin: 0 0 20px; font-size: 16px; color: var(--fg-2); }

.anahtar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 12px;
  align-items: center;
  padding: 14px 16px;
}
.anahtar-metin { display: block; min-width: 0; }
.anahtar-ad { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 17px; font-weight: 650; line-height: 1.3; }
.anahtar-meta { display: block; margin-top: 3px; font-size: 15px; color: var(--muted); }
.hap.bu { background: var(--ok-soft); color: var(--ok); }

.kucuk-dugme {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--fg);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.kucuk-dugme.sil { color: var(--bad); }
.kucuk-dugme:hover { background: var(--hover); }
.kucuk-dugme[aria-disabled="true"] { opacity: .55; cursor: default; }
.kucuk-dugme[aria-disabled="true"]:hover { background: var(--surface); }

.onay { grid-column: 1 / -1; padding: 12px 14px; border-radius: 12px; background: var(--bad-soft); }
.onay p { margin: 0 0 12px; font-size: 16px; }
.onay-dugmeler { display: flex; gap: 10px; }
.onay-dugmeler .dugme { flex: 1; }
.dugme.tehlike { background: var(--bad); color: var(--bg); }
.dugme.tehlike:hover { background: var(--bad); filter: brightness(.94); }
.dugme.tehlike[aria-disabled="true"]:hover { filter: none; }

.dugmeler { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 20px; }

.ac-kart {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 20px;
  gap: 12px;
  align-items: center;
  margin: 0 0 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--fg);
  text-decoration: none;
}
.ac-simge {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
}
.ac-simge svg { width: 26px; height: 26px; }
.ac-metin b { display: block; font-size: 17px; font-weight: 700; }
.ac-metin span { display: block; margin-top: 2px; font-size: 15px; color: var(--fg-2); }
.dip-link { margin: 4px 0 8px; text-align: center; font-size: 15px; }
.dip-link a { display: inline-block; padding: 10px 8px; font-weight: 600; }

/* ---------- kararlar (Faz 1b) ---------- */

.karar-bas { margin: 24px 0 10px; font-size: 18px; font-weight: 700; line-height: 1.3; }
.karar-soru { margin: 4px 0 14px; font-size: 18px; font-weight: 600; line-height: 1.4; }
.karar-ipucu { margin: 8px 0 0; font-size: 15px; line-height: 1.45; color: var(--muted); }
.dugme.tam { display: flex; width: 100%; margin-top: 12px; }
.dugmeler .dugme.tam { margin-top: 0; }
.ga-mesaj.yerinde { margin: 12px 0 0; }

.alan-bas { display: block; margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--fg-2); }
.alan {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-size: 17px;
  line-height: 1.4;
}
textarea.alan { resize: vertical; }
input.alan { -webkit-appearance: none; appearance: none; }
input.alan::-webkit-date-and-time-value { text-align: left; }
.alan:focus-visible { border-radius: 12px; outline-offset: 1px; }
.sayac { margin: 4px 2px 0; font-size: 14px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.sayac.asti { color: var(--bad); font-weight: 650; }

.secenekler { display: flex; flex-direction: column; gap: 10px; }
.secenek {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.secenek-metin { display: block; font-size: 17px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.secenek-alt { display: block; margin-top: 4px; font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }
.secenek:focus-visible { border-radius: 14px; }
.secenek:hover, .kapak-secenek:hover { border-color: var(--line-strong); }
.secenek[aria-pressed="true"], .kapak-secenek[aria-pressed="true"] { border-color: var(--accent-strong); background: var(--accent-soft); }
.secenek[aria-pressed="true"] .secenek-metin::before { content: "✓ "; color: var(--accent-fg); }

.kapak-secenekler { display: grid; gap: 12px; }
.kapak-secenek {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border-radius: 16px;
  border: 3px solid var(--line);
  background: var(--sunken);
  overflow: hidden;
  cursor: pointer;
}
.kapak-secenek:focus-visible { border-radius: 16px; outline-offset: 2px; }
.kapak-secenek img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kapak-no {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgb(17 17 20 / .8);
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;
}
.kapak-secenek[aria-pressed="true"] .kapak-no { background: var(--accent); color: var(--on-accent); }
.kapak-secenek[aria-pressed="true"] .kapak-no::before { content: "✓ "; }
.secenek-yok { display: grid; place-items: center; width: 100%; height: 100%; font-size: 15px; color: var(--muted); }

.karar-kart {
  margin: 0 0 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.karar-ust { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.karar-zaman { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.karar-ozet { margin-top: 8px; font-size: 17px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; white-space: pre-line; }
.karar-not { margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--fg-2); overflow-wrap: anywhere; white-space: pre-line; }
.karar-kart .kucuk-dugme { margin-top: 12px; }

.cip.k-yeni, .cip.k-mac_aldi { background: var(--info-soft); color: var(--info); }
.cip.k-uygulandi { background: var(--ok-soft); color: var(--ok); }
.cip.k-uygulanmadi { background: var(--bad-soft); color: var(--bad); }
.cip.k-iptal { background: var(--sunken); color: var(--muted); }
.cip.karar-ver { background: var(--accent); color: var(--on-accent); }
.karar-adim .adim-sag { gap: 4px; }

.tarih-saat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 360px) {
  .tarih-saat { grid-template-columns: minmax(0, 1fr); }
}

.reel-satir { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.reel-eylem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-right: 12px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--fg);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.reel-eylem:hover { background: var(--hover); }
.reel-eylem.durumlu { padding: 0 2px; border: 0; background: transparent; }
.liste a.reel-eylem:focus-visible { border-radius: 999px; outline-offset: 2px; }

.is-dugmeler { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.is-kart .is-dugmeler .dugme { margin-top: 0; flex: 1 1 160px; }
.karar-durum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 10px; font-size: 15px; color: var(--fg-2); overflow-wrap: anywhere; }

.karar-satir {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 20px;
  gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 12px 16px;
  color: inherit;
  text-decoration: none;
}
a.karar-satir:hover { background: var(--hover); }
.karar-satir-metin { display: block; min-width: 0; }
.karar-satir-ad { display: block; font-size: 16px; font-weight: 650; line-height: 1.3; }
.karar-satir-ozet { display: block; margin-top: 2px; font-size: 15px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (hover: none) {
  .video:hover, a.adim:hover, a.reel:hover, a.olay:hover, .yenile:hover, a.karar-satir:hover, .reel-eylem:hover { background: inherit; }
  .reel-eylem.durumlu:hover { background: transparent; }
  .adim.sende:hover { background: var(--accent-soft); }
  .kucuk-dugme:hover { background: var(--surface); }
  .secenek:hover, .kapak-secenek:hover { border-color: var(--line); }
  .secenek[aria-pressed="true"]:hover, .kapak-secenek[aria-pressed="true"]:hover { border-color: var(--accent-strong); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Kurgu ekranı (Faz 2) ---------- */
.kurgu-video-yer { margin: 8px 0 0; scroll-margin-top: 8px; }
.kurgu-video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; }
.kurgu-yok { margin: 8px 0 0; padding: 16px; border-radius: 12px; background: var(--sunken); color: var(--fg-2); font-size: 16px; line-height: 1.45; }
.kurgu-yok p { margin: 0 0 6px; }
.kurgu-yok p:last-child { margin: 0; color: var(--muted); font-size: 15px; }
.kurgu-yok .dugme { margin: 4px 0 10px; }
.kurgu-yok .yukleniyor { min-height: 0; justify-content: flex-start; margin: 0; }
.kurgu-bilgi { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.kurgu-zaman { margin: 12px 0 4px; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cizelge { margin: 8px 0 12px; }
.cz-satir { margin: 0 0 10px; }
.cz-ad { margin: 0 0 4px; font-size: 15px; font-weight: 600; color: var(--fg-2); }
.cz-ray { position: relative; height: 28px; border-radius: 8px; background: var(--sunken); overflow: hidden; cursor: pointer; touch-action: manipulation; }
.cz-genel { height: 16px; margin: 0 0 4px; }
.cz-yakin { margin: 0 0 8px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cz-parca { position: absolute; top: 3px; bottom: 3px; border-radius: 4px; background: var(--line-strong); }
.cz-genel .cz-parca { top: 2px; bottom: 2px; border-radius: 2px; }
.cz-renk { display: inline-block; width: 10px; height: 10px; margin: 0 6px 0 0; border-radius: 3px; background: var(--line-strong); vertical-align: middle; }
.cz-klip { background: var(--muted); }
.cz-klip.cift { background: var(--fg-2); }
.cz-altyazi { background: var(--info); }
.cz-yazi { background: var(--cz-yazi); }
.cz-reklam { background: var(--bad); }
.cz-rozet { background: var(--ok); }
.cz-muzik { background: var(--cz-muzik); }
.cz-ses { background: var(--cz-ses); }
.cz-efekt { background: var(--cz-efekt); }
.cz-pencere { position: absolute; top: 0; bottom: 0; border: 2px solid var(--link); border-radius: 4px; pointer-events: none; }
.cz-imlec { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; background: var(--fg); box-shadow: 0 0 0 1px var(--surface); pointer-events: none; }
.cz-anahtar { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 14px; color: var(--fg-2); }
.cz-anahtar li { display: flex; align-items: center; }
.kurgu-dugmeler { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin: 12px 0 0; }
.kurgu-dugmeler .dugme { margin-top: 0; }

/* Notla düzeltme: hazır notlar, Mac'in yaptıkları, oldu / olmadı */
.kn-bas { margin: 14px 0 0; font-size: 15px; color: var(--muted); }
.kn-hazir { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.kn-son { margin: 6px 0 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.kn-son:empty { display: none; }
.sayac.kn-sayac { text-align: left; }
.kn-dugmeler { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.karar-kart .kn-dugmeler .kucuk-dugme { margin-top: 0; }
.kn-kart .karar-ozet { font-size: 16px; }
.kucuk-dugme[aria-pressed="true"], .kucuk-dugme[aria-pressed="true"]:hover { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }

/* ---------- B 25 Kas: bağlantı şeridi, gecikme çipi, önizleme ve bildirim kartları ---------- */

.serit {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--sunken);
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.4;
}
.nokta.sessiz { flex: none; background: var(--faint); }
.cip.k-gec { background: var(--warn-soft); color: var(--warn); }

.duyuru-kart {
  display: flex;
  align-items: stretch;
  margin: 0 0 12px;
  border-radius: 16px;
  background: var(--info-soft);
  color: var(--fg);
}
.duyuru-git {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 4px 12px 16px;
  color: inherit;
  text-decoration: none;
  border-radius: 16px 0 0 16px;
}
.duyuru-git > svg:first-child { width: 24px; height: 24px; flex: none; color: var(--info); }
.duyuru-git .ok-sag { width: 18px; height: 18px; flex: none; color: var(--muted); }
.duyuru-metin { flex: 1; min-width: 0; font-size: 15px; line-height: 1.4; }
.duyuru-metin b { font-weight: 700; overflow-wrap: anywhere; }
.duyuru-kapat, .oneri-kapat {
  flex: none;
  width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.duyuru-kapat { border-radius: 0 16px 16px 0; }
.duyuru-kapat svg, .oneri-kapat svg { width: 20px; height: 20px; }
.duyuru-kapat:hover, .oneri-kapat:hover { color: var(--fg); }

#bildirim-oneri-yer:empty { display: none; }
.oneri-kart {
  margin: 0 0 12px;
  padding: 14px 16px 16px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line);
}
.oneri-ust { display: flex; align-items: center; gap: 12px; }
.oneri-simge {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-fg);
  display: grid;
  place-items: center;
}
.oneri-simge svg { width: 22px; height: 22px; }
.oneri-baslik { flex: 1; min-width: 0; margin: 0; font-size: 17px; font-weight: 700; line-height: 1.3; }
.oneri-kapat { margin: -6px -8px -6px 0; }
.oneri-metin { margin: 8px 0 12px; font-size: 15px; color: var(--fg-2); line-height: 1.45; }
.oneri-dugme .aciklama { margin: 0; }

.cz-uyari {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--warn-soft);
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
}
.cz-uyari svg { width: 18px; height: 18px; flex: none; color: var(--warn); }
