:root {
  --lg-ink: #414042; --lg-red: #ed1c24; --lg-bg: #ffffff;
  --red: #ed1c24; --red-d: #c4161c; --ink: #221f20; --grey: #414042; --mute: #6b6d72;
  --bg: #f4f4f5; --card: #fff; --line: #e1e2e4; --ok: #1a7f4b; --warn: #b26a00; --bad: #c0262d;
}
@media (prefers-color-scheme: dark) {
  :root { --lg-ink: #ececee; --lg-red: #ff4b52; --lg-bg: #222427; --ink: #ececee; --grey: #c9cacd; --mute: #9a9ca2; --bg: #17181a; --card: #222427; --line: #35373b; --ok: #4cc38a; --warn: #e0a23d; --bad: #ff6b72; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 system-ui, "Segoe UI", sans-serif; }
.top { background: var(--card); color: var(--ink); border-bottom: 3px solid var(--red); padding: 8px 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; } .brand svg { height: 40px; width: auto; display: block; }
.tag { font-size: 11px; background: var(--bg); color: var(--mute); border: 1px solid var(--line); padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.demo { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 13px; }
.demo label { display: flex; gap: 8px; align-items: center; }
.demo select { max-width: min(62vw, 340px); width: auto; }
.clock { display: flex; gap: 6px; align-items: center; }
#clock { font-variant-numeric: tabular-nums; margin-right: 4px; }
button, select, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 6px 12px; }
.demo button { padding: 3px 8px; font-size: 12px; }
.demo a { color: var(--grey); }
button.primary { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }
button.primary:disabled { opacity: .45; cursor: not-allowed; }
button.ghost { background: transparent; }
button.danger { color: var(--bad); }
nav { display: flex; overflow-x: auto; background: var(--card); border-bottom: 1px solid var(--line); padding: 0 8px; }
nav button { border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: none; padding: 12px 12px; white-space: nowrap; color: var(--mute); }
nav button.on { color: var(--ink); border-bottom-color: var(--red); font-weight: 600; }
#apCount:not(:empty) { background: var(--red); color: #fff; border-radius: 99px; font-style: normal; font-size: 11px; padding: 1px 7px; margin-left: 3px; }
main { max-width: 980px; margin: 0 auto; padding: 16px; }
h2 { margin: 4px 0 12px; font-size: 18px; } h3 { margin: 16px 0 8px; font-size: 15px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.row { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.meta { color: var(--mute); font-size: 13px; }
.chip { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--grey); margin: 0 4px 4px 0; }
.chip.ok { color: var(--ok); border-color: currentColor; } .chip.warn { color: var(--warn); border-color: currentColor; }
.chip.bad { color: var(--bad); border-color: currentColor; } .chip.red { background: var(--red); border-color: var(--red); color: #fff; }
.unread { border-left: 4px solid var(--red); }
.grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
label.f { display: block; font-size: 13px; color: var(--mute); margin: 10px 0 4px; }
input[type=text], input[type=date], select, textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
textarea { min-height: 110px; resize: vertical; }
.checks { display: flex; flex-wrap: wrap; gap: 6px; }
.checks label { border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px; font-size: 13px; cursor: pointer; background: var(--card); }
.checks input { margin-right: 4px; }
.checks label:has(input:checked) { border-color: var(--red); color: var(--red); font-weight: 600; }
.box { border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; margin: 12px 0; }
.box.bad { border-color: var(--bad); } .box.ok { border-color: var(--ok); }
.bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 6px 0; }
.bar i { display: block; height: 100%; background: var(--ok); }
.tree .u { padding: 7px 10px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; }
.tree .u:hover, .tree .u.sel { background: var(--bg); }
.tree .grp { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--mute); margin: 14px 0 4px; }
.split { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .split { grid-template-columns: 1fr 1fr; } }
.step { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border: 0; } .step .d { min-width: 92px; font-variant-numeric: tabular-nums; }
.step.done { opacity: .55; text-decoration: line-through; }
table { width: 100%; border-collapse: collapse; font-size: 13px; } td, th { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
dialog { border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); max-width: min(640px, 94vw); width: 100%; padding: 18px; }
dialog::backdrop { background: rgba(0,0,0,.45); }
.ex { margin-top: 18px; border-top: 3px solid var(--red); }
.flow { text-align: center; margin: 12px 0 6px; }
.flow .node { display: inline-block; min-width: 180px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); line-height: 1.3; }
.flow .node small { color: var(--mute); font-size: 12px; }
.flow .arrow { color: var(--mute); font-size: 12px; margin: 4px 0; }
.flow .two { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.steps { padding-left: 20px; } .steps li { margin: 12px 0; } .steps button { margin-top: 6px; }
.why { padding-left: 20px; color: var(--grey); } .why li { margin: 6px 0; }
/* açılan örgüt ağacı */
details.lvl, details.il, details.ilce, details.ub, details.ilceler, details.bolge { border: 1px solid var(--line); border-radius: 10px; margin: 6px 0; background: var(--card); }
details.il, details.ilce, details.ub, details.bolge { margin: 4px 0; }
details > summary { cursor: pointer; padding: 9px 12px; display: flex; gap: 8px; align-items: center; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: '▸'; color: var(--mute); transition: transform .15s; }
details[open] > summary::before { transform: rotate(90deg); }
summary .l { flex: 1; min-width: 0; } summary .r { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
details > .body { padding: 2px 12px 10px 24px; }
.scroll { max-height: 420px; overflow-y: auto; padding-right: 4px; }
.mrow { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.mrow:last-child { border: 0; } .contact { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
a.chip { text-decoration: none; }
#mine { padding: 0; } #mine > summary { padding: 12px 14px; } #mine > :not(summary) { margin-left: 14px; margin-right: 14px; } #mine > p:last-child { margin-bottom: 14px; }
#toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); background: var(--grey); color: #fff; padding: 8px 16px; border-radius: 99px; opacity: 0; transition: opacity .2s; pointer-events: none; max-width: 92vw; }
#toast.show { opacity: 1; } #toast.err { background: var(--bad); }

/* öncelik kodları, onay yolu, geri sayım */
.pri { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .3px; padding: 1px 8px; border-radius: 6px; margin-right: 6px; white-space: nowrap; }
.card.pcard { border-left: 5px solid var(--c, var(--line)); }
.box.warn { border-color: var(--warn); border-style: solid; background: color-mix(in srgb, var(--warn) 8%, transparent); }
.checks.prisel label:has(input:checked) { background: var(--c); border-color: var(--c); color: var(--t); font-weight: 700; }
.checks.prisel label:has(input:disabled) { opacity: .4; cursor: not-allowed; }
.tl { border-left: 2px solid var(--line); margin: 6px 0 6px 6px; padding-left: 12px; }
.tl-i { margin: 7px 0; font-size: 13px; }
.tl-i.sure_asimi b { color: var(--bad); } .tl-i.onaylandi b, .tl-i.yayinlandi b { color: var(--ok); }
.row > span { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* zamanlanmış gönderim, hiyerarşi */
.chip.info { color: #2b7bd6; border-color: currentColor; }
.flow .node.me { border: 2px solid var(--red); background: color-mix(in srgb, var(--red) 8%, var(--card)); }
.flow .node small { display: inline-block; }

/* gelen kutusu bölümleri, öne çıkan Genel Başkan / Genel Sekreter, sekmeler */
#inCount:not(:empty), #duCount:not(:empty) { background: var(--red); color: #fff; border-radius: 99px; font-style: normal; font-size: 11px; padding: 1px 7px; margin-left: 3px; }
.gm-one { border: 2px solid var(--red); border-radius: 12px; padding: 8px 10px 2px; margin: 8px 0 12px; background: color-mix(in srgb, var(--red) 5%, transparent); }
.gm-one > .meta { font-weight: 700; margin-bottom: 6px; color: var(--red); }
.card.featured { border-left-width: 8px; } .card.featured b { font-size: 16px; }
.feedtabs { margin: 8px 0 4px; } .feedtabs button { padding: 4px 10px; }
h3 .meta { font-weight: 400; }

/* ---------- mobil arayüz (telefon): alt gezinme, katlanan demo çubuğu, kaydırmalı sekmeler, alt sayfa penceresi */
#bnav, #demoBtn, .whochip { display: none; }
.sheetbtn { display: block; width: 100%; margin: 6px 0; padding: 12px; text-align: left; }
@media (max-width: 720px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  nav#tabs { display: none; }
  .top { position: sticky; top: 0; z-index: 20; padding: 8px 12px; }
  .top .brand svg { height: 30px; }
  .top .tag, .top a.meta { display: none; }
  #demoBtn { display: inline-block; margin-left: auto; padding: 4px 10px; font-size: 12px; }
  .top > .row { width: 100%; flex-wrap: nowrap; }
  .whochip { display: block; width: 100%; font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .top .demo { display: none; width: 100%; padding-top: 8px; border-top: 1px solid var(--line); }
  .top.open .demo { display: flex; }
  .demo select { max-width: 100%; }
  main { padding: 12px; }
  h2 { font-size: 20px; }
  .card { padding: 14px; border-radius: 14px; }
  button, select, input[type=text], input[type=date], input[type=datetime-local], textarea { font-size: 16px; }   /* iOS'ta odaklanınca yakınlaşmayı önler */
  button { min-height: 40px; }
  .feedtabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .feedtabs button { flex: none; }
  .checks label { padding: 7px 12px; }
  .card p:has(> #send) { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); background: var(--card); padding: 10px 0 4px; margin: 8px 0 0; z-index: 5; }
  #send { width: 100%; min-height: 48px; }
  dialog { width: 100%; max-width: 100vw; margin: auto 0 0; border-radius: 16px 16px 0 0; max-height: 88vh; overflow: auto; }
  .grid { grid-template-columns: 1fr; }
  .scroll { max-height: 55vh; }
  #toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
  #bnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; justify-content: space-around; background: var(--card); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  #bnav button { position: relative; border: 0; background: none; border-radius: 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--mute); min-width: 0; flex: 1 1 0; padding: 4px 2px; min-height: 0; }
  #bnav button.on { color: var(--red); font-weight: 700; }
  #bnav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  #bnav i { position: absolute; top: 0; right: 8px; background: var(--red); color: #fff; font-style: normal; font-size: 10px; min-width: 16px; padding: 0 4px; border-radius: 99px; text-align: center; }
  #bnav .fab svg { background: var(--red); border-radius: 50%; padding: 8px; width: 42px; height: 42px; stroke: #fff; margin-top: -16px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
}

/* ---------- sade görünüm: az çerçeve, az rozet, tek vurgu rengi (kırmızı yalnızca ana eylem ve aktif öğe) */
:root { --soft: color-mix(in srgb, var(--ink) 6%, transparent); }
h2 { font-size: 20px; margin: 6px 0 12px; font-weight: 700; }
h3 { font-weight: 600; }
.top { border-bottom: 1px solid var(--line); }
.card { border: 0; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.card.pcard { border-left: 3px solid var(--c, transparent); }
.chip { border: 0; background: var(--soft); color: var(--grey); padding: 2px 9px; }
.chip.ok, .chip.warn, .chip.bad, .chip.info, .chip.red { background: transparent; padding-left: 0; font-weight: 600; }
.chip.red { color: var(--red); }
.box { border: 0; border-left: 3px solid var(--line); border-radius: 6px; background: var(--soft); }
.box.ok { border-left-color: var(--ok); } .box.bad { border-left-color: var(--bad); } .box.warn { border-left-color: var(--warn); background: var(--soft); }
.note { border-left: 3px solid var(--line); background: var(--soft); border-radius: 6px; padding: 10px 12px; margin: 14px 0; }
.note.ok { border-left-color: var(--ok); } .note.warn { border-left-color: var(--warn); } .note.bad { border-left-color: var(--bad); }
.pri { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--grey); background: none; padding: 0; margin-right: 8px; border-radius: 0; }
.pri i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 1px rgba(0, 0, 0, .22); }
/* mesaj listesi */
.list .msg { padding: 12px 4px 12px 12px; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; cursor: pointer; }
.list .msg.urgent { border-left-color: var(--c); }
.list .msg.featured { background: var(--soft); border-radius: 8px; border-bottom-color: transparent; margin: 4px 0; }
.msg .line { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.msg.unread b::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 8px; }
.msg:not(.unread) b { font-weight: 500; }
.msg .clip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg .flags { margin-top: 4px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12px; }
.msg .todo { color: var(--warn); font-weight: 600; }
.grp { font-size: 12px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--mute); margin: 18px 0 4px; }
.filters { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 6px; }
.pills { display: flex; gap: 6px; }
.pills button { border: 0; background: var(--soft); border-radius: 99px; padding: 6px 14px; }
.pills button.on { background: var(--ink); color: var(--card); font-weight: 600; }
.pills .cnt { font-size: 11px; opacity: .8; }
#src { width: auto; max-width: 46%; padding: 6px 10px; border: 0; background: var(--soft); border-radius: 99px; }
.seg { display: inline-flex; background: var(--soft); border-radius: 99px; padding: 3px; }
.seg label { border: 0; border-radius: 99px; padding: 6px 20px; background: transparent; cursor: pointer; }
.seg label:has(input:checked) { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.seg input { display: none; }
details.opts { margin: 14px 0 4px; }
details.opts > summary { padding: 8px 0; color: var(--grey); cursor: pointer; }
/* alt gezinme: düz simgeler, ortadaki çıkıntı yok */
#bnav .fab svg { background: none; border-radius: 0; padding: 0; width: 24px; height: 24px; stroke: currentColor; margin-top: 0; box-shadow: none; }
#bnav i { top: 2px; right: 12px; font-size: 9px; min-width: 14px; }
@media (max-width: 720px) { .whochip { display: none; } #demoBtn { max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 0; background: var(--soft); } }

.clip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- logo (kullanıcının tasarımı): işaret + yazı, koyu temada beyaz sürüm <picture> ile seçilir */
.brand { gap: 10px; }
.brand picture { display: block; line-height: 0; }
.brand img.mk { height: 44px; width: auto; display: block; }
.brand img.wm { height: 25px; width: auto; display: block; }
@media (max-width: 720px) { .brand img.mk { height: 36px; } .brand img.wm { height: 20px; } }

/* ---------- haber carousel (ana sayfanın en üstü) */
.car { position: relative; border-radius: 14px; overflow: hidden; background: var(--soft); margin-bottom: 4px; }
.car.skel { aspect-ratio: 16 / 9; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }
.car .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.car .track::-webkit-scrollbar { display: none; }
.car .slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; display: block; aspect-ratio: 16 / 9; color: #fff; text-decoration: none; background: #3a3b3f; }
.car .slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.car .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 26px; background: linear-gradient(transparent, rgba(0,0,0,.78)); display: flex; flex-direction: column; gap: 4px; }
.car .cap span { font-size: 12px; opacity: .85; }
.car .cap b { font-size: 16px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.car .dots { position: absolute; left: 0; right: 0; bottom: 9px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.car .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); }
.car .dots i.on { background: #fff; width: 16px; border-radius: 99px; }
.src { text-align: right; margin: 4px 2px 10px; font-size: 11px; }
@media (min-width: 721px) { .car .slide { aspect-ratio: 21 / 8; } }

/* ---------- büyük erişim kutuları tasarımı: açık gri zemin, beyaz yüzeyler, tek vurgu rengi (marka kırmızısı yalnızca önemli sayı ve eylemde) */
:root { --wash: #fff0f1; --brand: var(--red-d); --seg: #e9e9ee; }
@media (prefers-color-scheme: dark) { :root { --wash: #3a262b; --brand: #ff8589; --seg: #101113; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
button:focus-visible, a:focus-visible, select:focus-visible, textarea:focus-visible, input:focus-visible, summary:focus-visible, .track:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
#view { padding-bottom: 28px; }

/* üst çubuk: logo solda, profil sağda */
.avatar { width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 14px; background: var(--soft); font-weight: 700; font-size: 14px; display: inline-grid; place-items: center; margin-left: 4px; }
.top .brandrow { justify-content: flex-start; gap: 12px; }
@media (max-width: 720px) {
  .top { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0; }
  .top > .brandrow { grid-area: 1 / 1; width: auto; }
  .top > .avatar { grid-area: 1 / 2; }
  .top > .demo { grid-area: 2 / 1 / 3 / -1; }
}

/* gezinme: alt çubuk (telefon) ve üst sekmeler (masaüstü) */
nav#tabs i { background: var(--red); color: #fff; border-radius: 99px; font-style: normal; font-size: 11px; padding: 1px 7px; margin-left: 3px; }
nav#tabs button { min-height: 44px; }
nav#tabs button.newmsg { margin: 6px 8px 6px auto; border: 0; border-radius: 12px; background: var(--red); color: #fff; font-weight: 600; padding: 6px 16px; display: inline-flex; gap: 6px; align-items: center; }
@media (max-width: 720px) {
  #bnav { gap: 4px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
  #bnav button { flex: 1; min-width: 0; min-height: 50px; justify-content: center; border-radius: 12px; font-size: 11px; }
  #bnav button.on { background: var(--wash); color: var(--brand); }
  #bnav i { top: 3px; right: calc(50% - 22px); }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}
.fabnew { display: none; }
@media (max-width: 720px) {
  .fabnew:not([hidden]) { display: grid; place-items: center; position: fixed; right: 16px; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 29; width: 56px; height: 56px; min-height: 56px; padding: 0; border: 0; border-radius: 18px; background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.28); }
  .fabnew .ico { width: 26px; height: 26px; }
}
.back { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; border: 0; background: transparent; color: var(--brand); font-weight: 600; padding: 0 10px 0 0; margin-bottom: 2px; }

/* hero: haber carousel (mobilde yaklaşık 2:1) */
.car { position: relative; border-radius: 18px; overflow: hidden; background: var(--soft); margin-bottom: 10px; }
.car.skel { aspect-ratio: 2 / 1; animation: pulse 1.4s ease-in-out infinite; }
.car.carmsg { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; min-height: 112px; padding: 16px; color: var(--mute); }
.car .slide { aspect-ratio: 2 / 1; }
.car .cap { padding: 48px 16px 28px; background: linear-gradient(transparent, rgba(0,0,0,.82)); }
.car .cap b { font-size: 16px; line-height: 1.3; text-shadow: 0 1px 2px rgba(0,0,0,.5); -webkit-line-clamp: 2; }
.car .cap span { font-size: 12px; opacity: .92; }
.carctl { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; }
.carctl button { width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; display: grid; place-items: center; }
.car .dots { bottom: 10px; }
.car .dots i.on { background: #fff; }
@media (min-width: 721px) { .car .slide { aspect-ratio: 21 / 8; max-height: 340px; } .car.skel { aspect-ratio: 21 / 8; } .car .cap b { font-size: 20px; } }
@media (prefers-reduced-motion: reduce) { .car.skel { animation: none; } }

/* ana sayfa girişi ve Yeni mesaj düğmesi */
.intro { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin: 2px 0 8px; }
.newbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--red); color: #fff; font-weight: 600; }

/* büyük erişim kutuları: telefonda 2×2; eksik kutu boşluk bırakmaz (tek kalan tam genişlik) */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.tiles .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tile { position: relative; display: block; text-align: left; min-height: 112px; padding: 16px; border: 0; border-radius: 17px; background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.06); color: var(--ink); }
.sym { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--bg); color: var(--mute); flex: none; }
.tile .sym { margin-bottom: 10px; }
.hot > .sym { background: var(--wash); color: var(--brand); }
.cnt { min-width: 30px; text-align: center; font-size: 14px; font-weight: 700; border-radius: 9px; padding: 2px 8px; background: var(--bg); color: var(--mute); }
.hot > .cnt { background: var(--wash); color: var(--brand); }
.tile > .cnt { position: absolute; top: 14px; right: 14px; }
.tile strong { display: block; font-size: 15px; font-weight: 650; }
.tile small { display: block; margin-top: 2px; font-size: 12px; color: var(--mute); line-height: 1.35; }
@media (min-width: 721px) { .tiles { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } .tiles .tile:last-child:nth-child(odd) { grid-column: auto; } }

/* işlerim satırları */
.taskrows { display: grid; gap: 10px; margin-top: 12px; }
.trow { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 72px; padding: 14px 16px; text-align: left; border: 0; border-radius: 16px; background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.06); color: var(--ink); }
.trow .tx { flex: 1; min-width: 0; }
.trow strong { display: block; font-weight: 650; } .trow small { display: block; color: var(--mute); font-size: 12px; }
.trow .chev { color: var(--mute); }

/* duyurular: filtre, kaynak satırı, ayrı kartlar */
.feedtitle { margin: 4px 0 10px; font-size: 17px; font-weight: 650; }
.seg3 { display: flex; gap: 3px; padding: 4px; background: var(--seg); border-radius: 12px; margin-bottom: 10px; }
.seg3 button { flex: 1; min-height: 44px; padding: 0 6px; border: 0; border-radius: 9px; background: transparent; font-size: 13px; white-space: nowrap; }
.seg3 button[aria-pressed=true] { background: var(--card); font-weight: 650; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.seg3 .cnt { min-width: 0; padding: 0 6px; font-size: 11px; background: var(--wash); color: var(--brand); }
.srcrow { margin-bottom: 12px; min-height: 44px; }
.srcrow select { width: 100%; min-height: 44px; border: 0; border-radius: 12px; background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.srcrow select:disabled { opacity: .6; }
.list .msg { display: block; width: 100%; text-align: left; margin: 0 0 10px; padding: 14px 16px; min-height: 76px; border: 0; border-radius: 16px; background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.05); color: inherit; cursor: pointer; }
.list .msg.featured { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--red) 35%, transparent), 0 1px 3px rgba(0,0,0,.05); background: var(--card); margin: 0 0 10px; }
.list .msg.urgent { box-shadow: inset 4px 0 0 var(--c), 0 1px 3px rgba(0,0,0,.05); border-left: 0; }
.mline { display: flex; align-items: flex-start; gap: 8px; }
.mline .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; margin-top: 7px; }
.mt { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.msg.unread .mt { font-weight: 700; }
.mline time { white-space: nowrap; font-size: 12px; padding-top: 2px; }
.msender { display: block; margin-top: 4px; font-size: 12px; color: var(--mute); }
.mstatus { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 9px; border-radius: 8px; background: var(--wash); color: var(--brand); font-size: 12px; font-weight: 600; }
.mstatus i { width: 9px; height: 9px; border-radius: 50%; }
.emptymsg { padding: 16px 4px; }
@media (max-width: 720px) { select, input[type=text], input[type=date], input[type=datetime-local] { min-height: 44px; } }
@media (min-width: 721px) {
  .top { align-items: center; }
  .top > .brandrow { flex: 1 1 auto; }
  .top > .avatar { order: 1; }
  .top > .demo { order: 2; flex-basis: 100%; }
  .intro .newbtn { display: none; }   /* masaüstünde Yeni mesaj sekme çubuğunda */
}
.srcrow #src { width: 100%; max-width: none; border-radius: 12px; background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.05); padding: 0 12px; }

/* ---------- hero'da önemli duyuru, çevrem, bize yaz, yanıt düğmeleri */
.car .slide.man { display: block; position: relative; width: 100%; padding: 0; border: 0; border-radius: 0; text-align: left; color: #fff; background: linear-gradient(135deg, #b9141b, #7d0d12); cursor: pointer; }
.car .slide.man .cap { top: 0; justify-content: flex-end; background: none; padding: 56px 18px 28px; }
.manbadge { align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: .8px; padding: 3px 9px; border-radius: 6px; background: #fff; color: #b9141b; opacity: 1 !important; }
.car .slide.man .cap b { font-size: 18px; -webkit-line-clamp: 3; }
.seg3.kanal { margin-bottom: 8px; }
.placecard { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 10px; border-radius: 16px; background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.placecard .sym { background: var(--wash); color: var(--brand); }
.placecard strong { display: block; font-size: 17px; } .placecard small { display: block; color: var(--mute); font-size: 12px; }
.officials .orow { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); }
.officials .meta:first-child { margin-bottom: 4px; }
.respbox { display: flex; gap: 8px; margin: 12px 0 4px; }
.respbox button { flex: 1; min-height: 48px; font-weight: 600; }
.reqcard { padding: 14px 16px; }
@media (max-width: 720px) { .respbox button { font-size: 15px; } }
.car .slide.man .cap { padding: 12px 18px 30px; }
[hidden] { display: none !important; }
.brand svg.logo { height: 44px; } @media (max-width: 720px) { .top .brand svg.logo { height: 34px; } }
@media (max-width: 720px) { button { min-height: 44px; } }

/* ---------- giriş ekranı (demo): girişsizken yalnızca logo ve giriş kartı görünür */
body.guest #profileBtn, body.guest .demo, body.guest #tabs, body.guest #bnav, body.guest #fab { display: none !important; }
.login { max-width: 420px; margin: 5vh auto 0; padding: 24px 20px; border-radius: 20px; background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.login h2 { margin-top: 0; }
.login input[type=text] { min-height: 48px; font-size: 16px; }
.login .wide { width: 100%; min-height: 48px; }
.linkbtn { border: 0; background: transparent; color: var(--brand); padding: 8px 0; min-height: 44px; text-decoration: underline; }
.login .newbtn { text-decoration: none; }
.quickin { margin-top: 8px; } .quickin > summary { padding: 10px 0; color: var(--grey); cursor: pointer; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick button { text-align: left; min-height: 56px; padding: 8px 12px; }
.quick small { display: block; color: var(--mute); font-size: 12px; }
.demonote { margin-top: 12px; }

/* ---- seçim çalışmaları */
.selrow { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.sx { display: flex; gap: 6px; overflow-x: auto; margin: 12px 0; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.sx button { flex: 0 0 auto; border-radius: 99px; padding: 6px 14px; }
.sx button[aria-selected="true"] { background: var(--brand, var(--red)); color: #fff; border-color: transparent; }
@media (prefers-color-scheme: dark) { .sx button[aria-selected="true"] { color: #2a0b0d; } }   /* açık pembe dolgu üzerinde koyu yazı (kontrast >= 4,5:1) */
.sx button:focus-visible { outline: 2px solid var(--brand, var(--red)); outline-offset: 2px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 8px; }
.stats strong { display: block; font-size: 22px; } .stats small { color: var(--grey); }
.pick { display: flex; gap: 8px; align-items: center; padding: 8px 0; min-height: 44px; }
@media (min-width: 721px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* anket, faaliyet, özel örgütlenme */
.check { display: flex; gap: 8px; align-items: center; min-height: 44px; }
.quote { margin: 6px 0; padding: 6px 10px; border-left: 3px solid var(--line); white-space: pre-wrap; }
.onode { padding: 10px 12px; }
.onode .row + .row { margin-top: 4px; }
.card button[aria-pressed="true"] { border-color: var(--brand, var(--red)); color: var(--brand, var(--red)); font-weight: 600; }


/* örgüt: master-detay kademeli arama */
.tkjump { margin: 4px 0 12px; }
.tkjump b { margin-left: 4px; }
.tkbar input, .tkmaster input[type=search] { width: 100%; margin: 0 0 8px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 8px 0; }
.crumbs button { background: transparent; border: 0; padding: 6px 8px; min-height: 36px; color: var(--ink); text-decoration: underline; }
.crumbs button[aria-current] { font-weight: 700; text-decoration: none; }
.tk { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 14px; align-items: start; }
.tkmaster, .tkdetail { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.tklist { display: flex; flex-direction: column; gap: 2px; max-height: 60vh; overflow: auto; }
.tkitem { display: flex; justify-content: space-between; align-items: center; gap: 8px; text-align: left; width: 100%; min-height: 44px; padding: 8px 10px; background: transparent; border: 1px solid transparent; border-radius: 10px; color: var(--ink); }
.tkitem:hover { background: var(--wash, rgba(0,0,0,.04)); }
.tkitem.on { border-color: var(--brand, var(--red)); background: var(--wash, rgba(0,0,0,.04)); font-weight: 600; }
@media (max-width: 720px) { .tk { grid-template-columns: 1fr; } .tklist { max-height: 45vh; } }

a.linkbtn { display: inline-flex; align-items: center; }

/* Mesajlar: e-posta kutusu düzeni */
main.mailwide { max-width: 1280px; }
.mb, .mb > * { min-width: 0; }
.mb { display: grid; grid-template-columns: 220px minmax(480px, 560px) minmax(0, 1fr); gap: 12px; align-items: start; }
.mbside { display: flex; flex-direction: column; gap: 10px; }
.mbnew { display: inline-flex; align-items: center; gap: 6px; justify-content: center; min-height: 44px; }
.mbfold { display: flex; flex-direction: column; gap: 2px; }
.mbfold button { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; background: transparent; border: 1px solid transparent; border-radius: 10px; color: var(--ink); text-align: left; white-space: normal; line-height: 1.25; overflow-wrap: anywhere; }
.mbfold button[aria-selected="true"] { background: var(--wash, rgba(0,0,0,.05)); border-color: var(--brand, var(--red)); font-weight: 700; }
.mbfold .cnt { flex: none; background: var(--red); color: #fff; border-radius: 99px; min-width: 20px; padding: 0 6px; font-size: 12px; line-height: 20px; text-align: center; }
.mblist, .mbread { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.mblist input[type=search] { width: 100%; box-sizing: border-box; margin: 0 0 8px; padding: 10px 12px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--card); color: inherit; }
.mblist .seg3 button { font-size: 12.5px; padding: 0 6px; white-space: nowrap; line-height: 1.2; }
.mblist .list .msg { padding: 12px 14px; min-height: 0; }
.mblist .mt { -webkit-line-clamp: 3; overflow-wrap: anywhere; }
.mblist .msender { overflow-wrap: anywhere; white-space: normal; }
.mmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.mbread { position: sticky; top: 8px; max-height: calc(100vh - 24px); overflow: auto; overflow-wrap: anywhere; }
.mbread h3 { overflow-wrap: anywhere; }
.mbhint { padding: 20px; text-align: center; }
.msg.sel { outline: 2px solid var(--brand, var(--red)); outline-offset: -2px; }
@media (max-width: 1099px) {
  .mb { grid-template-columns: 1fr; }
  .mbread { display: none; }
  .mbside { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .mbside > * { min-width: 0; }
  .mbfold { flex-direction: row; overflow-x: auto; flex: 1 1 100%; max-width: 100%; }
  .mbfold button { white-space: nowrap; gap: 8px; border-color: var(--line); border-radius: 99px; min-height: 40px; }
}

/* takvim */
.caltop { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.calnav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.calnav button { min-height: 40px; min-width: 40px; padding: 0 10px; }
.caltitle { margin: 0 0 0 6px; font-size: 18px; text-transform: capitalize; }
.calviews { margin: 0; }
.callayers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.ev { --ec: var(--ef); display: block; width: 100%; text-align: left; border: 0; border-left: 3px solid var(--ec); border-radius: 6px; padding: 3px 6px; font-size: 12px; line-height: 1.3; color: var(--ink); background: color-mix(in srgb, var(--ec) 14%, var(--card)); cursor: pointer; min-height: 0; }
.ev.t { --ec: var(--et); } .ev.s { --ec: var(--es); } .ev.e { --ec: var(--ee); } .ev.a { --ec: var(--ea); }
.ev.done { opacity: .55; text-decoration: line-through; }
.ev .evt { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.callayers .layer { display: inline-block; width: auto; padding: 6px 12px; border-radius: 99px; font-size: 13px; min-height: 36px; border: 1px solid var(--ec); opacity: .55; }
.callayers .layer[aria-pressed="true"] { opacity: 1; font-weight: 600; }
.mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mwd { background: var(--card); padding: 6px 4px; text-align: center; font-size: 12px; color: var(--mute); font-weight: 600; }
.mday { background: var(--card); min-height: 108px; padding: 4px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; min-width: 0; }
.mday.out { background: var(--seg, var(--card)); opacity: .6; }
.mday .dn { font-size: 13px; font-weight: 600; align-self: flex-start; min-width: 24px; height: 24px; line-height: 24px; text-align: center; border-radius: 99px; }
.mday.today .dn { background: var(--red); color: #fff; }
.mday .evs { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mday .more { font-size: 11px; color: var(--mute); padding-left: 4px; }
.mday .dots { display: none; gap: 3px; flex-wrap: wrap; }
.dots i, .evdot { width: 7px; height: 7px; border-radius: 50%; background: var(--ef); display: inline-block; }
.dots i.t, .evdot.t { background: var(--et); } .dots i.s, .evdot.s { background: var(--es); } .dots i.e, .evdot.e { background: var(--ee); } .dots i.a, .evdot.a { background: var(--ea); }
.wgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wday { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px; min-width: 0; }
.wday.today { border-color: var(--red); }
.whead { display: flex; justify-content: space-between; align-items: center; width: 100%; background: transparent; border: 0; padding: 4px 6px; min-height: 36px; color: var(--ink); }
.wlist { display: flex; flex-direction: column; gap: 4px; }
.wev { display: flex; flex-direction: column; gap: 1px; }
.wev .ev .evt { white-space: normal; }
.dview { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px; }
.dall { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px; border-bottom: 1px solid var(--line); }
.dall .ev { width: auto; }
.hrow { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; min-height: 28px; border-bottom: 1px solid var(--line); padding: 2px 4px; }
.hrow.has { min-height: 44px; }
.hrow.now { background: color-mix(in srgb, var(--red) 8%, var(--card)); }
.hlab { font-size: 12px; color: var(--mute); padding-top: 4px; }
.hslot { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 2px 0; }
.hslot .ev .evt { white-space: normal; }
.ygrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.ymon { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.ymt { background: transparent; border: 0; font-weight: 700; text-transform: capitalize; padding: 4px 2px; min-height: 36px; color: var(--ink); }
.yd { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.yw { font-size: 10px; color: var(--mute); }
.yc { min-height: 30px; min-width: 0; padding: 0; border: 0; border-radius: 8px; background: transparent; font-size: 12px; color: var(--ink); }
.yc.out { visibility: hidden; }
.yc.has { background: color-mix(in srgb, var(--red) 16%, var(--card)); font-weight: 700; }
.yc.today { outline: 2px solid var(--red); outline-offset: -2px; }
.lday h3 { margin: 14px 0 6px; font-size: 15px; text-transform: capitalize; }
.lday.today h3 { color: var(--red); }
.lsrow { display: grid; grid-template-columns: 70px minmax(0, 1fr) 12px; gap: 10px; align-items: center; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 6px; min-height: 52px; color: var(--ink); border-left-width: 1px; }
.lsrow.ev { background: var(--card); border-left: 1px solid var(--line); }
.lsrow .lt { font-size: 13px; color: var(--mute); }
.lsrow .lb { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .mday { min-height: 56px; align-items: center; }
  .mday .evs { display: none; }
  .mday .dots { display: flex; justify-content: center; }
  .mday .dn { align-self: center; }
  .wgrid { grid-template-columns: 1fr; }
  .wday { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; }
  .caltitle { font-size: 16px; }
  .ygrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ymon { padding: 6px; }
  .yc { min-height: 24px; font-size: 11px; }
}

/* ilanlar */
.ilsite { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 10px; text-decoration: none; background: var(--red); color: #fff; font-weight: 700; margin: 6px 0; }
.ilgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 12px 0; }
.ilcard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.ila { display: block; text-decoration: none; color: inherit; }
.ila img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--wash, #fff0f1); }
.ilb { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; }
.ilt { font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.ilp { font-weight: 700; }
.ilmember { margin: 0 12px 12px; padding: 8px 10px; border: 1px dashed var(--red); border-radius: 10px; font-size: 13px; background: var(--wash, #fff0f1); overflow-wrap: anywhere; }
.ilchips { display: flex; flex-wrap: wrap; gap: 6px; }

.attlist { max-height: 320px; overflow: auto; margin-top: 6px; }

/* ---------- ortak tasarım şablonu (Codex 3A): eylem kırmızısı kontrastlı, 44 px hedefler, görünür odak, Geri alanı, Diğer listesi, ilan ve form düzeni.
   Hero (haber/önemli duyuru alanı: .car) bu bölümde değiştirilmez. */
:root { --act: var(--red-d); }   /* eylem rengi = koyu kırmızı (tek belirteç) */
button.primary, .primary.ilsite, .newbtn { background: var(--act); border-color: var(--act); }
input[type=text], input[type=search], input[type=number], input[type=url], input[type=date], input[type=datetime-local], input:not([type]), select, textarea { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 16px; }
textarea { min-height: 88px; }
input[type=checkbox], input[type=radio] { min-height: 0; width: auto; }
button, a.linkbtn { min-height: 44px; }
label.f { font-weight: 600; color: var(--ink); font-size: 14px; }
.help { font-size: 13px; color: var(--mute); margin-top: 2px; }
.ferr { font-size: 13px; color: var(--bad); margin: 4px 0 0; font-weight: 600; }
[aria-invalid=true] { border-color: var(--bad) !important; }
fieldset.ilfs { border: 1px solid var(--line); border-radius: 12px; margin: 12px 0; padding: 4px 14px 14px; }
fieldset.ilfs legend { font-weight: 700; padding: 0 6px; }
dialog { max-width: min(640px, 94vw); }
.emptycard { text-align: center; padding: 22px 14px; }
.tabsbar { display: flex; gap: 4px; background: var(--soft); border-radius: 12px; padding: 4px; margin: 10px 0; overflow-x: auto; scrollbar-width: none; }
.tabsbar button { flex: 1 0 auto; border: 0; background: transparent; border-radius: 9px; padding: 0 14px; color: var(--grey); white-space: nowrap; }
.tabsbar button[aria-selected=true] { background: var(--card); color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.ilfilter { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.ilfilter input[type=search] { flex: 1 1 200px; width: auto; } .ilfilter select { flex: 0 1 200px; width: auto; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 12px 0; }
.ila { width: 100%; padding: 0; border: 0; border-radius: 0; background: none; text-align: left; font: inherit; cursor: pointer; }
#backslot { max-width: 980px; margin: 0 auto; padding: 8px 16px 0; } #backslot:empty { display: none; } #backslot .back { margin: 0; }
@media (max-width: 720px) { #backslot { padding: 6px 12px 0; } }
.morelist { padding: 4px 0; }
.morerow { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 12px 16px; text-align: left; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); }
.morerow:last-child { border-bottom: 0; }
.morerow .tx { flex: 1; min-width: 0; } .morerow strong { display: block; font-weight: 650; } .morerow small { display: block; color: var(--mute); font-size: 13px; }
.morerow .sym svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.morerow .cnt { background: var(--act); color: #fff; border-radius: 99px; font-size: 12px; min-width: 22px; padding: 1px 7px; text-align: center; }
.morerow .chev { color: var(--mute); } .morerow .chev svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
/* masaüstü: sol sabit gezinme (1100 px ve üstü) */
@media (min-width: 1100px) {
  body { padding-left: 232px; }
  nav#tabs { position: fixed; left: 0; top: 0; bottom: 0; width: 232px; flex-direction: column; overflow-y: auto; padding: calc(var(--hh, 96px) + 12px) 12px 12px; gap: 4px; border-bottom: 0; border-right: 1px solid var(--line); z-index: 15; }
  nav#tabs button { text-align: left; border: 0; border-radius: 10px; padding: 0 14px; min-height: 44px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
  nav#tabs button.on { background: color-mix(in srgb, var(--act) 10%, transparent); color: var(--act); }
  nav#tabs button i { margin-left: auto; background: var(--act); color: #fff; border-radius: 99px; font-size: 12px; font-style: normal; padding: 0 8px; }
  .top { margin-left: -232px; padding-left: calc(232px + 16px); position: sticky; top: 0; z-index: 20; }
  nav#tabs .newmsg { margin-top: 8px; }
  nav#tabs button[data-nav="sosyal"] { margin-top: auto; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }   /* SosyalLink: kenar çubuğunun en altında, diğer araçlardan ayrı */
  #backslot { margin-left: auto; }
}
.callayers .layer, .mbfold button { min-height: 44px; }
@media (max-width: 720px) { .ymon { cursor: pointer; } .ymon .yc { pointer-events: none; } .ymt { min-height: 44px; width: 100%; } }
/* demo araçları (kişi seçici, sanal saat) varsayılan kapalı: Profil › Demo denetimleri ile açılır */
.top .demo { display: none; width: 100%; padding-top: 8px; border-top: 1px solid var(--line); }
.top.open .demo { display: flex; }
@media (prefers-color-scheme: dark) { nav#tabs button.on { color: var(--red); } .morerow .cnt, nav#tabs button i { background: var(--act); } }

/* ---------- özel mesajlar (dm-ui.js) */
.dmrow { display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; }
.dmt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dmav { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-weight: 700; color: var(--grey); overflow: hidden; }
.dmav img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dmmsgs { display: flex; flex-direction: column; gap: 6px; max-height: 38vh; overflow-y: auto; margin: 12px 0; padding: 4px; }
.dmb { align-self: flex-start; max-width: 85%; background: var(--soft); border-radius: 14px 14px 14px 4px; padding: 8px 12px; overflow-wrap: anywhere; white-space: pre-wrap; }
.dmb.me { align-self: flex-end; background: color-mix(in srgb, var(--act) 12%, transparent); border-radius: 14px 14px 4px 14px; }
.dmb time { display: block; font-size: 11px; margin-top: 2px; }
.profhead { display: flex; gap: 14px; align-items: center; margin-bottom: 4px; }
.dmav.big { width: 64px; height: 64px; font-size: 22px; }
#profileBtn img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.mrow .dmav { width: 36px; height: 36px; font-size: 13px; margin-right: 10px; }
.mrow:has(> .dmav) { align-items: center; flex-wrap: wrap; }
.rozets { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.rozet { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--soft); opacity: .65; }
.rozet.on { opacity: 1; background: color-mix(in srgb, var(--act) 10%, transparent); }
.rozet b { font-size: 14px; }

/* =====================================================================================================
   Kurumsal katman (31 Ekim 2026): Yeni Parti sitesinin dili. Kırmızı #ed1c24, antrasit #221f20, hap biçimli düğmeler, ince gradyan şerit.
   Başlık: solda YENİ PARTİ, ortada YeniLİNK, sağda profil. Mesajlar: Gmail düzeni. Özel mesajlar: WhatsApp Web düzeni.
   ===================================================================================================== */
:root { --bg: #f4f4f5; --band: linear-gradient(90deg, #ed1c24 0%, #9c1015 62%, #221f20 100%); --wallpaper: #f7f1f0; --bub-me: #fde2e3; }
@media (prefers-color-scheme: dark) { :root { --ink: #ececee; --bg: #17181a; --wallpaper: #1a1b1d; --bub-me: #5a1c20; } }

/* ---- başlık */
.top { display: grid !important; grid-template-columns: 1fr auto 1fr; grid-template-rows: auto auto auto; align-items: center; gap: 0 12px; padding: 0 16px 8px; position: sticky; top: 0; z-index: 20; }
.top::before { content: 'PROTOTİP · ÖRNEK VERİ'; grid-column: 1 / -1; margin: 0 -16px 8px; padding: 3px 0; background: var(--band); color: #fff; font-size: 10px; letter-spacing: 1.6px; font-weight: 600; text-align: center; }
.top > .partilogo { grid-area: 2 / 1; justify-self: start; display: block; line-height: 0; }
.top > .partilogo img { height: 34px; width: auto; display: block; }
.top > .brandrow { grid-area: 2 / 2; justify-self: center; width: auto !important; justify-content: center; }
.top > .avatar, .top > #profileBtn { grid-area: 2 / 3; justify-self: end; }
.top > .demo { grid-area: 3 / 1 / 4 / -1; }
.top .tag { display: none; }
.top .brand picture { display: block; line-height: 0; }
.top .brand img.logo { height: 38px; width: auto; display: block; }
@media (max-width: 720px) { .top { padding: 0 12px 6px; } .top::before { margin: 0 -12px 6px; } .top > .partilogo img { height: 26px; } .top .brand img.logo { height: 28px; } }
@media (max-width: 380px) { .top .brand img.logo { height: 24px; } .top > .partilogo img { height: 22px; } }
body.guest .top > #profileBtn { visibility: hidden; }

/* ---- düğmeler ve gezinme: hap biçimi */
button.primary, nav#tabs button.newmsg { border-radius: 999px; background: linear-gradient(180deg, #ef2a31, #d3151c); border-color: #c4161c; }
nav#tabs button.on { color: var(--red-d); }
@media (min-width: 1100px) { nav#tabs button { border-radius: 0 999px 999px 0 !important; margin-right: 8px; } nav#tabs button.on { background: var(--wash); color: var(--red-d); font-weight: 700; } }

/* ---- Mesajlar: Gmail düzeni */
@media (min-width: 1100px) {
  .mb { grid-template-columns: 230px minmax(480px, 560px) minmax(0, 1fr); gap: 16px; }
  .mbside { gap: 14px; }
  .mbnew { align-self: flex-start; min-height: 56px; padding: 0 26px 0 20px; border-radius: 18px; font-size: 15px; font-weight: 700; box-shadow: 0 2px 8px rgba(196, 22, 28, .35); }
  .mbfold { gap: 0; }
  .mbfold button { border: 0 !important; border-radius: 0 999px 999px 0; margin-right: 12px; padding: 0 16px 0 24px; min-height: 40px; font-weight: 500; }
  .mbfold button:hover { background: var(--soft); }
  .mbfold button[aria-selected="true"] { background: var(--wash); color: var(--red-d); font-weight: 700; }
}
.mblist, .mbread { border: 0; border-radius: 16px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.mblist { padding: 0; overflow: hidden; }
.mblist > .meta { padding: 8px 16px; }
.mblist input[type=search] { width: calc(100% - 24px); margin: 12px; border: 0; border-radius: 999px; background: var(--soft); }
.mblist .seg3 { margin: 0 12px 8px; }
.mblist .list { padding: 0; }
.mblist .list .msg { margin: 0; border-radius: 0; box-shadow: none !important; border: 0; border-bottom: 1px solid var(--line); padding: 10px 16px 10px 14px; background: var(--soft); border-left: 3px solid transparent; }
.mblist .list .msg.unread { background: var(--card); }
.mblist .list .msg.urgent { border-left-color: var(--c); }
.mblist .list .msg:hover { box-shadow: 0 1px 6px rgba(0, 0, 0, .18) !important; position: relative; z-index: 1; }
.mblist .list .msg.sel { outline: 0; background: var(--wash); }
.mblist .msg .mline { display: flex; align-items: baseline; gap: 8px; }
.mblist .msg .mt { flex: 1; min-width: 0; font-weight: 500; -webkit-line-clamp: 2; }
.mblist .msg.unread .mt { font-weight: 700; }
.mblist .msg time { flex: none; font-size: 12px; font-weight: 400; }
.mblist .msg.unread time { font-weight: 700; color: var(--ink); }
.mblist .msg .msender { font-size: 13px; color: var(--mute); }
.mblist .msg.unread .msender { color: var(--ink); }
.mbread { padding: 20px 24px; }
.mbread h3 { font-size: 22px; font-weight: 500; line-height: 1.3; }

/* ---- Özel mesajlar: WhatsApp Web düzeni */
.dmhead { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 8px; }
.dmhead h3 { margin: 0; font-size: 20px; }
.dmplus { width: 40px; height: 40px; min-height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--soft); display: grid; place-items: center; }
.dmplus svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.dmlist { display: flex; flex-direction: column; }
.dmempty { padding: 28px 20px; text-align: center; }
.dmrow { display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; padding: 10px 16px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; min-height: 68px; }
.dmrow:hover, .dmrow:focus-visible { background: var(--soft); }
.dmrow .dmt { gap: 2px; }
.dmtop, .dmbot { display: flex; align-items: baseline; gap: 8px; justify-content: space-between; min-width: 0; }
.dmtop .mt { font-weight: 600; font-size: 16px; flex: 1; min-width: 0; }
.dmtop time { flex: none; font-size: 12px; color: var(--mute); }
.dmrow.unread .dmtop time { color: var(--red-d); font-weight: 700; }
.dmprev { color: var(--mute); font-size: 14px; flex: 1; min-width: 0; }
.dmrow.unread .dmprev { color: var(--ink); font-weight: 600; }
.dmrow .cnt { flex: none; background: var(--red); color: #fff; border-radius: 999px; min-width: 20px; padding: 0 6px; font-size: 12px; line-height: 20px; text-align: center; }
.dmav { width: 48px; height: 48px; background: color-mix(in srgb, var(--red) 12%, var(--card)); color: var(--red-d); }
.dmav.big { width: 40px; height: 40px; font-size: 14px; }

.chatpane { padding: 0 !important; display: flex; flex-direction: column; overflow: hidden !important; height: min(78vh, 760px); }
.chathead { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.chathead .dmt b { font-size: 16px; }
.chathead .linkbtn { margin-left: auto; font-size: 13px; }
.chatx { display: none; width: 40px; min-height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--soft); font-size: 24px; line-height: 1; }
.chat { display: flex; flex-direction: column; height: 100%; }
.dmmsgs { flex: 1; min-height: 0; max-height: none; margin: 0; padding: 14px 6%; gap: 4px; background-color: var(--wallpaper); background-image: none; }
.dmday { align-self: center; margin: 10px 0 6px; }
.dmday span { display: inline-block; background: color-mix(in srgb, var(--card) 88%, transparent); color: var(--mute); font-size: 12px; padding: 4px 12px; border-radius: 8px; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.dmnone { align-self: center; margin: auto; background: color-mix(in srgb, var(--card) 88%, transparent); padding: 8px 14px; border-radius: 10px; font-size: 14px; color: var(--mute); }
.dmb { position: relative; max-width: min(78%, 520px); background: var(--card); border-radius: 12px 12px 12px 3px; padding: 6px 10px 6px 12px; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 10px; }
.dmb.me { background: var(--bub-me); border-radius: 12px 12px 3px 12px; }
.dmb > span { white-space: pre-wrap; overflow-wrap: anywhere; }
.dmb time { margin: 0 0 0 auto; padding-top: 4px; font-size: 11px; line-height: 1; color: var(--mute); display: inline; }
.chatbar { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; background: var(--card); border-top: 1px solid var(--line); }
.chatbar textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; border: 0; border-radius: 22px; padding: 11px 16px; background: var(--soft); line-height: 1.35; }
.chatsend { flex: none; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; background: linear-gradient(180deg, #ef2a31, #c4161c); color: #fff; display: grid; place-items: center; }
.chatsend:disabled { opacity: .5; }
.chatsend svg { width: 22px; height: 22px; fill: currentColor; stroke: currentColor; stroke-width: 1; stroke-linejoin: round; }
.chatnote { padding: 8px 16px; text-align: center; }
dialog.chatdlg { padding: 0; border: 0; width: min(560px, 100vw); height: min(92vh, 720px); border-radius: 16px; overflow: hidden; }
dialog.chatdlg .chat { height: 100%; }
dialog.chatdlg .chatx { display: grid; place-items: center; }
@media (max-width: 720px) { dialog.chatdlg { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; } .dmmsgs { padding: 12px 10px; } }

/* ---- Takvim: Google Takvim düzeni (dolu renkli etkinlik çubukları, büyük ay başlığı, hap düğmeler) */
.caltitle { font-size: 24px; font-weight: 400; letter-spacing: -.2px; }
.calnav > button { border-radius: 999px; }
.calnav > button:not([aria-label]) { padding: 0 18px; }
.mgrid { border-radius: 16px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.mday { min-height: 92px; }
@media (prefers-color-scheme: light) {
  .ev { background: color-mix(in srgb, var(--ec) 16%, transparent); color: var(--ink); border-left: 3px solid var(--ec); }
  .callayers .layer { background: color-mix(in srgb, var(--ec) 8%, var(--card)); color: var(--ink); border-color: transparent; }
  .callayers .layer[aria-pressed="true"] { background: color-mix(in srgb, var(--ec) 20%, transparent); box-shadow: inset 0 0 0 1.5px var(--ec); color: var(--ink); }
}

/* =====================================================================================================
   Cam görünümü (Mesajlar ve Takvim): pastel kırmızıdan siyaha gradyan zemin, hafif halka filigranı; bölümler yarı saydam,
   önde duran cam paneller. Kutular köşeli (6-12 px). Takvim türleri kırmızı ve mavi tonlarında sade palet.
   ===================================================================================================== */

body.glass {
  background:
    linear-gradient(165deg, #f0a9ad 0%, #c4676f 24%, #7a3840 50%, #35181b 76%, #140a0b 100%) fixed;
}
body.glass .mblist, body.glass .mbread, body.glass .mbside, body.glass .cal {
  background: rgba(255, 255, 255, .76);
  -webkit-backdrop-filter: blur(5px) saturate(1.15); backdrop-filter: blur(5px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 12px;
  box-shadow: 0 22px 44px rgba(20, 5, 8, .45), 0 3px 8px rgba(20, 5, 8, .28), inset 0 1px 0 rgba(255, 255, 255, .7);
}
body.glass .mbside { padding: 12px 8px; }
body.glass .cal { padding: 14px 16px 18px; }
body.glass .mblist { overflow: hidden; }
body.glass .mblist .list .msg { background: transparent; border-bottom-color: rgba(34, 31, 32, .12); }
body.glass .mblist .list .msg.unread { background: rgba(255, 255, 255, .7); }
body.glass .mblist .list .msg.sel { background: rgba(237, 28, 36, .13); }
body.glass .mblist input[type=search] { background: rgba(255, 255, 255, .7); border-radius: 8px; }
body.glass .mgrid { background: rgba(34, 31, 32, .16); border: 0; border-radius: 8px; box-shadow: none; }
body.glass .mday { background: rgba(255, 255, 255, .55); }
body.glass .mday.out { background: rgba(255, 255, 255, .22); }
body.glass .wday, body.glass .ymon { background: rgba(255, 255, 255, .55); border-color: rgba(34, 31, 32, .12); border-radius: 8px; }
body.glass .mbhint, body.glass .chatpane .chathead, body.glass .chatpane .chatbar { background: transparent; }
@media (prefers-color-scheme: dark) {
  body.glass { background:
    linear-gradient(165deg, #8c3b43 0%, #5a2a30 30%, #2a1417 62%, #0d0707 100%) fixed; }
  body.glass .mblist, body.glass .mbread, body.glass .mbside, body.glass .cal { background: rgba(34, 36, 39, .72); border-color: rgba(255, 255, 255, .14); }
  body.glass .mblist .list .msg.unread { background: rgba(255, 255, 255, .08); }
  body.glass .mblist .list .msg { border-bottom-color: rgba(255, 255, 255, .1); }
  body.glass .mblist input[type=search] { background: rgba(255, 255, 255, .1); }
  body.glass .mday { background: rgba(255, 255, 255, .06); }
  body.glass .mday.out { background: rgba(0, 0, 0, .2); }
  body.glass .wday, body.glass .ymon { background: rgba(255, 255, 255, .06); }
}

/* ---- köşeli kutular */
.callayers .layer { border-radius: 6px !important; }
.ev { border-radius: 4px; }
.mday .dn { border-radius: 8px; }
.calnav > button, .calviews, .calviews label, .calviews button { border-radius: 8px; }
.mblist .seg3, .mblist .seg3 button { border-radius: 8px; }
@media (min-width: 1100px) { .mbfold button { border-radius: 0 8px 8px 0; } .mbnew { border-radius: 12px; } }

/* ---- açılan pencereler: yarı saydam, önde duran cam */
dialog { background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1); border: 1px solid rgba(255, 255, 255, .6); border-radius: 12px; box-shadow: 0 26px 60px rgba(20, 5, 8, .5), 0 4px 10px rgba(20, 5, 8, .3); }
dialog::backdrop { background: rgba(40, 10, 14, .5); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
@media (prefers-color-scheme: dark) { dialog { background: rgba(34, 36, 39, .9); border-color: rgba(255, 255, 255, .14); } }
body.glass .mbfold { background: transparent; border: 0; padding: 0; box-shadow: none; }
body.glass #backslot, body.glass #backslot button, body.glass #backslot a { color: #fff; }

/* ---- Takvim türleri: tek rengin (marka kırmızısı) tonları, koyudan açığa: Toplantı > Faaliyet > Süreç adımı > Seçim > Anket (en açık: beyaza yakın) */
.cal .ev, .cal .callayers .layer.ev { background: color-mix(in srgb, var(--ec) 90%, transparent); color: #221f20; border: 0; border-left: 0; box-shadow: inset 0 0 0 1px rgba(110, 31, 39, .28); }
.cal .ev.t, .cal .ev.f { color: #fff; }
.cal .ev .meta, .cal .ev b { color: inherit; }
.cal .callayers .layer.ev[aria-pressed="true"] { font-weight: 700; box-shadow: inset 0 0 0 2px rgba(34, 31, 32, .55); }
.cal .callayers .layer.ev[aria-pressed="false"] { opacity: .45; }
.cal .mday .dots i, .cal .dots i { box-shadow: 0 0 0 1px rgba(110, 31, 39, .35); }

/* =====================================================================================================
   Önde duran cam (Mesajlar, Takvim, açılan ileti ve pencereler): yarı saydam yüzey, üstte ince ışık çizgisi, derin ve katmanlı gölge.
   ===================================================================================================== */
body.glass .mblist, body.glass .mbread, body.glass .mbside, body.glass .cal {
  box-shadow: 0 34px 70px rgba(20, 5, 8, .55), 0 12px 24px rgba(20, 5, 8, .34), 0 2px 5px rgba(20, 5, 8, .3), inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 0 0 1px rgba(255, 255, 255, .25);
  -webkit-backdrop-filter: blur(8px) saturate(1.2); backdrop-filter: blur(8px) saturate(1.2);
}
/* içerideki kutular: kendi başına duran, daha açık cam */
body.glass .mbread :is(.box, .note, .card, details.opts, .respbox), dialog :is(.box, .note, .card, details.opts, .respbox) {
  background: rgba(255, 255, 255, .45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 10px 22px rgba(20, 5, 8, .2), 0 2px 4px rgba(20, 5, 8, .14), inset 0 1px 0 rgba(255, 255, 255, .7);
  border-radius: 8px;
}
/* düğmeler: kabarık cam */
body.glass .mbread button:not(.primary):not(.linkbtn):not(.ghost), dialog button:not(.primary):not(.linkbtn):not(.ghost):not(.chatx):not(.chatsend):not(.dmplus) {
  background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .8); border-radius: 8px;
  box-shadow: 0 6px 14px rgba(20, 5, 8, .22), 0 1px 2px rgba(20, 5, 8, .18), inset 0 1px 0 #fff;
  transition: transform .12s ease, box-shadow .12s ease;
}
body.glass .mbread button:not(.primary):not(.linkbtn):not(.ghost):hover, dialog button:not(.primary):not(.linkbtn):not(.ghost):not(.chatx):not(.chatsend):not(.dmplus):hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(20, 5, 8, .28), 0 2px 4px rgba(20, 5, 8, .2), inset 0 1px 0 #fff; }
body.glass .mbread button.primary, dialog button.primary { box-shadow: 0 8px 18px rgba(196, 22, 28, .45), inset 0 1px 0 rgba(255, 255, 255, .35); }
/* açılan pencereler: daha şeffaf, daha yüksekte; açılırken hafifçe öne gelir */
dialog {
  background: rgba(255, 255, 255, .74);
  -webkit-backdrop-filter: blur(16px) saturate(1.25); backdrop-filter: blur(16px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 44px 100px rgba(20, 5, 8, .62), 0 14px 30px rgba(20, 5, 8, .38), 0 2px 6px rgba(20, 5, 8, .3), inset 0 1px 0 rgba(255, 255, 255, .85);
}
dialog::backdrop { background: rgba(40, 10, 14, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@keyframes onePlan { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
dialog[open] { animation: onePlan .2s ease-out; }
@media (prefers-reduced-motion: reduce) { dialog[open] { animation: none; } body.glass .mbread button, dialog button { transition: none; } }
@media (prefers-color-scheme: dark) {
  dialog { background: rgba(34, 36, 39, .78); border-color: rgba(255, 255, 255, .16); }
  body.glass .mbread :is(.box, .note, .card, details.opts, .respbox), dialog :is(.box, .note, .card, details.opts, .respbox) { background: rgba(255, 255, 255, .07); }
  body.glass .mbread button:not(.primary):not(.linkbtn):not(.ghost), dialog button:not(.primary):not(.linkbtn):not(.ghost):not(.chatx):not(.chatsend):not(.dmplus) { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); box-shadow: 0 6px 14px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .15); }
}

/* =====================================================================================================
   Sade palet: yalnızca kırmızı, siyah ve beyazın tonları. Mavi (varsayılan onay kutusu, bağlantı, bilgi etiketi) ve yeşil/turuncu durum renkleri kaldırıldı.
   İstisna: mesaj öncelik renkleri (prototype/public/oncelik.js).
   ===================================================================================================== */
:root { accent-color: #b9141b; --ok: #2b2829; --warn: #8a4a50; --bad: #c4161c; }
@media (prefers-color-scheme: dark) { :root { accent-color: #ff6b72; --ok: #e6e2e3; --warn: #d79a9f; --bad: #ff6b72; } }
input[type=checkbox], input[type=radio], input[type=range], progress { accent-color: #b9141b; }
@media (prefers-color-scheme: dark) { input[type=checkbox], input[type=radio], input[type=range], progress { accent-color: #ff6b72; } }
a { color: var(--red-d); }
a:visited { color: var(--red-d); }
.chip.info { color: var(--red-d); }
::selection { background: rgba(237, 28, 36, .25); }

/* ---- Takvim türleri: kırmızıdan siyaha, hepsi koyu; yazı beyaz (kontrast >= 6:1). Toplantı > Faaliyet > Süreç adımı > Seçim > Anket */
.cal .ev, .cal .ev.t, .cal .ev.f, .cal .ev.s, .cal .ev.e, .cal .ev.a, .cal .callayers .layer.ev { background: color-mix(in srgb, var(--ec) 94%, transparent); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.cal .callayers .layer.ev[aria-pressed="true"] { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85), 0 2px 6px rgba(20, 5, 8, .35); }
.cal .mday .dots i, .cal .dots i { box-shadow: 0 0 0 1px rgba(255, 255, 255, .6); }

/* ---- Takvim üst satır: türler solda; kısayollar (Toplantılar, Süreç takvimi) sağa hizalı ayrı kutuda */
.callayers { flex-wrap: wrap; align-items: stretch; gap: 8px 12px; }
.callayers .layerchips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.callayers .calshort { margin-left: auto; display: flex; gap: 6px; align-items: center; padding: 4px; border-radius: 8px; background: rgba(34, 31, 32, .1); box-shadow: inset 0 0 0 1px rgba(34, 31, 32, .14); }
.callayers .calshort button { background: rgba(255, 255, 255, .85); border: 0; border-radius: 6px; padding: 6px 12px; min-height: 36px; font-weight: 600; color: var(--red-d); text-decoration: none; box-shadow: 0 1px 3px rgba(20, 5, 8, .2); }
.callayers .calshort button:hover { background: #fff; }
@media (prefers-color-scheme: dark) { .callayers .calshort { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); } .callayers .calshort button { background: rgba(255, 255, 255, .12); color: #ff9aa0; } }

/* =====================================================================================================
   Takvim türleri (son hâl): cam kapsül + renkli işaret. Kırmızı, mercan, kömür, bordo ve kum altını.
   Süzgeç düğmeleri yarı saydam, bulanık cam; seçili olanda renkli alt çizgi ve hafif renk tonu, seçili olmayan soluk.
   Etkinlik çubukları: açık tonlu saydam zemin, solda renkli şerit, koyu yazı (kontrast >= 7:1).
   ===================================================================================================== */
/* Takvim tür paleti (tek tanım; mobil yl_tokens.dart ile aynı): t toplantı, f faaliyet, s süreç takvimi, e seçim, a anket; k/x/i/g/y/p aşağıda */
.cal { --et: #c4161c; --ef: #e8737b; --es: #5f6b78; --ee: #8a1c2b; --ea: #c9a45c; }
@media (prefers-color-scheme: dark) { .cal { --et: #ef4b52; --ef: #f29aa0; --es: #9aa5b3; --ee: #c2394a; --ea: #e0bd78; } }

.cal .ev, .cal .ev.t, .cal .ev.f, .cal .ev.s, .cal .ev.e, .cal .ev.a {
  background: color-mix(in srgb, var(--ec) 20%, rgba(255, 255, 255, .62));
  color: #221f20; border: 0; border-left: 3px solid var(--ec); border-radius: 4px;
  box-shadow: 0 1px 2px rgba(20, 5, 8, .14);
}
.cal .ev.done { opacity: .6; }

.cal .callayers { gap: 10px 14px; margin-bottom: 12px; }
.cal .callayers .layer.ev {
  display: inline-flex; align-items: center; gap: 9px; width: auto; min-height: 38px; padding: 7px 15px 7px 12px;
  border-radius: 10px; border: 1px solid rgba(255, 255, 255, .75); border-left: 1px solid rgba(255, 255, 255, .75);
  background: rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3);
  color: #221f20; font-size: 13.5px; font-weight: 600; letter-spacing: .1px; cursor: pointer; opacity: 1;
  box-shadow: 0 6px 16px rgba(20, 5, 8, .2), 0 1px 2px rgba(20, 5, 8, .16), inset 0 1px 0 rgba(255, 255, 255, .9);
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}
.cal .callayers .layer.ev::before {
  content: ''; flex: none; width: 11px; height: 11px; border-radius: 4px; background: var(--ec);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 0 10px color-mix(in srgb, var(--ec) 75%, transparent);
  transition: background .14s ease, box-shadow .14s ease;
}
.cal .callayers .layer.ev:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(20, 5, 8, .26), 0 2px 4px rgba(20, 5, 8, .18), inset 0 1px 0 #fff; }
.cal .callayers .layer.ev[aria-pressed="true"] {
  background: color-mix(in srgb, var(--ec) 14%, rgba(255, 255, 255, .72));
  border-color: color-mix(in srgb, var(--ec) 40%, rgba(255, 255, 255, .8));
  box-shadow: 0 8px 18px rgba(20, 5, 8, .22), inset 0 -3px 0 var(--ec), inset 0 1px 0 rgba(255, 255, 255, .95);
}
.cal .callayers .layer.ev[aria-pressed="false"] { opacity: .62; background: rgba(255, 255, 255, .3); box-shadow: 0 2px 6px rgba(20, 5, 8, .12), inset 0 1px 0 rgba(255, 255, 255, .6); }
.cal .callayers .layer.ev[aria-pressed="false"]::before { background: transparent; box-shadow: inset 0 0 0 2px var(--ec); }
.cal .mday .dots i, .cal .dots i { box-shadow: 0 0 0 1px rgba(255, 255, 255, .8); }
@media (prefers-color-scheme: dark) {
  .cal .ev, .cal .ev.t, .cal .ev.f, .cal .ev.s, .cal .ev.e, .cal .ev.a { background: color-mix(in srgb, var(--ec) 30%, rgba(34, 36, 39, .7)); color: #f4f1f1; }
  .cal .callayers .layer.ev { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #f4f1f1; box-shadow: 0 6px 16px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .15); }
  .cal .callayers .layer.ev[aria-pressed="true"] { background: color-mix(in srgb, var(--ec) 24%, rgba(34, 36, 39, .7)); box-shadow: 0 8px 18px rgba(0, 0, 0, .45), inset 0 -3px 0 var(--ec), inset 0 1px 0 rgba(255, 255, 255, .18); }
  .cal .callayers .layer.ev[aria-pressed="false"] { background: rgba(255, 255, 255, .05); }
}
@media (prefers-reduced-motion: reduce) { .cal .callayers .layer.ev { transition: none; } }

/* =====================================================================================================
   Gmail tarzı şeffaflık (Mesajlar ve Takvim): zemin açılıp panel yarı saydam; arkadaki desen satırların arasından belirgin görünür.
   Okunurluk için yazı koyu kalır; paneller çok az bulanıklaştırılır.
   ===================================================================================================== */
body.glass {
  background:
    linear-gradient(165deg, #f2b3b7 0%, #dd858d 26%, #b45c66 56%, #6a323a 84%, #3b1b20 100%) fixed;
}
body.glass .mblist, body.glass .mbread, body.glass .mbside, body.glass .cal {
  background: rgba(255, 255, 255, .42);
  -webkit-backdrop-filter: blur(2px) saturate(1.3); backdrop-filter: blur(2px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .75);
}
body.glass .mblist .list .msg { background: rgba(34, 31, 32, .07); border-bottom-color: rgba(255, 255, 255, .6); }
body.glass .mblist .list .msg.unread { background: rgba(255, 255, 255, .5); }
body.glass .mblist .list .msg.sel { background: rgba(237, 28, 36, .16); }
body.glass .mblist input[type=search] { background: rgba(255, 255, 255, .55); }
body.glass .mday { background: rgba(255, 255, 255, .3); }
body.glass .mday.out { background: rgba(34, 31, 32, .1); }
body.glass .wday, body.glass .ymon { background: rgba(255, 255, 255, .34); }
body.glass .mgrid { background: rgba(255, 255, 255, .5); }
body.glass .meta, body.glass .mblist .msg .msender { color: #4a4547; }
body.glass .mblist .msg.unread .msender { color: #221f20; }

/* ---- Başlık: kırmızıdan koyuya gradyan (mobil ile aynı), beyaz YENİ PARTİ ve kırmızı zemin sürümlü YeniLİNK logosu */
.top { background: linear-gradient(100deg, #c8161d 0%, #c0151c 58%, #7a0f16 100%) !important; color: #fff; border-bottom: 0 !important; box-shadow: 0 6px 18px rgba(20, 5, 8, .35); }
.top::before { background: rgba(0, 0, 0, .3); }
.top .demo, .top .demo label { color: #fff; }
.top > #profileBtn, .top > .avatar { background: rgba(255, 255, 255, .92); color: #221f20; box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }
.top .tag { color: #fff; }

/* =====================================================================================================
   Mesajlar ve Takvim: koyu zemin üstünde yüzen cam paneller. Zemin koyulaştı; paneller biraz daha dolu, kenarı ışıklı, altlarında derin ve katmanlı gölge.
   ===================================================================================================== */
body.glass {
  background:
    linear-gradient(165deg, #9c2f39 0%, #6f2630 30%, #3e1a21 62%, #170b0e 100%) fixed;
}
body.glass .mblist, body.glass .mbread, body.glass .mbside, body.glass .cal {
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow:
    0 46px 90px rgba(0, 0, 0, .7), 0 20px 36px rgba(0, 0, 0, .5), 0 4px 10px rgba(0, 0, 0, .45),
    inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(255, 255, 255, .35);
}
body.glass .mblist .list .msg { background: rgba(34, 31, 32, .09); }
body.glass .mblist .list .msg.unread { background: rgba(255, 255, 255, .58); }
body.glass .mday { background: rgba(255, 255, 255, .36); }
body.glass .wday, body.glass .ymon { background: rgba(255, 255, 255, .4); }
body.glass .mgrid { background: rgba(255, 255, 255, .56); }
body.glass #backslot, body.glass #backslot button, body.glass #backslot a { text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }

/* ---- Zemin bir tık açıldı (önceki açık ve koyu sürümlerin arası); gölge güçlü kalır */
body.glass { background:
    linear-gradient(165deg, #cc5963 0%, #a5434d 30%, #78303a 62%, #4a2026 100%) fixed; }
body.glass .mblist, body.glass .mbread, body.glass .mbside, body.glass .cal {
  background: rgba(255, 255, 255, .46);
  box-shadow: 0 40px 80px rgba(20, 5, 8, .6), 0 16px 30px rgba(20, 5, 8, .42), 0 3px 8px rgba(20, 5, 8, .38), inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(255, 255, 255, .35);
}

/* ---- Duru beyaz cam: paneller şeffaf BEYAZ (pembeye kaymaz): daha beyaz dolgu, doygunluk düşük, hafif parlaklık; zeminle arası gölgeyle ayrılır */
body.glass .mblist, body.glass .mbread, body.glass .mbside, body.glass .cal {
  background: rgba(255, 255, 255, .68);
  -webkit-backdrop-filter: blur(10px) saturate(.8) brightness(1.1); backdrop-filter: blur(10px) saturate(.8) brightness(1.1);
  border: 1px solid rgba(255, 255, 255, .92);
}
body.glass .mblist .list .msg { background: rgba(255, 255, 255, .0); border-bottom-color: rgba(34, 31, 32, .1); }
body.glass .mblist .list .msg.unread { background: rgba(255, 255, 255, .6); }
body.glass .mblist .list .msg.sel { background: rgba(237, 28, 36, .1); }
body.glass .mblist input[type=search] { background: rgba(255, 255, 255, .8); }
body.glass .mday { background: rgba(255, 255, 255, .45); }
body.glass .mday.out { background: rgba(34, 31, 32, .06); }
body.glass .wday, body.glass .ymon { background: rgba(255, 255, 255, .5); }
body.glass .mgrid { background: rgba(34, 31, 32, .14); }
body.glass .mbread :is(.box, .note, .card, details.opts, .respbox), dialog :is(.box, .note, .card, details.opts, .respbox) { background: rgba(255, 255, 255, .6); }

/* ---- Zemin deseni logoyla uyumlu: her halka çiftinde biri beyaz, biri kömür grisi (#413c3e) */
body.glass { background:
    linear-gradient(165deg, #cc5963 0%, #a5434d 30%, #78303a 62%, #4a2026 100%) fixed; }

/* =====================================================================================================
   Gerçek ekran görünümü: paneller bir ekran camı gibi. Dış çizgi hafif neon (kırmızı-pembe parıltı), üstte cam yansıması, kenarda içe doğru ince ışık.
   İç alanlar (günler, satırlar) biraz daha şeffaf: zemin ve halka deseni içlerinden seçilir.
   ===================================================================================================== */
body.glass .mblist, body.glass .mbread, body.glass .mbside, body.glass .cal {
  background: linear-gradient(180deg, rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, 0) 36%), rgba(255, 255, 255, .6);
  border: 1px solid rgba(255, 150, 160, .95);
  box-shadow:
    0 0 0 1px rgba(255, 70, 85, .45),
    0 0 14px rgba(255, 60, 78, .55), 0 0 38px rgba(237, 28, 36, .32),
    0 40px 80px rgba(20, 5, 8, .6), 0 16px 30px rgba(20, 5, 8, .42), 0 3px 8px rgba(20, 5, 8, .38),
    inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 36px rgba(255, 255, 255, .28), inset 0 0 0 1px rgba(255, 255, 255, .4);
}
body.glass .mgrid { background: rgba(255, 255, 255, .4); border: 1px solid rgba(255, 90, 105, .6); box-shadow: 0 0 12px rgba(255, 60, 78, .3); }
body.glass .mday { background: rgba(255, 255, 255, .16); }
body.glass .mday.out { background: rgba(34, 31, 32, .05); }
body.glass .mday:hover { background: rgba(255, 255, 255, .34); }
body.glass .wday, body.glass .ymon { background: rgba(255, 255, 255, .2); border-color: rgba(255, 90, 105, .45); }
body.glass .mblist .list .msg { background: rgba(255, 255, 255, 0); border-bottom-color: rgba(255, 255, 255, .55); }
body.glass .mblist .list .msg.unread { background: rgba(255, 255, 255, .34); }
body.glass .mblist input[type=search] { background: rgba(255, 255, 255, .5); box-shadow: inset 0 0 0 1px rgba(255, 150, 160, .55); }
body.glass .mbread :is(.box, .note, .card, details.opts, .respbox) { background: rgba(255, 255, 255, .34); box-shadow: 0 10px 22px rgba(20, 5, 8, .2), inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 0 0 1px rgba(255, 150, 160, .4); }
@media (prefers-color-scheme: dark) {
  body.glass .mblist, body.glass .mbread, body.glass .mbside, body.glass .cal { background: linear-gradient(180deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, 0) 36%), rgba(34, 36, 39, .7); border-color: rgba(255, 120, 130, .85); }
}

/* ---- Tür düğmeleri: hepsi beyaz; yalnızca soldaki nokta türün rengini taşır. Açık: parlak beyaz + gölge; kapalı: soluk beyaz, içi boş nokta */
.cal .callayers .layer.ev, .cal .callayers .layer.ev[aria-pressed="true"] {
  background: rgba(255, 255, 255, .94); border-color: rgba(255, 255, 255, .98); color: #221f20;
  box-shadow: 0 6px 16px rgba(20, 5, 8, .22), 0 1px 2px rgba(20, 5, 8, .16), inset 0 1px 0 #fff;
}
.cal .callayers .layer.ev[aria-pressed="false"] { background: rgba(255, 255, 255, .42); box-shadow: 0 2px 6px rgba(20, 5, 8, .12), inset 0 1px 0 rgba(255, 255, 255, .7); opacity: .75; }
.cal .callayers .layer.ev:hover { background: #fff; }
@media (prefers-color-scheme: dark) {
  .cal .callayers .layer.ev, .cal .callayers .layer.ev[aria-pressed="true"] { background: rgba(255, 255, 255, .94); color: #221f20; }
  .cal .callayers .layer.ev[aria-pressed="false"] { background: rgba(255, 255, 255, .4); }
}

/* ---- Tüm yazılar normal kalınlıkta: başlık, düğme, etiket, sekme; hiçbir yerde kalın yazı yok (hiyerarşi boyut, renk ve boşlukla) */
html *, html *::before, html *::after { font-weight: 400 !important; }

/* ---- Demo çubuğu (kırmızı başlıkta): etiket beyaz; seçici, alanlar ve düğmelerde koyu yazı (beyaz zeminde okunur); "Sıfırla" hayalet düğmesi beyaz çerçeveli */
.top .demo select, .top .demo input, .top .demo button { color: #221f20; }
.top .demo select, .top .demo input { background: #fff; border-color: rgba(255, 255, 255, .9); }
.top .demo button { background: rgba(255, 255, 255, .92); border-color: rgba(255, 255, 255, .9); }
.top .demo button.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.top .demo #clock { color: #fff; }

/* ---- İletişim bağlantıları: tıklanınca arar (tel:) ya da e-posta açar (mailto:); bağlantı olduğu belli olsun */
.contact a.clink { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; color: var(--red-d); background: rgba(237, 28, 36, .08); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 13px; }
.contact a.clink:hover, .contact a.clink:focus-visible { background: rgba(237, 28, 36, .18); }
.contact a.clink::before { content: ''; flex: none; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.contact a.clink[href^="tel:"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E"); }
.contact a.clink[href^="mailto:"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4-8 5-8-5V6l8 5 8-5z'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { .contact a.clink { color: #ff9aa0; background: rgba(255, 154, 160, .12); } }

/* ---- Yeni mesaj formu: Mesajlar kutusuyla aynı cam görünüm (yapı değişmedi) */
body.glass .composecard {
  background: linear-gradient(180deg, rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, 0) 36%), rgba(255, 255, 255, .66);
  -webkit-backdrop-filter: blur(10px) saturate(.8) brightness(1.1); backdrop-filter: blur(10px) saturate(.8) brightness(1.1);
  border: 1px solid rgba(255, 150, 160, .95); border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255, 70, 85, .45), 0 0 14px rgba(255, 60, 78, .55), 0 0 38px rgba(237, 28, 36, .32), 0 40px 80px rgba(20, 5, 8, .6), 0 16px 30px rgba(20, 5, 8, .42), inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 36px rgba(255, 255, 255, .28);
}
body.glass #view > h2 { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
body.glass .composecard :is(select, input[type=text], input[type=search], input[type=datetime-local], textarea) { background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 150, 160, .55); border-radius: 8px; color: #221f20; }
body.glass .composecard .checks label { background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 150, 160, .75); color: #221f20; border-radius: 8px; }
body.glass .composecard .checks label:has(input:checked) { background: rgba(255, 255, 255, .95); border-color: rgba(237, 28, 36, .8); }
body.glass .composecard .checks.prisel label:has(input:checked) { background: var(--c); border-color: var(--c); color: var(--t); }
body.glass .composecard .seg { background: rgba(34, 31, 32, .1); border-radius: 8px; }
body.glass .composecard .seg label { border-radius: 6px; }
body.glass .composecard .note { background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(255, 150, 160, .45); }
body.glass .composecard details.opts { background: rgba(255, 255, 255, .4); }

/* ---- Takvim kısayolları (Toplantılar, Süreç takvimi): koyu düğme, beyaz yazı */
.callayers .calshort button { background: linear-gradient(180deg, #3a3537, #221f20); color: #fff; border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 4px 12px rgba(20, 5, 8, .35), inset 0 1px 0 rgba(255, 255, 255, .16); }
.callayers .calshort button:hover, .callayers .calshort button:focus-visible { background: linear-gradient(180deg, #4a4345, #2b2829); color: #fff; }

/* ---- Tamamlanan adımlar üstü çizili değil; yanlarında tik işareti var, satır biraz soluk */
.step.done { text-decoration: none; opacity: .72; }
.ev.done, .cal .ev.done { text-decoration: none; opacity: .72; }
.tik { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vertical-align: -2px; flex: none; }
.chip .tik { margin-right: 2px; }
.ev .evt .tik { margin-right: 4px; }

/* ---- Seçim ekibi: çalışmaya özel geçici hiyerarşi ağacı */
.ekip { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.ekip .en { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border: 1px solid var(--line, #e2dfe0); border-radius: 8px; background: #fff; }
.ekip .en.destek { border-style: dashed; }
.ekip .en.mine { border-color: #c4161c; box-shadow: 0 0 0 1px #c4161c33; }
.ekip .eb { color: #c4161c; flex: none; width: 14px; text-align: center; }
.ekip .et { flex: 1; min-width: 0; display: grid; gap: 2px; }

/* ---- Ekipler rehberi */
.ekfilt { display: grid; gap: 8px; }
.ekcard { display: grid; gap: 6px; }
.ekcoord, .ekp { display: inline-flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.ekc { display: inline-flex; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.ektree .et .ekp { display: flex; }

/* ---- Ekipler (Örgüt rehberi içinde): süzgeç, grup başlıkları, hiyerarşi */
.tkgroup { margin: 10px 4px 4px; font-size: 12px; letter-spacing: .02em; text-transform: uppercase; opacity: .75; }
.ekfilt { display: grid; gap: 8px; margin-bottom: 8px; }
.ekfilt .grid { grid-template-columns: 1fr 1fr; gap: 6px; }
.ekfilt .ekkur { width: 100%; padding: 10px 14px; font-weight: 600; }
.ekfilt .ekkur:disabled { opacity: .5; cursor: not-allowed; }
.ekfilt .ekkur + .meta { margin: -2px 2px 0; font-size: 12px; }
.ekfilt .seg { display: flex; flex-wrap: wrap; }
.ekfilt .seg label { flex: 1; text-align: center; padding: 6px 10px; }
.tkmaster .tkgroup { display: flex; align-items: center; gap: 6px; margin: 14px 4px 6px; padding-bottom: 6px; border-bottom: 2px solid #c4161c; font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 14px; opacity: 1; }
.tkmaster .tkgroup:first-child { margin-top: 4px; }
.tkempty { margin: 4px 6px 8px; }
dialog.ekdlg { width: min(520px, calc(100vw - 32px)); }
dialog.ekdlg .seg { display: flex; margin-bottom: 8px; }
dialog.ekdlg .seg label { flex: 1; text-align: center; }
dialog.ekdlg .grid { grid-template-columns: 1fr 1fr; gap: 8px; }
.ekip .en .et { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ekip .en .mrow { padding: 4px 0 0; border: 0; }

/* ---- Eğitim: gömülü oynatıcı (16:9) */
.evid { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.evid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- Etkinlik: YENİ PARTİ RESMÎ YAYIN çerçevesi */
.evresmi { border-radius: 12px; overflow: hidden; border: 1px solid #c4161c; background: #fff; box-shadow: 0 2px 10px rgba(196, 22, 28, .18); }
.evbar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: #fff; background: linear-gradient(90deg, #8f0e13, #d1181f 55%, #3a3436); letter-spacing: .04em; font-size: 13px; }
.evbar img { height: 22px; width: auto; }
.evbar span { flex: 1; }
.evlive { font-style: normal; background: #fff; color: #c4161c; border-radius: 4px; padding: 1px 7px; font-size: 11px; animation: evpulse 1.4s ease-in-out infinite; }
@keyframes evpulse { 50% { opacity: .45; } }
.evbody { padding: 12px; }
.evbody .evid { border-radius: 8px; }
.evfoot { padding: 6px 12px 9px; font-size: 12px; opacity: .7; border-top: 1px solid #eee; }

/* ---- Analizler: toplu özetler */
.ansec { display: grid; gap: 8px; }
.anscn { margin: 0; font-size: 13px; }
.antiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.antile { display: grid; gap: 2px; padding: 10px; border: 1px solid var(--line, #e2dfe0); border-radius: 10px; background: #fff; }
.antile b { font-size: 22px; font-weight: 400; color: #c4161c; }
.antiles.small .antile b { font-size: 18px; }
.anrow { display: grid; grid-template-columns: minmax(0, 1fr) auto 120px 44px; gap: 8px; align-items: center; padding: 3px 0; }
.anrow .antitle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anrow b { font-weight: 400; text-align: right; }
.anbar { display: block; height: 8px; border-radius: 4px; background: #ece9ea; overflow: hidden; }
.anbar i { display: block; height: 100%; background: linear-gradient(90deg, #c4161c, #8f0e13); }
.anbar.lo i { background: #6a6466; }
.anstack { display: flex; height: 24px; border-radius: 6px; overflow: hidden; }
.anstack i { display: grid; place-items: center; color: #fff; font-style: normal; font-size: 12px; min-width: 0; }
.hi { background: #c4161c; } .mid { background: #d98a8d; } .lo { background: #6a6466; }
.anleg { display: flex; flex-wrap: wrap; gap: 12px; }
.anleg i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; }
.anev { padding: 10px 0; border-top: 1px solid var(--line, #e2dfe0); display: grid; gap: 6px; }
.anrapor { padding: 8px 10px; border-radius: 8px; background: #faf6f6; }
.anrapor p { margin: 4px 0 0; }
@media (max-width: 560px) { .anrow { grid-template-columns: minmax(0, 1fr) 70px 40px; } .anrow > .meta { display: none; } }

/* ---- Analizler: tıklanabilir sayılar ve kişi listesi */
button.antile.btn { text-align: left; cursor: pointer; font: inherit; }
button.antile.btn:hover, button.antile.btn:focus-visible { border-color: #c4161c; box-shadow: 0 0 0 1px #c4161c33; }
.anlist { max-height: 46vh; overflow-y: auto; overflow-x: hidden; }

/* ---- Ekran bildirimi (anlık bildirim) */
#pushbox { position: fixed; top: 78px; right: 14px; z-index: 2000; display: grid; gap: 8px; width: min(360px, calc(100vw - 28px)); pointer-events: none; }
.push { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: #fff; background: linear-gradient(90deg, #8f0e13, #c4161c 70%, #3a3436); box-shadow: 0 6px 22px rgba(0, 0, 0, .28); animation: pushin .25s ease-out; }
.push .pbody { flex: 1; min-width: 0; display: grid; gap: 1px; }
.push .pbody b { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.push .pbody small { opacity: .8; }
.push button { color: #fff; background: rgba(255, 255, 255, .18); border: 0; border-radius: 8px; padding: 4px 10px; cursor: pointer; font: inherit; }
.push .px { background: transparent; padding: 4px 6px; }
@keyframes pushin { from { transform: translateY(-8px); opacity: 0; } }

/* Gönderme yetkisi olmayan görev seçiliyse form kapanır: yalnızca görev seçimi ve uyarı kalır */
.composecard.noauth > :not(.keep) { display: none !important; }

/* Bekleyen: ileti ne bekliyor (onay / teyit) */
.waitkind { margin: 0 0 10px; }
.waitkind.info { background: color-mix(in srgb, #2b6cb0 10%, transparent); border-color: #2b6cb0; }

/* Ön inceleme görevlisi */
.vkrev { margin: 8px 0; }
.vkform { margin-top: 8px; }
.vkpanel { margin-bottom: 12px; }

.quick .quicklink { display: flex; flex-direction: column; text-decoration: none; text-align: left; min-height: 56px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }

/* Demo: 15 günlük üyelik aktivasyonu (giriş ekranı) */
.aktlist { display: grid; gap: 6px; margin: 8px 0; }
.aktrow { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.aktact { display: grid; gap: 6px; justify-items: end; }
.aktbtns { display: flex; gap: 8px; flex-wrap: wrap; }

/* Giriş: sözleşme ve KVKK onayı */
.consent { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 6px 0; font-size: 14px; cursor: pointer; }
.consent input { margin-top: 3px; width: 20px; height: 20px; flex: none; }
.consent a { color: var(--red-d); text-decoration: underline; }

/* ---- Mesajlar: Gmail'e yakın düzen (uygulama renkleriyle): geniş arama, Yeni mesaj hapı, simgeli klasörler, araç çubuğu, sekmeler, tek satırlık liste, tam genişlikte okuma */
.mbtop { display: flex; justify-content: center; margin: 0 0 12px; }
.mbtop[hidden] { display: none; }
.mbsearch { position: relative; width: min(760px, 100%); }
.mbsearch .ico { position: absolute; left: 18px; top: 12px; width: 24px; height: 24px; color: var(--mute); }
.mbsearch input { width: 100%; box-sizing: border-box; min-height: 48px; padding: 0 20px 0 54px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); font: inherit; font-size: 16px; box-shadow: 0 1px 3px rgba(0, 0, 0, .16); }
.mbsearch input:focus { outline: 2px solid var(--red); outline-offset: 1px; background: #fff; }
@media (prefers-color-scheme: dark) { .mbsearch input { background: rgba(34, 36, 39, .92); } .mbsearch input:focus { background: #222427; } }
.mbnew { display: inline-flex; align-items: center; gap: 14px; align-self: flex-start; min-height: 56px; padding: 0 24px 0 18px; border: 0; border-radius: 16px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .25), 0 2px 8px rgba(196, 22, 28, .18); }
.mbnew:hover { background: var(--wash); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.mbnew .ico { width: 24px; height: 24px; color: var(--red-d); }
.mbfold button { gap: 16px; }
.mbfold button .ico { width: 20px; height: 20px; flex: none; }
.mbfold button .fl { flex: 1; text-align: left; }
.gtool { display: flex; align-items: center; gap: 2px; min-height: 52px; padding: 0 8px 0 12px; border-bottom: 1px solid var(--line); }
.gsp { flex: 1; }
.grange { margin-right: 8px; font-size: 12.5px; color: var(--mute); white-space: nowrap; }
.gib { display: inline-grid; place-items: center; width: 40px; height: 40px; min-height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--mute); }
.gib:hover:not(:disabled) { background: var(--soft); color: var(--ink); }
.gib:disabled { opacity: .35; }
.gib .ico { width: 20px; height: 20px; }
.gtabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); }
.gtab { flex: 0 0 auto; display: flex; align-items: center; gap: 16px; min-height: 68px; padding: 8px 28px 8px 20px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; text-align: left; color: var(--mute); }
.gtab .ico { width: 20px; height: 20px; flex: none; }
.gtab:hover { background: var(--soft); }
.gtab[aria-selected="true"] { color: var(--red-d); border-bottom-color: var(--red); }
.gtl { display: grid; gap: 2px; min-width: 0; }
.gtab { color: var(--ink); }
.gtl { gap: 4px; }
.gtn { display: flex; align-items: center; gap: 8px; font-size: 14px; white-space: nowrap; }
.gtl small { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: color-mix(in srgb, var(--ink) 72%, transparent); padding-top: 3px; border-top: 1px solid var(--line); }
.gtab[aria-selected="true"] { color: var(--red-d); }
.gbadge { padding: 1px 8px; border-radius: 4px; background: var(--red); color: #fff; font-size: 11.5px; font-style: normal; font-weight: 700; }
.gbadge.hot { background: var(--ink); color: var(--card); }
.ghelp { padding: 8px 16px; }
.composecard .ksave { margin-top: 10px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; }
.composecard .ksave .row input { flex: 1; min-width: 0; }
.composecard .ksave .row button { flex: none; }
.mbfold .cnt.soft { background: var(--soft); color: var(--ink); }   /* taslak sayısı: uyarı değil */
/* Sekmeler arasında çok ince ayırıcı çizgi */
.gtab + .gtab { box-shadow: inset 1px 0 0 color-mix(in srgb, var(--line) 70%, transparent); }
/* Liste üstündeki sütun adları: satırlarla aynı ızgara */
.ghead { display: grid; grid-template-columns: 10px 200px minmax(0, 1fr) 210px 84px; gap: 14px; padding: 8px 16px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: .03em; }
.ghead span:nth-child(4), .ghead span:last-child { text-align: right; }
@media (max-width: 1099px) { .ghead { display: none; } }
.mblist .list .msg.grow, body.glass .mblist .list .msg.grow { display: grid; grid-template-columns: 10px 200px minmax(0, 1fr) 210px 84px; align-items: center; gap: 14px; width: 100%; min-height: 48px; margin: 0; padding: 0 16px; border: 0; border-bottom: 1px solid rgba(34, 31, 32, .1); border-radius: 0; background: rgba(244, 244, 245, .88); color: var(--ink); font-size: 14px; text-align: left; box-shadow: none !important; }
.mblist .list .msg.grow.unread, body.glass .mblist .list .msg.grow.unread { background: #fff; }
.mblist .list .msg.grow.sel, body.glass .mblist .list .msg.grow.sel { background: var(--wash); }
.msg.grow .gdot { width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.msg.grow.unread .gdot { background: var(--red); }
.msg.grow .gs, .msg.grow .gm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.msg.grow .gt { font-weight: 400; }
.msg.grow .gn { color: var(--mute); }
.msg.grow.unread .gs, .msg.grow.unread .gt, .msg.grow.unread .gd { font-weight: 700; }
.msg.grow .gtg { display: flex; align-items: center; justify-content: flex-end; gap: 6px; white-space: nowrap; overflow: hidden; }
.msg.grow .gd { text-align: right; font-size: 12px; color: var(--mute); }
.msg.grow.unread .gd { color: var(--ink); }
.mblist .list .msg.grow:hover { position: relative; z-index: 1; box-shadow: inset 1px 0 0 #dadce0, inset -1px 0 0 #dadce0, 0 1px 2px 0 rgba(60, 64, 67, .3), 0 1px 3px 1px rgba(60, 64, 67, .15) !important; }
.gback { display: flex; align-items: center; gap: 6px; margin: -8px 0 8px -8px; }
@media (min-width: 1100px) {
  main.mailwide { max-width: 1500px; }
  .mb { grid-template-columns: 240px minmax(0, 1fr) !important; gap: 12px; }
  .mb .mbread { display: none; position: static; max-height: none; }
  .mb.reading .mblist { display: none; }
  .mb.reading .mbread { display: block; min-height: 420px; }
}
@media (max-width: 1099px) {
  .mblist .list .msg.grow, body.glass .mblist .list .msg.grow { grid-template-columns: 10px minmax(0, 1fr) auto; row-gap: 2px; padding: 10px 14px; }
  .msg.grow .gdot { grid-row: 1 / span 3; align-self: start; margin-top: 6px; }
  .msg.grow .gs { grid-column: 2; }
  .msg.grow .gd { grid-column: 3; grid-row: 1; }
  .msg.grow .gm { grid-column: 2 / -1; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .msg.grow .gtg { grid-column: 2 / -1; flex-wrap: wrap; justify-content: flex-start; }
  .gtab { padding: 8px 16px 8px 14px; gap: 10px; }
}

/* ---- Takvim: Google Takvim'e yakın düzen; ay görünümünde sağda önceki / bu ay / sonraki ay küçük takvimleri (yukarıdan aşağı) */
.mwrap { display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: 16px; align-items: start; }
.mrail { display: flex; flex-direction: column; gap: 12px; }
.rmon { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px 12px; }
.rmon.cur { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.rmt { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; width: 100%; min-height: 36px; padding: 0 4px; border: 0; background: transparent; color: var(--ink); font-size: 14px; font-weight: 600; text-align: left; }
.rmt small { font-size: 11px; font-weight: 400; color: var(--mute); }
.rmt:hover { color: var(--red-d); }
.rmon .yc { min-height: 30px; border-radius: 50%; }
.rmon .yc.selday { background: var(--wash); color: var(--red-d); font-weight: 700; }
.rmon .yc.today { outline: 0; background: var(--red); color: #fff; font-weight: 700; }
body.glass .rmon { background: rgba(255, 255, 255, .76); border-color: rgba(255, 255, 255, .6); backdrop-filter: blur(5px); }
@media (prefers-color-scheme: dark) { body.glass .rmon { background: rgba(34, 36, 39, .72); border-color: rgba(255, 255, 255, .14); } }
@media (max-width: 899px) { .mwrap { grid-template-columns: 1fr; } .mrail { flex-direction: row; overflow-x: auto; } .rmon { flex: 0 0 240px; } }
.calnav #ctoday { min-height: 40px; padding: 0 18px; border-radius: 999px; background: transparent; border: 1px solid var(--line); font-weight: 600; }
.calnav #cprev, .calnav #cnext { width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%; border: 0; background: transparent; display: inline-grid; place-items: center; }
.calnav #cprev:hover, .calnav #cnext:hover { background: var(--soft); }
.caltitle { font-size: 22px; font-weight: 400; margin: 0 0 0 8px; }
.consent.miss { outline: 2px solid var(--bad); outline-offset: 2px; border-radius: 8px; }

/* ---- Takvim: belirgin ay ızgarası ve kişisel kayıt renkleri */
.cal { --ek: #2b2829; --ex: #6f6f75; --ei: #0f7b6c; }
@media (prefers-color-scheme: dark) { .cal { --ek: #d9d9de; --ex: #a8a8ae; --ei: #4fc3ae; } }
.ev.i { --ec: var(--ei); } .dots i.i, .evdot.i { background: var(--ei); } .lbox.i { --ec: var(--ei); }   /* teyit ettiğim iletiler */
.ev.k { --ec: var(--ek); } .ev.x { --ec: var(--ex); }
.dots i.k, .evdot.k { background: var(--ek); } .dots i.x, .evdot.x { background: var(--ex); }
.cal .mgrid, body.glass .cal .mgrid { gap: 1px; background: #868a92; border: 1px solid #868a92; border-radius: 12px; box-shadow: 0 1px 4px rgba(0, 0, 0, .22); }
.cal .mwd { padding: 8px 0; background: #dfe1e6; color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .3px; text-align: center; }
.cal .mday, body.glass .cal .mday { min-height: 118px; background: #fff; }
.cal .mday:hover { background: color-mix(in srgb, var(--red) 5%, #fff); }
.cal .mday.out, body.glass .cal .mday.out { background: #eceef1; opacity: 1; }
.cal .mday.out .dn { color: var(--mute); font-weight: 500; }
.cal .mday .dn { font-size: 14px; font-weight: 700; }
.cal .mday.today, body.glass .cal .mday.today { background: color-mix(in srgb, var(--red) 9%, #fff); box-shadow: inset 0 0 0 2px var(--red); }
@media (prefers-color-scheme: dark) {
  .cal .mgrid, body.glass .cal .mgrid { background: #5a5d63; border-color: #5a5d63; }
  .cal .mwd { background: #2c2e32; }
  .cal .mday, body.glass .cal .mday { background: #222427; }
  .cal .mday:hover { background: #2a2c30; }
  .cal .mday.out, body.glass .cal .mday.out { background: #1a1b1d; }
  .cal .mday.today, body.glass .cal .mday.today { background: color-mix(in srgb, var(--red) 16%, #222427); }
}
@media (max-width: 720px) { .cal .mday, body.glass .cal .mday { min-height: 56px; } }

/* ---- Takvim: Google Takvim düzeni (uygulama renkleriyle). Tek fark: ay görünümünde sağda önceki / bu ay / sonraki ay (yukarıdan aşağı) */
.cal.gcal, body.glass .cal.gcal { padding: 0; background: transparent; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.calshell { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 12px; align-items: start; }
.calshell.withrail { grid-template-columns: 240px minmax(0, 1fr) 264px; }
.calside, .calmain { background: rgba(255, 255, 255, .97); border-radius: 16px; box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.calside { display: flex; flex-direction: column; gap: 10px; padding: 16px 12px; }
.calnew { align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 22px 0 16px; border: 0; border-radius: 16px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .28), 0 2px 8px rgba(196, 22, 28, .18); }
.calnew:hover { background: var(--wash); }
.calnew .ico { width: 24px; height: 24px; color: var(--red-d); }
.calh { margin: 8px 4px 0; font-size: 14px; font-weight: 600; }
.lrows { display: flex; flex-direction: column; }
.lrow { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 40px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: 14px; text-align: left; }
.lrow:hover { background: var(--soft); }
.lbox { --ec: var(--ef); flex: none; display: inline-block; width: 18px; height: 18px; border: 2px solid var(--ec); border-radius: 4px; background: transparent; }
.lbox.t { --ec: var(--et); } .lbox.f { --ec: var(--ef); } .lbox.s { --ec: var(--es); } .lbox.e { --ec: var(--ee); } .lbox.a { --ec: var(--ea); } .lbox.k { --ec: var(--ek); } .lbox.x { --ec: var(--ex); }
.lrow[aria-pressed="true"] .lbox { background: var(--ec) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.calmain { padding: 8px 16px 16px; min-width: 0; }
.caltop { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 0 0 8px; }
.calnav { display: flex; align-items: center; gap: 4px; }
.calnav #ctoday { min-height: 40px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-weight: 600; }
.caltitle { margin: 0 0 0 10px; font-size: 22px; font-weight: 400; }
.calview select { min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-weight: 500; }
.cal .mgrid, body.glass .cal .mgrid { gap: 0; background: transparent; border: 0; border-top: 1px solid #dadce0; border-left: 1px solid #dadce0; border-radius: 0; box-shadow: none; overflow: visible; }
.cal .mwd { padding: 8px 0 6px; background: transparent; border-right: 1px solid #dadce0; color: var(--mute); font-size: 11px; font-weight: 500; letter-spacing: .8px; text-align: center; text-transform: uppercase; }
.cal .mday, body.glass .cal .mday { min-height: 118px; padding: 2px 4px; background: transparent; border-right: 1px solid #dadce0; border-bottom: 1px solid #dadce0; box-shadow: none; }
.cal .mday:hover { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.cal .mday.out, body.glass .cal .mday.out { background: transparent; opacity: 1; }
.cal .mday .dn { align-self: center; min-width: 28px; height: 28px; padding: 0 4px; font-size: 12px; font-weight: 500; line-height: 28px; color: var(--ink); }
.cal .mday.out .dn { color: var(--mute); }
.cal .mday.today, body.glass .cal .mday.today { background: transparent; box-shadow: none; }
.cal .mday.today .dn { background: var(--red); color: #fff; font-weight: 700; }
.cal .ev.td, body.glass .cal .ev.td { background: transparent !important; color: var(--ink) !important; box-shadow: none !important; }
.cal .ev.td .evt::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--ec); vertical-align: middle; }
.cal .ev.td:hover { background: var(--soft) !important; }
/* sağ ray: önceki / bu ay / sonraki ay; açık ay ile bugünün ayı beyaz, diğerleri bir ton koyu */
.mrail { display: flex; flex-direction: column; gap: 12px; }
.rmon, body.glass .rmon { padding: 10px 12px 12px; border: 0; border-radius: 16px; background: #e6e8ec; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.rmon.cur, .rmon.now, body.glass .rmon.cur, body.glass .rmon.now { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
@media (prefers-color-scheme: dark) {
  .calside, .calmain { background: rgba(34, 36, 39, .96); }
  .calnew, .mbnew, .calview select { background: #2c2e32; }
  .mblist .list .msg.grow, body.glass .mblist .list .msg.grow { background: rgba(34, 36, 39, .9); }
  .mblist .list .msg.grow.unread, body.glass .mblist .list .msg.grow.unread { background: #2c2e32; }
  .cal .mgrid, body.glass .cal .mgrid, .cal .mwd, .cal .mday, body.glass .cal .mday { border-color: #3c4043; }
  .rmon, body.glass .rmon { background: #1b1c1f; }
  .rmon.cur, .rmon.now, body.glass .rmon.cur, body.glass .rmon.now { background: #2c2e32; }
}
@media (max-width: 1099px) {
  .calshell, .calshell.withrail { grid-template-columns: 1fr; }
  .calside { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .lrows { flex-direction: row; flex-wrap: wrap; }
  .lrow { width: auto; }
  .mrail { flex-direction: row; overflow-x: auto; }
  .rmon { flex: 0 0 240px; }
}

/* Takvim kenar çubuğu: Toplantılar ve Süreç takvimi kısayolları hafif tonlu ve belirgin */
.calside .calshort { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.calside .calshort button { min-height: 44px; border: 1px solid color-mix(in srgb, var(--red) 28%, transparent); border-radius: 12px; background: var(--wash); color: var(--red-d); font-weight: 600; text-align: left; padding: 0 14px; }
.calside .calshort button:hover { background: color-mix(in srgb, var(--red) 16%, var(--card)); }
.calside .calshort button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ---- Analizler: Google Analytics düzeni (uygulama renkleriyle) */
.angrid { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 16px; align-items: start; }
.annav { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; background: var(--card); border-radius: 16px; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); position: sticky; top: 8px; }
.annavi { display: block; width: 100%; min-height: 40px; padding: 0 16px; border: 0; border-radius: 0 999px 999px 0; background: transparent; color: var(--ink); font-size: 14px; text-align: left; }
.annavi:hover { background: var(--soft); }
.annavi.on { background: var(--wash); color: var(--red-d); font-weight: 700; }
.angrp { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 4px; }
.anghead { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 40px; padding: 0 16px; border: 0; background: transparent; color: var(--mute); font-size: 13px; font-weight: 600; text-align: left; }
.carat { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-135deg); margin-top: 4px; transition: transform .15s; }
.anghead[aria-expanded="false"] .carat { transform: rotate(45deg); margin-top: -2px; }
.angitems .annavi { padding-left: 28px; }
.anmain { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.anhero { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 32px; border-radius: 16px; background: linear-gradient(100deg, #fdecee 0%, #fff4f4 70%); }
.anherot { max-width: 620px; }
.anhero h1 { margin: 0 0 10px; font-size: 34px; font-weight: 400; letter-spacing: -.3px; }
.anhero p { margin: 0 0 8px; font-size: 14px; line-height: 1.5; }
.anhero .anscope { font-size: 13px; color: var(--mute); }
.anhero .seg { margin-top: 12px; }
.anhero.compact { padding: 14px 24px; }
.anhero.compact h1 { margin: 0; font-size: 24px; }
.anheroi { flex: 0 1 340px; min-width: 200px; }
.anheroi svg { width: 100%; height: auto; display: block; }
.anpanel { padding: 28px 32px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.anph { margin: 0; text-align: center; font-size: 24px; font-weight: 400; }
.anpsub { margin: 8px 0 24px; text-align: center; font-size: 16px; }
.ancards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .ancards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ancards { grid-template-columns: 1fr; } }
.ancard { display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.ancard h3 { margin: 0 0 8px; font-size: 17px; font-weight: 500; }
.ancard p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.ancill { height: 78px; margin: auto 0 8px; }
.ancill svg { height: 100%; width: auto; }
.anstat { padding: 10px 0 14px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--red-d); }
.ancbtns { display: flex; flex-direction: column; gap: 8px; }
.ancbtns button, .anopen { min-height: 40px; border-radius: 4px; font-size: 14px; font-weight: 600; }
.anopen { border: 0; background: var(--red-d); color: #fff; }
.anopen:hover { background: var(--red); }
.anprev { border: 1px solid var(--line); background: var(--card); color: var(--red-d); }
.anprev:hover { background: var(--wash); }
.anfoot { margin: 20px 0 0; }
.anreport { padding: 20px 24px; }
@media (max-width: 1099px) {
  .angrid { grid-template-columns: 1fr; }
  .annav { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .angrp { border: 0; margin: 0; padding: 0; display: contents; }
  .anghead { display: none; }
  .angitems { display: contents; }
  .angitems[hidden] { display: contents; }
  .annavi, .angitems .annavi { width: auto; border-radius: 999px; padding: 0 14px; border: 1px solid var(--line); }
  .anhero { flex-direction: column-reverse; align-items: flex-start; padding: 20px; }
  .anheroi { flex-basis: auto; width: 220px; }
  .anhero h1 { font-size: 26px; }
}
@media (prefers-color-scheme: dark) { .anhero { background: linear-gradient(100deg, #3a1d20 0%, #2a2224 70%); } }
.annum { margin-left: 6px; padding: 0 7px; border-radius: 99px; background: var(--wash); color: var(--red-d); font-size: 11.5px; font-weight: 700; }
.annavi.on .annum { background: #fff; }
/* Giriş onay kutuları: uyarı çerçevesi içeride çizilir, satırlar ve alttaki yazıyla çakışmaz */
.consent { margin: 6px 0; padding: 6px 10px; border-radius: 8px; }
.consent.miss { outline: 0; outline-offset: 0; box-shadow: inset 0 0 0 2px var(--bad); background: color-mix(in srgb, var(--bad) 7%, transparent); }
.consent + #lerr, #lerr { margin: 10px 0 4px; }
.consent { align-items: center; } .consent input { margin-top: 0; }

/* Takvim: Süreç takvimi kişisel kayıttan ayrışsın (kişisel kömür, süreç arduvaz grisi) */

/* SosyalLink: içeriği henüz eklenmemiş bölümler */
.anempty { display: grid; justify-items: center; gap: 6px; padding: 36px 12px; text-align: center; }
.anempty svg { width: 120px; height: auto; opacity: .85; }
.anempty h3 { margin: 6px 0 0; }
.top > .partilogo { pointer-events: none; user-select: none; }   /* amblem yalnızca görsel: tıklanınca bir yere gitmez */

/* Web görünümü: logoların olduğu üst bölüm daha geniş (Yeni Parti ve YeniLİNK logoları büyür) */
@media (min-width: 721px) {
  .top { padding: 0 24px 16px; gap: 0 16px; }
  .top::before { margin: 0 -24px 14px; }
  .top > .partilogo img { height: 52px; }
  .top .brand img.logo { height: 58px; }
}
@media (min-width: 1100px) { .top { padding-left: calc(232px + 24px); } .top::before { margin-left: -256px; } }

/* SosyalLink › Öğren: YouTube video kartları, ekran başına 3x3 */
.vgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .vgrid { grid-template-columns: 1fr; } }
.vcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); min-width: 0; }
.vthumb { aspect-ratio: 16 / 9; background: #fdecee; display: grid; place-items: center; overflow: hidden; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vph svg { width: 96px; height: auto; }
.vbody { display: grid; gap: 8px; padding: 14px 16px 16px; align-content: start; flex: 1; }
.vbody h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.vbody p { margin: 0; }
.vbody .anopen { margin-top: 4px; justify-self: stretch; text-align: center; text-decoration: none; }
.vthumb { position: relative; }
/* Katılım sertifikası: küçük resmin köşesini çapraz kesen kırmızı kurdela, beyaz yazı */
.vribbon { position: absolute; top: 0; right: 0; width: 190px; height: 190px; overflow: hidden; pointer-events: none; }
.vribbon span { position: absolute; top: 44px; right: -60px; width: 250px; padding: 6px 0; transform: rotate(45deg); background: var(--red); color: #fff; text-align: center; font-size: 11px; letter-spacing: .3px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); border-top: 1px solid rgba(255, 255, 255, .55); border-bottom: 1px solid rgba(255, 255, 255, .55); }

/* Ana sayfa: bölümler diğer sayfaların kart panelleri gibi; başlıklar sola yaslı ve daha sakin */
.hpanel { margin-top: 16px; padding: 20px 24px; }
.hpanel .anph { text-align: left; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.hpanel .anpsub { text-align: left; margin: 4px 0 14px; font-size: 14px; color: var(--mute); }
.hpanel .trow { box-shadow: none; border: 1px solid var(--line); margin-bottom: 8px; }
.hpanel .emptycard { padding: 8px 0; }
/* Ana sayfa kısayolları: yalnızca dar ekranda (masaüstünde sol menü var); alt gezinmede olmayan araçlara tek dokunuşla ulaşılır */
.hshort { margin-top: 14px; }
.hsh { margin: 0 0 8px; font-size: 15px; color: var(--mute); }
.hgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hs { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 84px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); text-align: center; }
.hs .sym { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fdecee; color: var(--red-d); }
.hs .sym .ico { width: 20px; height: 20px; }
.hs .hl { font-size: 12.5px; line-height: 1.2; overflow-wrap: anywhere; }
.hs .cnt { position: absolute; top: 6px; right: 8px; min-width: 20px; padding: 1px 6px; border-radius: 99px; background: var(--red); color: #fff; font-style: normal; font-size: 11px; }
@media (min-width: 1100px) { .hshort { display: none; } }
@media (max-width: 720px) { .hpanel { padding: 16px 14px; border-radius: 12px; } .hpanel .anph { font-size: 18px; } }
@media (prefers-color-scheme: dark) { .hs .sym { background: rgba(196, 22, 28, .25); color: #fff; } }

/* Telefon: GA sayfaları daha sıkı. Başlık bandı çizimi küçülür, kartlar çizimsiz ve kısa olur (az kaydırma), düğmeler yan yana */
@media (max-width: 640px) {
  .anhero { flex-direction: row-reverse; align-items: center; gap: 10px; padding: 16px; }
  .anheroi { flex: 0 0 84px; width: 84px; min-width: 0; }
  .anhero h1 { font-size: 22px; margin-bottom: 6px; }
  .anhero p { font-size: 13px; }
  .anpanel { padding: 16px 14px; border-radius: 12px; }
  .anph { font-size: 19px; }
  .anpsub { margin: 4px 0 14px; font-size: 14px; }
  .ancards { gap: 12px; }
  .ancard { padding: 14px; }
  .ancard .ancill { display: none; }
  .ancard p { margin-bottom: 8px; }
  .ancbtns { display: flex; gap: 8px; }
  .ancbtns button { flex: 1; min-height: 44px; }
  .annavi { min-height: 40px; }
}

/* Telefon: Öğren video kartları yatay ve kısa (küçük resim solda) */
@media (max-width: 640px) {
  .vgrid { gap: 12px; }
  .vcard { flex-direction: row; }
  .vthumb { flex: 0 0 110px; aspect-ratio: auto; min-height: 120px; }
  .vph svg { width: 56px; }
  .vbody { padding: 10px 12px; gap: 6px; }
  .vbody h3 { font-size: 15px; }
  .vbody .anopen { min-height: 40px; font-size: 13px; }
  .vribbon { width: 118px; height: 118px; }
  .vribbon span { top: 26px; right: -44px; width: 168px; padding: 3px 0; font-size: 8px; letter-spacing: 0; }
}

/* SosyalLink bölümleri (sl-ui.js): dar ekranda taşma yok; alt sekmeler kayar, düğmeler sarar */
#slhost { min-width: 0; overflow-wrap: anywhere; }
.ansec > *, .anreport > * { min-width: 0; }
#slhost .gtabs { max-width: 100%; margin-bottom: 12px; }
#slhost .gtab { min-height: 44px; padding: 8px 14px; }
#slhost input, #slhost select, #slhost textarea { max-width: 100%; box-sizing: border-box; }
#slhost textarea { width: 100%; }
#slhost .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
#slhost button.chip { min-height: 36px; cursor: pointer; }
#slhost .slc { border-top: 1px solid var(--line); padding: 8px 0; }
#slhost .slact button, #slhost .row button { min-height: 44px; }
#slhost .ilgrid { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }

/* Ana ekran kısayolları: parlak uygulama-ikonu karoları (kırmızı kimlik, yuvarlak ikon rozeti korunur); karolar ince bağ çizgileriyle bağlanır */
.hgrid { position: relative; gap: 14px 12px; padding: 4px 2px 8px; }
.hgrid::before { content: ""; position: absolute; inset: 22px 18% 22px 18%; border: 2px solid rgba(196, 22, 28, .16); border-radius: 18px; pointer-events: none; }
.hs { z-index: 1; min-height: 92px; border: 0; border-radius: 20px; color: #fff; background: linear-gradient(160deg, #e0343b 0%, #c4161c 55%, #8f0f14 100%);
  box-shadow: 0 6px 0 #6d0b0f, 0 10px 16px rgba(120, 10, 15, .28), inset 0 1px 0 rgba(255, 255, 255, .45); overflow: hidden; transition: transform .12s, box-shadow .12s; }
.hs::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 46%; background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0)); border-radius: 20px 20px 60% 60% / 20px 20px 24px 24px; pointer-events: none; }
.hs:active { transform: translateY(4px); box-shadow: 0 2px 0 #6d0b0f, 0 4px 8px rgba(120, 10, 15, .28), inset 0 1px 0 rgba(255, 255, 255, .45); }
.hs .sym { width: 42px; height: 42px; background: #fff; color: #c4161c; box-shadow: 0 2px 6px rgba(0, 0, 0, .25), inset 0 -2px 0 rgba(196, 22, 28, .18); position: relative; z-index: 1; }
.hs .hl { position: relative; z-index: 1; color: #fff; font-size: 12.5px; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.hs .cnt { z-index: 2; background: #fff; color: #c4161c; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.hs:focus-visible { outline: 3px solid #1a1a1a; outline-offset: 2px; }
@media (prefers-color-scheme: dark) { .hs .sym { background: #fff; color: #c4161c; } .hgrid::before { border-color: rgba(255, 255, 255, .14); } }
@media (prefers-reduced-motion: reduce) { .hs { transition: none; } }
.hgrid { background: var(--card, #fff); border-radius: 22px; padding: 16px 14px 18px; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.hgrid::before { inset: 30px 20% 34px 20%; }
.hshort .hsh { color: #fff; }
.hgrid::before { display: none; }
/* geri düğmesi: nereye dönüleceğini adıyla söyler ("Geri: Ana sayfa"); masaüstünde sol gezinmenin en üstündedir */
.back .backto { font-weight: 400; margin-right: 4px; } .back .backto::after { content: ':'; }
@media (min-width: 1100px) {
  #backslot { position: fixed; left: 0; top: var(--hh, 96px); width: 232px; max-width: none; margin: 0; padding: 12px 20px 0 12px; z-index: 16; }
  #backslot .back { width: 100%; min-height: 40px; padding: 0 12px 0 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--red-d); font-size: 14px; justify-content: flex-start; }
  #backslot .back:hover { background: var(--wash); }
  body.glass #backslot, body.glass #backslot button { color: var(--red-d); text-shadow: none; }
  body.hasback nav#tabs { padding-top: calc(var(--hh, 96px) + 64px); }
}
/* takvim gün görünümü: beyaz zemin, ince saat satırları (ana sayfa karolarının .hs stili buraya taşmaz: saat hücresi .hslot) */
.cal .dview, body.glass .cal .dview { background: #fff; border-color: #dadce0; }
.dview .hrow { min-height: 32px; padding: 0 6px; align-items: center; } .dview .hrow.has { min-height: 40px; }
@media (prefers-color-scheme: dark) { .cal .dview, body.glass .cal .dview { background: var(--card); border-color: #3c4043; } }
/* gün görünümünde saat satırı tıklanır: o saate kişisel not eklenir */
.dview .hrow[data-hour] { cursor: pointer; }
.dview .hrow[data-hour]:hover, .dview .hrow[data-hour]:focus-within { background: #f6f7f8; }
.hadd { align-self: center; margin-left: auto; border: 0; background: transparent; color: var(--red-d); font-size: 12px; min-height: 28px; padding: 0 8px; border-radius: 6px; opacity: 0; }
.dview .hrow:hover .hadd, .hadd:focus-visible { opacity: 1; } .hadd:focus-visible { outline: 2px solid var(--red-d); }
.hslot { flex-direction: row; flex-wrap: wrap; align-items: flex-start; } .hslot .ev { flex: 1 1 100%; }
@media (prefers-color-scheme: dark) { .dview .hrow[data-hour]:hover, .dview .hrow[data-hour]:focus-within { background: rgba(255, 255, 255, .06); } }
/* takvim: resmî ve özel günler katmanı ve yönetim penceresi */
.cal { --eg: #2f4a9e; } @media (prefers-color-scheme: dark) { .cal { --eg: #8fa8ff; } }
.ev.g { --ec: var(--eg); } .dots i.g, .evdot.g { background: var(--eg); } .lbox.g { --ec: var(--eg); }
.rglist { list-style: none; margin: 0; padding: 0; } .rgh { margin: 14px 0 4px; font-size: 14px; }
.rgrow { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.rgrow .rgd { font-size: 13px; color: var(--mute); } .rgrow .rgt { display: flex; flex-direction: column; min-width: 0; }
.rgform { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin: 8px 0; } .rgform summary { cursor: pointer; font-weight: 600; color: var(--red-d); min-height: 32px; display: flex; align-items: center; }
@media (max-width: 720px) { .rgrow { grid-template-columns: 1fr auto; } .rgrow .rgd { grid-column: 1 / -1; } }
/* takvim: canlı yayınlar katmanı */
.cal { --ey: #7a3fb0; } @media (prefers-color-scheme: dark) { .cal { --ey: #c49bf0; } }
.ev.y { --ec: var(--ey); } .dots i.y, .evdot.y { background: var(--ey); } .lbox.y { --ec: var(--ey); }
/* takvim: süreçler (seminer, eğitim…) katmanı ve "Süreç oluştur" düğmesi */
.cal { --ep: #b5530c; } @media (prefers-color-scheme: dark) { .cal { --ep: #f5a25d; } }
.ev.p { --ec: var(--ep); } .dots i.p, .evdot.p { background: var(--ep); } .lbox.p { --ec: var(--ep); }
.calnew.calplan { margin-top: 8px; background: var(--red-d); color: #fff; } .calnew.calplan .ico { color: #fff; } .calnew.calplan:hover { background: var(--red); }
/* talep eki: yükleme alanı ve açma düğmesi */
.ekup { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 12px; }
.ekup input[type=file] { max-width: 100%; }
.ekbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 0 12px; }
.ekbtn .ico { width: 18px; height: 18px; color: var(--red-d); }
/* kişi kartı: iletişim bağlantıları alt alta, dokunmaya uygun */
.pcontact { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; } .pcontact .clink { min-height: 36px; display: inline-flex; align-items: center; }
/* orta genişlikte (721–1399 px) sağ ray gizlenir: ay ızgarasına yer kalsın */
@media (min-width: 721px) and (max-width: 1399px) { .calshell.withrail { grid-template-columns: 240px minmax(0, 1fr); } .calshell.withrail .mrail { display: none; } }
/* başlık bandının altında küçük alt başlık (yalnızca ayrıntı sayfaları: bir yayının adı vb.) */
.ansub { margin: 14px 4px 6px; font-size: 20px; font-weight: 400; color: var(--ink); }
/* örgüt listesi: sağ sütun tek satır (ad gerekirse alt satıra iner); parti yönetimindeki belediye hafif kırmızı ton (seçili satırdan daha açık) */
.tkitem > span:first-child { flex: 1 1 auto; min-width: 0; }
.tkitem > span:last-child { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.tkitem.gov { background: color-mix(in srgb, var(--red) 7%, transparent); }
.tkitem.gov:hover { background: color-mix(in srgb, var(--red) 12%, transparent); }
.tkitem.gov.on { background: var(--wash); }
@media (prefers-color-scheme: dark) { .tkitem.gov { background: color-mix(in srgb, var(--red) 16%, transparent); } .tkitem.gov:hover { background: color-mix(in srgb, var(--red) 22%, transparent); } }
/* belediye listesinde kaydı olmayan ilçe: soluk */
.tkitem.none { color: var(--mute); }
/* özel mesajlar: belirgin "Yeni özel mesaj" düğmesi; listede ad yanında görev; arama sonuçlarında fotoğraf, ad ve görev */
.dmnewbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; background: var(--red-d); color: #fff; font-size: 14px; box-shadow: 0 2px 8px rgba(196, 22, 28, .3); }
.dmnewbtn:hover { background: var(--red); } .dmnewbtn .ico { width: 18px; height: 18px; stroke: currentColor; }
.dmnewbtn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.dmrow .dmrole { color: var(--mute); font-size: 12.5px; }
.dmhit { display: flex !important; align-items: center; gap: 12px; text-align: left; }
.dmhit .dmt { display: flex; flex-direction: column; min-width: 0; }
/* özel mesaj: gönder düğmesi her zeminde kırmızı/beyaz (cam düğme kuralı ezmesin); daha kısa sohbet penceresi; ek ve karakter sayacı */
.chatbar .chatsend, body.glass .mbread .chatbar .chatsend, dialog .chatbar .chatsend { background: linear-gradient(180deg, #ef2a31, #c4161c) !important; color: #fff !important; border: 0 !important; box-shadow: 0 2px 8px rgba(196, 22, 28, .35) !important; transform: none !important; }
.chatbar .chatsend:disabled { opacity: .55; }
.chatpane { height: min(62vh, 560px); }
.chatbar textarea { max-height: 96px; }
.chatattach { flex: none; display: grid; place-items: center; width: 40px; height: 44px; border-radius: 50%; color: var(--mute); cursor: pointer; }
.chatattach:hover, .chatattach:focus-within { color: var(--red-d); background: var(--soft); }
.chatattach .ico { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.chatmeta { display: flex; justify-content: space-between; gap: 8px; padding: 0 16px 6px; font-size: 12px; }
.chatmeta .over { color: var(--bad); }
.dmek { display: flex; align-items: center; gap: 8px; max-width: 260px; margin-bottom: 4px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); text-align: left; }
.dmek .ico { width: 18px; height: 18px; flex: none; color: var(--red-d); stroke: currentColor; fill: none; stroke-width: 1.8; }
.dmek small { color: var(--mute); white-space: nowrap; }
/* takvim kenar çubuğunun altındaki "Süreç başlat" (eski Toplantılar kısayolunun yeri) */
.calside .calplanbot { margin-top: 4px; align-self: stretch; }
/* ---- Takvim kenar çubuğu (Gmail temalı görünüm): kart zemini yok, arka planın üzerinde hafif buzlu cam; beyaz, gölgeli yazı;
   sağı yuvarlak hap satırlar, üzerine gelince ve seçiliyken yarı saydam beyaz; kapalı katman soluk. Masaüstü ve tablet (721 px ve üstü). */
@media (min-width: 721px) {
  .calside, body.glass .calside { background: rgba(255, 255, 255, .08) !important; border: 1px solid rgba(255, 255, 255, .16) !important; box-shadow: none !important;
    -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1); padding: 14px 0 14px 0; gap: 6px; }
  .calside .calh { margin: 10px 18px 4px; color: rgba(255, 255, 255, .9); font-size: 13px; letter-spacing: .4px; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
  .calside .lrows { gap: 1px; padding-right: 10px; }
  .calside .lrow { min-height: 34px; padding: 0 14px 0 18px; gap: 14px; border-radius: 0 999px 999px 0; color: #fff; font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .5); transition: background .15s ease, opacity .15s ease; }
  .calside .lrow:hover { background: rgba(255, 255, 255, .16); }
  .calside .lrow:focus-visible { outline: none; background: rgba(255, 255, 255, .22); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }
  .calside .lrow[aria-pressed="true"] { font-weight: 400; }
  .calside .lrow[aria-pressed="false"] { opacity: .62; }
  .calside .lrow[aria-pressed="false"]:hover { opacity: .9; }
  .calside .lbox { width: 16px; height: 16px; border-radius: 4px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .7); }
  .calside .lrow[aria-pressed="false"] .lbox { background: rgba(255, 255, 255, .08); }
  .calside .calnew { margin: 0 12px; }
  .calside .calplanbot { margin: 8px 12px 0; }
}
/* takvim kenar çubuğu eylemleri: "Kişisel kayıt ekle" ve "Süreç başlat" en altta art arda, aynı boy ve hizada; katman listesinden az boşlukla ayrı */
.calside .calacts { display: flex; flex-direction: column; gap: 8px; margin: 10px 12px 0; }
.calside .calacts .calnew { align-self: stretch; width: 100%; margin: 0; min-height: 52px; padding: 0 18px; gap: 12px; border-radius: 14px; justify-content: flex-start; font-size: 15px; }
.calside .calacts .calnew .ico { width: 22px; height: 22px; flex: none; }
/* Analizler › Katılım: etkinlik listesi başlığı */
.anlist { margin: 8px 0 4px; } .anlisth { display: flex; justify-content: space-between; padding: 0 2px 4px; border-bottom: 1px solid var(--line); }
.anrow .antitle small { font-size: 12px; }

/* =====================================================================================================
   Açılan pencereler: Gmail (Material) düzeni. Düz beyaz yüzey, yumuşak gölge, cam/bulanıklık yok; başlık sade,
   sekmeler alt çizgili, düğmeler hap biçimli ve gölgesiz, satırlar üzerine gelince hafif vurgulu. Sohbet penceresi (chatdlg) kendi düzenini korur.
   ===================================================================================================== */
html dialog:not(.chatdlg) {
  --dlg-bg: #fff; --dlg-ink: #1f1f1f; --dlg-sub: #5f5f5f; --dlg-line: #e6e1e1; --dlg-soft: #f7f3f3; --dlg-hover: rgba(31, 31, 31, .05); --dlg-acc: #c4161c;
  background: var(--dlg-bg); color: var(--dlg-ink); border: 0; border-radius: 20px; padding: 24px 24px 16px;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: 0 24px 38px 3px rgba(60, 64, 67, .14), 0 9px 46px 8px rgba(60, 64, 67, .12), 0 11px 15px -7px rgba(60, 64, 67, .2);
  max-height: min(86vh, 760px); overflow: auto; scrollbar-width: thin;
}
html dialog:not(.chatdlg)::backdrop { background: rgba(32, 33, 36, .5); -webkit-backdrop-filter: none; backdrop-filter: none; }
html dialog:not(.chatdlg) h3 { font-size: 22px; font-weight: 400; line-height: 1.3; letter-spacing: 0; color: var(--dlg-ink); margin: 0 0 16px; }
html dialog:not(.chatdlg) .meta { color: var(--dlg-sub); }
/* iç kutular: düz, açık gri zemin */
html dialog:not(.chatdlg) :is(.box, .note, .card, details.opts, .respbox) { background: var(--dlg-soft); border: 0; box-shadow: none; border-radius: 12px; -webkit-backdrop-filter: none; backdrop-filter: none; }
/* sekmeler (seg): Gmail kategori sekmeleri gibi alt çizgili */
html dialog:not(.chatdlg) .seg { display: flex; background: transparent; border-radius: 0; padding: 0; border-bottom: 1px solid var(--dlg-line); margin: 0 -24px 12px; padding: 0 12px; overflow-x: auto; scrollbar-width: none; }
html dialog:not(.chatdlg) .seg label { flex: 1 0 auto; text-align: center; border-radius: 0; padding: 12px 16px 10px; color: var(--dlg-sub); font-weight: 500; box-shadow: none; background: transparent; border-bottom: 3px solid transparent; white-space: nowrap; }
html dialog:not(.chatdlg) .seg label:hover { background: var(--dlg-hover); }
html dialog:not(.chatdlg) .seg label:has(input:checked) { color: var(--dlg-acc); background: transparent; box-shadow: none; border-bottom-color: var(--dlg-acc); font-weight: 600; }
html dialog:not(.chatdlg) .seg label:has(input:focus-visible) { outline: 2px solid var(--dlg-acc); outline-offset: -2px; }
/* düğmeler: gölgesiz hap; ikincil düğme metin düğmesi, birincil dolu kırmızı */
html dialog:not(.chatdlg) button:not(.primary):not(.linkbtn):not(.ghost):not(.chatx):not(.chatsend):not(.dmplus):not(.antile) {
  background: transparent; border: 1px solid #c9c1c1; border-radius: 999px; box-shadow: none; color: var(--dlg-acc); font-weight: 500; padding: 8px 20px; transform: none;
}
html dialog:not(.chatdlg) button:not(.primary):not(.linkbtn):not(.ghost):not(.chatx):not(.chatsend):not(.dmplus):not(.antile):hover { background: rgba(196, 22, 28, .06); box-shadow: none; transform: none; }
html dialog:not(.chatdlg) button.primary { border-radius: 999px; box-shadow: none; padding: 8px 24px; font-weight: 500; }
html dialog:not(.chatdlg) button.primary:hover { box-shadow: 0 1px 3px rgba(60, 64, 67, .3), 0 4px 8px 3px rgba(60, 64, 67, .15); }
/* listeler: ayraçsız satır, üzerine gelince hafif zemin */
html dialog:not(.chatdlg) .mrow { border-bottom: 0; padding: 8px 12px; margin: 0 -12px; border-radius: 12px; }
html dialog:not(.chatdlg) .mrow:hover { background: var(--dlg-hover); }
html dialog:not(.chatdlg) .anlist { margin: 4px 0; max-height: 52vh; overflow: auto; scrollbar-width: thin; padding: 0 12px; margin-inline: -12px; }
/* form alanları: Gmail'deki gibi ince çerçeve, odakta kırmızı */
html dialog:not(.chatdlg) :is(input:not([type=radio]):not([type=checkbox]), select, textarea) { border: 1px solid #c9c1c1; border-radius: 8px; background: #fff; box-shadow: none; }
html dialog:not(.chatdlg) :is(input, select, textarea):focus-visible { outline: 2px solid var(--dlg-acc); outline-offset: -1px; border-color: transparent; }
@media (prefers-color-scheme: dark) {
  html dialog:not(.chatdlg) { --dlg-bg: #2b2a2b; --dlg-ink: #e8e3e3; --dlg-sub: #b5adad; --dlg-line: #474244; --dlg-soft: #353334; --dlg-hover: rgba(255, 255, 255, .06); --dlg-acc: #ff6b6f; box-shadow: 0 24px 38px 3px rgba(0, 0, 0, .4); }
  html dialog:not(.chatdlg) button:not(.primary):not(.linkbtn):not(.ghost):not(.chatx):not(.chatsend):not(.dmplus):not(.antile) { border-color: #5c5658; background: transparent; }
  html dialog:not(.chatdlg) :is(input:not([type=radio]):not([type=checkbox]), select, textarea) { background: #232223; border-color: #5c5658; color: var(--dlg-ink); }
}
@media (max-width: 720px) {
  html dialog:not(.chatdlg) { border-radius: 28px 28px 0 0; padding: 12px 20px 20px; max-height: 90vh; }
  html dialog:not(.chatdlg)::before { content: ''; display: block; width: 32px; height: 4px; border-radius: 2px; background: #c9c1c1; margin: 0 auto 16px; }
  html dialog:not(.chatdlg) .seg { margin-inline: -20px; }
}

/* Başlık bandı çizimi (bant-cizim.js): sağda insanlı sahne; bant biraz daha yüksek, çizim bandın üstünden ve altından hafifçe taşar */
.anhero { position: relative; }
.anhero.compact:has(.anbandi) { min-height: 104px; padding: 24px 360px 24px 28px; }
.anhero.compact:has(.anbandi) h1 { font-size: 28px; }
.anbandi { position: absolute; right: 24px; bottom: -18px; height: calc(100% + 40px); max-height: 160px; aspect-ratio: 2 / 1; pointer-events: none; z-index: 1; }
.anbandi svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 8px 12px rgba(110, 31, 39, .12)); }
.angrid, .anmain { overflow: visible; }
@media (max-width: 720px) {   /* telefonda çizim başlık satırının sağına oturur; dönem seçici gibi denetimler tam genişlikte kalır */
  .anhero.compact:has(.anbandi) { padding: 18px 16px; min-height: 84px; flex-direction: column; align-items: stretch; }
  .anhero:has(.anbandi) :is(h1, .anscope) { padding-right: 150px; }
  .anbandi { right: 6px; top: -14px; bottom: auto; height: 92px; max-height: none; }
}
@media (max-width: 380px) { .anbandi { display: none; } .anhero:has(.anbandi) :is(h1, .anscope) { padding-right: 0; } }

/* =====================================================================================================
   Mesajlar, Takvim düzeninde: sol kenar çubuğu (klasörler) kart zemini olmadan arka planın üzerinde hafif buzlu, beyaz yazılı;
   mesaj listesi ve açılan ileti opak beyaz kart (şeffaflık ve bulanıklık yok). Değerler .calside / .calmain ile aynıdır.
   ===================================================================================================== */
body.glass .mblist, body.glass .mbread {
  background: #fff !important; border: 0 !important; border-radius: 16px;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .14) !important;
}
body.glass .mblist .list .msg { background: #fff; border-bottom-color: var(--line); }
body.glass .mblist .list .msg.unread { background: #fff; }
body.glass .mblist .list .msg:not(.unread) { background: #f6f7f8; }
body.glass .mblist .list .msg.sel { background: var(--wash); }
body.glass .mblist input[type=search] { background: #f1f3f4; }
body.glass .mbread :is(.box, .note, .card, details.opts, .respbox) { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; border: 1px solid var(--line); box-shadow: none; }
body.glass .mbread button:not(.primary):not(.linkbtn):not(.ghost) { background: #fff; border: 1px solid var(--line); box-shadow: none; }
body.glass .mbread button:not(.primary):not(.linkbtn):not(.ghost):hover { transform: none; background: var(--soft); box-shadow: none; }
body.glass .mbread .meta, body.glass .mblist .meta, body.glass .mblist .msg .msender { color: var(--mute); }
body.glass .mblist .msg.unread .msender { color: var(--ink); }
@media (min-width: 721px) {
  body.glass .mbside { background: rgba(255, 255, 255, .08) !important; border: 1px solid rgba(255, 255, 255, .16) !important; box-shadow: none !important; border-radius: 16px;
    -webkit-backdrop-filter: blur(10px) saturate(1.1) !important; backdrop-filter: blur(10px) saturate(1.1) !important; padding: 14px 0; }
  body.glass .mbside .mbnew { margin: 0 12px; }
  body.glass .mblist, body.glass .mbread { min-height: calc(100vh - 210px); }   /* Takvim gibi sayfa boyunca uzanan beyaz alan */
  body.glass .mbfold button { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); background: transparent; transition: background .15s ease; }
  body.glass .mbfold button:hover { background: rgba(255, 255, 255, .16); }
  body.glass .mbfold button[aria-selected="true"] { background: rgba(255, 255, 255, .24); color: #fff; font-weight: 700; }
  body.glass .mbfold button:focus-visible { outline: none; background: rgba(255, 255, 255, .22); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }
  body.glass .mbfold .cnt.soft { background: rgba(255, 255, 255, .24); color: #fff; text-shadow: none; }
  body.glass .mbside :is(h3, h4, .meta, .mbhint) { color: rgba(255, 255, 255, .9); text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
}
@media (prefers-color-scheme: dark) {
  body.glass .mblist, body.glass .mbread { background: rgba(34, 36, 39, .96) !important; }
  body.glass .mblist .list .msg, body.glass .mblist .list .msg.unread, body.glass .mbread :is(.box, .note, .card, details.opts, .respbox), body.glass .mbread button:not(.primary):not(.linkbtn):not(.ghost) { background: rgba(34, 36, 39, .96); }
  body.glass .mblist .list .msg:not(.unread) { background: rgba(255, 255, 255, .04); }
  body.glass .mblist input[type=search] { background: rgba(255, 255, 255, .08); }
}

/* ---- Mesajlar ve Takvim zemini: halka (logo) deseni yok; yalnızca kırmızıdan siyaha gradyan */
body.glass { background: linear-gradient(165deg, #c4161c 0%, #8e1418 32%, #4a0e11 66%, #140708 100%) fixed; }

/* ---- Canlı yayın bandı (X'teki canlı yayın şeridi gibi): yayın varken menünün altında; koyu kırmızı hap, akan yazı, sağda CANLI ve yanıp sönen nokta */
.livebar { display: flex; align-items: center; gap: 12px; width: min(100% - 24px, 1180px); margin: 10px auto 4px; padding: 4px 16px 4px 4px; min-height: 48px;
  border: 0; border-radius: 999px; background: linear-gradient(90deg, #6e0b10 0%, #3a0709 100%); color: #fff; cursor: pointer; text-align: left;
  box-shadow: 0 6px 18px rgba(110, 11, 16, .35), inset 0 0 0 1px rgba(255, 255, 255, .12); overflow: hidden; }
.livebar[hidden] { display: none; }
.livebar:hover { filter: brightness(1.08); }
.livebar:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px #c4161c; }
.livebar .lvlogo { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #c4161c; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.livebar .lvlogo img { width: 30px; height: auto; }
.livebar .lvtrack { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.livebar .lvtext { display: inline-block; font-weight: 600; font-size: 15px; letter-spacing: .1px; animation: lvscroll 22s linear infinite; }
.livebar:hover .lvtext { animation-play-state: paused; }
.livebar .lvbadge { flex: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .6px; color: #ff4a52; font-size: 15px; }
.livebar .lvbadge i { width: 10px; height: 10px; border-radius: 50%; background: #ff4a52; animation: lvpulse 1.2s ease-in-out infinite; }
@keyframes lvscroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }   /* yazı iki kez yazılı: yarısı kayınca başa döner, kesintisiz akar */
@keyframes lvpulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .livebar .lvtext { animation: none; } .livebar .lvbadge i { animation: none; } }
@media (max-width: 720px) { .livebar { margin: 8px 12px 2px; width: calc(100% - 24px); min-height: 44px; } .livebar .lvlogo { width: 36px; height: 36px; } .livebar .lvtext, .livebar .lvbadge { font-size: 14px; } }

/* =====================================================================================================
   Ana sayfa, Togg Trumore düzeni (mobil uygulamayla aynı): beyaz ağırlıklı zemin, kırmızı ve siyah ayrıntılar.
   Yuvarlak kısayollar · kenarı görünen haber bandı (kendiliğinden ve elle geçer) · "Bugün" kartı ve iki sütunlu (geniş ekranda dört) karolar.
   ===================================================================================================== */
body.tg { background: #fff; }
.tgstories { display: flex; gap: 14px; overflow-x: auto; padding: 14px 2px 6px; scrollbar-width: none; }
.tgstories::-webkit-scrollbar { display: none; }
.tgst { flex: 0 0 76px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: var(--ink); font-size: 12px; min-height: 44px; cursor: pointer; }
.tgst .ring { width: 68px; height: 68px; border-radius: 50%; padding: 3px; background: #e3e4e8; display: grid; place-items: center; }
.tgst.hot .ring { background: linear-gradient(135deg, #ed1c24, #6e0b10 55%, #221f20); }
.tgst .sym { width: 100%; height: 100%; border-radius: 50%; background: #f6f6f8; box-shadow: 0 0 0 3px #fff; display: grid; place-items: center; color: var(--ink); }
.tgst.hot .sym { color: #c4161c; }
.tgst .sym .ico { width: 26px; height: 26px; }
.tgst .lb { text-align: center; line-height: 1.15; max-width: 76px; }
.tgst:focus-visible .ring { outline: 2px solid #c4161c; outline-offset: 2px; }

.tgban { margin-top: 6px; }
.tgban .car { background: none; border-radius: 0; overflow: visible; margin: 0; }
.tgban .car .track { gap: 12px; padding: 6px 7% 10px; scroll-padding: 0 7%; }
.tgban .car .slide { flex: 0 0 86%; scroll-snap-align: center; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; box-shadow: 0 6px 14px rgba(0, 0, 0, .16); }
.tgban .car .slide.man { border-radius: 20px; }
.tgban .car .dots { position: static; margin-top: 2px; }
.tgban .car .dots i { background: #d5d6da; }
.tgban .car .dots i.on { background: #c4161c; }
@media (min-width: 721px) { .tgban .car .slide { flex-basis: 72%; aspect-ratio: 21 / 8; } .tgban .car .track { padding: 6px 14% 10px; scroll-padding: 0 14%; } }

.tggrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0 18px; }
@media (min-width: 900px) { .tggrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tgtile, .tgtoday { border-radius: 18px; box-shadow: 0 3px 10px rgba(0, 0, 0, .08); color: var(--ink); }
.tgtile { position: relative; min-height: 112px; display: flex; flex-direction: column; justify-content: space-between; text-align: left; padding: 14px 12px 12px 16px;
  border: 1px solid #e4e5e9; background: linear-gradient(135deg, #f7f7f9, #fff); cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.tgtile:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0, 0, 0, .12); }
.tgtile:focus-visible { outline: 2px solid #c4161c; outline-offset: 2px; }
.tgtile > b { font-size: 16px; font-weight: 600; padding-right: 30px; line-height: 1.2; }
.tgtile .cnt { position: absolute; top: 12px; right: 12px; background: #c4161c; color: #fff; border-radius: 99px; min-width: 22px; padding: 1px 7px; font-style: normal; font-size: 12px; text-align: center; font-weight: 600; }
.tgtile .emb { position: relative; align-self: flex-end; width: 58px; height: 56px; }
.tgtile .emb .back { position: absolute; right: 0; top: 0; width: 41px; height: 41px; border-radius: 12px; background: #e9e9ec; transform: rotate(10deg); }
.tgtile .emb .front { position: absolute; left: 0; bottom: 0; width: 50px; height: 50px; border-radius: 14px; background: linear-gradient(135deg, #ed1c24, #c4161c 50%, #5a0a0e); box-shadow: 0 5px 10px rgba(196, 22, 28, .25); display: grid; place-items: center; color: #fff; }
.tgtile .emb .front .ico { width: 25px; height: 25px; }
.tgtoday { grid-row: span 2; display: flex; flex-direction: column; gap: 2px; padding: 14px 14px 12px 16px; border: 1px solid #f5c9cc; background: linear-gradient(135deg, #fff1f2, #fff); }
.tgtoday .nm { font-size: 19px; font-weight: 700; }
.tgtoday .bar { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; }
.tgtoday .bar span { flex: 1; height: 8px; border-radius: 4px; background: #f2d4d6; overflow: hidden; }
.tgtoday .bar i { display: block; height: 100%; background: #c4161c; border-radius: 4px; }
.tgtoday .bar b { color: #c4161c; font-size: 12px; }
.tgtoday .tw { display: flex; align-items: center; gap: 6px; min-height: 36px; background: none; border: 0; padding: 0; text-align: left; color: var(--ink); font-size: 14px; cursor: pointer; }
.tgtoday .tw span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tgtoday .tw b { color: #c4161c; }
.tgtoday .tw .ico { width: 16px; height: 16px; color: #8e8a8c; }
.tgtoday .newbtn { margin-top: auto; align-self: stretch; justify-content: center; }
@media (prefers-color-scheme: dark) {
  body.tg { background: #141516; }
  .tgst .sym { background: #24262a; box-shadow: 0 0 0 3px #141516; }
  .tgst .ring { background: #3a3c41; }
  .tgtile { background: linear-gradient(135deg, #222428, #1b1c1f); border-color: #33353a; }
  .tgtoday { background: linear-gradient(135deg, #3a1a1d, #1b1c1f); border-color: #5a2a2e; }
  .tgtile .emb .back { background: #33353a; }
}
@media (prefers-reduced-motion: reduce) { .tgtile { transition: none; } .tgtile:hover { transform: none; } }
/* düzeltmeler: halka görünür, bant düğmeleri kartın altında, "Bugün" kartı sığar */
.tgst .ring { padding: 4px; }
.tgst .sym { box-shadow: 0 0 0 2px #fff; }
.tgst.new .ring { background: #c4161c; }
.tgst.new .sym { background: #c4161c; color: #fff; box-shadow: none; }
.tgban .car { padding-bottom: 6px; }
.tgban .car .carctl { position: static; display: flex; justify-content: flex-end; gap: 6px; margin: -30px 7% 0 auto; width: max-content; }
.tgban .car .carctl button { width: 36px; height: 36px; min-height: 36px; background: #f1f1f3; color: var(--ink); border: 0; box-shadow: none; }
.tgban .car .dots { justify-content: center; height: 30px; align-items: center; margin: 0; }
.tgban .car .cap b, .tgban .car .slide.man .cap b { -webkit-line-clamp: 2; }
.tgban .car .slide.man .cap { padding: 16px 18px 18px; }
.tggrid { grid-auto-rows: minmax(118px, auto); }
.tgtoday { overflow: hidden; }
.tgtoday .sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tgtoday .bar b { white-space: nowrap; line-height: 1.4; }
.tgtoday .tw.more { color: var(--mute); font-size: 13px; min-height: 32px; }
.tgtoday .bar { height: auto; background: none; border-radius: 0; overflow: visible; }   /* genel .bar (ilerleme çubuğu) kuralını sıfırlar */
.tgban .car .carctl { margin: 0 7% 0 auto; }
.tgban .car .dots { margin-top: -36px; height: 36px; }
@media (max-width: 720px) { .tgban .car .cprev, .tgban .car .cnext { display: none; } }   /* telefonda parmakla kaydırılır; durdur düğmesi kalır */
/* kısayollar banda ve sayfaya ortalı (sığmazsa soldan kaydırılır); her biri kendi pastel renginde */
.tgstories > :first-child { margin-left: auto; }
.tgstories > :last-child { margin-right: auto; }
.tgst[style] .sym { background: var(--pb); color: var(--pf); }
@media (prefers-color-scheme: dark) { .tgst[style] .sym { background: color-mix(in srgb, var(--pf) 34%, #24262a); color: var(--pb); } }
/* Bölgem: karekodla "Buradayım" (demo). Düğme sayfanın altında ortada, altında açıklama. */
.qrnear { margin: 22px auto 8px; max-width: 560px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.qrnear .qrbtn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-size: 16px; font-weight: 600; box-shadow: 0 8px 22px rgba(196,22,28,.32); }
.qrnear .qrbtn .ico { width: 24px; height: 24px; }
.qrnear p { margin: 4px 0 0; line-height: 1.45; }
.qrdlg { max-width: min(420px, 94vw); text-align: center; }
.qrdlg h3 { margin: 4px 0 12px; }
.qrview { position: relative; width: 220px; height: 220px; margin: 0 auto 12px; border-radius: 22px; background: #1b1718; display: grid; place-items: center; color: rgba(255,255,255,.35); overflow: hidden; }
.qrview > .ico { width: 120px; height: 120px; }
.qrview i { position: absolute; width: 28px; height: 28px; border: 0 solid #fff; }
.qrview .c1 { top: 25px; left: 25px; border-top-width: 4px; border-left-width: 4px; border-radius: 6px 0 0 0; }
.qrview .c2 { top: 25px; right: 25px; border-top-width: 4px; border-right-width: 4px; border-radius: 0 6px 0 0; }
.qrview .c3 { bottom: 25px; left: 25px; border-bottom-width: 4px; border-left-width: 4px; border-radius: 0 0 0 6px; }
.qrview .c4 { bottom: 25px; right: 25px; border-bottom-width: 4px; border-right-width: 4px; border-radius: 0 0 6px 0; }
.qrview .qrline { position: absolute; left: 30px; right: 30px; top: 30px; height: 2px; background: #ed1c24; box-shadow: 0 0 10px #ed1c24; animation: qrscan 2.2s ease-in-out infinite alternate; }
.qrview.ok { background: #e6f4ec; }
.qrview .qrok { font-size: 96px; color: #1e7a4f; line-height: 1; }
@keyframes qrscan { from { top: 30px; } to { top: 188px; } }
@media (prefers-reduced-motion: reduce) { .qrview .qrline { animation: none; top: 108px; } }
@media (max-width: 720px) { .qrdlg { max-width: 100vw; } }

/* =====================================================================================================
   Özel mesaj, WhatsApp düzeni (web ve mobil uygulamayla aynı): düz beyaz, şeffaflık ve desen yok.
   Üst çubuk: geri · kişi · ⋮ menü. Yazışma: beyaz zemin, kuyruklu baloncuklar (karşı taraf açık gri, siz açık kırmızı), saat ve okundu işareti içeride.
   Alt çubuk: hap biçimli yazma kutusu (yazdıkça 6 satıra kadar büyür, ek düğmesi içinde) ve yuvarlak gönder düğmesi.
   ===================================================================================================== */
.chat, .chatpane, dialog.chatdlg { background: #fff !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.chatpane { height: calc(100vh - 210px) !important; min-height: 460px; }
.chathead, body.glass .chatpane .chathead { position: relative; gap: 10px; padding: 8px 12px; min-height: 60px; background: #fff; border-bottom: 1px solid #ececef; }
.chathead .dmav { width: 42px; height: 42px; font-size: 15px; }
.chathead .dmt b { font-size: 16px; font-weight: 600; }
.chathead .dmt .meta { font-size: 12.5px; }
.chathead .chatx { display: none; flex: none; width: 40px; height: 40px; min-height: 40px; border: 0; border-radius: 50%; background: transparent !important; box-shadow: none !important; color: var(--ink); padding: 0; place-items: center; }
.chathead .chatx .ico { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; }
dialog.chatdlg .chathead .chatx { display: grid; }
.chatmenu { margin-left: auto; position: relative; }
.chathead .chatmore { width: 40px; height: 40px; min-height: 40px; padding: 0; border: 0 !important; border-radius: 50%; background: transparent !important; box-shadow: none !important; color: var(--mute); display: grid; place-items: center; transform: none !important; }
.chathead .chatmore:hover, .chathead .chatmore[aria-expanded="true"] { background: #f0f0f2 !important; }
.chatmore .ico { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.chatpop { position: absolute; right: 0; top: 44px; z-index: 5; min-width: 170px; padding: 6px 0; background: #fff; border-radius: 10px; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.chatpop button { display: block; width: 100%; text-align: left; padding: 10px 18px !important; min-height: 40px; border: 0 !important; border-radius: 0 !important; background: #fff !important; box-shadow: none !important; color: var(--ink) !important; font-size: 14.5px; transform: none !important; }
.chatpop button:hover { background: #f4f4f6 !important; }
.dmmsgs, body.glass .dmmsgs { background: #fff !important; background-image: none !important; padding: 12px 7% 14px; gap: 2px; }
.dmday { margin: 12px 0 8px; }
.dmday span { background: #f0f2f5; color: #54656f; box-shadow: none; font-size: 12px; padding: 5px 12px; border-radius: 8px; }
.dmnone { background: #f0f2f5; }
.dmb { max-width: min(75%, 540px); margin-top: 2px; padding: 6px 8px 6px 10px; border-radius: 8px; background: #f0f2f5; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); font-size: 14.5px; line-height: 1.4; color: #111b21; }
.dmb.me { background: #fde2e3; border-radius: 8px; }
.dmb.tail { margin-top: 8px; }
.dmb.tail:not(.me) { border-top-left-radius: 0; }
.dmb.tail.me { border-top-right-radius: 0; }
.dmb.tail::before { content: ''; position: absolute; top: 0; width: 8px; height: 13px; }
.dmb.tail:not(.me)::before { left: -8px; background: #f0f2f5; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.dmb.tail.me::before { right: -8px; background: #fde2e3; clip-path: polygon(0 0, 100% 0, 0 100%); }
.dmb time { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; padding: 6px 0 0 10px; font-size: 11px; color: #667781; }
.dmb .tick { width: 16px; height: 11px; fill: none; stroke: #8696a0; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dmb .tick.read { stroke: #c4161c; }
.chatbar, body.glass .chatpane .chatbar, dialog .chatbar { gap: 8px; align-items: flex-end; padding: 8px 12px 10px; background: #f6f6f7; border-top: 0; }
.wabox { flex: 1; min-width: 0; display: flex; align-items: flex-end; gap: 2px; background: #fff; border-radius: 24px; padding: 2px 4px 2px 16px; box-shadow: 0 1px 1px rgba(11, 20, 26, .08); border: 1px solid #e6e6ea; }
.wabox:focus-within { border-color: #c4161c; }
.chatbar .wabox textarea, dialog .chatbar .wabox textarea { flex: 1; min-height: 42px; max-height: 140px; padding: 11px 0 !important; border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; border-radius: 0 !important; resize: none; font: inherit; font-size: 15px; line-height: 1.35; overflow-y: auto; }
.wabox .chatattach { width: 40px; height: 42px; transform: rotate(45deg); }
.wabox .chatattach:hover, .wabox .chatattach:focus-within { background: transparent; }
.chatbar .chatsend { width: 46px; height: 46px; min-height: 46px; }
.chatmeta { padding: 0 16px; background: #f6f6f7; min-height: 0; }
.chatmeta:has(.meta:not(:empty)) { padding-bottom: 6px; }
.chatnote:empty { display: none; }
@media (max-width: 720px) {
  .chathead .chatx { display: grid; }
  .dmmsgs, body.glass .dmmsgs { padding: 10px 12px 12px; }
  .dmb { max-width: 85%; }
}
@media (prefers-color-scheme: dark) {
  .chat, .chatpane, dialog.chatdlg, .chathead, .dmmsgs, body.glass .dmmsgs, body.glass .chatpane .chathead { background: #111b21 !important; }
  .chathead { border-bottom-color: #2a3439; }
  .dmb { background: #202c33; color: #e9edef; }
  .dmb.me { background: #5a1c20; }
  .dmb.tail:not(.me)::before { background: #202c33; }
  .dmb.tail.me::before { background: #5a1c20; }
  .dmday span, .dmnone { background: #202c33; color: #8696a0; }
  .chatbar, body.glass .chatpane .chatbar, dialog .chatbar, .chatmeta { background: #1a2328; }
  .wabox { background: #2a3942; border-color: #2a3942; }
  .chatpop, .chatpop button { background: #233138 !important; color: #e9edef !important; }
}
.mbread.chatpane, body.glass .mbread.chatpane { display: flex !important; flex-direction: column; padding: 0 !important; }
.mbread.chatpane .dmmsgs { flex: 1; min-height: 0; }
/* Faaliyet daveti: mesaj kutusundan gelinince kart vurgulanır; yanıt düğmeleri seçilince dolu renkli */
.facard.fafocus { outline: 3px solid #1e7a4f; outline-offset: 2px; box-shadow: 0 8px 28px rgba(30, 122, 79, .22); animation: fapulse 1.6s ease-out 2; }
@keyframes fapulse { 0% { box-shadow: 0 0 0 0 rgba(30, 122, 79, .45); } 100% { box-shadow: 0 0 0 16px rgba(30, 122, 79, 0); } }
@media (prefers-reduced-motion: reduce) { .facard.fafocus { animation: none; } }
.fask { margin: 10px 0 6px; padding: 10px 14px; border-radius: 10px; background: #e6f4ec; color: #14532d; font-weight: 600; }
.fawait { margin-top: 8px; color: #1e7a4f !important; }
.fans button { min-height: 44px; padding: 0 18px; border-radius: 999px; }
.fans .fayes[aria-pressed="true"] { background: #1e7a4f !important; border-color: #1e7a4f !important; color: #fff !important; }
.fans .fano[aria-pressed="true"] { background: #4b4f56 !important; border-color: #4b4f56 !important; color: #fff !important; }
/* Karekod düğmesi: büyük, kırmızıdan bordoya gradyan hap; solda beyaz daire içinde simge ve çevresinde yayılan halka (dikkat çeker) */
.qrnear { margin-top: 30px; gap: 10px; }
.qrnear .qrbtn { position: relative; display: inline-flex; align-items: center; gap: 16px; min-height: 76px; padding: 10px 34px 10px 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, #ef2a31 0%, #c4161c 45%, #6e0b10 100%); color: #fff; text-align: left;
  box-shadow: 0 14px 30px rgba(196, 22, 28, .38), 0 3px 8px rgba(110, 11, 16, .3), inset 0 1px 0 rgba(255, 255, 255, .3); transition: transform .15s, box-shadow .15s; }
.qrnear .qrbtn:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(196, 22, 28, .45), 0 4px 10px rgba(110, 11, 16, .32), inset 0 1px 0 rgba(255, 255, 255, .3); }
.qrnear .qrbtn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.qrnear .qrico { position: relative; width: 56px; height: 56px; border-radius: 50%; background: #fff; color: #c4161c; display: grid; place-items: center; flex: none; }
.qrnear .qrico::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .8); animation: qrring 2s ease-out infinite; }
.qrnear .qrico .ico { width: 30px; height: 30px; stroke-width: 2; }
.qrnear .qrtx { display: flex; flex-direction: column; line-height: 1.15; }
.qrnear .qrtx b { font-size: 20px; font-weight: 700; letter-spacing: .2px; }
.qrnear .qrtx small { font-size: 13px; opacity: .88; margin-top: 3px; }
@keyframes qrring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.45); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .qrnear .qrico::after { animation: none; } .qrnear .qrbtn { transition: none; } }
@media (max-width: 720px) { .qrnear .qrbtn { width: 100%; max-width: 360px; } }

/* =====================================================================================================
   Kısayollar, Hopi düzeni (mobil uygulamayla aynı): 74 px yuvarlatılmış kare, iki tonlu gradyan, köşede ışık daireleri ve
   üstte parlama, ortada büyük beyaz simge; altında sola hizalı iki satır gri ad. Yeni ya da canlı içerikte sağ üstte kırmızı etiket.
   ===================================================================================================== */
.tgstories { gap: 12px; padding: 16px 2px 8px; }
.tgst { flex: 0 0 80px; align-items: flex-start; gap: 7px; }
.tgst .tgtile2 { position: relative; display: grid; place-items: center; width: 74px; height: 74px; margin-top: 4px; border-radius: 20px; color: #fff;
  background: radial-gradient(circle at 88% 6%, rgba(255, 255, 255, .2) 0 26px, transparent 27px), radial-gradient(circle at 4% 104%, rgba(255, 255, 255, .11) 0 20px, transparent 21px),
    linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 50%), linear-gradient(135deg, var(--g1), var(--g2));
  box-shadow: 0 6px 14px color-mix(in srgb, var(--g2) 38%, transparent); transition: transform .15s; }
.tgst:hover .tgtile2 { transform: translateY(-2px); }
.tgst .tgtile2 .sym { width: auto; height: auto; background: none !important; box-shadow: none !important; color: #fff !important; border-radius: 0; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
.tgst .tgtile2 .ico { width: 36px; height: 36px; stroke-width: 1.7; }
.tgtag { position: absolute; top: -6px; right: -8px; padding: 1px 6px; border-radius: 99px; background: #c4161c; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .3px; border: 2px solid #fff; line-height: 1.4; }
.tgst .lb { text-align: left; max-width: 80px; color: #55585e; font-size: 12.5px; line-height: 1.2; }
.tgst:focus-visible { outline: none; }
.tgst:focus-visible .tgtile2 { outline: 3px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .tgst .tgtile2 { transition: none; } }
@media (prefers-color-scheme: dark) { .tgst .lb { color: #c9c9cf; } .tgtag { border-color: #141516; } }

/* Alt menü (telefon), Spotify düzeni: #121212 zemin, üstte içerikten koyuya geçiş, büyük simgeler; seçili beyaz, diğerleri gri */
@media (max-width: 720px) {
  #bnav { background: #121212; border-top: 0; padding: 8px 4px calc(8px + env(safe-area-inset-bottom)); box-shadow: none; }
  #bnav::before { content: ''; position: absolute; left: 0; right: 0; top: -24px; height: 24px; background: linear-gradient(180deg, rgba(18, 18, 18, 0), rgba(18, 18, 18, .8)); pointer-events: none; }
  #bnav button, #bnav button.on { color: #b3b3b3; background: none !important; font-size: 11.5px; gap: 4px; font-weight: 400; }
  #bnav button.on { color: #fff; font-weight: 600; }
  #bnav svg, #bnav .fab svg { width: 30px; height: 30px; stroke-width: 1.7; }
  #bnav button.on svg { stroke-width: 2.4; }
  #bnav i { top: 0; right: calc(50% - 26px); background: #ed1c24; font-size: 10px; min-width: 17px; line-height: 17px; padding: 0 4px; border: 0; }
}
/* Kısayollar 1/4 küçük ve pastel: 56 px karo, açık iki tonlu zemin, aynı tonun koyusu simge (mobil uygulamayla aynı) */
.tgstories { gap: 10px; padding: 14px 2px 6px; }
.tgst { flex: 0 0 64px; gap: 5px; }
.tgst .tgtile2 { width: 56px; height: 56px; border-radius: 16px; color: var(--gf);
  background: radial-gradient(circle at 92% 2%, rgba(255, 255, 255, .45) 0 19px, transparent 20px), linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 50%), linear-gradient(135deg, var(--g1), var(--g2));
  box-shadow: 0 3px 8px color-mix(in srgb, var(--gf) 14%, transparent); }
.tgst .tgtile2 .sym { color: var(--gf) !important; filter: none; }
.tgst .tgtile2 .ico { width: 27px; height: 27px; stroke-width: 1.8; }
.tgtag { top: -5px; right: -7px; padding: 0 5px; font-size: 9px; border-width: 1.5px; }
.tgst .lb { max-width: 64px; font-size: 11.5px; }
/* Mesajlar ve Takvim zemini: sol üstte siyahtan sağ altta kırmızıya (önceki yönün tersi) */
body.glass { background: linear-gradient(135deg, #140708 0%, #4a0e11 34%, #8e1418 68%, #c4161c 100%) fixed; }
/* Telefon alt menüsü: siyah baskın, sağa doğru koyu kırmızıya gradyan; ana ekrandan gölgesiz, ince kırmızı çizgiyle ayrılır */
@media (max-width: 720px) {
  #bnav { background: linear-gradient(90deg, #0b0b0c 0%, #140809 45%, #3a0a0d 78%, #6e0b10 100%); border-top: .6px solid #8e1418; box-shadow: none; }
  #bnav::before { display: none; }
}
/* Bölgem › Faaliyet oluştur (yetkililer): belirgin düğme biçiminde başlık; açılınca form altında */
details.facreate { padding: 0; border: 0; overflow: hidden; border-radius: 16px; box-shadow: 0 8px 22px rgba(196, 22, 28, .22); }
details.facreate > summary { list-style: none; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 18px 10px 12px; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, #ef2a31 0%, #c4161c 50%, #8e1418 100%); }
details.facreate > summary::-webkit-details-marker { display: none; }
details.facreate > summary:hover { filter: brightness(1.06); }
details.facreate > summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.facreate .facplus { flex: none; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: #c4161c; display: grid; place-items: center; font-size: 28px; font-weight: 700; line-height: 1; }
.facreate .factx { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.facreate .factx b { font-size: 17px; }
.facreate .factx small { font-size: 12.5px; opacity: .9; margin-top: 2px; }
.facreate .facarrow { font-size: 26px; line-height: 1; transition: transform .2s; }
details.facreate[open] > summary .facarrow { transform: rotate(90deg); }
details.facreate[open] > summary { border-radius: 16px 16px 0 0; }
details.facreate > :not(summary) { margin-left: 18px; margin-right: 18px; }
details.facreate > :last-child { margin-bottom: 16px; }
details.facreate[open] { background: var(--card); border: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .facreate .facarrow { transition: none; } }
details.facreate > summary::before, details.facreate > summary::after { display: none !important; content: none !important; }
details.facreate > :not(summary) { width: calc(100% - 36px); max-width: calc(100% - 36px); box-sizing: border-box; }
/* Haber bandı: ilk kart açılışta sayfanın sol hizasında başlar (kayma yok); her kart sola oturur, sonraki kart sağdan görünür */
.tgban .car .track { padding: 6px 14% 10px 0; scroll-padding: 0; }
.tgban .car .slide { scroll-snap-align: start; }
.tgban .car .carctl { margin-right: 0; }
@media (min-width: 721px) { .tgban .car .track { padding: 6px 28% 10px 0; scroll-padding: 0; } }
/* Yeni mesaj ve tüm mesaj kutuları: düz beyaz, şeffaflık ve bulanıklık yok (Mesajlar ve Takvim ile aynı) */
body.glass .composecard { background: #fff !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 28px rgba(0, 0, 0, .25); }
body.glass .composecard :is(select, input[type=text], input[type=search], input[type=datetime-local], textarea) { background: #fff; border: 1px solid #d5d5da; color: #221f20; }
body.glass .composecard .checks label { background: #fff; border: 1px solid #d5d5da; }
body.glass .composecard .checks label:has(input:checked) { background: #fff4f4; border-color: #c4161c; }
body.glass .composecard .checks.prisel label:has(input:checked) { background: var(--c); border-color: var(--c); color: var(--t); }
body.glass .composecard .seg { background: #f1f1f3; }
body.glass .composecard .note, body.glass .composecard details.opts { background: #f7f7f9; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.glass .anhero { background: #fff !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
body.glass .angrid > nav, body.glass .annav, body.glass .ganav { background: #fff !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
dialog :is(.box, .note, .card, details.opts, .respbox) { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
body.glass dialog, dialog { -webkit-backdrop-filter: none; backdrop-filter: none; }
body.glass .mblist :is(.gtool, .gtabs, .ghead, .ghelp), body.glass .mbread :is(.gback) { background: #fff !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
body.glass .mblist, body.glass .mbread { background: #fff !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
body.glass .mblist { box-shadow: 0 10px 28px rgba(0, 0, 0, .25) !important; }
body.glass .mblist .list .msg { background: #fff !important; }
body.glass .mblist .list .msg.unread { background: #fff6f6 !important; }
@media (max-width: 720px) {
  body.glass .mbtop .mbsearch, body.glass .mbtop input[type=search] { background: #fff !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}
@media (max-width: 720px) { body.glass .mbtop .mbsearch { border-radius: 999px; overflow: hidden; } }
body.glass .mbtop .mbsearch { background: #fff !important; border-radius: 999px; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
body.glass .mbtop input[type=search] { background: #fff !important; }
/* telefonda klasör çubuğunun gölgesi altındaki listeye düşmesin: liste üstte */
@media (max-width: 720px) { body.glass .mblist { position: relative; z-index: 2; } }

/* =====================================================================================================
   Listeler her yerde aynı: satırlar bir beyaz, bir çok açık gri (göze batmayacak kadar hafif); ayırıcı çizgi yok.
   Mobil uygulamadaki Diğer listesiyle aynı ton (#f6f6f8). Okunmamış ve seçili satırların kendi vurgusu korunur.
   ===================================================================================================== */
:root { --stripe: #f6f6f8; }
@media (prefers-color-scheme: dark) { :root { --stripe: #26282c; } }
.morerow, .dmrow, .orow, .mrow, .mblist .list > .msg, .reqcard + .reqcard { border-bottom-color: transparent !important; }
.morerow:nth-child(even), .dmlist > .dmrow:nth-child(even):not(.unread), .anreport .orow:nth-child(even), .mblist .list > .msg:nth-child(even):not(.unread):not(.sel) { background: var(--stripe) !important; }
body.glass .mblist .list > .msg:nth-child(even):not(.unread):not(.sel) { background: var(--stripe) !important; }
.anreport .orow, .feed .mrow, #feed .mrow { padding-left: 12px; padding-right: 12px; }
.anreport .orow:nth-child(even), #feed > :nth-child(even), .anlist > .mrow:nth-child(even), .rows > :nth-child(even) { background: var(--stripe); border-radius: 8px; }
/* Örgüt içi mesaj ekleri: yazarken seçilen dosyalar ve iletide ekler */
.mekup { display: flex; flex-direction: column; gap: 6px; }
.mekbtn { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 42px; padding: 0 16px; border: 1px dashed #c9c1c1; border-radius: 999px; color: var(--red-d); cursor: pointer; background: #fff; }
.mekbtn:hover, .mekbtn:focus-within { border-color: var(--red-d); background: #fff6f6; }
.mekbtn .ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.mekl { display: flex; flex-wrap: wrap; gap: 8px; }
.mekc { display: inline-flex; align-items: center; gap: 8px; max-width: 280px; padding: 6px 8px 6px 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.mekc img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.mekc .ico { width: 22px; height: 22px; color: var(--red-d); fill: none; stroke: currentColor; stroke-width: 1.8; margin: 0 9px; }
.mekc small { color: var(--mute); white-space: nowrap; }
.mekc .linkbtn { font-size: 20px; line-height: 1; text-decoration: none; padding: 0 4px; }
.msgek { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 14px; }
.msgekit { display: flex; align-items: center; gap: 10px; max-width: 300px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; }
.msgekit:hover { border-color: var(--red-d); }
.msgekit .ico { width: 22px; height: 22px; flex: none; color: var(--red-d); fill: none; stroke: currentColor; stroke-width: 1.8; }
.msgekit small { color: var(--mute); white-space: nowrap; }
.msgekit.img { flex-direction: column; align-items: stretch; width: 180px; padding: 6px; gap: 4px; }
.msgekit.img img { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; display: block; }
.msgekit.img span, .msgekit.img small { padding: 0 4px; font-size: 12.5px; }
/* SosyalLink › Kütüphane: kategori sekmeleri (Mevzuat vurgulu), eser satırları sıralı beyaz/açık gri */
.kut .ksearch input { width: 100%; min-height: 44px; border-radius: 999px; padding: 0 18px; }
.kcats { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.kcats button { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.kcats button.mev { border-color: #c4161c; color: #c4161c; font-weight: 600; }
.kcats button.on { background: #c4161c; border-color: #c4161c; color: #fff; }
.kcats button.on .meta { color: rgba(255, 255, 255, .85); }
.kdesc { margin: 4px 2px 10px; }
.kgrp { margin: 16px 2px 6px; font-size: 15px; font-weight: 600; }
.klist { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.kitem { display: flex; gap: 12px; align-items: center; padding: 12px 14px; }
.kitem:nth-child(even) { background: var(--stripe, #f6f6f8); }
.kico { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; background: #fde2e4; color: #b4232a; }
.k-belge .kico { background: #fff0e0; color: #b5541c; }
.k-kitap .kico { background: #e7f0fb; color: #1f5e99; }
.ktx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ktx p { margin: 3px 0 0; font-size: 14px; color: var(--mute); }
.kact { flex: none; }
.kbtn { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; text-decoration: none; white-space: nowrap; font-size: 14px; }
@media (max-width: 720px) { .kitem { flex-wrap: wrap; } .kact { width: 100%; padding-left: 52px; } }
/* Mobil uygulama içinde gömülü görünüm (#tab=…&embed=1): yalnızca bölümün içeriği; üst bant, menüler, canlı bant ve geri düğmesi uygulamada */
html.embed header.top, html.embed #tabs, html.embed #bnav, html.embed #livebar, html.embed #backslot, html.embed #fab { display: none !important; }
html.embed body { padding: 0 !important; }
html.embed main#view { padding-bottom: 24px !important; margin-top: 0 !important; }
