/* Veyra paneli. Görünümün tamamı aşağıdaki değişkenlerden gelir: yeni tema = yeni bir [data-tema] bloğu.
   Bileşenler sabit renk kullanmaz. Düzen: masaüstünde sol yan menü, telefonda üst çubuk + alt sekme çubuğu. */

:root {
  --arka: #0e1014;
  --arka-2: #12151b;
  --yuzey: #171a21;
  --yuzey-2: #1f232c;
  --yuzey-3: #272c37;
  --cizgi: #262b35;
  --cizgi-guclu: #343a47;
  --metin: #e8eaf0;
  --soluk: #949bab;
  --cok-soluk: #6b7282;
  --vurgu: #9a8cff;
  --vurgu-2: #5cc8ff;
  --vurgu-zemin: rgba(154, 140, 255, .14);
  --vurgu-metin: #0d0b1f;
  --gradyan: linear-gradient(135deg, #a48bff 0%, #6fa8ff 55%, #5cc8ff 100%);
  --basari: #5fd39a;
  --uyari: #f2bd5c;
  --tehlike: #f47a74;
  --balon-ben: #2a2e5a;
  --balon-ben-metin: #eef0ff;
  --balon-o: transparent;
  --golge: 0 10px 30px rgba(0, 0, 0, .45);
  --golge-kucuk: 0 2px 8px rgba(0, 0, 0, .3);
  --yaricap: 16px;
  --yaricap-kucuk: 10px;
  --yazi: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans", sans-serif;
  --yazi-baslik: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --yazi-es: ui-monospace, "Cascadia Code", Consolas, monospace;
  --genislik: 820px;
  --yan-genislik: 232px;
  --alt-cubuk: 62px;
  color-scheme: dark;
}

:root[data-tema="acik"] {
  --arka: #f6f5f2; --arka-2: #efeee9; --yuzey: #ffffff; --yuzey-2: #f1f0ec; --yuzey-3: #e7e5df;
  --cizgi: #e6e3dc; --cizgi-guclu: #d6d2c9; --metin: #1c1d22; --soluk: #636673; --cok-soluk: #8d909b;
  --vurgu: #6a55e8; --vurgu-2: #2a8fd6; --vurgu-zemin: rgba(106, 85, 232, .1); --vurgu-metin: #ffffff;
  --gradyan: linear-gradient(135deg, #7b5cf0 0%, #4f86ef 55%, #2aa5e0 100%);
  --basari: #1e9a5c; --uyari: #b07812; --tehlike: #cf3f38;
  --balon-ben: #e9e6ff; --balon-ben-metin: #1c1d22; --balon-o: transparent;
  --golge: 0 12px 32px rgba(40, 36, 20, .12); --golge-kucuk: 0 2px 8px rgba(40, 36, 20, .08);
  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  :root:not([data-tema]) {
    --arka: #f6f5f2; --arka-2: #efeee9; --yuzey: #ffffff; --yuzey-2: #f1f0ec; --yuzey-3: #e7e5df;
    --cizgi: #e6e3dc; --cizgi-guclu: #d6d2c9; --metin: #1c1d22; --soluk: #636673; --cok-soluk: #8d909b;
    --vurgu: #6a55e8; --vurgu-2: #2a8fd6; --vurgu-zemin: rgba(106, 85, 232, .1); --vurgu-metin: #ffffff;
    --gradyan: linear-gradient(135deg, #7b5cf0 0%, #4f86ef 55%, #2aa5e0 100%);
    --basari: #1e9a5c; --uyari: #b07812; --tehlike: #cf3f38;
    --balon-ben: #e9e6ff; --balon-ben-metin: #1c1d22; --balon-o: transparent;
    --golge: 0 12px 32px rgba(40, 36, 20, .12); --golge-kucuk: 0 2px 8px rgba(40, 36, 20, .08);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--arka); color: var(--metin); font: 15px/1.55 var(--yazi);
  -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; overflow: hidden;
}
[hidden] { display: none !important; }
a { color: var(--vurgu); }
h2, h3, h4 { margin: 0 0 .6em; font-family: var(--yazi-baslik); font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: 1.45em; }
h3 { font-size: 1.05em; }
code, pre { font-family: var(--yazi-es); font-size: .9em; }
pre { background: var(--arka-2); border: 1px solid var(--cizgi); padding: .75em .95em; border-radius: var(--yaricap-kucuk); overflow-x: auto; }
:not(pre) > code { background: var(--yuzey-3); padding: .08em .38em; border-radius: 6px; }
::selection { background: var(--vurgu-zemin); }
:focus-visible { outline: 2px solid var(--vurgu); outline-offset: 2px; }

/* --- kabuk --- */
.kabuk { display: flex; height: 100%; height: 100dvh; }
.ana { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }

.marka { display: flex; align-items: center; gap: 10px; font-family: var(--yazi-baslik); font-weight: 700; font-size: 1.08em; letter-spacing: .01em; }
.marka-isareti {
  width: 28px; height: 28px; border-radius: 9px; background: var(--gradyan); flex: none; position: relative;
  box-shadow: 0 4px 14px rgba(124, 120, 255, .35);
}
.marka-isareti::after {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M9.5 10.5l6.5 12 6.5-12' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
/* profil fotoğrafı (v0.10.5): varsa asistanın işaretleri yuvarlak fotoğrafa döner (giriş ekranındaki uygulama işareti hariç) */
.asistan-foto-var .marka-isareti:not(.buyuk), .asistan-foto-var .balon.o::before {
  background: var(--asistan-foto) center / cover no-repeat, var(--yuzey-2); border-radius: 50%; box-shadow: var(--golge-kucuk);
}
.asistan-foto-var .marka-isareti:not(.buyuk)::after, .asistan-foto-var .balon.o::after { display: none; }
.marka-isareti.iri { width: 72px; height: 72px; border-radius: 22px; }
.profil-karti { align-items: center; gap: 18px; }
.profil-karti .yigin { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.profil-karti .yigin > * + * { margin-top: 0; }
.sohbet-ust { display: flex; align-items: center; gap: 12px; padding: 4px 2px 12px; border-bottom: 1px solid var(--cizgi); }
.sohbet-ust .marka-isareti { width: 40px; height: 40px; border-radius: 12px; }
.sohbet-ust-metin { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sohbet-ust-durum { font-size: .8em; color: var(--vurgu); min-height: 1em; }
.marka-isareti.buyuk { width: 56px; height: 56px; border-radius: 18px; display: block; margin: 0 auto 14px; }
.nokta { width: 8px; height: 8px; border-radius: 50%; background: var(--cok-soluk); transition: background .3s; flex: none; }
.nokta.bagli { background: var(--basari); box-shadow: 0 0 0 3px color-mix(in srgb, var(--basari) 20%, transparent); }
.nokta.mesgul { background: var(--uyari); animation: nabiz 1.2s ease-in-out infinite; }
.nokta.kopuk { background: var(--tehlike); }

/* yan menü (masaüstü) */
.yan {
  width: var(--yan-genislik); flex: none; display: flex; flex-direction: column; gap: 18px;
  padding: 18px 12px; background: var(--arka-2); border-right: 1px solid var(--cizgi);
}
.yan .marka { padding: 4px 8px 6px; }
.yan .marka .nokta { margin-left: auto; }
.sekmeler { display: flex; flex-direction: column; gap: 2px; }
.sekmeler a {
  display: flex; align-items: center; gap: 12px; color: var(--soluk); text-decoration: none;
  padding: 9px 12px; border-radius: 11px; font-weight: 500; transition: background .15s, color .15s;
}
.sekmeler a svg { flex: none; opacity: .85; }
.sekmeler a:hover { color: var(--metin); background: var(--yuzey-2); }
.sekmeler a.etkin { color: var(--metin); background: var(--vurgu-zemin); }
.sekmeler a.etkin svg { color: var(--vurgu); opacity: 1; }
.yan-alt { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px; }
.yan-alt .tema-dugmesi { margin-left: auto; }

/* üst çubuk (yalnızca telefonda) */
.ust {
  display: none; align-items: center; gap: 10px; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--arka) 86%, transparent); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cizgi); position: sticky; top: 0; z-index: 5;
}
.ust .marka-isareti { width: 24px; height: 24px; border-radius: 8px; }
.ust-baslik { color: var(--soluk); font-size: .92em; margin-left: auto; }

.icerik { flex: 1; min-height: 0; width: 100%; overflow-y: auto; padding: 28px max(20px, calc((100% - var(--genislik)) / 2)) 40px; }
.icerik.tam { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 0; }

/* --- temel bileşenler --- */
.kart { background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--yaricap); padding: 18px 20px; }
.kart + .kart, .kart + div, p + .kart { margin-top: 14px; }
.kart > h3:first-child { display: flex; align-items: center; gap: 8px; }
.soluk { color: var(--soluk); }
.icerik > p.soluk { margin: -.2em 0 1.2em; max-width: 64ch; }
.kucuk-yazi { font-size: .86em; }
.hata-metni { color: var(--tehlike); min-height: 1.2em; margin: .5em 0 0; }
.satir { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.satir.arali { justify-content: space-between; }
.yigin > * + * { margin-top: 14px; }

.dugme {
  font: inherit; font-weight: 500; border: 1px solid var(--cizgi-guclu); background: var(--yuzey-2); color: var(--metin);
  padding: 8px 15px; border-radius: var(--yaricap-kucuk); cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background .15s, border-color .15s, transform .05s;
}
.dugme:hover { border-color: var(--soluk); }
.dugme:active { transform: translateY(1px); }
.dugme:disabled { opacity: .45; cursor: default; transform: none; }
.dugme.birincil { background: var(--gradyan); color: #fff; border-color: transparent; font-weight: 600; box-shadow: 0 4px 14px rgba(110, 110, 255, .25); }
.dugme.birincil:hover { filter: brightness(1.08); }
.dugme.tehlike { color: var(--tehlike); }
.dugme.tehlike:hover { border-color: var(--tehlike); }
.dugme.hayalet { background: transparent; border-color: transparent; color: var(--soluk); }
.dugme.hayalet:hover { color: var(--metin); background: var(--yuzey-2); }
.dugme.kucuk { padding: 4px 10px; font-size: .87em; }
.tema-dugmesi { padding: 6px; border-radius: 10px; }

input[type=text], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input:not([type]), select, textarea {
  font: inherit; color: var(--metin); background: var(--arka-2); border: 1px solid var(--cizgi-guclu);
  border-radius: var(--yaricap-kucuk); padding: 9px 12px; width: 100%; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--vurgu); box-shadow: 0 0 0 3px var(--vurgu-zemin); }
input:disabled, select:disabled { opacity: .6; cursor: not-allowed; }
textarea { resize: vertical; min-height: 90px; }
input[type=range] { width: 100%; accent-color: var(--vurgu); }
input[type=checkbox] { accent-color: var(--vurgu); width: 18px; height: 18px; }
label.alan { display: block; padding: 12px 0; border-bottom: 1px solid var(--cizgi); }
label.alan:last-child { border-bottom: none; }
label.alan > .ad { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 2px; }
label.alan > .ad code { background: none; padding: 0; font-size: .88em; color: var(--metin); }
.aciklama { color: var(--soluk); font-size: .87em; margin: 2px 0 8px; }
.kilit { color: var(--uyari); font-size: .8em; font-weight: 500; }

.cip {
  display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; border-radius: 999px; background: var(--yuzey-2);
  color: var(--soluk); font-size: .8em; font-weight: 500; border: 1px solid var(--cizgi);
}
.cip.vurgu { color: var(--vurgu); border-color: color-mix(in srgb, var(--vurgu) 45%, transparent); background: var(--vurgu-zemin); }
.cip.tehlike { color: var(--tehlike); border-color: color-mix(in srgb, var(--tehlike) 45%, transparent); }
.cip.uyari { color: var(--uyari); border-color: color-mix(in srgb, var(--uyari) 45%, transparent); }
.cip.basari { color: var(--basari); border-color: color-mix(in srgb, var(--basari) 45%, transparent); }
.degisti { color: var(--uyari); font-size: .8em; font-weight: 500; }

.alt-sekmeler { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.alt-sekmeler button {
  font: inherit; font-size: .92em; background: var(--yuzey); border: 1px solid var(--cizgi); color: var(--soluk);
  padding: 6px 13px; border-radius: 999px; cursor: pointer; transition: all .15s;
}
.alt-sekmeler button:hover { color: var(--metin); }
.alt-sekmeler button.etkin { color: var(--metin); border-color: var(--vurgu); background: var(--vurgu-zemin); }

.liste { list-style: none; margin: 0; padding: 0; }
.liste > li { padding: 12px 0; border-bottom: 1px solid var(--cizgi); }
.liste > li:first-child { padding-top: 4px; }
.liste > li:last-child { border-bottom: none; padding-bottom: 2px; }

.tablo { width: 100%; border-collapse: collapse; }
.tablo td { padding: 8px 4px; border-bottom: 1px solid var(--cizgi); vertical-align: top; overflow-wrap: anywhere; }
.tablo tr:last-child td { border-bottom: none; }
.tablo td:first-child { color: var(--soluk); white-space: nowrap; padding-right: 18px; }

/* --- sohbet --- */
.sohbet { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.mesajlar { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 2px 18px; display: flex; flex-direction: column; gap: 14px; }
.balon { max-width: 82%; padding: 10px 14px; border-radius: 18px; background: var(--balon-o); overflow-wrap: anywhere; position: relative; }
.balon p { margin: 0 0 .6em; }
.balon p:last-child { margin-bottom: 0; }
.balon ul, .balon ol { margin: .3em 0 .6em; padding-left: 1.3em; }
.balon pre { margin: .5em 0; }
.balon.ben { align-self: flex-end; background: var(--balon-ben); color: var(--balon-ben-metin); border-bottom-right-radius: 6px; }
.balon.ben :not(pre) > code { background: rgba(255, 255, 255, .1); }
.balon.o { align-self: flex-start; margin-left: 40px; padding-left: 2px; padding-top: 3px; max-width: calc(88% - 40px); }
.balon.o::before { /* Veyra'nın işareti */
  content: ""; position: absolute; left: -40px; top: 2px; width: 28px; height: 28px; border-radius: 9px;
  background: var(--gradyan); box-shadow: var(--golge-kucuk);
}
.balon.o::after {
  content: ""; position: absolute; left: -40px; top: 2px; width: 28px; height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M9.5 10.5l6.5 12 6.5-12' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.balon .ust-bilgi { font-size: .74em; color: var(--cok-soluk); margin-top: 4px; }
.balon.ben .ust-bilgi { color: color-mix(in srgb, var(--balon-ben-metin) 55%, transparent); text-align: right; }
.balon.akiyor > div::after { content: "▍"; animation: yanip 1s steps(2) infinite; color: var(--vurgu); }
@keyframes yanip { 50% { opacity: 0; } }
.balon.hatirlatma { background: var(--vurgu-zemin); border: 1px solid color-mix(in srgb, var(--vurgu) 35%, transparent); padding: 10px 14px; }
.sistem-notu { align-self: center; font-size: .8em; color: var(--soluk); padding: 3px 12px; border-radius: 999px; background: var(--yuzey); border: 1px solid var(--cizgi); }
.sistem-notu.hata { color: var(--tehlike); border-color: color-mix(in srgb, var(--tehlike) 40%, transparent); }
.sistem-notu.gorev-notu { max-width: 92%; text-align: center; }
.gun-ayraci { align-self: center; font-size: .74em; color: var(--cok-soluk); margin: 8px 0 0; letter-spacing: .04em; text-transform: uppercase; }
.bos-sohbet { margin: auto; text-align: center; max-width: 380px; padding: 40px 12px; }
.bos-sohbet .marka-isareti { width: 52px; height: 52px; border-radius: 16px; margin: 0 auto 16px; display: block; }
.bos-sohbet h3 { font-size: 1.3em; margin-bottom: .3em; }

.yazma { padding: 8px 0 max(16px, env(safe-area-inset-bottom)); background: var(--arka); }
.yazma-kutu {
  display: flex; align-items: flex-end; gap: 6px; padding: 6px 6px 6px 16px; background: var(--yuzey);
  border: 1px solid var(--cizgi-guclu); border-radius: 22px; box-shadow: var(--golge-kucuk); transition: border-color .15s, box-shadow .15s;
}
.yazma-kutu:focus-within { border-color: var(--vurgu); box-shadow: 0 0 0 3px var(--vurgu-zemin); }
.yazma-kutu textarea {
  flex: 1; min-width: 0; min-height: 40px; max-height: 40vh; resize: none; border: none; background: transparent;
  padding: 9px 0; box-shadow: none;
}
.yazma-kutu textarea:focus { box-shadow: none; }
.yazma-kutu .dugme { width: 40px; height: 40px; padding: 0; border-radius: 50%; flex: none; }
.yazma-ipucu { text-align: center; font-size: .72em; color: var(--cok-soluk); margin-top: 6px; }

/* --- perde, pencere, bildirim --- */
.perde {
  position: fixed; inset: 0; background: rgba(5, 6, 10, .6); backdrop-filter: blur(4px); display: flex;
  align-items: center; justify-content: center; padding: 16px; z-index: 20;
}
.giris-perdesi { background: var(--arka); backdrop-filter: none; }
.giris-perdesi::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 400px at 50% 30%, var(--vurgu-zemin), transparent 70%);
}
.giris-karti { width: 100%; max-width: 360px; box-shadow: var(--golge); text-align: center; padding: 30px 26px; position: relative; }
.giris-karti #giris-alanlari { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.pencere-karti { width: 100%; max-width: 760px; max-height: 88vh; display: flex; flex-direction: column; box-shadow: var(--golge); }
.pencere-ust { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pencere-icerik { overflow-y: auto; min-height: 0; }
.bildirim {
  position: fixed; bottom: max(22px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  background: var(--yuzey-3); border: 1px solid var(--cizgi-guclu); padding: 10px 18px; border-radius: 999px;
  box-shadow: var(--golge); z-index: 30; max-width: calc(100% - 32px); animation: belir .2s ease-out;
}
.bildirim.hata { border-color: var(--tehlike); color: var(--tehlike); }
@keyframes belir { from { opacity: 0; transform: translate(-50%, 6px); } }

/* --- onay kartları --- */
.onay-kutusu {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: max(16px, env(safe-area-inset-bottom));
  width: min(560px, calc(100% - 24px)); display: flex; flex-direction: column; gap: 10px; z-index: 25;
}
.onay-karti { border-color: color-mix(in srgb, var(--uyari) 60%, transparent); box-shadow: var(--golge); animation: belir2 .2s ease-out; }
.onay-karti p { margin: .5em 0; }
@keyframes belir2 { from { opacity: 0; transform: translateY(8px); } }

/* --- ses --- */
.balon audio { display: block; width: 100%; min-width: 220px; height: 36px; margin-top: 8px; }
.dugme.mikrofon.kayitta { background: var(--tehlike); color: #fff; border-color: transparent; animation: nabiz 1.2s ease-in-out infinite; }
@keyframes nabiz { 50% { opacity: .65; } }

/* --- görevler --- */
.gorev-formu { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gorev-formu .genis { grid-column: 1 / -1; }

/* --- telefon: üst çubuk + alt sekme çubuğu --- */
@media (max-width: 760px) {
  .ust { display: flex; }
  .sohbet-ust { display: none; }
  .yan {
    position: fixed; left: 0; right: 0; bottom: 0; width: auto; height: auto; z-index: 10; flex-direction: row;
    padding: 4px 4px max(4px, env(safe-area-inset-bottom)); gap: 0; border-right: none; border-top: 1px solid var(--cizgi);
    background: color-mix(in srgb, var(--arka-2) 92%, transparent); backdrop-filter: blur(12px);
  }
  .yan .marka, .yan-alt { display: none; }
  .sekmeler { flex-direction: row; flex: 1; justify-content: space-around; gap: 0; }
  .sekmeler a { flex: 1; min-width: 0; flex-direction: column; gap: 2px; padding: 6px 2px; font-size: .68em; border-radius: 10px; }
  .sekmeler a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .sekmeler a.etkin { background: transparent; color: var(--vurgu); }
  .ana { padding-bottom: calc(var(--alt-cubuk) + env(safe-area-inset-bottom)); }
  .icerik { padding: 18px 14px 28px; }
  .icerik.tam { padding: 0 12px; }
  .yazma { padding-bottom: 10px; }
  .yazma-ipucu { display: none; }
  .balon { max-width: 90%; }
  .balon.o { margin-left: 0; padding-left: 2px; max-width: 96%; }
  .balon.o::before, .balon.o::after { display: none; }
  .gorev-formu { grid-template-columns: 1fr; }
  .kart { padding: 16px; }
  .bildirim { bottom: calc(var(--alt-cubuk) + 14px + env(safe-area-inset-bottom)); }
  .onay-kutusu { bottom: calc(var(--alt-cubuk) + 10px + env(safe-area-inset-bottom)); }
}
.balon.o.hatirlatma { padding: 10px 14px; }

/* Dosyalar (v0.11) */
.dosya-sekmeleri { margin: 4px 0 14px; }
.yol-cubugu { gap: 2px; margin-bottom: 12px; overflow-x: auto; flex-wrap: nowrap; }
.yol-cubugu .dugme { white-space: nowrap; }
.dosya-karti.surukleniyor { border-color: var(--vurgu); border-style: dashed; }
.dosya-karti > .satir + .dosya-listesi, .dosya-karti > .satir + p { margin-top: 12px; }
.dosya-satiri { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dosya-ad { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; background: none; border: 0; padding: 0;
  color: var(--metin); font: inherit; text-align: left; cursor: pointer; text-decoration: none; overflow-wrap: anywhere; }
.dosya-ad:hover span:last-child { text-decoration: underline; }
.dosya-ikon { color: var(--soluk); display: inline-flex; flex: none; }
.dosya-islem { margin-left: auto; }
a.dugme { text-decoration: none; display: inline-flex; align-items: center; }

/* Mod kodu incelemesi (v0.12.1) */
.kod-blogu { max-height: 45vh; overflow: auto; background: var(--yuzey-2); border: 1px solid var(--cizgi); border-radius: 10px;
  padding: 10px 12px; font-size: .82em; white-space: pre; margin: 0; }

/* v0.13.2: mesaj menüsü (⋯), favori, sohbet ekleri */
.mesaj-menu-dugmesi { position: absolute; top: 2px; right: -30px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent;
  color: var(--cok-soluk); cursor: pointer; font-size: 18px; line-height: 1; opacity: 0; transition: opacity .15s; }
.balon.ben .mesaj-menu-dugmesi { right: auto; left: -30px; }
.balon:hover .mesaj-menu-dugmesi, .mesaj-menu-dugmesi:focus-visible, .balon:has(.mesaj-menu) .mesaj-menu-dugmesi { opacity: 1; }
.mesaj-menu-dugmesi:hover { background: var(--vurgu-zemin); }
@media (hover: none) { .mesaj-menu-dugmesi { opacity: .7; } }
.mesaj-menu { position: absolute; top: 30px; right: -30px; z-index: 20; display: flex; flex-direction: column; min-width: 180px; padding: 4px;
  background: var(--yuzey); color: var(--metin); border: 1px solid var(--cizgi); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.balon.ben .mesaj-menu { right: auto; left: -30px; }
.mesaj-menu button { text-align: left; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.mesaj-menu button:hover { background: var(--vurgu-zemin); }
.ek-listesi { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ek-listesi.bekleyen { margin: 0 0 6px; }
.ek-cipi { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 10px; border-radius: 999px; font-size: .85em;
  background: var(--vurgu-zemin); color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.ek-cipi.yukleniyor { opacity: .6; }
.ek-cipi button { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 1.1em; padding: 0 2px; }
.yazma-ipucu { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bag-dugmesi { border: 0; background: transparent; color: var(--vurgu); cursor: pointer; font: inherit; padding: 0; }
@media (max-width: 760px) {
  .mesaj-menu-dugmesi { top: auto; bottom: 2px; right: 2px; width: 24px; height: 24px; }  /* saat satırı hizasında */
  .balon.ben .mesaj-menu-dugmesi { left: 6px; right: auto; }
  .mesaj-menu { top: auto; bottom: 28px; }
  .mesaj-menu, .balon.ben .mesaj-menu { right: 0; left: auto; }
  .yazma-ipucu { display: flex; justify-content: flex-end; margin-top: 4px; } /* telefonda yalnızca Favoriler */
  .yazma-ipucu > span { display: none; }
}
