/* Vector — ajan konsolu. Marthen'in koyu cam dilinden esinlenir; Vector'un vurgusu mor → camgöbeği. */
:root {
  --bg: #06080f;
  --bg-2: #0a0d19;
  --panel: rgba(255, 255, 255, .035);
  --raise: rgba(255, 255, 255, .055);
  --hover: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(157, 140, 255, .18);
  --line-hi: rgba(157, 140, 255, .42);
  --text: #e2e6f3;
  --dim: #8d95ad;
  --faint: #5a6178;
  --accent: #9d8cff;
  --cyan: #4fd8ec;
  --grad: linear-gradient(135deg, #9d8cff 0%, #4fd8ec 100%);
  --ok: #4ade80;
  --warn: #fbbf24;
  --err: #f87171;
  --sistem: #4fd8ec;
  --kod: #9d8cff;
  --veri: #f0a35e;
  --hafiza: #f472b6;
  --internet: #6ee7b7;
  --glass: linear-gradient(155deg, rgba(24, 28, 52, .55), rgba(8, 10, 20, .62));
  --glass-edge: inset 0 0 0 1px rgba(190, 180, 255, .09), inset 0 1px 0 rgba(255, 255, 255, .07);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --r: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(1200px 700px at 70% -10%, rgba(157, 140, 255, .10), transparent 60%),
              radial-gradient(900px 600px at -10% 110%, rgba(79, 216, 236, .07), transparent 60%), var(--bg);
  color: var(--text);
  font: 14.5px/1.55 Inter, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.soluk { color: var(--dim); }
.cam { background: var(--glass); box-shadow: var(--glass-edge), 0 16px 50px rgba(0, 0, 0, .45);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
::selection { background: rgba(157, 140, 255, .35); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .08); border-radius: 8px; }

/* ------------------------------------------------------------ marka */
.marka { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .32em; font-size: 15px; }
.marka.buyuk { font-size: 24px; justify-content: center; letter-spacing: .4em; margin-top: 4px; }
.marka-v { width: 22px; height: 22px; flex: none; background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%239d8cff'/%3E%3Cstop offset='1' stop-color='%234fd8ec'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M5 7l11 19L27 7' fill='none' stroke='url(%23g)' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='16' cy='26' r='2.6' fill='%234fd8ec'/%3E%3C/svg%3E") center/contain no-repeat;
  filter: drop-shadow(0 0 8px rgba(157, 140, 255, .55)); }
.marka.buyuk .marka-v { width: 30px; height: 30px; }

/* ------------------------------------------------------------ düğmeler */
.btn { border: 1px solid var(--line-2); background: var(--raise); border-radius: 11px; padding: 9px 14px;
  font-weight: 600; transition: background .2s var(--ease), border-color .2s, transform .15s; }
.btn:hover { background: var(--hover); border-color: var(--line-hi); }
.btn:active { transform: scale(.98); }
.btn.birincil { background: var(--grad); color: #0a0b16; border-color: transparent; box-shadow: 0 6px 24px rgba(157, 140, 255, .25); }
.btn.birincil:hover { filter: brightness(1.08); }
.btn.genis { width: 100%; }
.btn.tehlike { border-color: rgba(248, 113, 113, .4); color: #fecaca; }
.btn.onay { border-color: rgba(74, 222, 128, .45); color: #bbf7d0; background: rgba(74, 222, 128, .08); }
.ikon-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line);
  background: transparent; color: var(--dim); }
.ikon-btn:hover { background: var(--hover); color: var(--text); }
.satir-btn { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; background: none; border: 0;
  padding: 8px 10px; border-radius: 9px; color: var(--dim); }
.satir-btn:hover { background: var(--hover); color: var(--text); }
.mobil { display: none; }
.hamburger { display: grid; gap: 4px; width: 16px; }
.hamburger i { height: 2px; background: currentColor; border-radius: 2px; }

/* ------------------------------------------------------------ giriş */
.giris { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; }
.giris-kart { width: min(380px, 100%); border-radius: 22px; padding: 22px 26px 26px; text-align: center; }
.giris-kure { width: 170px; height: 170px; display: block; margin: 0 auto; }
.giris form { display: grid; gap: 12px; margin-top: 18px; text-align: left; }
.giris label { display: grid; gap: 6px; color: var(--dim); font-size: 12.5px; }
.giris input { background: rgba(0, 0, 0, .3); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; outline: none; }
.giris input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(157, 140, 255, .18); }
.hata { color: var(--err); min-height: 1.2em; margin: 0; font-size: 13px; }

/* ------------------------------------------------------------ yerleşim */
.uygulama { display: grid; grid-template-columns: 264px minmax(0, 1fr) 316px; height: 100dvh; }
.sol { display: flex; flex-direction: column; gap: 12px; padding: 16px 12px; border-right: 1px solid var(--line);
  background: rgba(6, 8, 15, .72); min-height: 0; }
.sol-ust { display: flex; justify-content: space-between; align-items: center; padding: 2px 6px 6px; }
.bolum-baslik { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding: 6px 8px 0; }
.sohbet-listesi { flex: 1; overflow-y: auto; display: grid; align-content: start; gap: 2px; min-height: 0; }
.sohbet { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; text-align: left; background: none; border: 1px solid transparent;
  border-radius: 10px; padding: 8px 10px; color: var(--dim); }
.sohbet:hover { background: var(--hover); color: var(--text); }
.sohbet.aktif { background: rgba(157, 140, 255, .1); border-color: var(--line-2); color: var(--text); }
.sohbet b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sohbet small { grid-column: 1 / -1; font-size: 11.5px; color: var(--faint); }
.sohbet .sil { opacity: 0; border: 0; background: none; color: var(--faint); padding: 0 2px; }
.sohbet:hover .sil { opacity: 1; }
.sohbet .sil:hover { color: var(--err); }
.sol-alt { border-top: 1px solid var(--line); padding-top: 8px; display: grid; gap: 2px; }
.etiket { font-size: 10.5px; letter-spacing: .08em; padding: 2px 7px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--dim); }
.etiket.marthen { color: #a5c8ff; border-color: rgba(122, 167, 255, .35); background: rgba(122, 167, 255, .08); }

.orta { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ust { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.ust-baslik { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.ust h1 { font-size: 15px; font-weight: 600; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.durum-cip { --c: var(--ok); display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .14em; font-weight: 700;
  padding: 5px 11px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  color: color-mix(in srgb, var(--c) 85%, white); background: color-mix(in srgb, var(--c) 9%, transparent); white-space: nowrap; }
.durum-cip i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.durum-cip[data-durum="dusunuyor"] { --c: var(--accent); }
.durum-cip[data-durum="arac"] { --c: var(--cyan); }
.durum-cip[data-durum="yaziyor"] { --c: #c4b5fd; }
.durum-cip[data-durum="onay"] { --c: var(--warn); }
.durum-cip[data-durum="hata"] { --c: var(--err); }
.durum-cip[data-durum="uyku"] { --c: var(--faint); }
.durum-cip:not([data-durum="hazir"]):not([data-durum="uyku"]) i { animation: nabiz 1.1s ease-in-out infinite; }
@keyframes nabiz { 50% { opacity: .35; transform: scale(.7); } }

/* ------------------------------------------------------------ akış */
.akis { flex: 1; overflow-y: auto; padding: 26px 22px 12px; scroll-behavior: smooth; }
.mesajlar { max-width: 860px; margin: 0 auto; display: grid; gap: 22px; }
.karsilama { max-width: 720px; margin: 2vh auto 0; text-align: center; }
.karsilama h2 { margin: 6px 0 6px; font-size: 26px; font-weight: 650; letter-spacing: -.01em; }
.buyuk-kure { width: min(300px, 70vw); height: min(300px, 70vw); display: block; margin: 0 auto; }
.oneriler { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.oneri { text-align: left; padding: 13px 15px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel);
  display: grid; gap: 2px; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.oneri:hover { border-color: var(--line-hi); background: var(--raise); transform: translateY(-1px); }
.oneri b { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
.oneri span { color: var(--dim); }

.msj-kullanici { justify-self: end; max-width: min(640px, 88%); background: rgba(157, 140, 255, .12); border: 1px solid var(--line-2);
  padding: 10px 14px; border-radius: 16px 16px 4px 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msj-vector { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; }
.avatar { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(157, 140, 255, .08);
  display: grid; place-items: center; }
.avatar .marka-v { width: 17px; height: 17px; }
.msj-govde { min-width: 0; display: grid; gap: 10px; }

/* Görev izi */
.iz { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.iz > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 9px 13px; color: var(--dim);
  font-size: 12.5px; user-select: none; }
.iz > summary::-webkit-details-marker { display: none; }
.iz > summary .ok { transition: transform .2s; }
.iz[open] > summary .ok { transform: rotate(90deg); }
.iz > summary b { color: var(--text); font-weight: 600; }
.iz-adimlar { padding: 2px 13px 12px; display: grid; gap: 0; }
.adim { --c: var(--accent); position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 8px 0 8px; }
.adim::before { content: ""; position: absolute; left: 10.5px; top: 28px; bottom: -6px; width: 1px; background: var(--line); }
.adim:last-child::before { display: none; }
.adim-nokta { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 11px; font-weight: 700;
  color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 10%, transparent); }
.adim[data-kat="sistem"] { --c: var(--sistem); }
.adim[data-kat="kod"] { --c: var(--kod); }
.adim[data-kat="veri"] { --c: var(--veri); }
.adim[data-kat="hafiza"] { --c: var(--hafiza); }
.adim[data-kat="internet"] { --c: var(--internet); }
.adim.calisiyor .adim-nokta { animation: nabiz 1s ease-in-out infinite; }
.adim.hatali { --c: var(--err); }
.adim-dusunce { color: var(--dim); font-size: 13px; font-style: italic; }
.adim-arac { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 3px; }
.arac-adi { font-family: var(--mono); font-size: 12px; color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); padding: 1px 8px; border-radius: 6px; }
.arac-girdi { font-family: var(--mono); font-size: 12px; color: var(--dim); overflow-wrap: anywhere; }
.sure { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-left: auto; }
.cikti { margin-top: 6px; }
.cikti summary { cursor: pointer; font-size: 12px; color: var(--faint); }
.cikti pre, .md pre { margin: 6px 0 0; padding: 10px 12px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: 10px;
  font: 12px/1.5 var(--mono); color: #cdd3e6; overflow-x: auto; max-height: 340px; white-space: pre; }

/* Onay kartı */
.onay-kart { border: 1px solid rgba(251, 191, 36, .4); background: linear-gradient(155deg, rgba(251, 191, 36, .09), rgba(251, 191, 36, .02));
  border-radius: var(--r); padding: 12px 14px; display: grid; gap: 8px; }
.onay-kart header { display: flex; align-items: center; gap: 8px; font-weight: 650; color: #fde68a; }
.onay-kart code { font-family: var(--mono); font-size: 12px; color: var(--text); background: rgba(0, 0, 0, .3); padding: 6px 9px; border-radius: 8px;
  display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
.onay-kart .dugmeler { display: flex; gap: 8px; }
.onay-kart.karara-baglandi .dugmeler { display: none; }
.oneri-kart { border-color: rgba(110, 231, 183, .4); background: linear-gradient(155deg, rgba(110, 231, 183, .08), rgba(110, 231, 183, .02)); }
.oneri-kart header { color: #a7f3d0; }
.onay-neden { white-space: pre-wrap; font-size: 12.5px; max-height: 320px; overflow: auto; }
.onay-neden:has(+ code) { font-family: inherit; }
.onay-sonuc { font-size: 12.5px; }

/* Cevap (markdown) */
.md { overflow-wrap: anywhere; }
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md p { margin: 0 0 10px; }
.md h1, .md h2, .md h3 { font-size: 15px; margin: 14px 0 6px; }
.md ul, .md ol { margin: 0 0 10px; padding-left: 22px; }
.md li { margin: 2px 0; }
.md code { font-family: var(--mono); font-size: 12.5px; background: rgba(157, 140, 255, .1); border: 1px solid var(--line); padding: 0 5px; border-radius: 5px; }
.md pre code { background: none; border: 0; padding: 0; }
.md a { color: var(--cyan); }
.md table { border-collapse: collapse; font-size: 13px; margin: 6px 0 10px; display: block; overflow-x: auto; }
.md th, .md td { border: 1px solid var(--line); padding: 5px 9px; text-align: left; }
.md th { background: var(--raise); }
.kod-blok { position: relative; }
.kopyala { position: absolute; top: 6px; right: 6px; font-size: 11px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line);
  background: rgba(10, 12, 24, .8); color: var(--dim); opacity: 0; transition: opacity .2s; }
.kod-blok:hover .kopyala { opacity: 1; }
.imlec::after { content: "▍"; color: var(--accent); animation: nabiz 1s steps(2) infinite; }
.hata-kutu { color: #fecaca; border: 1px solid rgba(248, 113, 113, .35); background: rgba(248, 113, 113, .07); border-radius: 10px; padding: 8px 12px; font-size: 13px; }

/* Ayarlar penceresi */
.ayar-bolum { display: grid; gap: 10px; }
.ayar-bolum h4 { margin: 4px 0 0; font-size: 13px; }
.ayar-bolum label { display: grid; gap: 5px; font-size: 12.5px; color: var(--dim); }
.ayar-bolum input, .ayar-bolum select { background: rgba(0, 0, 0, .3); border: 1px solid var(--line-2); border-radius: 9px; padding: 8px 10px; color: var(--text); }
.ayar-satir { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.uyari-not { font-size: 12px; color: #f5c89a; border: 1px solid rgba(240, 163, 94, .3); background: rgba(240, 163, 94, .07); border-radius: 9px; padding: 8px 10px; }

/* Yazma */
.yazma { margin: 0 auto 18px; width: min(860px, calc(100% - 32px)); border-radius: 18px; display: flex; align-items: flex-end; gap: 8px;
  padding: 8px 8px 8px 16px; border: 1px solid var(--line-2); }
.yazma:focus-within { border-color: var(--line-hi); }
.yazma textarea { flex: 1; resize: none; border: 0; background: none; outline: none; padding: 8px 0; max-height: 200px; line-height: 1.5; }
.gonder { width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--grad); color: #0a0b16; font-size: 18px; font-weight: 800; flex: none; }
.gonder:disabled { opacity: .35; cursor: not-allowed; }
.durdur { padding: 7px 12px; font-size: 12.5px; }

/* ------------------------------------------------------------ sağ panel */
.sag { display: flex; flex-direction: column; gap: 12px; padding: 16px 14px; border-left: 1px solid var(--line); overflow-y: auto;
  background: rgba(6, 8, 15, .55); }
.panel { border-radius: var(--r); padding: 12px 14px; }
.panel-baslik { display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.cekirdek-panel { text-align: center; }
.kure { width: 100%; aspect-ratio: 1; max-width: 230px; display: block; margin: 0 auto; }
.cekirdek-durum { display: grid; gap: 2px; margin-top: 2px; }
.cekirdek-durum span { font-weight: 650; letter-spacing: .04em; }
.cekirdek-durum small { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.olcum { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center; padding: 5px 0; font-size: 13px; color: var(--dim); }
.olcum b { font-family: var(--mono); font-size: 12px; color: var(--text); font-weight: 500; }
.olcum b.acik { color: var(--ok); }
.cubuk { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.cubuk i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 4px; transition: width .8s var(--ease); }
.cubuk i.yuksek { background: linear-gradient(90deg, var(--warn), var(--err)); }
.yetenekler { display: grid; gap: 10px; }
.yetenek-grup b { --c: var(--accent); display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; margin-bottom: 4px; }
.yetenek-grup b::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--c); box-shadow: 0 0 8px var(--c); }
.yetenek-grup[data-kat="sistem"] b { --c: var(--sistem); }
.yetenek-grup[data-kat="kod"] b { --c: var(--kod); }
.yetenek-grup[data-kat="veri"] b { --c: var(--veri); }
.yetenek-grup[data-kat="hafiza"] b { --c: var(--hafiza); }
.yetenek-grup[data-kat="internet"] b { --c: var(--internet); }
.yetenek-grup div { display: flex; flex-wrap: wrap; gap: 4px; }
.yetenek-grup span { font-family: var(--mono); font-size: 11px; color: var(--dim); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.yetenek-grup span.onayli::after { content: " ⚿"; color: var(--warn); }
#onay-listesi { display: grid; gap: 8px; }
#onay-listesi .onay-kart { padding: 10px; font-size: 13px; }

/* ------------------------------------------------------------ modal */
.modal { border: 1px solid var(--line-2); border-radius: 18px; color: var(--text); padding: 0; width: min(720px, calc(100% - 32px)); max-height: 80dvh; }
.modal::backdrop { background: rgba(0, 0, 0, .55); backdrop-filter: blur(3px); }
.modal header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.modal h3 { margin: 0; font-size: 15px; }
.modal-govde { padding: 12px 16px 16px; overflow-y: auto; max-height: calc(80dvh - 60px); display: grid; gap: 8px; }
.kayit { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.kayit small { color: var(--faint); font-family: var(--mono); font-size: 11px; }
.bos { color: var(--faint); text-align: center; padding: 18px; }

.perde { display: none; }

/* ------------------------------------------------------------ mod seçici */
.mod-sec { display: inline-flex; padding: 3px; border-radius: 11px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); flex: none; }
.mod-sec button { border: 0; background: none; color: var(--dim); font-size: 12.5px; font-weight: 600; padding: 5px 13px; border-radius: 8px;
  letter-spacing: .02em; transition: background .2s, color .2s; }
.mod-sec button[aria-selected="true"] { background: rgba(157, 140, 255, .16); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.mod-sec button:hover { color: var(--text); }
.sol-blok { display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 0; }
.ikon-btn.kucuk { width: 26px; height: 26px; border-radius: 7px; font-size: 13px; }
.btn.kucuk { padding: 5px 11px; font-size: 12.5px; border-radius: 9px; }
.btn.vurgu { border-color: var(--line-hi); color: #d9d2ff; background: rgba(157, 140, 255, .1); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.baglanti { background: none; border: 0; color: var(--cyan); padding: 0; text-decoration: underline; text-underline-offset: 3px; }

/* Coder modu: sağ panel gizlenir, editöre yer açılır */
.uygulama.coder-modu { grid-template-columns: 264px minmax(0, 1fr); }
.uygulama.coder-modu .sag, .uygulama.coder-modu #sag-ac { display: none !important; }
.uygulama.coder-modu .akis, .uygulama.coder-modu .yazma { display: none; }
.uygulama.coder-modu .ust-baslik h1 { font-family: var(--mono); font-size: 13px; color: var(--dim); font-weight: 500; }

/* Dosya ağacı */
.agac-ust { display: flex; align-items: center; gap: 4px; }
.agac-ust .bolum-baslik { flex: 1; padding-top: 0; }
.agac-kok { font: 11px var(--mono); padding: 0 8px; margin-top: -6px; }
.agac { flex: 1; overflow: auto; min-height: 0; font-size: 13px; padding-bottom: 8px; }
.ag-oge { display: flex; align-items: center; gap: 6px; padding: 3px 6px 3px calc(6px + var(--d, 0) * 14px); border-radius: 7px; cursor: pointer;
  color: var(--dim); white-space: nowrap; user-select: none; }
.ag-oge:hover { background: var(--hover); color: var(--text); }
.ag-oge.aktif { background: rgba(157, 140, 255, .12); color: var(--text); }
.ag-oge .ok { width: 10px; font-size: 9px; color: var(--faint); transition: transform .15s; flex: none; text-align: center; }
.ag-oge.acik .ok { transform: rotate(90deg); }
.ag-oge .ikon { width: 14px; text-align: center; flex: none; font-size: 11px; }
.ag-oge .ad { overflow: hidden; text-overflow: ellipsis; flex: 1; }
.ag-oge .islem { display: none; gap: 2px; }
.ag-oge:hover .islem { display: flex; }
.ag-oge .islem button { border: 0; background: none; color: var(--faint); padding: 0 3px; font-size: 12px; border-radius: 4px; }
.ag-oge .islem button:hover { color: var(--text); background: var(--hover); }
.ag-oge .islem button.sil:hover { color: var(--err); }
.ag-oge.kirli .ad::after { content: " ●"; color: var(--warn); font-size: 10px; }

/* Coder alanı */
.coder { --term-h: 34%; flex: 1; display: grid; grid-template-rows: auto minmax(80px, 1fr) 6px minmax(90px, var(--term-h)) auto; min-height: 0; }
.cd-arac-cubugu { display: flex; align-items: center; gap: 8px; padding: 8px 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.cd-sekmeler { flex: 1; display: flex; gap: 2px; overflow-x: auto; min-width: 0; scrollbar-width: none; }
.cd-sekme { display: flex; align-items: center; gap: 7px; padding: 7px 10px 8px 12px; border: 1px solid transparent; border-bottom: 0;
  border-radius: 10px 10px 0 0; color: var(--dim); font: 12.5px var(--mono); white-space: nowrap; cursor: pointer; background: none; }
.cd-sekme:hover { color: var(--text); background: var(--panel); }
.cd-sekme.aktif { color: var(--text); background: rgba(10, 13, 25, .9); border-color: var(--line); box-shadow: inset 0 2px 0 var(--accent); }
.cd-sekme .kapat { border: 0; background: none; color: var(--faint); width: 16px; height: 16px; border-radius: 4px; padding: 0; line-height: 1; }
.cd-sekme .kapat:hover { background: var(--hover); color: var(--text); }
.cd-sekme.kirli .kapat::before { content: "●"; color: var(--warn); }
.cd-sekme.kirli .kapat { font-size: 0; }
.cd-sekme.kirli .kapat:hover { font-size: 12px; }
.cd-sekme.kirli .kapat:hover::before { content: ""; }
.cd-arac-cubugu .btn { margin-bottom: 6px; flex: none; }
.cd-editor-alan { position: relative; min-height: 0; background: rgba(10, 13, 25, .55); }
.cd-editor { position: absolute; inset: 0; }
.cd-editor .cm-editor { height: 100%; }
.cd-editor .cm-editor.cm-focused { outline: none; }
.cd-bos { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; color: var(--dim);
  background: rgba(10, 13, 25, .55); padding: 16px; }
.cd-bos .marka-v { width: 40px; height: 40px; opacity: .8; margin-bottom: 6px; }
.cd-bos p { margin: 0; }
.cd-ayirici { cursor: row-resize; background: var(--line); position: relative; }
.cd-ayirici::after { content: ""; position: absolute; left: 50%; top: 2px; width: 36px; height: 2px; margin-left: -18px; border-radius: 2px; background: var(--faint); opacity: .6; }
.cd-ayirici:hover, .cd-ayirici.surukleniyor, .cd-ayirici:focus-visible { background: var(--line-hi); outline: none; }
.cd-terminal { display: flex; flex-direction: column; min-height: 0; background: #05070f; }
.cd-term-ust { display: flex; align-items: center; gap: 4px; padding: 4px 10px; border-bottom: 1px solid var(--line); }
.cd-term-sekmeler { flex: 1; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.cd-term-sekme { display: flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--faint); font: 11.5px var(--mono);
  padding: 4px 9px; border-radius: 7px; white-space: nowrap; }
.cd-term-sekme.aktif { color: var(--text); background: var(--raise); }
.cd-term-sekme i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.cd-term-sekme.olu i { background: var(--faint); }
.cd-term-sekme .kapat { color: var(--faint); font-style: normal; padding: 0 2px; }
.cd-term-sekme .kapat:hover { color: var(--err); }
.cd-term-govde { flex: 1; position: relative; min-height: 0; }
.cd-xterm { position: absolute; inset: 6px 4px 2px 10px; }
.cd-xterm[hidden] { display: none; }
.cd-durum { display: flex; gap: 16px; padding: 4px 14px; border-top: 1px solid var(--line); font: 11px var(--mono); color: var(--faint);
  background: rgba(6, 8, 15, .8); white-space: nowrap; overflow: hidden; }
.cd-durum #cd-durum-yol { flex: 1; overflow: hidden; text-overflow: ellipsis; }

/* CodeMirror sözdizimi renkleri (classHighlighter sınıfları) — Vector paleti */
.cm-editor .tok-keyword, .cm-editor .tok-operatorKeyword, .cm-editor .tok-controlKeyword { color: #b9a8ff; }
.cm-editor .tok-string, .cm-editor .tok-string2 { color: #8be9b0; }
.cm-editor .tok-number, .cm-editor .tok-bool, .cm-editor .tok-atom { color: #f0a35e; }
.cm-editor .tok-comment { color: #5f6a86; font-style: italic; }
.cm-editor .tok-variableName.tok-definition, .cm-editor .tok-function { color: #7fe0f0; }
.cm-editor .tok-propertyName { color: #a5c8ff; }
.cm-editor .tok-typeName, .cm-editor .tok-className, .cm-editor .tok-namespace { color: #f7c873; }
.cm-editor .tok-tagName { color: #f47f9d; }
.cm-editor .tok-attributeName { color: #f0a35e; }
.cm-editor .tok-meta, .cm-editor .tok-punctuation { color: #8d95ad; }
.cm-editor .tok-heading { color: #c4b5fd; font-weight: 700; }
.cm-editor .tok-link, .cm-editor .tok-url { color: var(--cyan); text-decoration: underline; }
.cm-editor .tok-invalid { color: var(--err); }

/* ------------------------------------------------------------ dar ekran */
@media (max-width: 1180px) {
  .uygulama { grid-template-columns: 250px minmax(0, 1fr); }
  .sag { position: fixed; inset: 0 0 0 auto; width: min(330px, 88vw); z-index: 30; transform: translateX(100%);
    transition: transform .3s var(--ease); background: var(--bg-2); }
  .sag.acik { transform: none; }
  #sag-ac, #sag-kapat { display: inline-grid; }
  #sag-perde.acik { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(0, 0, 0, .5); }
}
@media (max-width: 820px) {
  .uygulama { grid-template-columns: minmax(0, 1fr); }
  .sol { position: fixed; inset: 0 auto 0 0; width: min(290px, 86vw); z-index: 30; transform: translateX(-100%);
    transition: transform .3s var(--ease); background: var(--bg-2); }
  .sol.acik { transform: none; }
  #sol-ac, #sol-kapat { display: inline-grid; }
  #sol-perde.acik { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(0, 0, 0, .5); }
  .ust { padding: 10px 12px; gap: 8px; }
  .akis { padding: 16px 16px 8px; }
  .oneriler { grid-template-columns: minmax(0, 1fr); }
  .yazma { width: calc(100% - 24px); margin-bottom: max(12px, env(safe-area-inset-bottom)); }
  .msj-vector { grid-template-columns: minmax(0, 1fr); }
  .avatar { display: none; }
  .durum-cip span { display: none; }
  .uygulama.coder-modu { grid-template-columns: minmax(0, 1fr); }
  .mod-sec button { padding: 5px 10px; }
  .ust-baslik { display: none; }
  .cd-arac-cubugu .btn { padding: 5px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.aciklama { font-size: 12.5px; margin: 0 0 10px; }
.zamanli-btn { display: flex; gap: 2px; align-items: start; }
.zamanli-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.zamanli-form textarea, .zamanli-form #zamanli-hata { grid-column: 1 / -1; }
.zamanli-form input, .zamanli-form textarea { background: var(--bg2, transparent); color: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; font: inherit; font-size: 13px; }
@media (max-width: 560px) { .zamanli-form { grid-template-columns: 1fr; } }

.kivilcim { grid-column: 1 / -1; width: 100%; height: 22px; margin-top: 4px; display: block; }
.kivilcim .cizgi { fill: none; stroke: var(--accent, #9d8cff); stroke-width: 1.4; opacity: .9; }
.kivilcim .alan { fill: var(--accent, #9d8cff); opacity: .10; stroke: none; }
.btn.kucuk { padding: 3px 9px; font-size: 12px; margin-top: 4px; }
.rozet { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 99px; margin-left: 6px; font-family: var(--mono); }
.rozet.iyi { background: rgba(80, 220, 150, .14); color: #6fe3a8; }
.rozet.kotu { background: rgba(255, 110, 110, .14); color: #ff8d8d; }
.gunluk pre { max-height: 260px; overflow: auto; font-size: 11px; margin-top: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; white-space: pre-wrap; }

.giris .kod-form { display: grid; gap: 12px; margin-top: 14px; text-align: center; }
.giris .kod-form[hidden], .giris form[hidden] { display: none; }
.kod-baslik h2 { margin: 6px 0 4px; font-size: 17px; font-weight: 600; }
.kod-baslik p { margin: 0; font-size: 13px; line-height: 1.5; }
.kod-ikon { font-size: 26px; }
.giris input.kod-girdi { text-align: center; font-family: var(--mono); font-size: 26px; letter-spacing: .45em; padding: 12px 8px 12px calc(8px + .45em); }
.kod-alt { display: flex; justify-content: space-between; align-items: center; margin: 2px 0 0; font-size: 12.5px; }
.baglanti { background: none; border: 0; color: var(--dim); cursor: pointer; padding: 4px 0; font: inherit; }
.baglanti:hover { color: var(--accent); }
.gnc-liste { display: grid; gap: 4px; margin: 4px 0; }
.gnc-anahtar { display: inline-block; word-break: break-all; font-size: 11.5px; padding: 4px 6px; margin: 4px 0; border: 1px solid var(--line); border-radius: 6px; user-select: all; }

/* Telefonda ana ekrandan açılan uygulama (PWA): sayfa iPhone'un durum çubuğu/çentiğinin altına uzanır
   (apple-mobile-web-app-status-bar-style: black-translucent). Üst çubuk, çekmeceler ve giriş ekranı o güvenli alanı
   içeriden boş bırakır; tarayıcıda ve masaüstünde env() değerleri 0'dır, görünüm değişmez. */
.ust { padding-top: calc(14px + env(safe-area-inset-top)); padding-left: calc(22px + env(safe-area-inset-left)); padding-right: calc(22px + env(safe-area-inset-right)); }
.sol { padding-top: calc(16px + env(safe-area-inset-top)); padding-bottom: calc(16px + env(safe-area-inset-bottom)); padding-left: calc(12px + env(safe-area-inset-left)); }
.sag { padding-top: calc(16px + env(safe-area-inset-top)); padding-bottom: calc(16px + env(safe-area-inset-bottom)); padding-right: calc(14px + env(safe-area-inset-right)); }
.giris { padding-top: calc(16px + env(safe-area-inset-top)); padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
.modal { max-height: calc(80dvh - env(safe-area-inset-top)); }
@media (max-width: 820px) {
  .ust { padding-top: calc(10px + env(safe-area-inset-top)); padding-left: calc(12px + env(safe-area-inset-left)); padding-right: calc(12px + env(safe-area-inset-right)); }
  .akis { padding-left: calc(16px + env(safe-area-inset-left)); padding-right: calc(16px + env(safe-area-inset-right)); }
}
