/*
 * announcements.css — [ANNOUNCE] Duyurular sayfası (Uygulama, §7.80).
 * Gönderme masası: solda taslak, ortada anime kızı seçici, sağda uygulamadaki
 * pencerenin ölçekli kopyası + Gönder çubuğu + gönderilenler. Geniş ekranda
 * (≥ 1560 px) sayfa kaymaz: kız karoları ve geçmiş satırları boş yüksekliğe
 * göre boylanır (announcements.js). Yarı saydam, üstten ışık kenarlı yüzeyler;
 * döngü yok, hover yalnız ışık. Pencere kopyası (.ann-m-*) docs/announcements.md
 * ve §7.79'daki ölçülerle: 760 px, sahne 264 px, en az 380 px.
 * Önek ann-.
 */

#view-announcements { font-family: var(--wf-font-text); color: var(--wf-text-1); }
#view-announcements :is(button, a, label):focus-visible {
  outline: 2px solid rgba(244, 236, 234, 0.6);
  outline-offset: -2px;
}
.ann [hidden] { display: none !important; }

/* İki tonlu ikonlar: kapalı şekiller %18 dolgu (kendi dolgusu olanlar hariç) */
.ann svg[fill='none'] :is(rect, circle, ellipse, polygon, path[d$='z'], path[d$='Z']):not([fill]),
.ann-cf svg[fill='none'] :is(rect, circle, ellipse, polygon, path[d$='z'], path[d$='Z']):not([fill]) {
  fill: color-mix(in srgb, currentColor 18%, transparent);
}
.ann-i { display: inline-grid; place-items: center; flex-shrink: 0; color: var(--page-hue, #b18cff); }
.ann-i svg { width: 15px; height: 15px; }

.ann {
  --kc: #8ab4ff;
  display: grid;
  grid-template-columns: clamp(320px, 22%, 460px) minmax(0, 1fr) clamp(520px, 38%, 820px);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas:
    'compose pick preview'
    'compose pick history'
    'send    pick history';
  gap: 14px;
  height: calc(100dvh - 64px - 48px);
  min-height: 640px;
}

/* ── yüzeyler ── */
.ann-compose,
.ann-pick,
.ann-preview,
.ann-send,
.ann-history {
  min-width: 0;
  min-height: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018) 46%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0.065);
}
.ann-compose {
  grid-area: compose;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 18px;
  overflow: hidden;
}
.ann-pick {
  grid-area: pick;
  display: flex;
  flex-direction: column;
  padding: 16px 18px 18px;
  overflow: hidden;
  background:
    radial-gradient(70% 40% at 50% 100%, color-mix(in srgb, var(--kc) 7%, transparent), transparent 75%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018) 46%);
}
.ann-preview { grid-area: preview; padding: 14px; }
.ann-send {
  grid-area: send;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 16px;
  border-radius: 16px;
}
.ann-history {
  grid-area: history;
  display: flex;
  flex-direction: column;
  padding: 14px 8px 10px;
  overflow: hidden;
}

/* ── başlıklar ── */
.ann-head { display: flex; align-items: flex-start; gap: 10px; }
.ann-head-text { flex: 1; min-width: 0; }
.ann-head-text h3 {
  margin: 0;
  font-family: var(--wf-font-display);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.3;
}
.ann-head-text p { margin: 3px 0 0; font-size: 0.8rem; line-height: 1.45; text-wrap: pretty; color: var(--wf-text-4); }
.ann-sub-head { display: flex; align-items: center; gap: 12px; min-height: 32px; margin-bottom: 12px; }
.ann-history .ann-sub-head { padding: 0 8px; margin-bottom: 4px; }
.ann-sub-text { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.ann-sub-text b {
  flex-shrink: 0;
  font-family: var(--wf-font-display);
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
}
.ann-sub-text span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.78rem; color: var(--wf-text-4); }

/* ── alanlar ── */
.ann-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.ann-field.is-grow { flex: 1 1 0; min-height: 110px; }
.ann-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--wf-text-3);
}
.ann-label em { font-style: normal; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--wf-text-4); }
.ann-label em.is-near { color: #f6d39a; }

.ann-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--wf-text-1);
  outline: none;
  transition: box-shadow var(--wf-dur-hover) ease;
}
.ann-input::placeholder { color: var(--wf-text-4); }
.ann-input:focus { box-shadow: inset 0 0 0 1px rgba(244, 236, 234, 0.5), 0 0 0 3px rgba(244, 236, 234, 0.07); }
.ann-text {
  flex: 1 1 0;
  min-height: 0;
  height: auto;
  padding: 10px 12px;
  resize: none;
  line-height: 1.55;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

/* Kime: iki eşit parça */
.ann-seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 2px;
  padding: 3px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.ann-seg button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--wf-text-3);
  cursor: pointer;
  transition: color var(--wf-dur-hover) ease, background-color var(--wf-dur-hover) ease;
}
.ann-seg button .ann-i svg { width: 14px; height: 14px; }
.ann-seg button[aria-checked='true'] { background: rgba(255, 255, 255, 0.09); color: var(--wf-text-1); }

/* Kime'nin altındaki tek yuva: erişim satırı / arama / seçilen kişi (yükseklik sabit, hiçbir şey kaymaz) */
.ann-who { display: flex; align-items: center; min-height: 44px; }
.ann-who > * { flex: 1; min-width: 0; }
.ann-reach {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 12px;
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--wf-text-3);
}
.ann-reach b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--wf-text-1); }
.ann-online { display: inline-flex; align-items: center; gap: 6px; }
.ann-online i { width: 6px; height: 6px; border-radius: 50%; background: var(--wf-success); box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15); }
.ann-reach-note { color: var(--wf-text-4); }
.ann-search {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  cursor: text;
  transition: box-shadow var(--wf-dur-hover) ease;
}
.ann-search > svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--wf-text-4); }
.ann-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--wf-text-1);
  outline: none;
}
.ann-search input::placeholder { color: var(--wf-text-4); }
.ann-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.ann-search:focus-within { box-shadow: inset 0 0 0 1px rgba(244, 236, 234, 0.5), 0 0 0 3px rgba(244, 236, 234, 0.07); }
.ann-person {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 6px 0 7px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--kc) 7%, rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}
.ann-person-ava,
.ann-res-ava {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--wf-text-2);
}
.ann-person-ava img,
.ann-res-ava img,
.ann-tg-ava img,
.ann-m-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ann-person-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ann-person-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.88rem; font-weight: 600; }
.ann-person-text > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.74rem; color: var(--wf-text-4); }
.ann-person-text em { font-style: normal; color: #86efac; }
.ann-person-x {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--wf-text-4);
  cursor: pointer;
  transition: color var(--wf-dur-hover) ease, background-color var(--wf-dur-hover) ease;
}
.ann-person-x svg { width: 15px; height: 15px; }

/* Tür: hap çipleri, seçili olan uygulamadaki çip gibi (türün rengi %14 zeminde) */
.ann-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.ann-kinds button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px 0 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--wf-text-2);
  cursor: pointer;
  transition: color var(--wf-dur-hover) ease, background-color var(--wf-dur-hover) ease, box-shadow var(--wf-dur-hover) ease;
}
.ann-kinds .ann-i { color: var(--kc); }
.ann-kinds .ann-i svg { width: 14px; height: 14px; }
.ann-kinds button[aria-checked='true'] {
  background: color-mix(in srgb, var(--kc) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--kc) 48%, transparent);
  color: var(--kc);
}

/* Kapalı olanları bekleme süresi: yüzen menüyle seçilir */
.ann-ttl-row { display: flex; align-items: center; gap: 12px; }
.ann-select {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
  min-width: 124px;
  height: 38px;
  padding: 0 10px 0 13px;
  border: 0;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--wf-text-1);
  cursor: pointer;
  transition: box-shadow var(--wf-dur-hover) ease;
}
.ann-select svg { width: 15px; height: 15px; color: var(--wf-text-4); }
.ann-hint { margin: 0; font-size: 0.76rem; line-height: 1.4; text-wrap: pretty; color: var(--wf-text-4); }
.ann-ttl-menu button > span { flex: 1; }
.ann-ttl-menu button em { font-style: normal; font-size: 0.72rem; color: var(--wf-text-4); }
.ann-ttl-menu button.sel svg { color: var(--wf-text-1); }

/* ── anime kızı ızgarası: seriye göre gruplar; karo boyu announcements.js'ten (--t, --th) ── */
.ann-grid {
  --t: 64px;
  --th: 77px;
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  column-gap: 16px;
  row-gap: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}
.ann-group { display: flex; flex-direction: column; gap: 5px; max-width: 100%; }
.ann-series {
  height: 14px;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 14px;
  white-space: nowrap;
  color: var(--wf-text-4);
}
.ann-tiles { display: flex; flex-wrap: wrap; gap: 6px; }
.ann-tile {
  position: relative;
  flex-shrink: 0;
  width: var(--t);
  height: var(--th);
  padding: 0;
  border: 0;
  border-radius: 11px;
  overflow: hidden;
  background:
    radial-gradient(90% 55% at 50% 100%, color-mix(in srgb, var(--kc) 14%, transparent), transparent 72%),
    #0b0810;
  cursor: pointer;
}
.ann-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}
.ann-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  pointer-events: none;
  transition: box-shadow var(--wf-dur-hover) ease;
}
.ann-tile-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px 7px 5px;
  background: linear-gradient(180deg, transparent, rgba(7, 5, 11, 0.9) 62%);
  text-align: left;
  line-height: 1.2;
}
.ann-tile-name b,
.ann-tile-name em {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ann-tile-name b { font-size: clamp(0.72rem, calc(var(--t) * 0.11), 0.9rem); font-weight: 700; color: #ffffff; }
.ann-tile-name em { font-style: normal; font-size: clamp(0.62rem, calc(var(--t) * 0.09), 0.76rem); font-weight: 500; color: rgba(255, 255, 255, 0.62); }
.ann-grid.is-small .ann-tile-name em { display: none; }
.ann-tile[aria-checked='true'] {
  background:
    radial-gradient(90% 60% at 50% 100%, color-mix(in srgb, var(--kc) 32%, transparent), transparent 74%),
    #0b0810;
}
.ann-tile[aria-checked='true']::after {
  box-shadow: inset 0 0 0 2px var(--kc), inset 0 0 0 3px rgba(7, 5, 11, 0.55);
}

/* ── önizleme: uygulamadaki pencere 760 px çizilir, kutuya sığdırılır ── */
.ann-pv {
  position: relative;
  height: 280px;
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(55% 70% at 50% 55%, color-mix(in srgb, var(--kc) 9%, transparent), transparent 74%),
    rgba(5, 3, 8, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.ann-m {
  --kc: #8ab4ff;
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  width: 760px;
  min-height: 380px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: linear-gradient(180deg, #0e0a16, #0a0711);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.95), 0 40px 120px -40px rgba(0, 0, 0, 0.9);
  font-family: 'Inter', var(--wf-font-text);
  text-align: left;
  color: #ffffff;
  transform: translate(-50%, -50%) scale(var(--s, 0.6));
  user-select: none;
}
.ann-m::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 2px;
  background: linear-gradient(90deg, transparent 4%, var(--kc) 50%, transparent 96%);
}
.ann-m-stage {
  position: relative;
  flex: 0 0 264px;
  overflow: hidden;
  background:
    radial-gradient(90% 55% at 50% 100%, color-mix(in srgb, var(--kc) 30%, transparent), transparent 72%),
    #07050b;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06);
}
.ann-m-sigil {
  position: absolute;
  left: 50%;
  top: 34%;
  width: 250px;
  height: 250px;
  margin: -125px 0 0 -125px;
  background: #ffffff;
  opacity: 0.03;
  transform: rotate(-12deg);
  -webkit-mask: url('/admin/assets/wf-sigil.svg') center / contain no-repeat;
  mask: url('/admin/assets/wf-sigil.svg') center / contain no-repeat;
}
/* Kız alta yaslı, dosyasından büyük çizilmez, en altta 30 px söner */
.ann-m-girl {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  margin: 0 auto;
  max-width: calc(100% - 20px);
  max-height: calc(100% - 22px);
  object-fit: contain;
  object-position: 50% 100%;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 30px), transparent);
  mask-image: linear-gradient(180deg, #000 calc(100% - 30px), transparent);
}
.ann-m-main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 28px 30px 24px; }
.ann-m-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ann-m-kind,
.ann-m-aud {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  font-family: var(--wf-font-text);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}
.ann-m-kind { padding-left: 8px; background: color-mix(in srgb, var(--kc) 14%, transparent); color: var(--kc); }
.ann-m-kind svg { width: 14px; height: 14px; }
.ann-m-aud { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.74); }
.ann-m-title {
  margin: 16px 0 0;
  font-family: var(--wf-font-display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.18;
  text-wrap: balance;
  overflow-wrap: anywhere;
  color: #ffffff;
}
.ann-m-body {
  max-height: 220px;
  margin: 10px 0 0;
  padding-right: 6px;
  overflow-y: auto;
  font-family: var(--wf-font-text);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;
  white-space: pre-line;
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.74);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}
.ann-m .is-ph { opacity: 0.42; }
/* Gönderen: avatar · ad + rol plakası, altında zaman; altında saç çizgisi ve ayak */
.ann-m-from { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 22px; }
.ann-m-ava {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 50%;
  background: #151020;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  font-weight: 700;
}
.ann-m-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ann-m-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.ann-m-line b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.9rem; font-weight: 600; line-height: 1.25; }
.ann-m-role {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px 0 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--rc) 14%, transparent);
  font-family: var(--wf-font-text);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--rc);
}
.ann-m-role svg,
.ann-m-role .ri-img { width: 13px; height: 13px; }
.ann-m-who time { font-size: 0.78rem; font-weight: 500; line-height: 1.2; color: rgba(255, 255, 255, 0.52); }
.ann-m-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.ann-m-count { font-family: var(--wf-font-display); font-size: 0.92rem; font-weight: 600; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.52); }
/* "Anladım": eşik ailesi (koyu cam, sert tema kenarı, alttan tema ışığı); üyede kendi teması, burada varsayılan */
.ann-m-ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  height: 44px;
  margin-left: auto;
  padding: 0 22px;
  border-radius: 13px;
  background:
    radial-gradient(120% 90% at 50% 125%, rgba(201, 75, 124, 0.32), transparent 70%),
    linear-gradient(180deg, #1c1526, #0c0911);
  box-shadow:
    inset 0 0 0 1px rgba(201, 75, 124, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 26px -14px rgba(201, 75, 124, 0.75);
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
}

/* ── gönder çubuğu ── */
.ann-state { flex: 1; min-width: 0; margin: 0; font-size: 0.82rem; line-height: 1.4; text-wrap: pretty; color: var(--wf-text-3); }
.ann-state b { font-weight: 600; color: var(--wf-text-1); }
.ann-state.is-ready { color: var(--wf-text-2); }
.ann-state.is-bad { color: #fda4af; }
.ann-go { flex-shrink: 0; height: 42px; padding: 0 22px; }

/* ── gönderilenler: satır sayısı yükseklikten (--rows) ── */
.ann-rows {
  --rows: 8;
  flex: 1 1 0;
  min-height: 0;
  display: grid;
  grid-template-rows: repeat(var(--rows), minmax(0, 1fr));
  overflow: hidden;
}
.ann-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 0;
  padding: 5px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}
.ann-row.is-skel { background: linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent 60%); }
.ann-thumb {
  position: relative;
  width: 40px;
  height: 48px;
  overflow: hidden;
  border-radius: 10px;
  background:
    radial-gradient(90% 60% at 50% 100%, color-mix(in srgb, var(--kc) 30%, transparent), transparent 76%),
    #0b0810;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.ann-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.ann-row-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ann-row-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ann-row-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.9rem; font-weight: 600; color: var(--wf-text-1); }
.ann-row-meta { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.75rem; color: var(--wf-text-4); }
.ann-row-meta > i { margin: 0 6px; font-style: normal; opacity: 0.6; }
.ann-kind-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  height: 20px;
  padding: 0 7px 0 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--kc) 14%, transparent);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--kc);
}
.ann-kind-mini svg { width: 12px; height: 12px; }
.ann-tg { color: var(--wf-text-3); }
.ann-tg .ann-i { display: inline; color: var(--wf-text-4); }
.ann-tg .ann-i svg { width: 12px; height: 12px; margin-right: 4px; vertical-align: -2px; }
.ann-tg-ava {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-right: 5px;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.5rem;
  font-weight: 700;
  vertical-align: -4px;
  color: var(--wf-text-2);
}
.ann-by { font-weight: 600; color: var(--wf-text-2); }
.ann-seen { display: inline-flex; align-items: center; gap: 7px; vertical-align: -1px; color: var(--wf-text-3); }
.ann-seen b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--wf-text-1); }
.ann-seen svg { width: 13px; height: 13px; flex-shrink: 0; }
.ann-seen.is-yes { color: #86efac; }
.ann-bar { position: relative; flex-shrink: 0; width: 44px; height: 4px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, 0.08); }
.ann-bar i { position: absolute; inset: 0; background: var(--kc); transform-origin: left center; }
.ann-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.ann-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.ann-status.is-live { background: rgba(52, 211, 153, 0.12); color: #86efac; }
.ann-status.is-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--wf-success); }
.ann-status.is-off { background: rgba(255, 255, 255, 0.06); color: var(--wf-text-3); }
.ann-status.is-rev { background: rgba(251, 113, 133, 0.12); color: #fda4af; }
.ann-revoke {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(251, 113, 133, 0.28);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
  color: #fda4af;
  cursor: pointer;
  transition: background-color var(--wf-dur-hover) ease;
}
.ann-revoke svg { width: 13px; height: 13px; }
.ann-revoke:active { transform: scale(0.96); }
.ann-row.is-done .ann-thumb img { opacity: 0.55; }
.ann-row.is-done .ann-row-title { color: var(--wf-text-2); }
.ann-empty {
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
}
.ann-empty b { font-family: var(--wf-font-display); font-size: 1rem; font-weight: 600; }
.ann-empty > span:not(.ann-empty-ico):not(.ann-empty-art) { max-width: 44ch; font-size: 0.82rem; line-height: 1.5; color: var(--wf-text-3); }
.ann-empty-ico { color: #f0b45a; }
.ann-empty-ico svg { width: 30px; height: 30px; }
.ann-empty-art {
  display: grid;
  place-items: end center;
  width: 140px;
  height: 150px;
  background: radial-gradient(60% 45% at 50% 100%, color-mix(in srgb, var(--kc) 24%, transparent), transparent 76%);
}
.ann-empty-art img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ann-empty .usr-btn { margin-top: 4px; }
.ann-pgn { padding: 8px 8px 0; }
.ann-pgn:empty { display: none; }

/* ── üye arama sonuçları (ortak .fmenu üstünde) ── */
.ann-results { max-height: 360px; overflow-y: auto; }
.fmenu .ann-res { min-height: 46px; gap: 10px; }
.ann-res-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ann-res-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.86rem; font-weight: 600; color: var(--wf-text-1); }
.ann-res-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.74rem; color: var(--wf-text-4); }
.ann-res em { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; font-style: normal; font-size: 0.72rem; font-weight: 600; }
.ann-res em.is-on { color: #86efac; }
.ann-res em.is-on i { width: 6px; height: 6px; border-radius: 50%; background: var(--wf-success); }
.ann-res em.is-ban { color: #fda4af; }
.fmenu .ann-res.sel { background: rgba(255, 255, 255, 0.07); }
.fmenu .ann-res[aria-disabled='true'] { opacity: 0.5; cursor: not-allowed; }
.ann-res-note { margin: 0; padding: 10px; font-size: 0.82rem; color: var(--wf-text-3); }

/* ── onay penceresindeki taslak kopyası ── */
.ann-cf {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, #0e0a16, #0a0711);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.ann-cf-art {
  display: block;
  flex: 0 0 64px;
  height: 78px;
  overflow: hidden;
  border-radius: 9px;
  background:
    radial-gradient(90% 60% at 50% 100%, color-mix(in srgb, var(--kc) 30%, transparent), transparent 76%),
    #07050b;
}
.ann-cf-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.ann-cf-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ann-cf-kind { display: inline-flex; align-items: center; gap: 5px; font-size: 0.74rem; font-weight: 700; color: var(--kc); }
.ann-cf-kind svg { width: 13px; height: 13px; }
.ann-cf-text b { font-family: var(--wf-font-display); font-size: 1rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; color: #ffffff; }
.ann-cf-body {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: pre-line;
  overflow-wrap: anywhere;
  color: var(--wf-text-3);
}

/* ── hover: yalnız ışık ── */
@media (hover: hover) and (pointer: fine) {
  .ann-seg button:not([aria-checked='true']):hover { color: var(--wf-text-1); }
  .ann-kinds button:not([aria-checked='true']):hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--kc) 40%, transparent); color: var(--wf-text-1); }
  .ann-tile:not([aria-checked='true']):hover::after { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--kc) 55%, rgba(255, 255, 255, 0.3)); }
  .ann-select:hover,
  .ann-search:hover:not(:focus-within) { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
  .ann-person-x:hover { background: rgba(255, 255, 255, 0.07); color: var(--wf-text-1); }
  .ann-revoke:hover { background: rgba(251, 113, 133, 0.1); }
}

@media (prefers-reduced-motion: reduce) {
  .ann-seg button,
  .ann-kinds button,
  .ann-tile::after,
  .ann-input,
  .ann-select,
  .ann-revoke { transition: none; }
}

/* ── orta genişlik: iki sütun, sayfa kayar ── */
@media (max-width: 1559px) {
  .ann {
    grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
    /* Taslak sağ sütundan uzunsa fazlası önizlemeye gider; Gönder taslağın altıyla hizalı kalır */
    grid-template-rows: 1fr auto;
    grid-template-areas:
      'compose preview'
      'compose send'
      'pick pick'
      'history history';
    height: auto;
    min-height: 0;
  }
  .ann-compose,
  .ann-pick,
  .ann-history { overflow: visible; }
  .ann-grid { --t: 76px; --th: 91px; flex: none; overflow: visible; }
  .ann-rows { flex: none; grid-template-rows: none; grid-auto-rows: minmax(62px, auto); }
  .ann-empty { min-height: 220px; }
  .ann-preview { display: flex; flex-direction: column; }
  .ann-pv { flex: 1 0 auto; }
}

/* ── telefon / dar: tek sütun ── */
@media (max-width: 960px) {
  .ann {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: 'compose' 'pick' 'preview' 'send' 'history';
    gap: 12px;
  }
  .ann-compose { padding: 16px; }
  .ann-pick { padding: 14px 14px 16px; }
  .ann-grid { --t: 66px; --th: 79px; column-gap: 12px; }
  .ann-field.is-grow { flex: none; }
  .ann-text { flex: none; height: 150px; }
  .ann-ttl-row { flex-wrap: wrap; }
  .ann-send { flex-wrap: wrap; padding: 12px; }
  .ann-go { width: 100%; justify-content: center; }
  .ann-sub-text { flex-wrap: wrap; row-gap: 2px; }
  .ann-row { gap: 10px; padding: 8px 4px; }
  .ann-row-line { align-items: flex-start; }
  .ann-row-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
    line-height: 1.3;
  }
  /* Dar satırda görülme · hedef · gönderen · zaman alt satıra akar (kesilmez) */
  .ann-row-meta { white-space: normal; line-height: 1.6; }
  .ann-bar { width: 36px; }
}
